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.FOUNDATIONS.SU2 |
| 2 | import YM.Push.STRESS_FLUX.Force |
| 3 | import YM.Work.B04 |
| 4 | import YM.Work.B06 |
| 5 | import YM.Work.G07.Stencil |
| 6 | |
| 7 | /-! Directed variations on the Wilson tori. A small regularity calculus and pullback/locality |
| 8 | formulas for the contact terms. Includes regularity of the genuine cutoff field `Family.O` |
| 9 | (polynomial on the *physical* links before doing any steps). No differentiation of the masks |
| 10 | in a `Format`. -/ |
| 11 | set_option autoImplicit false |
| 12 | noncomputable section |
| 13 | namespace YM.StressFlux |
| 14 | open Lattice Wilson Source Function Set Gauge MeasureTheory Filter |
| 15 | open scoped Topology BigOperators Matrix.Norms.Frobenius ContDiff InnerProductSpace |
| 16 | variable {G : Gauge} {n : Side} |
| 17 | variable {V W : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] [NormedAddCommGroup W] [NormedSpace ℝ W] |
| 18 | variable {f g : Config G n → V} |
| 19 | |
| 20 | -- Always the *left* variation from the perspective of the specified read. |
| 21 | def Dlink (x : Site n) (d : Step) (c : G.Color) (f : Config G n → V) (U : Config G n) := |
| 22 | deriv (fun t : ℝ => f (bump x d c t U)) 0 |
| 23 | structure RegularD (f : Config G n → V) : Prop where |
| 24 | cont : Continuous f |
| 25 | regular (x : Site n) (d : Step) : ∃ q : Config G n → G.Color →ₗ[ℝ] V, ∀ c : G.Color, |
| 26 | Continuous (fun U => q U c) ∧ ∀ U, HasDerivAt (fun t : ℝ => f (bump x d c t U)) (q U c) 0 |
| 27 | |
| 28 | def RegularD.linear (h : RegularD f) (x : Site n) (d : Step) := (h.regular x d).choose |
| 29 | lemma RegularD.linear_eq (h : RegularD f) (x : Site n) (d : Step) (U : Config G n) (c : G.Color) : |
| 30 | h.linear x d U c = Dlink x d c f U := (((h.regular x d).choose_spec c).2 U).deriv.symm |
| 31 | @[fun_prop] theorem RegularD.contD (h : RegularD f) (x : Site n) (d : Step) (c : G.Color) : Continuous (Dlink x d c f) := by |
| 32 | simp_rw [show Dlink x d c f = fun U => h.linear x d U c from funext fun _ => (h.linear_eq ..).symm]; exact ((h.regular x d).choose_spec c).1 |
| 33 | lemma RegularD.has (h : RegularD f) (x : Site n) (d : Step) (U : Config G n) (c : G.Color) : |
| 34 | HasDerivAt (fun t : ℝ => f (bump x d c t U)) (Dlink x d c f U) 0 := by rw [← h.linear_eq]; exact ((h.regular x d).choose_spec c).2 U |
| 35 | lemma RegularD.const (v : V) : RegularD fun _ : Config G n => v := ⟨continuous_const,fun _ _ => |
| 36 | ⟨fun _ => 0,fun _ => ⟨continuous_const,fun _ => hasDerivAt_const ..⟩⟩⟩ |
| 37 | lemma RegularD.add (hf : RegularD f) (hg : RegularD g) : RegularD (fun U => f U + g U) := |
| 38 | ⟨hf.cont.add hg.cont, fun x d => ⟨hf.linear x d + hg.linear x d,fun c => by |
| 39 | simp only [Pi.add_apply,LinearMap.add_apply,RegularD.linear_eq] |
| 40 | exact ⟨(hf.contD ..).add (hg.contD ..), fun U => (hf.has x d U c).add (hg.has x d U c)⟩⟩⟩ |
| 41 | |
| 42 | lemma RegularD.post (h : RegularD f) (L : V →L[ℝ] W) : RegularD (fun U => L (f U)) := |
| 43 | ⟨L.continuous.comp h.cont,fun x d => ⟨fun U => L.toLinearMap.comp (h.linear x d U), fun c => by |
| 44 | simp only [LinearMap.comp_apply,ContinuousLinearMap.coe_coe, RegularD.linear_eq] |
| 45 | exact ⟨L.continuous.comp (h.contD ..),fun U => L.hasFDerivAt.comp_hasDerivAt 0 (h.has x d U c)⟩⟩⟩ |
| 46 | lemma RegularD.sub (hf : RegularD f) (hg : RegularD g) : RegularD (fun U => f U - g U) := by simp_rw [sub_eq_add_neg]; exact hf.add (hg.post (- ContinuousLinearMap.id ℝ V)) |
| 47 | lemma RegularD.scale (hf : RegularD f) (c : ℝ) : RegularD (fun U => c • f U) := hf.post (c • ContinuousLinearMap.id ℝ V) |
| 48 | |
| 49 | lemma RegularD.bilin {Z : Type*} [NormedAddCommGroup Z] [NormedSpace ℝ Z] (L : V →L[ℝ] W →L[ℝ] Z) |
| 50 | {g : Config G n → W} (hf : RegularD f) (hg : RegularD g) : RegularD (fun U => L (f U) (g U)) := by |
| 51 | refine ⟨(L.continuous.comp hf.cont).clm_apply hg.cont,fun x d => ?_⟩ |
| 52 | refine ⟨fun U => ((L.flip (g U)).toLinearMap ∘ₗ hf.linear x d U) + ((L (f U)).toLinearMap ∘ₗ hg.linear x d U),fun c => ?_⟩ |
| 53 | simp only [LinearMap.add_apply,LinearMap.comp_apply,ContinuousLinearMap.coe_coe,RegularD.linear_eq,ContinuousLinearMap.flip_apply] |
| 54 | refine ⟨((L.continuous.comp (hf.contD ..)).clm_apply hg.cont).add ((L.continuous.comp hf.cont).clm_apply (hg.contD ..)),fun U => ?_⟩ |
| 55 | simpa only [Function.comp_def,bump_zero] using! ((L.hasFDerivAt.comp_hasDerivAt 0 (hf.has x d U c)).clm_apply (hg.has x d U c)) |
| 56 | |
| 57 | lemma RegularD.mul {M : Type*} [NormedRing M] [NormedAlgebra ℝ M] {f g : Config G n → M} (hf : RegularD f) (hg : RegularD g) : |
| 58 | RegularD (fun U => f U * g U) := RegularD.bilin (ContinuousLinearMap.mul ..) hf hg |
| 59 | lemma regular_prod {M ι : Type*} [NormedCommRing M] [NormedAlgebra ℝ M] {s : Finset ι} {A : ι → Config G n → M} (h : ∀ i∈s, RegularD (A i)) : |
| 60 | RegularD fun U => ∏ i∈s, A i U := by |
| 61 | classical |
| 62 | induction s using Finset.induction_on with |
| 63 | | empty => exact RegularD.const 1 |
| 64 | | insert i t hi ih => simp_rw [Finset.prod_insert hi]; exact (h i (by simp)).mul (ih (fun j hj => h j (by simp [hj]))) |
| 65 | |
| 66 | |
| 67 | lemma regular_link (e : Edge (Site n)) : RegularD fun U : Config G n => G.mat (U e) := by |
| 68 | refine ⟨by fun_prop,fun x d => ?_⟩ |
| 69 | by_cases he : e = d.used x |
| 70 | · let Y (U : Config G n) := G.mat (U e) |
| 71 | let m := LinearMap.mul ℝ G.Mat |
| 72 | have hd (c : G.Color) : HasDerivAt (fun t : ℝ => G.mat (G.lieExp (t • c))) (G.colorMat c) 0 := by |
| 73 | simp only [G.mat_lieExp,map_smul]; simpa using! hasDerivAt_exp_smul_const (G.colorMat c) (0:ℝ) |
| 74 | cases h : d.neg |
| 75 | · refine ⟨fun U => (m.flip (Y U)).comp G.colorMat, fun c => ⟨show Continuous (fun U : Config G n => G.colorMat c * G.mat (U e)) by fun_prop,fun U => ?_⟩⟩ |
| 76 | simp only [bump, modify,if_pos he,h,Bool.false_eq_true,if_false,G.mat_mul]; exact (hd c).mul_const _ |
| 77 | refine ⟨fun U => (m (Y U)).comp (-G.colorMat), fun c => ⟨show Continuous (fun U : Config G n => G.mat (U e) * -(G.colorMat c)) by fun_prop,fun U => ?_⟩⟩ |
| 78 | simp only [bump,modify,if_pos he,h, if_true, G.mat_mul,G.mat_inv] |
| 79 | exact ((hd c).star.const_mul _).congr_deriv (by rw [G.colorMat_skew]; rfl) |
| 80 | refine ⟨fun U => 0, fun c => ⟨continuous_const,fun U => ?_⟩⟩ |
| 81 | simp_rw [bump, modify,if_neg he]; apply hasDerivAt_const |
| 82 | lemma regular_inv {f : Config G n → G.El} (hf : RegularD fun U => G.mat (f U)) : RegularD fun U => G.mat (f U)⁻¹ := hf.post (starL' ℝ).toContinuousLinearMap |
| 83 | lemma regular_travel (x : Site n) (w : Walk) : RegularD fun U : Config G n => G.mat (travel U x w) := by |
| 84 | induction w generalizing x with |
| 85 | | nil => exact RegularD.const 1 |
| 86 | | cons d w ih => |
| 87 | have ht : RegularD fun U : Config G n => G.mat (d.read U x) := by dsimp only [Step.read]; split; exact regular_inv (regular_link _); exact regular_link _ |
| 88 | exact ht.mul (ih _) |
| 89 | lemma regular_plate (x : Site n) (a b : Step) : RegularD (fun U : Config G n => plate U x a b) := |
| 90 | ((((regular_travel ..).sub (regular_inv (regular_travel ..))).scale (1/2:ℝ)).post G.projectColor.toContinuousLinearMap) |
| 91 | |
| 92 | lemma regular_places {d : ℕ} {F : Labels.Frame G d} (D : SectionData F) (v : F.Coeff) (o : Site n) : RegularD (D.places v o) := by |
| 93 | have he (k : Index G D.stencil) : RegularD fun U => Source.entry (expandAt o U) k := by |
| 94 | unfold Source.entry; split |
| 95 | · exact ((regular_link (wrap n k.1.val.1 + o,k.1.val.2)).post ((Matrix.entryLinearMap ℝ ℂ k.2.1 k.2.2.1).toContinuousLinearMap)).post |
| 96 | (starL' ℝ (A:=ℂ)).toContinuousLinearMap |
| 97 | exact (regular_link (wrap n k.1.val.1 + o,k.1.val.2)).post ((Matrix.entryLinearMap ℝ ℂ k.2.1 k.2.2.1).toContinuousLinearMap) |
| 98 | have hp (p : Formula G D.stencil) : RegularD fun U => MvPolynomial.aeval (entry (expandAt o U)) p := by |
| 99 | induction p using MvPolynomial.induction_on with |
| 100 | | C a => simp only [MvPolynomial.aeval_C,Algebra.algebraMap_self_apply]; exact RegularD.const a |
| 101 | | add => simp only [map_add]; apply RegularD.add <;> assumption |
| 102 | | mul_X p i hp => simp only [map_mul, MvPolynomial.aeval_X]; exact hp.mul (he _) |
| 103 | exact hp _ |
| 104 | lemma regular_O (C : Family G) (N p d : ℕ) (t : C.label d) (x : Site (C.side N p)) : RegularD (C.O N p (d:=d) t x) := by |
| 105 | unfold Family.O TransferData.cylinder initial |
| 106 | exact (RegularD.const (_:ℂ)).mul (regular_places ..) |
| 107 | lemma regular_word (C : Family G) (N p : ℕ) {ι : Type*} (t : ι → C.book.Token) (x : ι → Site (C.side N p)) (s : Finset ι) : |
| 108 | RegularD (fun U => ∏ i∈s, C.seen (t i) (x i) U) := regular_prod (fun _ _ => regular_O ..) |
| 109 | |
| 110 | |
| 111 | lemma Dlink_off {x : Site n} {d : Step} {B : Set (Site n)} (h : LocalOn B f) (hs : x∉B ∨ x+d.vec∉B) (c U) : Dlink x d c f U = 0 := by |
| 112 | have he : (fun t => f (bump x d c t U)) = fun _ => f U := by |
| 113 | funext t; apply h; intro i hI hi |
| 114 | have hq : i≠d.used x := by rintro rfl; unfold Step.used at hI hi; unfold Step.vec at hs; split at hI <;> simp_all [← sub_eq_add_neg] |
| 115 | unfold bump modify; rw [if_neg hq] |
| 116 | unfold Dlink; rw [he]; exact deriv_const .. |
| 117 | |
| 118 | @[fun_prop] lemma continuous_modify (x : Site n) (d : Step) (t : G.El) : Continuous (modify x d t) := by |
| 119 | refine continuous_pi fun e => ?_; unfold modify; split |
| 120 | · split <;> fun_prop |
| 121 | fun_prop |
| 122 | lemma prior_modify (x : Site n) (d : Step) (t : G.El) : MeasurePreserving (modify x d t) (prior G n) (prior G n) := by |
| 123 | apply measurePreserving_pi (fun _ => G.probHaar) (fun _ => G.probHaar) (f:=fun e y => if e=d.used x then (if d.neg then y*t⁻¹ else t*y) else y) |
| 124 | intro e; split |
| 125 | · split; exact measurePreserving_mul_right G.probHaar _; exact measurePreserving_mul_left G.probHaar _ |
| 126 | exact MeasurePreserving.id _ |
| 127 | |
| 128 | |
| 129 | |
| 130 | |
| 131 | |
| 132 | |
| 133 | |
| 134 | |
| 135 | |
| 136 | |
| 137 | |
| 138 | |
| 139 | |
| 140 | |
| 141 | |
| 142 | |
| 143 | end YM.StressFlux |