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.Euclid.Stress |
| 2 | import YM.Heat.Lift |
| 3 | import YM.OS.Core |
| 4 | import YM.Ward.Circles |
| 5 | |
| 6 | |
| 7 | /-! |
| 8 | # Tilt long displaced correlations on same unselected hierarchy |
| 9 | |
| 10 | Full O4 action (not coordinate-only). Use comparison along n purely normal; |
| 11 | transverse unitaries may vary arbitrarily with displacement & don't assume P0 fixed under them yet. |
| 12 | -/ |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.OS.Ground |
| 16 | open Function Set Filter Analysis Word Table |
| 17 | open scoped Topology NNReal ENNReal ContDiff BigOperators InnerProductSpace |
| 18 | variable {G : Gauge} {L : Register G} {S : Table L} {a : Axis} (V : Chamber S a) |
| 19 | |
| 20 | lemma columns (C : E4 ≃ₗᵢ[ℝ] E4) : ∃ K : Ortho, ∀ v, Ortho.move K v=C v := by |
| 21 | let b := EuclideanSpace.basisFun Axis ℝ -- order |
| 22 | refine ⟨⟨C.toMatrix b.toBasis b.toBasis,C.toMatrix_mem_unitaryGroup b b⟩,fun v => ?_⟩ |
| 23 | change Matrix.toEuclideanLin ((C.toLinearEquiv).toLinearMap.toMatrix _ _) v=C v |
| 24 | rw [Matrix.toEuclideanLin_eq_toLin_orthonormal] |
| 25 | exact LinearMap.congr_fun ((LinearMap.toMatrix b.toBasis b.toBasis).symm_apply_apply _) v |
| 26 | |
| 27 | lemma orients (u : E4) (h : 0<u a) : ∃ K : Ortho, Ortho.move K u=‖u‖ • basis a ∧ 0 < Ortho.move K (basis a) a := by |
| 28 | let y := ‖u‖ • basis a |
| 29 | obtain ⟨K,hK⟩ := columns (Submodule.reflection (Submodule.span ℝ ({u-y}:Set E4)).orthogonal) |
| 30 | have hu : ‖u‖= ‖y‖ := by simp [y,norm_smul] |
| 31 | refine ⟨K,by rw [hK]; exact Submodule.reflection_sub hu,?_⟩ |
| 32 | have hv : inner ℝ (Ortho.move K u) (Ortho.move K (basis a)) = inner ℝ u (basis a) := |
| 33 | (Ortho.motion K).inner_map_map _ _ |
| 34 | rw [hK u, show Submodule.reflection _ _=_ from Submodule.reflection_sub hu] at hv |
| 35 | unfold y at hv; rw [real_inner_smul_left,basis_inner,← real_inner_comm u,basis_inner] at hv |
| 36 | exact pos_of_mul_pos_right (hv.symm ▸ h) (norm_nonneg _) |
| 37 | |
| 38 | lemma happens (d : ℝ≥0 → E4) (H : Tendsto (fun i => d i a) atTop atTop) (p v : L.Word) (hp : distinct p) |
| 39 | (hv : distinct v) : ∀ᶠ i in atTop, distinct (p ++ carry v (d i)) := by |
| 40 | classical |
| 41 | have hk (q u : L.Plant) : ∀ᶠ i in atTop, q.1 a < (u.1+d i) a := by |
| 42 | filter_upwards [H.eventually (eventually_gt_atTop (q.1 a - u.1 a))] with i hi; simp only [PiLp.add_apply]; linarith |
| 43 | filter_upwards [(eventually_all_finset p.toFinset).mpr fun i (_:i∈_) => (eventually_all_finset v.toFinset).mpr fun j (_:j∈_) => hk i j] with i hi |
| 44 | apply locations.mpr; rw [List.map_append,List.nodup_append]; refine ⟨locations.mp hp, locations.mp (still hv _),?_⟩ |
| 45 | intro x hx y hy he |
| 46 | obtain ⟨q,hq,rfl⟩ := List.mem_map.mp hx; obtain ⟨r,hr,rfl⟩ := List.mem_map.mp hy |
| 47 | obtain ⟨u,hu,rfl⟩ := List.mem_map.mp hr |
| 48 | exact (hi q (by simpa using hq) u (by simpa using hu)).ne (congr_arg (fun z : E4 => z a) he) |
| 49 | |
| 50 | def rotate (w : L.Word) (R : S.Rotation) (K : Ortho) : L.Word := |
| 51 | w.map fun p => (Ortho.move K p.1,Ward.expose (R.label K (S.classTokens p.2))) |
| 52 | lemma rotated (w v : L.Word) (R : S.Rotation) (K : Ortho) (b : E4) : rotate (w++carry v b) R K= |
| 53 | rotate w R K ++ carry (rotate v R K) (Ortho.move K b) := by |
| 54 | unfold rotate; simp only [carry,List.map_append,List.map_map] |
| 55 | congr 2; funext p; exact Prod.ext ((Ortho.motion K).map_add _ _) rfl |
| 56 | |
| 57 | lemma trans {w : L.Word} |
| 58 | (R : S.Rotation) (H : S.Hierarchy) (o : R.Oriented S) (hp : distinct w) (K : Ortho) : |
| 59 | distinct (rotate w R K) ∧ S.expect (rotate w R K) = S.expect w := by |
| 60 | let x := positions w |
| 61 | let p := Points.move K x |
| 62 | let f (i) := R.label K (S.classTokens (tokens w i)) |
| 63 | have he : rotate w R K = realize (fun i => Ward.expose (f i)) p := by -- via ofFn |
| 64 | unfold realize rotate |
| 65 | conv_lhs => rhs; rw [← List.ofFn_get w] |
| 66 | rw [List.map_ofFn]; rfl |
| 67 | rw [he]; refine ⟨ Word.realized _ _ |>.2 (Points.move_in _ hp),?_⟩ |
| 68 | rw [S.readAt]; change S.useAt S p f=S.expect w |
| 69 | rw [show S.useAt S p f=_ from o _ (fun i => S.classTokens (tokens w i)) x hp K] |
| 70 | exact at_project S S H.laws.toSymmetric (fun _ => le_rfl) hp (tokens w) |
| 71 | |
| 72 | lemma going (_ : S.Hierarchy) (p q : Future L a) (x : Cross a) (s : ℝ≥0) : inner ℂ (V.GNS.plant p) |
| 73 | (V.flow.U x (V.flow.E s (V.GNS.plant q))) = S.expect (reflect p.val a ++ carry q.val (x.val + (s:ℝ) • basis a)) := by |
| 74 | rw [← V.atBirth, ← V.across, V.GNS.measure]; simp [Table.gram,travel, over, add_comm] |
| 75 | |
| 76 | -- choose lower/upper placements fixed. p sent to reflection of word. |
| 77 | lemma released (p : L.Word) (h : distinct p) : ∃ r : ℝ, Positive (carry p (r • basis a)) a := by |
| 78 | classical |
| 79 | have ht i (hi : i∈p) : ∀ᶠ r : ℝ in atTop, 0 < i.1 a+r := by |
| 80 | filter_upwards [eventually_gt_atTop (-i.1 a)] with t ht; linarith |
| 81 | obtain ⟨r,hr⟩ := ((eventually_all_finset p.toFinset).mpr (fun i hi => ht i (by simpa using hi))).exists |
| 82 | refine ⟨r,still h _,fun i hp => ?_⟩ |
| 83 | obtain ⟨u,hu,rfl⟩ := List.mem_map.mp hp |
| 84 | simpa using hr _ (by simpa using hu) |
| 85 | |
| 86 | lemma settles (p q : L.Word) (h : distinct p) (hp : distinct q) (H : S.Hierarchy) : |
| 87 | ∃ (t s : ℝ) (v w : Future L a), ∀ (x : E4) (_ : t+s ≤ x a), |
| 88 | S.expect (p++carry q x) = inner ℂ (V.GNS.plant v) (V.flow.U (Semigroup.SEP a x) (V.flow.E (x a-t-s).toNNReal (V.GNS.plant w))) := by |
| 89 | obtain ⟨t,hv⟩ := released (reflect p a) (reflects a h) (a := a) |
| 90 | obtain ⟨s,he⟩ := released q hp (a := a) |
| 91 | let v := (⟨_,hv⟩ : Future L a) |
| 92 | let w := (⟨_,he⟩ : Future L a) |
| 93 | refine ⟨t,s,v,w,fun x ht => ?_⟩ |
| 94 | let f := Semigroup.SEP a x |
| 95 | let k := (x a-t-s).toNNReal |
| 96 | have hw := twoSides v.property (over (travel w k) f).property |
| 97 | have hy : (over (travel w k) f).val=carry w.val (f.val+(k:ℝ) • basis a) := by simp [over,travel,add_comm] |
| 98 | have hh : carry (reflect v.val a ++ carry w.val (f.val+(k:ℝ) • basis a)) (t • basis a)=p ++ carry q x := by |
| 99 | dsimp only [v,w]; rw [refl_over,reflect_twice,distribute,paths,paths,paths, |
| 100 | show Ortho.move (Signed.reflect a) (t • basis a) = -(t • basis a) by ext i; by_cases h : i=a <;> simp [h,Signed.mirrored], neg_add_cancel, rest] |
| 101 | congr 2 |
| 102 | change _+(((x-x a • basis a)+ (k:ℝ) • _)+ _)=x |
| 103 | dsimp only [k]; rw [Real.coe_toNNReal _ (by linarith)]; module |
| 104 | rw [going V H, ← hh] |
| 105 | exact invariance H.translations (hy ▸ hw) _ |
| 106 | |
| 107 | def ing {L : Register G} (S : Table L) (p q : L.Word) (x : E4) := S.expect (p++carry q x) |
| 108 | include V |
| 109 | lemma overtops (H : S.Hierarchy) (d : ℝ≥0 → E4) (h : Tendsto (fun x => d x a) atTop atTop) (p q : L.Word) |
| 110 | (hp : distinct p) (hq : distinct q) (u : ℝ) : |
| 111 | Tendsto (fun i => ing S p q (d i+u • basis a)-ing S p q (d i)) atTop (𝓝 0) := by |
| 112 | obtain ⟨r,s,v,w,H⟩ := settles V p q hp hq H |
| 113 | let u' := fun i : ℝ≥0 => d i+u • basis a |
| 114 | have he : Tendsto (fun i => u' i a) atTop atTop := by simp [u']; exact tendsto_atTop_add_const_right atTop _ h |
| 115 | let t (f : ℝ≥0 → E4) (i) := (f i a-r-s).toNNReal |
| 116 | have hx (f : ℝ≥0 → E4) (hh : Tendsto (fun i => f i a) atTop atTop) : Tendsto (t f) atTop atTop := by |
| 117 | refine Real.tendsto_toNNReal_atTop.comp ?_ |
| 118 | simp_rw [sub_eq_add_neg] |
| 119 | apply tendsto_atTop_add_const_right _ _ (tendsto_atTop_add_const_right _ _ hh) |
| 120 | let V' := V.GNS.plant v |
| 121 | let Y := Semigroup.SEP a |
| 122 | let D (i) := V.flow.E (t u' i) (V.GNS.plant w) -V.flow.E (t d i) (V.GNS.plant w) |
| 123 | have ht := V.flow.emerges (V.GNS.plant w) |
| 124 | have hw : Tendsto D atTop (𝓝 0) := by simpa only [sub_self,Function.comp_apply,D] using (ht.comp (hx u' he)).sub (ht.comp (hx d h)) |
| 125 | have hz : Tendsto (fun i => V.flow.U (Y (d i)) (D i)) atTop (𝓝 0) := by |
| 126 | apply tendsto_zero_iff_norm_tendsto_zero.mpr; simp_rw [V.flow.unitary]; simpa using hw.norm |
| 127 | have hn : Tendsto (fun i => inner ℂ V' (V.flow.U (Y (d i)) (D i))) atTop (𝓝 0) := by |
| 128 | simpa only [inner_zero_right] using (tendsto_const_nhds (x := V')).inner hz (𝕜 := ℂ) |
| 129 | apply hn.congr' |
| 130 | filter_upwards [h.eventually (eventually_ge_atTop (r+s)),he.eventually (eventually_ge_atTop (r+s))] with i hi hp |
| 131 | rw [ing,ing,H _ hp,H _ hi,show Y (u' i)=Y (d i) from by |
| 132 | dsimp only [u']; rw [map_add, show Y (u • basis a)=0 from Subtype.ext (show (u • basis a -_ : E4)=0 by simp),add_zero]] -- zeta |
| 133 | unfold D; rw [map_sub,inner_sub_right] |
| 134 | |
| 135 | lemma across_axis (H : S.Hierarchy) (R : Rotation S) (Y : R.Oriented S) (w : E4) (hw : 0 < w a) (p q : L.Word) |
| 136 | (hp : distinct p) (hq : distinct q) : Tendsto (fun i : ℝ≥0 => ing S p q (w+(i:ℝ) • basis a)-ing S p q ((i:ℝ) • basis a)) atTop (𝓝 0) := by |
| 137 | obtain ⟨K,hK,hc⟩ := orients w hw |
| 138 | have ht : Tendsto (fun i : ℝ≥0 => (i:ℝ)) atTop atTop := NNReal.tendsto_coe_atTop.mpr tendsto_id |
| 139 | let f (i : ℝ≥0) := (i:ℝ) • basis a |
| 140 | have hf : Tendsto (fun i => f i a) atTop atTop := by simpa only [f,PiLp.smul_apply,basis_eq, if_true,smul_eq_mul,mul_one] using ht |
| 141 | have hy (x : E4) (hh : distinct (p++carry q x)) : |
| 142 | ing S (rotate p R K) (rotate q R K) (Ortho.move K x)=ing S p q x := by |
| 143 | unfold ing; rw [← rotated]; exact (trans R H Y hh K).2 |
| 144 | have hZ := overtops V H (fun i => Ortho.move K (f i)) ?_ (rotate p R K) (rotate q R K) (trans R H Y hp K).1 (trans R H Y hq K).1 ‖w‖ |
| 145 | · apply hZ.congr' |
| 146 | filter_upwards [happens f hf p q hp hq, happens (fun i => w+f i) |
| 147 | (a := a) (show Tendsto (fun i => (w+f i) a) _ _ from tendsto_atTop_add_const_left _ _ hf) p q hp hq] with i hi hh |
| 148 | rw [hy _ hi, add_comm (Ortho.move _ _),← hK,← show Ortho.move K (w+f i)= Ortho.move K w+Ortho.move K (f i) from (Ortho.motion K).map_add w (f i), hy _ hh] |
| 149 | have he i : Ortho.move K (f i)=(i:ℝ) • Ortho.move K (basis a) := (Ortho.motion K).map_smul _ _ |
| 150 | simp_rw [he,PiLp.smul_apply,smul_eq_mul]; exact Tendsto.atTop_mul_const hc ht |
| 151 | |
| 152 | /-- Transverse translations don't change eventual expectation at large fixed time. -/ |
| 153 | lemma rays (H : S.Hierarchy) (R : Rotation S) (Y : R.Oriented S) (x : Cross a) |
| 154 | (q : Future L a) : V.flow.U x (V.flow.orth (V.GNS.plant q))=V.flow.orth (V.GNS.plant q) := by |
| 155 | -- for all p |
| 156 | have hxq (p : Future L a) : inner ℂ (V.GNS.plant p) (V.flow.U x (V.flow.orth (V.GNS.plant q))) = inner ℂ (V.GNS.plant p) (V.flow.orth (V.GNS.plant q)) := by |
| 157 | let w := x.val+basis a |
| 158 | have hw : 0<w a := by simp [w,show x.val a=0 from x.property] |
| 159 | have h := across_axis V H R Y w hw (reflect p.val a) q.val (reflects a p.property.1) q.property.1 |
| 160 | let d (i : ℝ≥0) := x.val+(i:ℝ) • basis a |
| 161 | have hf : Tendsto (fun i : ℝ≥0 => d i a) atTop atTop := by |
| 162 | simpa [d, show x.val a=0 from x.property] using! (NNReal.tendsto_coe_atTop.mpr (tendsto_id (x := (atTop : Filter ℝ≥0)))) |
| 163 | have ht := overtops V H d hf (reflect p.val a) q.val (reflects a p.property.1) q.property.1 1 |
| 164 | have hy (i : ℝ≥0) : d i+(1:ℝ) • basis a=w+(i:ℝ) • basis a := by simp [d,w]; abel |
| 165 | simp_rw [hy] at ht |
| 166 | have he := h.sub ht |
| 167 | let A i := V.flow.E i (V.GNS.plant q) |
| 168 | let F := V.GNS.plant p |
| 169 | have hz : Tendsto (fun i : ℝ≥0 => inner ℂ F (V.flow.U x (A i))-inner ℂ F (A i)) atTop (𝓝 0) := by |
| 170 | rw [sub_self] at he; refine he.congr' (Eventually.of_forall fun i => ?_) |
| 171 | have hv : inner ℂ F (V.flow.U x (A i))= _ := going V H p q x i |
| 172 | have hp := going V H p q (0: Cross a) i |
| 173 | rw [V.flow.uZero, ContinuousLinearMap.id_apply] at hp |
| 174 | dsimp only; rw [show inner ℂ F (A i)=_ from hp,hv]; dsimp only [d,ing,Submodule.coe_zero]; rw [zero_add];abel |
| 175 | apply sub_eq_zero.mp |
| 176 | have he := V.flow.emerges (V.GNS.plant q) |
| 177 | exact tendsto_nhds_unique (f := fun i : ℝ≥0 => inner ℂ F (V.flow.U x (A i))-inner ℂ F (A i)) |
| 178 | ((tendsto_const_nhds.inner ((V.flow.U x).continuous.continuousAt.tendsto.comp he)).sub (tendsto_const_nhds.inner he)) hz |
| 179 | apply V.GNS.whole.eq_of_inner_right ℂ |
| 180 | intro v; induction v using Finsupp.induction_linear with |
| 181 | | zero => simp |
| 182 | | add i j hi hj => simp only [map_add,inner_add_left,hi,hj] |
| 183 | | single i c => simp only [Kernel.Gram.stems,Finsupp.linearCombination_single,inner_smul_left,hxq] |
| 184 | |
| 185 | theorem inert (H : S.Hierarchy) (R : Rotation S) (Y : R.Oriented S) (x : Cross a) (w : V.flow.ground) : V.flow.U x w.val=w.val := by |
| 186 | have he := V.GNS.by_bud (V := (V.flow.U x).comp V.flow.orth) (fun p => rays V H R Y x p) |
| 187 | have hv : V.flow.orth w.val=w.val := V.flow.ground.starProjection_eq_self_iff.mpr w.property |
| 188 | rw [← show (V.flow.orth w.val)=w.val from hv,← ContinuousLinearMap.comp_apply,he] |
| 189 | end YM.OS.Ground |