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.Ward.Plants |
| 2 | |
| 3 | |
| 4 | /-! |
| 5 | # Raw charge sums after normalization P=cD |
| 6 | |
| 7 | Input line values for all quotient labels. Finite-dimensional λ over filtered levels; |
| 8 | no Lie reps assumed. Prove jets from comm D at all arities. |
| 9 | -/ |
| 10 | set_option autoImplicit false |
| 11 | noncomputable section |
| 12 | namespace YM.Ward |
| 13 | open Set Function Filter Analysis Table |
| 14 | open scoped Topology ContDiff InnerProductSpace BigOperators |
| 15 | variable {G : Gauge} {L : Register G} {S : Table L} {n : ℕ} |
| 16 | |
| 17 | abbrev SpinRows (S : Table L) := ∀ d : ℕ, Ortho.Skew →ₗ[ℝ] (S.Field d →ₗ[ℂ] S.Field d) |
| 18 | |
| 19 | variable (W : DiffPlan S) (T : SpinRows S) |
| 20 | |
| 21 | def turns (K : Ortho.Skew) (p : S.Tag) : S.Tag := ⟨p.1,T p.1 K p.2⟩ |
| 22 | |
| 23 | def disc (q : Fin n → S.Tag) (x : Points n) := S.useAt S x q |
| 24 | |
| 25 | def angular (q : Fin n → S.Tag) (K : Ortho.Skew) (x : Points n) := |
| 26 | ∑ i, (disc (update q i (turns T K (q i))) x + |
| 27 | ∑ b : Axis, M4.move K.val (x i) b • disc (update q i (rise W b (q i))) x) |
| 28 | |
| 29 | def commutes := ∀ d (t : Ortho.Skew) b (p : S.Field d), |
| 30 | W.deriv d b (T d t p)+ (∑ i : Axis, (t.val i b:ℂ) • W.deriv d i p)= T (d+1) t (W.deriv d b p) |
| 31 | |
| 32 | def onLine (a : Axis) (x : Points n) := ∀ i : Fin n, ∃ t : ℝ, x i=t • basis a |
| 33 | |
| 34 | def Collinear := ∀ (a : Axis) (n : ℕ) (K : Ortho.Skew) (q : Fin n → S.Tag) (x : Points n), |
| 35 | x∈conf _ → onLine a x → angular W T q K x=0 |
| 36 | |
| 37 | lemma fromD (h : S.Hierarchy) (hp : W.Derivatives S) {x : Points n} (hx : x∈conf _) (i : Fin n) a (q : Fin n → S.Tag) : |
| 38 | Analysis.D (Points.direction i a) (disc q) x=disc (update q i (rise W a (q i))) x := by |
| 39 | rw [← show (fun y => S.useAt S y (update q i (⟨(q i).1,(q i).2⟩ : S.Tag))) = disc q from |
| 40 | funext fun y => by rw [show update q i ⟨_,_⟩ = q from update_eq_self ..]; rfl] |
| 41 | exact (W.derivative_slot hp h.laws.toSymmetric h.smooth hx i q (q i).2 a).symm |
| 42 | |
| 43 | lemma cont_disc (h : S.Hierarchy) (q : Fin n → S.Tag) {x : Points n} (hx : x∈conf n) : ContDiffAt ℝ ∞ (disc q) x := |
| 44 | ((S.class_smooth S h.smooth q) _ hx).contDiffAt ((conf_open _).mem_nhds hx) |
| 45 | |
| 46 | /-! Evaluate one tag at one slot, Heterogeneous, use arbitrary contexts. -/ |
| 47 | private def dec {d k : ℕ} (h : d=k) : S.Field d→ₗ[ℂ] S.Field k := h ▸ LinearMap.id |
| 48 | private lemma dec_eq {d k : ℕ} (h : d=k) (p : S.Field d) : dec h p=cast (congr_arg (Field S) h) p := by subst k; rfl |
| 49 | |
| 50 | def here (q : Fin n → S.Tag) (x : Points n) (i : Fin n) (d : ℕ) : S.Field d →ₗ[ℂ] ℂ := by |
| 51 | classical |
| 52 | let w (p : S.Field d) := update q i (⟨d,p⟩ : S.Tag) |
| 53 | let t := w 0 |
| 54 | have hi : (t i).1=d := by simp [t,w] |
| 55 | let f := (S.classMoment S (fun i => (t i).1) x).toLinearMap (fun i => (t i).2) i |
| 56 | exact f.comp (dec hi.symm) |
| 57 | |
| 58 | lemma takes (q : Fin n → S.Tag) (x) (i) (d : ℕ) (p : S.Field d) : |
| 59 | here q x i d p = disc (update q i ⟨d,p⟩) x := by |
| 60 | let t := update q i (⟨d,(0:S.Field d)⟩ : S.Tag) |
| 61 | dsimp only [here] |
| 62 | -- need classMoment heq congr, use d'= fixed |
| 63 | have hi : d=(t i).1 := by simp [t] |
| 64 | let V : S.Field (t i).1 := cast (congr_arg (Field S) hi) p |
| 65 | have he : dec hi p = V := dec_eq .. |
| 66 | let s := update (fun j => (t j).2) i V |
| 67 | have hf : (fun j => (⟨(t j).1,s j⟩ : S.Tag))=update q i ⟨d,p⟩ := by |
| 68 | funext j |
| 69 | by_cases h : j=i |
| 70 | · subst j; simp only [s,update_self]; exact Sigma.ext hi.symm (cast_heq _ p) |
| 71 | simp [s,t,h] |
| 72 | rw [← hf]; unfold disc useAt |
| 73 | rw [LinearMap.comp_apply]; change ((S.classMoment S (fun i => (t i).1) x).toLinearMap _ i) (dec hi p)=_ |
| 74 | rw [he]; rfl |
| 75 | |
| 76 | lemma born {i : Fin n} (q : Fin n → S.Tag) (k) : rise W k (q i) = ⟨(q i).1+1,W.deriv _ k (q i).2⟩ := rfl |
| 77 | |
| 78 | def factor (i : Fin n) (b : Axis) (K : Ortho.Skew) : Points n →L[ℝ] ℝ := LinearMap.toContinuousLinearMap { |
| 79 | toFun x := M4.move K.val (x i) b |
| 80 | map_add' x y := congr_arg (fun p : E4 => p b) (map_add (Matrix.toEuclideanLin K.val) (x i) (y i)) |
| 81 | map_smul' c x := congr_arg (fun p : E4 => p b) (map_smul (Matrix.toEuclideanLin K.val) c (x i)) } |
| 82 | lemma fac (i : Fin n) (a j : Axis) k K : factor i a K (Points.direction k j)=if k=i then (K.val a j) else 0 := by |
| 83 | change M4.move _ _ _=_ |
| 84 | by_cases h : k=i |
| 85 | · subst k; simp [Points.direction] |
| 86 | rw [if_neg h]; simp [Points.direction,Ne.symm h,M4.move] |
| 87 | |
| 88 | lemma D_prod (c : Points n →L[ℝ] ℝ) (f : Points n → ℂ) (u x : Points n) (hf : DifferentiableAt ℝ f x) : |
| 89 | D u (fun y => c y • f y) x=c u • f x + c x • D u f x := by |
| 90 | unfold D; rw [fderiv_fun_smul c.differentiableAt hf,c.fderiv]; simp [add_comm] |
| 91 | |
| 92 | theorem traverses (h : S.Hierarchy) (he : W.Derivatives S) (hc : commutes W T) |
| 93 | {x : Points n} (hx : x∈conf _) (q : Fin n → S.Tag) (a : Axis) (k : Fin n) (K : Ortho.Skew) : |
| 94 | let r := update q k (rise W a (q k)) |
| 95 | D (Points.direction k a) (angular W T q K) x= angular W T r K x := by |
| 96 | intro r |
| 97 | let t := Points.direction k a |
| 98 | let comp (i) := disc (update q i (turns T K (q i))) |
| 99 | let L (i) (b : Axis) := disc (update q i (rise W b (q i))) |
| 100 | let y (i) (b) (z : Points n) := factor i b K z • L i b z |
| 101 | let f (i) z := comp i z + ∑ b, y i b z |
| 102 | have hu (i : Fin n) b : DifferentiableAt ℝ (L i b) x := (cont_disc h _ hx).differentiableAt (by simp) |
| 103 | have hh i b : DifferentiableAt ℝ (y i b) x := (factor i b K).differentiableAt.smul (hu i b) |
| 104 | have hz i : DifferentiableAt ℝ (comp i) x := (cont_disc h _ hx).differentiableAt (by simp) |
| 105 | have hp i : DifferentiableAt ℝ (f i) x := (hz i).add (DifferentiableAt.fun_sum fun b hb => hh i b) |
| 106 | have hm (i : Fin n) : D t (f i) x=D t (comp i) x+∑ b, D t (y i b) x := by |
| 107 | simp only [f,D,fderiv_fun_add (hz i) (DifferentiableAt.fun_sum (fun b hb => hh i b)), |
| 108 | fderiv_fun_sum (fun b hb => hh i b),_root_.sum_apply, _root_.add_apply] |
| 109 | change fderiv ℝ (fun z => ∑ i, f i z) x t= _ |
| 110 | rw [fderiv_fun_sum (fun i hi => hp i),_root_.sum_apply]; unfold angular |
| 111 | apply Finset.sum_congr rfl; intro i hi |
| 112 | change D t (f i) x=_; rw [hm] |
| 113 | by_cases hv : i=k |
| 114 | · subst i; simp only [r,update_self,update_idem] |
| 115 | -- derivative comm produces orbital cancel |
| 116 | have hvb b : D t (y k b) x=(K.val b a) • disc (update q k (rise W b (q k))) x + factor k b K x • disc |
| 117 | (update q k (rise W b (rise W a (q k)))) x := by |
| 118 | unfold y |
| 119 | rw [D_prod _ _ _ x (hu k b)] |
| 120 | dsimp only [t,L] |
| 121 | rw [fac,if_pos rfl,fromD W h he hx,update_self, update_idem]; unfold rise |
| 122 | simp only |
| 123 | rw [W.abelian h.laws.toSymmetric he h.smooth] |
| 124 | simp_rw [hvb,Finset.sum_add_distrib,← add_assoc] |
| 125 | congr 1 |
| 126 | unfold comp; rw [fromD W h he hx,update_self,update_idem]; unfold turns rise; simp only |
| 127 | simp_rw [← takes,Complex.real_smul] |
| 128 | rw [← hc _,map_add,map_sum]; simp |
| 129 | have hu' : r i=q i := update_of_ne hv .. |
| 130 | rw [hu']; congr 1 |
| 131 | · unfold comp; rw [fromD W h he hx,update_of_ne (Ne.symm hv),update_comm (show k≠i from (Ne.symm hv))] -- order check |
| 132 | apply Finset.sum_congr rfl; intro b hb |
| 133 | unfold y |
| 134 | rw [D_prod _ _ _ x (hu i b)] |
| 135 | dsimp only [L,t]; rw [fac,if_neg (Ne.symm hv),zero_smul,zero_add,fromD W h he hx,update_of_ne (Ne.symm hv),update_comm (show k≠i from (Ne.symm hv))] |
| 136 | rfl |
| 137 | |
| 138 | lemma ac (h : S.Hierarchy) {x : Points n} (hx : x∈conf _) (K : Ortho.Skew) (q : Fin n → S.Tag) : |
| 139 | ContDiffAt ℝ ∞ (angular W T q K) x := by |
| 140 | have hm := cont_disc h q hx |
| 141 | apply ContDiffAt.sum |
| 142 | intro i hi; apply ContDiffAt.add (cont_disc h _ hx); apply ContDiffAt.sum |
| 143 | exact fun b _ => (factor i b K).contDiff.contDiffAt.smul (cont_disc h _ hx) |
| 144 | end YM.Ward |