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.Coordinates |
| 2 | import YM.Work.A10 |
| 3 | |
| 4 | /-! |
| 5 | # Wick-turning the infinitesimal response |
| 6 | |
| 7 | Auxiliary `rankAction` on all of M4 by linear extension; used as a Lie algebra |
| 8 | map only on tangents. The extension is convenient to take derivatives without |
| 9 | chart hypotheses. We need the bracket test with the first input a coordinate |
| 10 | boost and second input *arbitrary* proper Lorentz algebra element, and spatial |
| 11 | rotation conjugations (no rotations assumed on the boundary!). The bracket sign |
| 12 | on two boosts comes from moving Θ through an off-diagonal element. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | noncomputable section |
| 17 | namespace YM.Next.BOUNDARY.Descent |
| 18 | open Function Mink Table |
| 19 | open scoped Topology Matrix.Norms.Frobenius InnerProductSpace |
| 20 | |
| 21 | def tangent (X : M4) := star X = -(theta * X * theta) |
| 22 | |
| 23 | def boostLike (X : M4) := star X = X ∧ theta*X = -(X*theta) |
| 24 | |
| 25 | def spaceLikeGen (X : M4) := star X = -X ∧ theta * X = X*theta |
| 26 | |
| 27 | lemma tangent_add {X Y : M4} (h : tangent X) (k : tangent Y) : tangent (X+Y) := by |
| 28 | unfold tangent at *; rw [star_add,h,k,mul_add,add_mul, neg_add] |
| 29 | |
| 30 | lemma tangent_smul {X : M4} (h : tangent X) (t : ℝ) : tangent (t • X) := by |
| 31 | unfold tangent at *; rw [star_smul,star_trivial,h, mul_smul_comm,smul_mul_assoc, smul_neg] |
| 32 | |
| 33 | lemma B_boostLike (a : SpaceAxis) : boostLike (B a) := ⟨B_star a,time_parity a⟩ |
| 34 | |
| 35 | lemma boostLike.tangent {X : M4} (h : boostLike X) : tangent X := by |
| 36 | unfold Descent.tangent; rw [h.1,h.2, neg_mul,mul_assoc,theta_sq,mul_one,neg_neg] |
| 37 | |
| 38 | lemma spaceLikeGen.tangent {X : M4} (h : spaceLikeGen X) : tangent X := by |
| 39 | unfold Descent.tangent; rw [h.1,h.2,mul_assoc,theta_sq,mul_one] |
| 40 | |
| 41 | lemma theta_mul_mul (X : M4) : theta*(theta*X)=X := by rw [← mul_assoc,theta_sq,one_mul] |
| 42 | |
| 43 | lemma tangent_parts {X : M4} (h : tangent X) : ∃ A W, X=A+W ∧ spaceLikeGen A ∧ boostLike W := by |
| 44 | let r := (1/2 : ℝ) |
| 45 | have hp : r+r=1 := by dsimp only [r]; ring |
| 46 | have hm : theta * star X = -(X * theta) := by |
| 47 | unfold tangent at h; rw [h,mul_neg,← mul_assoc theta _ theta,theta_mul_mul] |
| 48 | have ht : star X * theta = -(theta * X) := by |
| 49 | unfold tangent at h; rw [h, neg_mul,mul_assoc _ theta,theta_sq,mul_one] |
| 50 | refine ⟨r • (X-star X),r • (X+star X),?_,⟨?_,?_⟩,?_,?_⟩ |
| 51 | · rw [← smul_add,sub_add_add_cancel, smul_add,← add_smul,hp, one_smul] |
| 52 | · rw [star_smul, star_trivial,star_sub,star_star,← neg_sub _ X,smul_neg]; abel |
| 53 | · rw [mul_smul_comm, smul_mul_assoc,mul_sub, sub_mul,hm,ht]; congr 1; abel |
| 54 | · rw [star_smul, star_trivial,star_add,star_star,add_comm (star X)] |
| 55 | · rw [mul_smul_comm, smul_mul_assoc,← smul_neg,mul_add,add_mul,hm,ht]; congr 1; abel |
| 56 | |
| 57 | def Ad (g : Lorentz) (X : M4) := mat g*X*mat g⁻¹ |
| 58 | |
| 59 | lemma Ad_one (X : M4) : Ad 1 X=X := by simp only [Ad, inv_one,mat_one,one_mul,mul_one] |
| 60 | lemma Ad_mul (g k : Lorentz) (X : M4) : Ad (g*k) X=Ad g (Ad k X) := by |
| 61 | simp only [Ad,mul_inv_rev,mat_mul,mul_assoc] |
| 62 | |
| 63 | lemma Ad_tangent {X : M4} (h : tangent X) (g : Lorentz) : tangent (Ad g X) := by |
| 64 | unfold tangent at h ⊢ |
| 65 | unfold Ad |
| 66 | rw [star_mul,star_mul,mat_star, inv_inv, mat_star,h] |
| 67 | simp only [mul_assoc,mul_neg,neg_mul,theta_mul_mul] |
| 68 | |
| 69 | lemma Ad_add (X Y : M4) (g : Lorentz) : Ad g (X+Y)=Ad g X + Ad g Y := by |
| 70 | unfold Ad; rw [mul_add,add_mul] |
| 71 | |
| 72 | /- Projections; diagonal θ invol and `BQ` set the sign. -/ |
| 73 | |
| 74 | def sk (X : M4) := (1/2 : ℝ) • (X-star X) |
| 75 | |
| 76 | def skP : M4 →L[ℝ] Ortho.Skew := LinearMap.toContinuousLinearMap { |
| 77 | toFun X := ⟨sk X, by |
| 78 | change star (sk _) = _; simp [sk, ← smul_neg] ⟩ |
| 79 | map_add' x y := by |
| 80 | apply Subtype.ext; change sk (x+y)=sk x + sk y |
| 81 | unfold sk; rw [← smul_add,star_add]; congr 1; abel |
| 82 | map_smul' r x := by |
| 83 | apply Subtype.ext; change sk (r • x)= r • sk x |
| 84 | rw [sk,sk,star_smul,star_trivial,← smul_sub,smul_comm] } |
| 85 | |
| 86 | lemma skP_eval (X : M4) : (skP X).val=sk X := rfl |
| 87 | |
| 88 | lemma sk_eq {X : M4} (h : star X = -X) : sk X = X := by |
| 89 | unfold sk |
| 90 | rw [h,sub_neg_eq_add,smul_add,← add_smul]; norm_num |
| 91 | |
| 92 | lemma sk_skew (X : Ortho.Skew) : skP X.val = X := Subtype.ext (sk_eq X.property) |
| 93 | |
| 94 | private def symmetricPart : M4→L[ℝ] M4 := (ContinuousLinearMap.id ℝ _) - Ortho.skewSpace.subtypeL.comp skP |
| 95 | private def twicePart : M4 →L[ℝ] M4 := ((ContinuousLinearMap.mul ℝ M4).flip theta).comp symmetricPart |
| 96 | |
| 97 | variable {G : Gauge} {L : Register G} {S : Table L} |
| 98 | abbrev FieldOp (S : Table L) (d : ℕ) := (S.Field d →L[ℂ] S.Field d) |
| 99 | |
| 100 | private lemma general (T : Type*) [NormedAddCommGroup T] [NormedSpace ℝ T] : ContinuousSMul ℝ T := inferInstance |
| 101 | |
| 102 | local instance (d : ℕ) : ContinuousSMul ℝ (FieldOp S d) := general (FieldOp S d) |
| 103 | |
| 104 | def lie (R : Rotation S) (d : ℕ) : Ortho.Skew →L[ℝ] FieldOp S d := LinearMap.toContinuousLinearMap { |
| 105 | toFun y := LinearMap.toContinuousLinearMap (R.lie d y) |
| 106 | map_add' x y := by |
| 107 | ext u |
| 108 | change R.lie d (x+y) u = R.lie d x u + R.lie d y u |
| 109 | rw [map_add]; rfl |
| 110 | map_smul' r x := by |
| 111 | ext u |
| 112 | change R.lie d (r • x) u = r • R.lie d x u; rw [map_smul]; rfl } |
| 113 | |
| 114 | def rankAction (R : Rotation S) (d : ℕ) : M4 →L[ℝ] FieldOp S d := |
| 115 | (lie R d).comp skP + (-Complex.I) • ((lie R d).comp (skP.comp twicePart)) |
| 116 | |
| 117 | lemma rank_eq (R : Rotation S) (d : ℕ) (X : M4) : rankAction R d X= |
| 118 | lie R d (skP X) + (-Complex.I) • lie R d (skP ((X-sk X)*theta)) := rfl |
| 119 | |
| 120 | lemma rank_space (R : Rotation S) (d : ℕ) {A : M4} (h : spaceLikeGen A) : |
| 121 | rankAction R d A=lie R d ⟨A,h.1⟩ := by |
| 122 | have ht : skP A=⟨A,h.1⟩ := sk_skew (⟨A,h.1⟩ : Ortho.Skew) |
| 123 | rw [rank_eq,ht,sk_eq h.1,sub_self,zero_mul, map_zero,map_zero, show -Complex.I • (0 : FieldOp S d)=0 from by ext x; simp,add_zero] |
| 124 | |
| 125 | lemma off_skew {W : M4} (h : boostLike W) : W*theta ∈ Ortho.skewSpace := by |
| 126 | change star _ = - _; rw [star_mul,star_theta,h.1,h.2] |
| 127 | |
| 128 | lemma rank_boost (R : Rotation S) (d : ℕ) {W : M4} (h : boostLike W) : |
| 129 | rankAction R d W = (-Complex.I) • lie R d ⟨W * theta,off_skew h⟩ := by |
| 130 | have hm : sk W=0 := by simp only [sk,h.1,sub_self,smul_zero] |
| 131 | have he : skP W=0 := Subtype.ext hm |
| 132 | rw [rank_eq, hm, he,map_zero,zero_add,sub_zero] |
| 133 | exact congr_arg _ (congr_arg _ (sk_skew (⟨W*theta,off_skew h⟩ : Ortho.Skew))) |
| 134 | |
| 135 | lemma rank_B (R : Rotation S) (d : ℕ) (i : SpaceAxis) : rankAction R d (B i) = (-Complex.I) • lie R d (Q i) := by |
| 136 | rw [rank_boost R d (B_boostLike i)] |
| 137 | exact congr_arg _ (congr_arg _ (Subtype.ext (BQ i))) |
| 138 | |
| 139 | section brackets |
| 140 | open Complex |
| 141 | |
| 142 | def bracket {A : Type*} [Ring A] (X Y : A) := X*Y-Y*X |
| 143 | |
| 144 | private lemma cross_parity {X A : M4} (h : boostLike X) (t : spaceLikeGen A) : |
| 145 | theta*(X*A)=-(X*A*theta) ∧ theta*(A*X)=-(A*X*theta) := by |
| 146 | constructor |
| 147 | · rw [← mul_assoc,h.2,neg_mul,mul_assoc,mul_assoc,t.2] |
| 148 | rw [← mul_assoc,t.2,mul_assoc,h.2,mul_neg,mul_assoc] |
| 149 | |
| 150 | private lemma commutes_parity {X W : M4} (h : boostLike X) (t : boostLike W) : |
| 151 | theta*(X*W)=X*W*theta := by |
| 152 | rw [← mul_assoc, h.2, neg_mul,mul_assoc,t.2,mul_neg,neg_neg,mul_assoc] |
| 153 | |
| 154 | lemma mixed_bracket {X A : M4} (h : boostLike X) (t : spaceLikeGen A) : |
| 155 | boostLike (bracket X A) := by |
| 156 | constructor |
| 157 | · simp only [bracket,star_sub,star_mul,h.1,t.1,mul_neg,neg_mul]; abel |
| 158 | unfold bracket; rw [mul_sub, sub_mul,(cross_parity h t).1,(cross_parity h t).2]; abel |
| 159 | |
| 160 | lemma boost_bracket {X W : M4} (h : boostLike X) (t : boostLike W) : |
| 161 | spaceLikeGen (bracket X W) := by |
| 162 | constructor |
| 163 | · simp only [bracket,star_sub,star_mul,h.1,t.1]; abel |
| 164 | unfold bracket; rw [mul_sub,sub_mul,commutes_parity h t,commutes_parity t h] |
| 165 | |
| 166 | lemma mixed_type (X : M4) {A : M4} (t : spaceLikeGen A) : bracket X A * theta = bracket (X*theta) A := by |
| 167 | rw [bracket,bracket,sub_mul, mul_assoc X A, mul_assoc X theta, t.2,mul_assoc] |
| 168 | |
| 169 | private lemma negative_factor (X : M4) {Y : M4} (h : boostLike Y) : X*theta*(Y*theta) = -(X*Y) := by |
| 170 | rw [mul_assoc X,← mul_assoc theta,h.2,neg_mul,mul_assoc Y theta,theta_sq,mul_one,mul_neg] |
| 171 | |
| 172 | lemma boost_type {X W : M4} (h : boostLike X) (t : boostLike W) : bracket (X*theta) (W*theta) = - bracket X W := by |
| 173 | rw [bracket,bracket,negative_factor X t,negative_factor W h]; abel |
| 174 | |
| 175 | variable (R : Rotation S) (d : ℕ) {H : S.RealSpin} |
| 176 | |
| 177 | lemma bracket_euclidean (h : Spin.Port R H) (v w : Ortho.Skew) : |
| 178 | bracket (lie R d v) (lie R d w)=lie R d (Org.bracket v w) := by |
| 179 | ext u |
| 180 | exact LinearMap.congr_fun ((Work.A10.answer H R h).1 d v w) u |
| 181 | |
| 182 | private lemma rankMixed (h : Spin.Port R H) {A X : M4} (hu : boostLike X) (ht : spaceLikeGen A) : |
| 183 | rankAction R d (bracket X A)=bracket (rankAction R d X) (rankAction R d A) := by |
| 184 | rw [rank_boost R d (mixed_bracket hu ht),rank_boost R d hu,rank_space R d ht] |
| 185 | let x : Ortho.Skew := ⟨X*theta,off_skew hu⟩ |
| 186 | let y : Ortho.Skew := ⟨A,ht.1⟩ |
| 187 | have he : (⟨bracket X A*theta, off_skew (mixed_bracket hu ht)⟩ : Ortho.Skew) = Org.bracket x y := |
| 188 | Subtype.ext (mixed_type X ht) |
| 189 | rw [he, ← bracket_euclidean R d h x y] |
| 190 | unfold bracket; ext v |
| 191 | change (-I) • ((lie _ _ _ ((lie _ _ _) v)) - (lie _ _ _ ((lie _ _ _) v))) = |
| 192 | (-I) • _ - (lie _ _ _) ((-I) • _) |
| 193 | rw [map_smul, smul_sub]; rfl |
| 194 | |
| 195 | private lemma rankTwo (h : Spin.Port R H) {X W : M4} (hu : boostLike X) (ht : boostLike W) : |
| 196 | rankAction R d (bracket X W)=bracket (rankAction R d X) (rankAction R d W) := by |
| 197 | rw [rank_space R d (boost_bracket hu ht),rank_boost R d hu,rank_boost R d ht] |
| 198 | let x : Ortho.Skew := ⟨X*theta,off_skew hu⟩ |
| 199 | let y : Ortho.Skew := ⟨W*theta,off_skew ht⟩ |
| 200 | have he : (⟨bracket X W,(boost_bracket hu ht).1⟩ : Ortho.Skew)= -(Org.bracket x y) := by |
| 201 | apply Subtype.ext |
| 202 | change _= -(bracket _ _) |
| 203 | rw [boost_type hu ht,neg_neg] |
| 204 | rw [he,map_neg,← bracket_euclidean R d h x y] |
| 205 | unfold bracket; ext v |
| 206 | change -(lie _ _ _ (lie _ _ _ v)-lie _ _ _ (lie _ _ _ v)) = |
| 207 | (-I) • lie R d x ((-I) • lie R d y v) - (-I) • lie R d y ((-I) • lie R d x v) |
| 208 | rw [map_smul,map_smul,smul_smul,smul_smul,neg_mul_neg,I_mul_I,neg_smul,neg_smul,one_smul,one_smul] |
| 209 | abel |
| 210 | |
| 211 | lemma rank_bracket (h : Spin.Port R H) {X Y : M4} (hp : boostLike X) (hv : tangent Y) : |
| 212 | rankAction R d (bracket X Y)=bracket (rankAction R d X) (rankAction R d Y) := by |
| 213 | have he {T : Type} [Ring T] (X Y Z : T) : bracket X (Y+Z)=bracket X Y + bracket X Z := by |
| 214 | simp only [bracket,mul_add,add_mul]; abel |
| 215 | obtain ⟨A,W,rfl,ht,hw⟩ := tangent_parts hv |
| 216 | rw [he,map_add,map_add,he,rankMixed R d h hp ht,rankTwo R d h hp hw] |
| 217 | end brackets |
| 218 | |
| 219 | /- `Matches` does not already assert integrability or even invertibility of the |
| 220 | represented endomorphism. It is the compatibility used when multiplying |
| 221 | along differentiable paths. -/ |
| 222 | |
| 223 | def er (R : Rotation S) (d : ℕ) (k : Ortho) : FieldOp S d := (R.act d k).toContinuousLinearEquiv.toContinuousLinearMap |
| 224 | |
| 225 | lemma er_one (R : Rotation S) {H : S.RealSpin} (h : Spin.Port R H) (d : ℕ) : er R d 1=1 := by |
| 226 | ext x; exact h.fixes d x |
| 227 | |
| 228 | lemma er_mul (R : Rotation S) {H : S.RealSpin} (h : Spin.Port R H) (d : ℕ) (k g : Ortho) : |
| 229 | er R d (k*g)=er R d k * er R d g := by ext x; exact h.sends d k g x |
| 230 | |
| 231 | def Matches (R : Rotation S) (d : ℕ) (g : Lorentz) (Z : FieldOp S d) := |
| 232 | ∀ X, tangent X → Z * rankAction R d X=rankAction R d (Ad g X) * Z |
| 233 | |
| 234 | lemma Matches.mul {R : Rotation S} {d : ℕ} {g k : Lorentz} {V W : FieldOp S d} |
| 235 | (h : Matches R d g V) (t : Matches R d k W) : Matches R d (g*k) (V*W) := by |
| 236 | intro X ht |
| 237 | rw [mul_assoc,t X ht,← mul_assoc, h _ (Ad_tangent ht _),Ad_mul, mul_assoc] |
| 238 | |
| 239 | def orbitA (k : Ortho) (X : Ortho.Skew) : Ortho.Skew := |
| 240 | ⟨k.val*X.val*star k.val, by |
| 241 | change star _ = -_ |
| 242 | rw [star_mul,star_mul,star_star,show star X.val= -X.val from X.2]; simp only [mul_assoc,mul_neg,neg_mul]⟩ |
| 243 | |
| 244 | lemma er_lie (R : Rotation S) {H : S.RealSpin} (h : Spin.Port R H) (d : ℕ) (k : Ortho) (X : Ortho.Skew) : |
| 245 | er R d k * lie R d X= lie R d (orbitA k X) * er R d k := by |
| 246 | ext v; exact (Work.A10.answer H R h).2 d k X v |
| 247 | |
| 248 | private lemma space_star {k : Ortho} (h : Lorentz.spatialTurn k) : theta * star k.val = star k.val * theta := by |
| 249 | have he := congr_arg star (space_parity k h); rw [star_mul,star_mul,star_theta] at he; exact he.symm |
| 250 | |
| 251 | private lemma space_boost {k : Ortho} (h : Lorentz.spatialTurn k) {X : M4} (hv : boostLike X) : |
| 252 | boostLike (Ad (.room k h) X) := by |
| 253 | let F := Ad (.room k h) X |
| 254 | have hp := Ad_tangent hv.tangent (.room k h) |
| 255 | have he : star F = F := by |
| 256 | unfold F Ad; rw [room_mat_inv, mat_room, star_mul,star_mul,star_star,hv.1,mul_assoc] |
| 257 | refine ⟨he,?_⟩ |
| 258 | change star F=-(theta*F*theta) at hp |
| 259 | rw [he] at hp |
| 260 | change theta*F= -(F*theta) |
| 261 | exact Eq.symm (calc |
| 262 | -(F*theta)= -(-(theta*F*theta)*theta) := congr_arg (fun y => -(y*theta)) hp |
| 263 | _ = _ := by rw [neg_mul, neg_neg,mul_assoc _ theta theta,theta_sq,mul_one]) |
| 264 | |
| 265 | private lemma space_space {k : Ortho} (h : Lorentz.spatialTurn k) {X : M4} (hv : spaceLikeGen X) : |
| 266 | spaceLikeGen (Ad (.room k h) X) := by |
| 267 | let F := Ad (.room k h) X |
| 268 | have he : star F = -F := by |
| 269 | unfold F Ad; rw [mat_room,room_mat_inv] |
| 270 | exact (orbitA k ⟨X,hv.1⟩).property |
| 271 | refine ⟨he,?_⟩ |
| 272 | have hp := Ad_tangent hv.tangent (.room k h) |
| 273 | change star F=-(theta*F*theta) at hp |
| 274 | have hF : F=theta*F*theta := neg_injective (he.symm.trans hp) |
| 275 | change theta*F=F*theta |
| 276 | exact Eq.symm (calc |
| 277 | F*theta=theta*F*theta*theta := congr_arg (· * theta) hF |
| 278 | _ = _ := by rw [mul_assoc _ theta theta,theta_sq,mul_one]) |
| 279 | |
| 280 | lemma matches_space (R : Rotation S) {H : S.RealSpin} (h : Spin.Port R H) (d : ℕ) |
| 281 | (k : Ortho) (hk : Lorentz.spatialTurn k) : Matches R d (.room k hk) (er R d k) := by |
| 282 | intro X ht |
| 283 | obtain ⟨A,W,rfl,ha,hw⟩ := tangent_parts ht |
| 284 | rw [Ad_add,map_add,map_add,mul_add,add_mul] |
| 285 | have hP := space_space hk ha; have hW := space_boost hk hw |
| 286 | congr 1 |
| 287 | · rw [rank_space R d ha,rank_space R d hP,er_lie R h] |
| 288 | have he : orbitA k ⟨A,ha.1⟩=⟨Ad (.room k hk) A,hP.1⟩ := by |
| 289 | apply Subtype.ext; change _=Ad _ _; rw [Ad,mat_room,room_mat_inv]; rfl |
| 290 | rw [he] |
| 291 | rw [rank_boost R d hw,rank_boost R d hW] |
| 292 | let Q : Ortho.Skew := ⟨W*theta,off_skew hw⟩ |
| 293 | have he : orbitA k Q = ⟨Ad (.room k hk) W * theta,off_skew hW⟩ := by |
| 294 | apply Subtype.ext; change k.val*(W*theta)*star k.val = Ad _ W * theta |
| 295 | rw [Ad, mat_room, room_mat_inv] |
| 296 | simp only [mul_assoc, space_star hk] |
| 297 | rw [show (⟨Ad (.room k hk) W*theta,off_skew hW⟩ : Ortho.Skew)=orbitA k Q from he.symm] |
| 298 | ext v |
| 299 | change er R d k ((-Complex.I) • (lie R d Q v)) = (-Complex.I) • lie R d (orbitA k Q) (er R d k v) |
| 300 | rw [map_smul] |
| 301 | exact congr_arg _ (DFunLike.congr_fun (er_lie R h d k Q) v) |
| 302 | |
| 303 | end YM.Next.BOUNDARY.Descent |