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.BOUNDARY.Derivative |
| 2 | import YM.Next.BOUNDARY.Descends |
| 3 | |
| 4 | /-! |
| 5 | # Real stress conventions and Lorentz covariance |
| 6 | |
| 7 | Both sets of indices use `Axis`, time last (`timeAxis`). Thus hat is the |
| 8 | identity with our indexing; physical order is 1,2,3,then Minkowski 0 |
| 9 | (Euclidean 4). Use the same finite labels, core, action and `Rotation` as in |
| 10 | reconstruction. No claims about selfadjointness as closed operators. |
| 11 | -/ |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.EveryPhase.Stress |
| 15 | open Function Set Filter Table Boundary Mink Next.BOUNDARY Next.BOUNDARY.Descent Complex |
| 16 | open scoped Topology BigOperators LineDeriv Matrix.Norms.Frobenius |
| 17 | variable {G : Gauge} {L : Register G} {S : Table L} {P : DiffPlan S} {H : S.RealSpin} {R : Rotation S} |
| 18 | |
| 19 | /-- Metric, for contravariant derivative. -/ |
| 20 | def eta (a : Axis) : ℝ := if a=timeAxis then 1 else -1 |
| 21 | |
| 22 | def zeta (a : Axis) : ℂ := if a=timeAxis then -I else 1 |
| 23 | lemma zeta_wick (a : Axis) : zeta a * wick a = 1 := by unfold zeta wick; split <;> simp |
| 24 | lemma zeta_square (a : Axis) : zeta a * zeta a = -(eta a : ℂ) := by unfold zeta eta; split <;> simp |
| 25 | |
| 26 | /-- Minkowski-normalized stress label. -/ |
| 27 | def M (T : S.Stress) (a b : Axis) := (-zeta a * zeta b) • T a b |
| 28 | |
| 29 | lemma M_symmetric (T : S.Stress) (hT : Conserved P H T) (a b) : M T a b=M T b a := by |
| 30 | unfold M; rw [hT.symmetric a b]; simp [mul_comm] |
| 31 | |
| 32 | /-- Tensor column convention. (The stress field requested below is Φ of these labels.) -/ |
| 33 | def column (T : S.Stress) (K : M4) (a b : Axis) := ∑ i : Axis, ∑ j : Axis, (((K i a * K j b : ℝ) : ℂ)) • T i j |
| 34 | |
| 35 | lemma column_apply_one (T : S.Stress) (a b) : column T 1 a b = T a b := by |
| 36 | simp [column,Matrix.one_apply,mul_ite,ite_smul] |
| 37 | |
| 38 | lemma M_Herm (T : S.Stress) (hT : Conserved P H T) (hR : R.Laws P H) (h : Tensorial R T) (a b) : |
| 39 | S.adj H 4 timeAxis (M T a b)=M T a b := by |
| 40 | unfold M |
| 41 | rw [map_smulₛₗ] |
| 42 | have ht : S.adj H 4 timeAxis (T a b)=column T theta a b := by |
| 43 | rw [Table.adj,LinearMap.comp_apply,hT.real,← hR.signed]; exact h _ a b |
| 44 | have hh (i j) : theta i j = if i=j then -eta i else 0 := by |
| 45 | rw [theta_entry]; by_cases e : i=j |
| 46 | · subst j; unfold eta; split <;> simp [*] |
| 47 | simp [basis_eq,e] |
| 48 | rw [ht]; simp only [column, hh]; simp [ite_mul,mul_ite,ite_smul] |
| 49 | unfold zeta eta |
| 50 | by_cases ha : a=timeAxis <;> by_cases hb : b=timeAxis <;> simp [ha,hb] |
| 51 | |
| 52 | lemma column_mult (T : S.Stress) (A B : M4) (a b) : column (column T A) B a b = column T (A*B) a b := by |
| 53 | simp_rw [column, Matrix.mul_apply, ofReal_mul, ofReal_sum, Finset.mul_sum, Finset.sum_mul, |
| 54 | Finset.smul_sum, Finset.sum_smul, smul_smul] |
| 55 | let f (i j x y : Axis) := (((B i a:ℂ)*(B j b:ℂ))*((A x i:ℂ)*(A y j:ℂ))) • T x y |
| 56 | have he : (∑ i, ∑ j, ∑ x, ∑ y, f i j x y)=(∑ x, ∑ y, ∑ j, ∑ i, f i j x y) := by |
| 57 | have hm : (∑ p : Axis × Axis, ∑ q : Axis × Axis, f p.1 p.2 q.1 q.2) = ∑ q : Axis × Axis, ∑ p : Axis × Axis, f p.1 p.2 q.1 q.2 := Finset.sum_comm |
| 58 | simp only [Fintype.sum_prod_type] at hm |
| 59 | rw [hm] |
| 60 | exact Finset.sum_congr rfl fun x _ => Finset.sum_congr rfl fun y _ => Finset.sum_comm |
| 61 | refine he.trans (Finset.sum_congr rfl fun x _ => Finset.sum_congr rfl fun y _ => |
| 62 | Finset.sum_congr rfl fun j _ => Finset.sum_congr rfl fun i _ => ?_) |
| 63 | dsimp only [f]; simp only [ofReal_mul]; ring_nf |
| 64 | |
| 65 | /-- The rank action appearing below really is the infinitesimal action of the |
| 66 | chosen label representation, along any differentiable Lorentz curve. -/ |
| 67 | theorem rank_derivative (hR : R.Laws P H) (X : Spins S) (h : X.Descends R H) (d : ℕ) |
| 68 | {V : M4} {c : ℝ → Lorentz} (hc : c 0=1) (hv : HasDerivAt (fun t => mat (c t)) V 0) (v : S.Field d) : |
| 69 | tangent V ∧ HasDerivAt (fun t => X.shell d (c t) v) (rankAction R d V v) 0 := by |
| 70 | have hr := rotation_port R hR |
| 71 | obtain ⟨W, hW, hw, hy⟩ := (along_spins R d hr c hv.differentiableAt).2 |
| 72 | rw [hc,mat_one,one_mul] at hw |
| 73 | obtain rfl := hw.unique hv |
| 74 | refine ⟨hW, ?_⟩ |
| 75 | simp_rw [matches_shell R X h] |
| 76 | simp only at hy |
| 77 | rw [hc,spins_one R d hr,one_mul] at hy |
| 78 | exact on_field hy _ |
| 79 | |
| 80 | |
| 81 | lemma rank_boost_formula (R : Rotation S) (d : ℕ) (i : SpaceAxis) (v : S.Field d) : |
| 82 | rankAction R d (B i) v = (-I) • R.lie d (Ortho.plane timeAxis i.castSucc) v := by rw [rank_B]; rfl |
| 83 | |
| 84 | def speedTensor (T : S.Stress) (K : M4) (a b : Axis) := |
| 85 | (∑ i : Axis, (K i a : ℂ) • T i b) + ∑ j : Axis, (K j b : ℂ) • T a j |
| 86 | |
| 87 | lemma column_speed (T : S.Stress) {K : ℝ → M4} (hk : K 0=1) {V : M4} (hv : HasDerivAt K V 0) |
| 88 | (a b : Axis) : HasDerivAt (fun t => column T (K t) a b) (speedTensor T V a b) 0 := by |
| 89 | have hp (i j : Axis) : HasDerivAt (fun t => K t i j) (V i j) 0 := |
| 90 | let Z : M4→L[ℝ] ℝ := LinearMap.toContinuousLinearMap { |
| 91 | toFun m := m i j, map_add' _ _ := rfl, map_smul' _ _ := rfl } |
| 92 | HasFDerivAt.comp_hasDerivAt (f := K) (f' := V) 0 Z.hasFDerivAt hv |
| 93 | have hd (i j : Axis) := ofRealCLM.hasFDerivAt.comp_hasDerivAt (0 : ℝ) ((hp i a).fun_mul (hp j b)) |
| 94 | unfold column; refine (HasDerivAt.congr_deriv |
| 95 | (HasDerivAt.fun_sum (fun i (_ : i∈(Finset.univ : Finset Axis)) => HasDerivAt.fun_sum fun j (_ : j∈(Finset.univ : Finset Axis)) => |
| 96 | (hd i j).smul_const (T i j))) ?_) |
| 97 | rw [hk] |
| 98 | simp [Matrix.one_apply, ite_mul, mul_ite, add_smul, ite_smul, Finset.sum_add_distrib,speedTensor] |
| 99 | |
| 100 | lemma speedE (T : S.Stress) (hR : R.Laws P H) (h : Tensorial R T) (V : Ortho.Skew) (a b) : |
| 101 | R.lie 4 V (T a b) = speedTensor T V.val a b := by |
| 102 | have he := hR.infinitesimal 4 V (T a b) |
| 103 | simp_rw [h _ a b] at he |
| 104 | refine he.unique (column_speed T (K:=fun t => (Ortho.oneParameter V t).val) ?_ ?_ _ _) |
| 105 | · change NormedSpace.exp ((0 : ℝ) • V.val)=1; simp |
| 106 | change HasDerivAt (fun t : ℝ => NormedSpace.exp (t • V.val)) V.val 0 |
| 107 | simpa using! hasDerivAt_exp_smul_const V.val (0 : ℝ) |
| 108 | |
| 109 | lemma boost_scale (a i : Axis) {X : M4} (h : boostLike X) : |
| 110 | zeta a * (-I) * ((X * theta) i a:ℂ) = zeta i * (X i a:ℂ) := by |
| 111 | have he := congr_fun (congr_fun h.2 i) a |
| 112 | rw [theta_left,Matrix.neg_apply,theta_right] at he |
| 113 | rw [theta_right]; unfold zeta |
| 114 | by_cases ha : a=timeAxis <;> by_cases hi : i=timeAxis <;> |
| 115 | simp only [ha,hi,↓reduceIte] at he ⊢ |
| 116 | · simp [show X timeAxis timeAxis=0 by linarith [he]] |
| 117 | · simp |
| 118 | · simp |
| 119 | simp [show X i a=0 by linarith [he]] |
| 120 | |
| 121 | lemma speedM (T : S.Stress) (hR : R.Laws P H) (h : Tensorial R T) (k : SpaceAxis) (a b) : |
| 122 | rankAction R 4 (B k) (M T a b) = speedTensor (M T) (B k) a b := by |
| 123 | rw [M,map_smul, rank_boost_formula, speedE T hR h]; unfold speedTensor |
| 124 | rw [← BQ k] |
| 125 | simp only [M, smul_add,Finset.smul_sum,smul_smul] |
| 126 | have he (a i : Axis) := boost_scale a i (B_boostLike k) |
| 127 | congr 1 |
| 128 | · refine Finset.sum_congr rfl fun i _ => congr_arg (· • T i b) ?_ |
| 129 | calc _ = -zeta b * (zeta a * -I * ((B k*theta) i a:ℂ)) := by ring |
| 130 | _ = _ := by rw [he]; ring |
| 131 | refine Finset.sum_congr rfl fun i _ => congr_arg (· • T a i) ?_ |
| 132 | calc _ = -zeta a * (zeta b * -I * ((B k*theta) i b:ℂ)) := by ring |
| 133 | _ = _ := by rw [he]; ring |
| 134 | |
| 135 | lemma column_var {T : ℝ → S.Stress} {U : S.Stress} (hp : ∀ a b, |
| 136 | HasDerivAt (fun t => T t a b) (U a b) 0) (A : M4) (a b : Axis) : |
| 137 | HasDerivAt (fun t => column (T t) A a b) (column U A a b) 0 := by |
| 138 | unfold column; refine HasDerivAt.fun_sum fun i _ => HasDerivAt.fun_sum fun j _ => ?_ |
| 139 | exact (hp i j).const_smul (((A i a * A j b:ℝ):ℂ)) |
| 140 | |
| 141 | variable {X : Spins S} {Q : Wightman S} {Y U : Table L} {F : Waves S} {W : Surface S} |
| 142 | {D : ∀ n, Blanket n} {Z : W.Aurora D} |
| 143 | |
| 144 | lemma boost_M (T : S.Stress) (hR : R.Laws P H) (h : Tensorial R T) |
| 145 | (k : SpaceAxis) (hx : X.Descends R H) (s : ℝ) (a b : Axis) : |
| 146 | X.shell 4 (boost k s) (M T a b) = column (M T) (mat (boost k s)) a b := by |
| 147 | let N := rankAction R 4 (B k) |
| 148 | let y (a b : Axis) := fun t => column (M T) (mat (boost k t)) a b |
| 149 | have hd a b : HasDerivAt (y a b) (N (M T a b)) 0 := by |
| 150 | dsimp only [N]; rw [speedM T hR h] |
| 151 | exact column_speed _ (K:=fun t => mat (boost k t)) (by simp only [boost, Ray.boost_start, mat_one]) |
| 152 | (mat_boost k) _ _ |
| 153 | have hY (s : ℝ) : HasDerivAt (y a b) (N (y a b s)) s := by |
| 154 | have he := (column_var (T:=fun t a b => column (M T) (mat (boost k t)) a b) |
| 155 | (U := fun a b => N (M T a b)) hd (mat (boost k s)) a b).scomp_of_eq s |
| 156 | ((hasDerivAt_id' s).sub_const s) (by simp) |
| 157 | simp only [one_smul] at he |
| 158 | simp_rw [Function.comp_def,column_mult,← mat_mul,boost,← Ray.boost_add,sub_add_cancel] at he |
| 159 | refine he.congr_deriv ?_ |
| 160 | simp only [column,y, boost, map_sum,map_smul] |
| 161 | let z := fun t => X.shell 4 (boost k t) (M T a b) |
| 162 | have hz (s : ℝ) : HasDerivAt z (N (z s)) s := by |
| 163 | dsimp only [z]; simp_rw [matches_shell R X hx,boost_spins R (rotation_port R hR)] |
| 164 | exact on_field (eb_left R 4 k s) _ |
| 165 | have he : z 0=y a b 0 := by |
| 166 | simp only [z,y,boost,Ray.boost_start,mat_one,column_apply_one] |
| 167 | apply S.pin_inj; rw [← hx.ties,hx.identity] |
| 168 | exact congr_fun (ODE_solution_unique_univ (s:=fun _ => univ) (fun (_ : ℝ) => N.lipschitz.lipschitzOnWith) |
| 169 | (fun t => ⟨hz t,mem_univ _⟩) (fun t => ⟨hY t,mem_univ _⟩) he) s |
| 170 | |
| 171 | lemma space_scale (a i : Axis) {X : M4} (h : theta*X=X*theta) : |
| 172 | zeta a * (X i a:ℂ)=zeta i * (X i a:ℂ) := by |
| 173 | have he := congr_fun (congr_fun h i) a |
| 174 | rw [theta_left,theta_right] at he |
| 175 | unfold zeta; split_ifs with ha hi hi |
| 176 | · rfl |
| 177 | · rw [if_pos ha,if_neg hi] at he |
| 178 | simp [show X i a=0 by linarith [he]] |
| 179 | · rw [if_neg ha,if_pos hi] at he |
| 180 | simp [show X i a=0 by linarith [he]] |
| 181 | rfl |
| 182 | |
| 183 | lemma rotate_M (T : S.Stress) (h : Tensorial R T) (A : Ortho) (hp : Lorentz.spatialTurn A) (a b) : |
| 184 | R.act 4 A (M T a b) = column (M T) A.val a b := by |
| 185 | simp_rw [M,map_smul,h A a b,column, M,ofReal_mul, Finset.smul_sum,smul_smul] |
| 186 | refine Finset.sum_congr rfl fun i _ => Finset.sum_congr rfl fun j _ => congr_arg (· • T i j) ?_ |
| 187 | calc _ = -(zeta a * (A.val i a:ℂ)) * (zeta b * (A.val j b:ℂ)) := by ring |
| 188 | _ = _ := by rw [space_scale a i (space_parity A hp),space_scale b j (space_parity A hp)]; ring |
| 189 | |
| 190 | lemma transform_M (T : S.Stress) (hR : R.Laws P H) (h : Tensorial R T) |
| 191 | (hx : X.Descends R H) (g : Lorentz) (a b) : X.shell 4 g (M T a b) = column (M T) (mat g) a b := by |
| 192 | let ok (g : Lorentz) := ∀ a b : Axis, X.shell 4 g (M T a b)=column (M T) (mat g) a b |
| 193 | have hm (g k : Lorentz) (hg : ok g) (hk : ok k) : ok (g*k) := by |
| 194 | intro a b |
| 195 | have he (v : S.Field 4) : X.shell 4 (g*k) v = X.shell 4 g (X.shell 4 k v) := by |
| 196 | apply S.pin_inj; rw [← hx.ties,← hx.ties,← hx.ties,hx.representation] |
| 197 | rw [he,hk,mat_mul,← column_mult] |
| 198 | unfold ok at hg; simp only [column,map_sum,map_smul]; simp_rw [hg]; rfl |
| 199 | have he (a s) : ok (boost a s) := boost_M T hR h a hx s |
| 200 | have ho : ok (.room (orientation g) (oriented g)) := by |
| 201 | intro a b; rw [hx.spatial,mat_room]; exact rotate_M T h _ (oriented g) _ _ |
| 202 | have hu := hm _ _ (he 0 (b0 g)) (hm _ _ (he 1 (b1 g)) (hm _ _ (he 2 (b2 g)) ho)) |
| 203 | rw [factors g] at hu; exact hu a b |
| 204 | |
| 205 | /-- The stress as a tested operator on the common domain. -/ |
| 206 | def fieldM (Q : Wightman S) (T : S.Stress) (a b : Axis) := Q.operators.field (S.pin 4 (M T a b)) |
| 207 | lemma TM (Q : Wightman S) (T : S.Stress) (a b) (f : Test4) : fieldM Q T a b f = |
| 208 | (-zeta a * zeta b) • Q.operators.field (S.pin 4 (T a b)) f := by simp only [fieldM, M, map_smul, LinearMap.smul_apply] |
| 209 | |
| 210 | theorem tensor_lorentz (hc : FieldCore W R H Q) (hR : R.Laws P H) (T : S.Stress) (h : Tensorial R T) |
| 211 | (g : Poincare) (f : Test4) (a b : Axis) (x : Q.operators.domain) : |
| 212 | Q.action.V g (fieldM Q T a b f x).val = |
| 213 | ((∑ i : Axis, ∑ j : Axis, (((mat g.Λ i a * mat g.Λ j b : ℝ) : ℂ)) • fieldM Q T i j (Joint.push g f)) |
| 214 | ⟨Q.action.V g x.val,hc.covariance.domain g x.property⟩).val := by |
| 215 | unfold fieldM; rw [hc.covariance.covariance,hc.letters.ties,transform_M T hR h hc.letters]; simp [column] |
| 216 | |
| 217 | theorem tensor_herm (hc : FieldCore W R H Q) (hR : R.Laws P H) (T : S.Stress) |
| 218 | (hT : Conserved P H T) (h : Tensorial R T) (f : Test4) (a b : Axis) (u v : Q.operators.domain) : |
| 219 | inner ℂ (fieldM Q T a b f u).val v.val = inner ℂ u.val (fieldM Q T a b (Probe.bar f) v).val := by |
| 220 | unfold fieldM; rw [hc.adj _ f u v, hc.induced _ _, M_Herm T hT hR h] |
| 221 | |
| 222 | /-- Minus partial derivative on test. -/ |
| 223 | def partialProbe (a : Axis) (f : Test4) := -(∂_{basis a} f) |
| 224 | lemma eucl_partial (a : Axis) (f : Test4) : probeAxis a f = wick a • partialProbe a f := by |
| 225 | simp only [probeAxis,partialProbe,smul_neg,neg_smul] |
| 226 | |
| 227 | theorem tensor_conserved (hc : FieldCore W R H Q) |
| 228 | (hu : U.Hierarchy) (hs : S.Symmetric) (hp : P.Inclusions S) (hv : P.Derivatives U) |
| 229 | (hF : F.Region U) (hZ : Z.FullBody F) (ht : Bid.cones W) |
| 230 | (T : S.Stress) (hT : Conserved P H T) (b : Axis) (f : Test4) : |
| 231 | (∑ a : Axis, (eta a : ℂ) • fieldM Q T a b (partialProbe a f)) = 0 := by |
| 232 | have he (a : Axis) : (eta a : ℂ) • fieldM Q T a b (partialProbe a f) = |
| 233 | zeta b • Q.operators.field (S.pin 5 (P.deriv 4 a (T a b))) f := by |
| 234 | rw [TM,derivative_domain P hu hs hp hv hF hZ ht hc a 4 (T a b),eucl_partial,map_smul, |
| 235 | smul_smul,smul_smul] |
| 236 | congr 1; unfold eta zeta wick; by_cases ha : a=timeAxis <;> by_cases hb : b=timeAxis <;> simp [ha,hb] |
| 237 | simp_rw [he]; rw [← Finset.smul_sum,← LinearMap.sum_apply,← map_sum,← map_sum,hT.divergence]; simp |
| 238 | end YM.EveryPhase.Stress |