Yang–Mills: the 2026 Lean construction, rerun and read; the mass gap still open
OpenAI's 2026 Lean construction of 4D Yang–Mills as the expert group keeps it: settle what it proves, rerun it, read it; uniqueness and the mass gap are open, and Clay's problem unsolved

| 1 | import YM.Next.UV_STRESS.Plateau |
| 2 | |
| 3 | |
| 4 | /-! |
| 5 | # Obtain all-window, all-exterior physical fields |
| 6 | -/ |
| 7 | |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | namespace YM.Next.UVStress |
| 11 | open Filter Function Set MeasureTheory Analysis Extraction Table Ward Climb Work.A01 |
| 12 | open scoped Topology ContDiff BigOperators |
| 13 | variable {G : Gauge} {L : Register G} {S : Table L} {n d D : ℕ} |
| 14 | |
| 15 | lemma slide_disc (H : S.Hierarchy) (x : Points n) (s : E4) (hx : x∈conf _) (q : Fin n → S.Tag) : |
| 16 | disc q (Points.across s x)=disc q x := |
| 17 | let v : Fin n → L.Token := fun i => ⟨(q i).1,S.representative _ (q i).2⟩ |
| 18 | H.translations n x hx s v |
| 19 | |
| 20 | lemma valid_nearby {x : Points (n+1)} {w : E4 → ℝ} (hx : x∈conf _) (ht : Window x w) : |
| 21 | ∀ᶠ y in 𝓝 x,y∈conf _ ∧ Window y w := by |
| 22 | have he (i : Fin (n+1)) : Tendsto (fun v : Points (n+1) => v i) (𝓝 x) (𝓝 (x i)) := |
| 23 | (show Continuous (fun v : Points (n+1) => v i) from by fun_prop).continuousAt |
| 24 | have hy := (he 0).eventually (eventually_eventuallyEq_nhds.mpr ht.2.2.1) |
| 25 | have hh (i : Fin n) := (he i.succ).eventually ((isClosed_tsupport w).isOpen_compl.mem_nhds |
| 26 | (show x i.succ∈ (tsupport w)ᶜ from ht.2.2.2 _)) |
| 27 | filter_upwards [(conf_open _).mem_nhds hx,hy,eventually_all.mpr hh] with z hp hi hh |
| 28 | exact ⟨hp,ht.1,ht.2.1,hi,hh⟩ |
| 29 | |
| 30 | lemma moves_window {x : Points (n+1)} {w : E4→ℝ} (s : E4) (h : Window (Points.across s x) w) : |
| 31 | Window x (fun y => w (y+s)) := by |
| 32 | have hp (i : Fin (n+1)) : Tendsto (fun y : E4 => y+s) (𝓝 (x i)) (𝓝 (x i+s)) := |
| 33 | (show Continuous (fun y : E4 => y+s) from by fun_prop).continuousAt |
| 34 | refine ⟨h.1.comp (contDiff_id.add contDiff_const),h.2.1.comp_homeomorph (Homeomorph.addRight s), |
| 35 | h.2.2.1.comp_tendsto (hp 0),fun i => ?_⟩ |
| 36 | exact notMem_tsupport_iff_eventuallyEq.mpr ((notMem_tsupport_iff_eventuallyEq.mp (h.2.2.2 i)).comp_tendsto (hp i.succ)) |
| 37 | |
| 38 | /-- Measure is ambient d⁴y. -/ |
| 39 | lemma moves_flux (H : S.Hierarchy) {x : Points (n+1)} (hx : x∈conf _) (s : E4) {w : E4→ℝ} |
| 40 | (U : E4 → E4) (J : S.Stress) (q : Fin n → S.Tag) (v : S.Field d) (h : Window (Points.across s x) w) : |
| 41 | flux J w (fun y => U (y- (Points.across s x) 0)) (Points.across s x) q v = |
| 42 | flux J (fun y => w (y+s)) (fun y => U (y - x 0)) x q v := by |
| 43 | have hy (y : E4) (a : Axis) : Analysis.D (basis a) (fun y : E4 => w (y+s)) y=Analysis.D (basis a) w (y+s) := by |
| 44 | change fderiv ℝ (w ∘ fun y : E4 => y+s) y _=_ |
| 45 | have he : HasFDerivAt (fun y : E4 => y+s) (ContinuousLinearMap.id ℝ _) y := (hasFDerivAt_id _).add_const _ |
| 46 | rw [fderiv_comp y (h.1.differentiable (by simp) _) he.differentiableAt,he.fderiv]; rfl |
| 47 | have hh (y : E4) : Points.cons (y+s) (Points.across s x)=Points.across s (Points.cons y x) := by |
| 48 | ext1 i; refine Fin.cases ?_ (fun j => ?_) i <;> simp [Points.cons] |
| 49 | have hw (i j : Axis) (y : E4) : term J w (fun y => U (y-(Points.across s x) 0)) |
| 50 | (Points.across s x) q v i j (y+s)=term J (fun y => w (y+s)) (fun y => U (y-x 0)) x q v i j y := by |
| 51 | unfold term; dsimp only; rw [hx_center, ← hy, hh] |
| 52 | by_cases hz : Analysis.D (basis i) (fun y => w (y+s)) y=0 |
| 53 | · simp [hz] |
| 54 | exact congr_arg (fun a : ℂ => _ * a) (slide_disc H (Points.cons y x) s (separated_of_D hx (moves_window _ h) hz) _) |
| 55 | unfold flux |
| 56 | apply congr_arg Neg.neg; apply Finset.sum_congr rfl; intro i _; apply Finset.sum_congr rfl; intro j _ |
| 57 | rw [← integral_add_right_eq_self _ s]; simp_rw [hw] |
| 58 | where |
| 59 | hx_center (y : E4) : y+s-(Points.across s x) 0=y-x 0 := by simp |
| 60 | |
| 61 | lemma continuous_flux (H : S.Hierarchy) {x : Points (n+1)} (hx : x∈conf _) {χ : E4 → ℝ} (hw : Window x χ) |
| 62 | (U : E4 → E4) (hU : ∀ i : Axis, Continuous (fun y => U y i)) (J : S.Stress) (q : Fin n → S.Tag) (v : S.Field d) : |
| 63 | ContinuousAt (fun y : Points (n+1) => flux J χ (fun z => U (z-y 0)) y q v) x := by |
| 64 | classical |
| 65 | let X := {y : Points (n+1)|y ∈ conf _ ∧ Window y χ} |
| 66 | let K := tsupport (fderiv ℝ χ) |
| 67 | have hK : IsCompact K := hw.2.1.fderiv ℝ |
| 68 | have ht : x∈X:=⟨hx,hw⟩ |
| 69 | let F (i j : Axis) (y : Points (n+1)) z := term J χ (fun z => U (z-y 0)) y q v i j z |
| 70 | have he (i j : Axis) (p z) (hz : z∉K) : F i j p z=0 := by simp [F,term,Analysis.D,image_eq_zero_of_notMem_tsupport hz] |
| 71 | have hF (i j : Axis) : ContinuousOn (uncurry (F i j)) (X ×ˢ univ) := by |
| 72 | rintro ⟨y,z⟩ ⟨⟨hp,H'⟩,_⟩; apply ContinuousAt.continuousWithinAt |
| 73 | by_cases hb : z∈K |
| 74 | · have he : Continuous (fun z => Analysis.D (basis i) χ z) := |
| 75 | (hw.1.continuous_fderiv (by simp)).clm_apply continuous_const |
| 76 | have hD : Continuous (fun p : Points (n+1) × E4 => ((((Analysis.D (basis i) χ p.2) * U (p.2-p.1 0) j:ℝ):ℂ))) := |
| 77 | Complex.continuous_ofReal.comp ((he.comp continuous_snd).mul ((hU j).comp (show Continuous (fun p : Points (n+1) × E4 => p.2-p.1 0) by fun_prop))) |
| 78 | exact hD.continuousAt.mul ((cont_disc H (Fin.cons ⟨4,J i j⟩ (Fin.cons ⟨d,v⟩ q)) (window_separated hp H' hb)).continuousAt.comp |
| 79 | (f:=fun a : Points (n+1) × E4 => Points.cons a.2 a.1) (x:=(y,z)) (Work.A02.continuous_cons.comp continuous_swap).continuousAt) |
| 80 | have hZ := (continuous_snd (X:=Points (n+1))).continuousAt (x:=(y,z))|>.tendsto.eventually |
| 81 | ((isClosed_tsupport (fderiv ℝ χ)).isOpen_compl.mem_nhds hb) |
| 82 | exact continuousAt_const.congr (hZ.mono fun p hv => (he i j p.1 p.2 hv).symm) |
| 83 | have hg (i j : Axis) : ContinuousAt (fun p => ∫ z,F i j p z) x := |
| 84 | ((continuousOn_integral_of_compact_support hK (hF i j) (fun p z _ => he i j p z)) x ht).continuousAt |
| 85 | (show X∈𝓝 x from valid_nearby hx hw) |
| 86 | exact (tendsto_finsetSum Finset.univ (fun i _ => tendsto_finsetSum Finset.univ (fun j _ => hg i j))).neg |
| 87 | |
| 88 | section ground |
| 89 | variable {C : Family G} {S : Table C.book} {F : Extraction.Order} {V : DiffPlan S} |
| 90 | |
| 91 | lemma meets_grid (C : Family G) (x : Points n) : |
| 92 | ∃ᶠ y in 𝓝 x, y∈generic n ∧ ∃ k : ℕ, ∃ v, y=Extraction.Order.grid C k v := by |
| 93 | apply mem_closure_iff_frequently.mp |
| 94 | have he (y) (hy : y∈generic n) : y∈closure {y | y∈generic n ∧ ∃ k : ℕ, ∃ v, y=Extraction.Order.grid C k v} := by |
| 95 | let u k := address (C.S.a k) y |
| 96 | let g k := Extraction.Order.grid C k (u k) |
| 97 | have ht : Tendsto g atTop (𝓝 y) := chosen y |
| 98 | apply isClosed_closure.mem_of_tendsto ht |
| 99 | filter_upwards [ht.eventually ((genericOpen n).mem_nhds hy)] with k hk using |
| 100 | subset_closure (show g k ∈ {y|y∈generic n∧∃ k : ℕ, ∃ v, y = Extraction.Order.grid C k v} from ⟨hk,k,u k,rfl⟩) |
| 101 | exact (closure_minimal he isClosed_closure) (Dash.full n x) |
| 102 | |
| 103 | private lemma raised (k : ℕ) {v : Fin (n+1)→Lattice.Cover} (h : Extraction.Order.grid C k v∈generic _) |
| 104 | (q : Fin n → S.Tag) : ∃ (x : Points (n+1)) (s : E4) (p : Fin n → C.book.Token) (z : Fin n → Lattice.Cover), |
| 105 | x = Extraction.Order.grid C k (Fin.cons 0 z) ∧ x∈generic _ ∧ Points.across s x=Extraction.Order.grid C k v ∧ |
| 106 | (S.classTokens ∘ p=q) := by |
| 107 | let s := C.S.gridPoint k (v 0) |
| 108 | let z i := v (Fin.succ i)-v 0 |
| 109 | let x := Extraction.Order.grid C k (Fin.cons (α:=fun _ => Lattice.Cover) 0 z) |
| 110 | have hx : x=Points.across (-s) (Extraction.Order.grid C k v) := by |
| 111 | ext1 i |
| 112 | refine Fin.cases ?_ (fun j => ?_) i |
| 113 | · ext a; simp [s,x,Extraction.Order.grid,Schedule.gridPoint] |
| 114 | ext a; simp [s,z,x,Extraction.Order.grid,Schedule.gridPoint,mul_sub]; ring |
| 115 | refine ⟨x,s,(expose ∘ q),z,rfl,hx.symm ▸ Extraction.Order.nearGeneric (-s) h,?_,?_⟩ |
| 116 | · rw [hx]; ext i; simp |
| 117 | exact funext fun i => Ward.sends_back _ |
| 118 | |
| 119 | lemma observes (H : S.Hierarchy) (D : ℕ) : Injective (LinearMap.pi (fun I : Watch C => I.tester S D)) := by |
| 120 | intro a b he |
| 121 | apply S.field_ext H.laws.toSymmetric |
| 122 | intro n q x hx |
| 123 | let K (v : S.Field D) := disc (Fin.cons ⟨D,v⟩ q) |
| 124 | have hs v : ContinuousAt (K v) x := (cont_disc H _ hx).continuousAt |
| 125 | refine tendsto_nhds_unique_of_frequently_eq (hs a) (hs b) ?_ |
| 126 | refine (meets_grid C x).mono ?_ |
| 127 | rintro u ⟨hp,k,t,rfl⟩ |
| 128 | obtain ⟨_,s,p,z,rfl,hx,ht,hq⟩ := raised (C:=C) k hp q |
| 129 | let I : Watch C := ⟨n,k,z,p,hx⟩ |
| 130 | have hK v : K v (Extraction.Order.grid C k t)=I.tester S D v := by |
| 131 | rw [← ht]; change disc _ (Points.across s I.held)=_ |
| 132 | rw [slide_disc H I.held _ I.distinct, Watch.test_known]; change _ = disc (Fin.cons ⟨D,v⟩ (S.classTokens ∘ p)) _; rw [hq] |
| 133 | exact (hK a).trans ((congr_fun he I).trans (hK b).symm) |
| 134 | |
| 135 | -- finite values in the image of the same evaluation. No nonzero label |
| 136 | -- cap assumption. No integral dummy representative off chosen Window. |
| 137 | private theorem obtainable {ι Y : Type*} [Fintype ι] [AddCommGroup Y] [Module ℂ Y] |
| 138 | (R : Y →ₗ[ℂ] (ι → ℂ)) (p : ι → ℂ) |
| 139 | (h : ∀ g : ι→ℂ,(∀ v : Y, (∑ i, g i*R v i)=0) → (∑ i, g i*p i)=0) : |
| 140 | ∃ v, R v=p := by |
| 141 | classical |
| 142 | suffices he : p∈LinearMap.range R from he |
| 143 | by_contra H |
| 144 | let S := LinearMap.range R |
| 145 | have he : S.mkQ p≠0 := fun hv => H ((Submodule.Quotient.mk_eq_zero _).mp hv) |
| 146 | obtain ⟨f,hf⟩ := Module.Projective.exists_dual_ne_zero ℂ he |
| 147 | let L := f.comp S.mkQ |
| 148 | let g (i : ι) := L (Pi.single i 1) |
| 149 | have hh (w : ι → ℂ) : L w= ∑ i, g i * w i := by |
| 150 | have he : w= ∑ i : ι, w i • Pi.single i 1 := by |
| 151 | funext j; simp [Pi.single_apply,apply_ite] |
| 152 | conv_lhs => rw [he] |
| 153 | rw [map_sum]; apply Finset.sum_congr rfl; intro i _; simp [mul_comm,g] |
| 154 | apply hf |
| 155 | change L p=0 |
| 156 | rw [hh]; apply h g |
| 157 | intro v; rw [← hh]; unfold L; rw [LinearMap.comp_apply, show S.mkQ _=0 from |
| 158 | (Submodule.Quotient.mk_eq_zero _).2 (LinearMap.mem_range_self ..),map_zero] |
| 159 | |
| 160 | -- Flux coverage at all x. |
| 161 | theorem annular_field (hC : C.Makes) (hq : Cells.CellHyp C F) (ho : F.PointLimits C S) |
| 162 | (H : S.Hierarchy) (h : V.Derivatives S) {J : S.Stress} (hc : Conserved V H.spin J) (v : S.Field d) |
| 163 | (U : E4→E4) (hw : ∀ i : Axis,ContDiff ℝ ∞ (fun y => U y i)) (hl : killing U) (p : ℕ) |
| 164 | (hg : ∀ y (r : ℝ),0<r → U (r • y)=r^p • U y) |
| 165 | (D : ℕ) (hh : ShellBound F D (3+p) v J) : |
| 166 | ∃ B : S.Field D, ∀ (n : ℕ) (q : Fin n→S.Tag) (x : Points (n+1)), x∈conf _ → |
| 167 | ∀ χ, Window x χ → flux J χ (fun y => U (y-x 0)) x q v=disc (Fin.cons ⟨D,B⟩ q) x := by |
| 168 | classical |
| 169 | choose W hW using fun I : Watch C => exists_window I.held I.distinct |
| 170 | let A (I : Watch C) := flux J (W I) U I.held (S.classTokens ∘ I.q) v |
| 171 | have hs (I : Finset (Watch C)) : ∃ B : S.Field D,∀ y∈I,A y=y.tester S D B := by |
| 172 | let Z := LinearMap.pi (fun y : I => y.val.tester S D) |
| 173 | obtain ⟨B,hB⟩ := obtainable Z (fun y : I => A y.val) (fun g hx => physical_value hC hq ho H h hc v U hw hl p hg D hh |
| 174 | (fun y : I => y.val) g hx (fun y : I => W y.val) (fun y => hW _)) |
| 175 | exact ⟨B,fun y hy => (congr_fun hB (⟨y,hy⟩:I)).symm⟩ |
| 176 | obtain ⟨T,hT⟩ := Work.A04.finite_faithful _ (observes H D) |
| 177 | obtain ⟨B,hB⟩ := hs T |
| 178 | have hv (I : Watch C) (χ : E4 → ℝ) (hh : Window I.held χ) : |
| 179 | flux J χ U I.held (S.classTokens ∘ I.q) v = I.tester S D B := by |
| 180 | obtain ⟨b,hb⟩ := hs (insert I T) |
| 181 | have ht : b=B := hT (funext (fun y : T => (hb y.val (Finset.mem_insert_of_mem y.property)).symm.trans (hB y y.property))) |
| 182 | exact (unchanged_flux H h hc v U hw hl _ I.distinct hh (hW I) _).trans (ht ▸ hb I (Finset.mem_insert_self ..)) |
| 183 | refine ⟨B,fun n q x hx χ hχ => ?_⟩ |
| 184 | refine tendsto_nhds_unique_of_frequently_eq (continuous_flux H hx hχ U (fun i => (hw i).continuous) J q v) |
| 185 | (cont_disc H (Fin.cons ⟨D,B⟩ q) hx).continuousAt ?_ |
| 186 | refine (((meets_grid C x).and_eventually (valid_nearby hx hχ)).mono ?_) |
| 187 | rintro y ⟨⟨hp,k,w,rfl⟩,_,hz⟩ |
| 188 | obtain ⟨_,s,u,z,rfl,hp',hu,rfl⟩ := raised (C:=C) k hp q |
| 189 | let I : Watch C := ⟨n,k,z,u,hp'⟩ |
| 190 | rw [← hu] at hz ⊢ |
| 191 | change flux J χ (fun y => U (y - Points.across s I.held 0)) (Points.across s I.held) (S.classTokens ∘ u) v = |
| 192 | disc _ (Points.across s I.held) |
| 193 | rw [moves_flux H I.distinct s U J _ v (show Window (Points.across s I.held) χ from hz), |
| 194 | slide_disc H I.held s I.distinct,show (fun y => U (y-I.held 0)) = U from funext fun y => by rw [I.origin,sub_zero]] |
| 195 | exact (hv I _ (moves_window s hz)).trans (Watch.test_known _ _) |
| 196 | end ground |
| 197 | end YM.Next.UVStress |