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.Push.STRESS_FLUX.Solve |
| 2 | |
| 3 | set_option autoImplicit false |
| 4 | noncomputable section |
| 5 | namespace YM.StressFlux.Annular |
| 6 | open Matching Table Work.A01 Analysis Function Filter Set MeasureTheory |
| 7 | open scoped Topology BigOperators ContDiff Matrix.Norms.Frobenius |
| 8 | variable {G : Gauge} {L : Register G} {S : Table L} {i d D n : ℕ} {V : E4 → E4} {W : DiffPlan S} {H : S.RealSpin} |
| 9 | {x : Points (n+1)} {χ : E4 → ℝ} |
| 10 | |
| 11 | def middle (p : S.Tag) (q : Fin n → S.Tag) (d : ℕ) (z : Points (n+2)) := |
| 12 | Ward.here (Fin.cons p (Fin.cons (α:=fun _ => S.Tag) ⟨d,0⟩ q)) z (0 : Fin (n+1)).succ d |
| 13 | |
| 14 | lemma middle_eval (p : S.Tag) (q : Fin n → S.Tag) (B : S.Field d) (z : Points (n+2)) : |
| 15 | middle p q d z B = S.useAt S z (Fin.cons p (Fin.cons ⟨d,B⟩ q)) := by |
| 16 | unfold middle |
| 17 | rw [Ward.takes] |
| 18 | unfold Ward.disc; congr! 1 |
| 19 | funext i |
| 20 | refine Fin.cases ?_ (fun j => Fin.cases ?_ (fun t => ?_) j) i |
| 21 | · simp |
| 22 | · simp |
| 23 | rw [update_of_ne (Fin.succ_injective _ |>.ne (Fin.succ_ne_zero t))]; rfl |
| 24 | |
| 25 | def shellTerm (J : S.Stress) (x : Points (n+1)) (q : Fin n → S.Tag) (χ : E4 → ℝ) (a b : Axis) (y : E4) (d : ℕ) (V : E4 → E4) : S.Field d →ₗ[ℂ] ℂ := |
| 26 | Work.A05.weight χ a (fun y => V (y-x 0) b) y • middle ⟨4,J a b⟩ q d (Points.cons y x) |
| 27 | |
| 28 | lemma shellTerm_eval (J : S.Stress) (x : Points (n+1)) (q : Fin n → S.Tag) (χ : E4 → ℝ) (a b : Axis) (y : E4) (B : S.Field d) : |
| 29 | shellTerm J x q χ a b y d V B = term J χ (fun y => V (y-x 0)) x q B a b y := by rw [shellTerm,LinearMap.smul_apply,middle_eval]; rfl |
| 30 | |
| 31 | def shellMap (hs : S.Smooth) (J : S.Stress) (q : Fin n → S.Tag) (d : ℕ) (hx : x∈conf _) (hw : Window x χ) |
| 32 | (hv : ∀ b : Axis, Continuous (fun y => V y b)) : S.Field d →ₗ[ℂ] ℂ where |
| 33 | toFun := about J χ V x q |
| 34 | map_add' p t := by |
| 35 | have ht a b (v : S.Field d) := term_integrable J χ (fun y => V (y-x 0)) x q v hs hx hw a b ((hv b).comp (continuous_id.sub continuous_const)) |
| 36 | simp_rw [about, flux, ← shellTerm_eval, map_add, shellTerm_eval, integral_add (ht _ _ p) (ht _ _ t), Finset.sum_add_distrib]; abel |
| 37 | map_smul' c p := by simp only [about,flux, ← shellTerm_eval, map_smul, integral_smul, smul_neg, Finset.smul_sum,RingHom.id_apply] |
| 38 | |
| 39 | lemma linear (hs : S.Hierarchy) (hd : W.Derivatives S) {v : Axis → Axis → L.Ref 4} (hJ : Conserved W H (draw S v)) |
| 40 | (hv : Motion i V) (hS : ∀ B : L.Ref d, Snip S v B D (3+i)) : ∃ Q : S.Field d →ₗ[ℂ] S.Field D, ∀ B, Represents (draw S v) B V (Q B) := by |
| 41 | let J := draw S v |
| 42 | have he (B : S.Field d) : ∃ u : S.Field D, Represents J B V u := by obtain ⟨b,rfl⟩ := S.onto d B; exact pick hs hd hJ b hv (hS b) |
| 43 | choose q hq using he |
| 44 | have ht (B : S.Field d) {n : ℕ} (x : Points (n+1)) (p : Fin n → S.Tag) χ (hx : x∈conf _) (hw : Window x χ) : |
| 45 | frontRead p x D (q B) = shellMap hs.smooth J p _ hx hw (fun b => (hv.smooth b).continuous) B := (hq B n x p χ hx hw).symm |
| 46 | refine ⟨{toFun:=q |
| 47 | map_add':=fun p t => S.field_ext hs.laws.toSymmetric fun n s x hx => ?_ |
| 48 | map_smul':=fun c p => S.field_ext hs.laws.toSymmetric fun n s x hx => ?_},hq⟩ |
| 49 | · obtain ⟨χ,hχ⟩ := exists_window x hx |
| 50 | simp_rw [← front_eval,map_add,ht _ x s χ hx hχ, map_add] |
| 51 | obtain ⟨χ,hχ⟩ := exists_window x hx |
| 52 | simp_rw [← front_eval,map_smul,ht _ x s χ hx hχ, map_smul]; rfl |
| 53 | |
| 54 | abbrev turn (g : Ortho.Skew) : E4 → E4 := M4.move g.val |
| 55 | |
| 56 | lemma constant_motion (b : E4) : Motion 0 (fun _ => b) := ⟨fun _ => contDiff_const,killing_const b,fun _ _ _ => (by simp)⟩ |
| 57 | lemma turn_motion (g : Ortho.Skew) : Motion 1 (turn g) := by |
| 58 | have he : turn g = orbital g 0 := by unfold orbital; simp only [sub_zero] |
| 59 | exact ⟨he ▸ smooth_orbital g 0,he ▸ killing_orbital g 0,fun r _ z => by rw [pow_one]; exact map_smul (Matrix.toEuclideanLin g.val) r z⟩ |
| 60 | lemma turn_add (g k : Ortho.Skew) (z : E4) : turn (g+k) z = turn g z + turn k z := by |
| 61 | ext b; simp [turn,M4.at_coord,add_mul,Finset.sum_add_distrib] |
| 62 | lemma turn_smul (g : Ortho.Skew) (t : ℝ) (z : E4) : turn (t • g) z = t • turn g z := by |
| 63 | ext b; simp [turn,M4.at_coord,mul_assoc,Finset.mul_sum] |
| 64 | |
| 65 | lemma rotationMaps (hs : S.Hierarchy) (hd : W.Derivatives S) {v : Axis → Axis → L.Ref 4} (hJ : Conserved W H (draw S v)) |
| 66 | (hS : ∀ B : L.Ref d, Snip S v B d 4) : ∃ A : Ortho.Skew →ₗ[ℝ] (S.Field d →ₗ[ℂ] S.Field d), ∀ g B, Represents (draw S v) B (turn g) (A g B) := by |
| 67 | choose Q hQ using fun g => linear hs hd hJ (turn_motion g) hS |
| 68 | refine ⟨{toFun:=Q |
| 69 | map_add':=fun p t => LinearMap.ext fun B => S.field_ext hs.laws.toSymmetric fun n s x hx => ?_ |
| 70 | map_smul':=fun c g => LinearMap.ext fun B => S.field_ext hs.laws.toSymmetric fun n s x hx => ?_},hQ⟩ |
| 71 | · obtain ⟨χ,hχ⟩ := exists_window x hx |
| 72 | simp_rw [← front_eval,LinearMap.add_apply,map_add, ← show ∀ g, about _ χ _ _ s _=_ from fun g => hQ g B n x s χ hx hχ] |
| 73 | let F g := term (draw S v) χ (fun y => turn g (y-x 0)) x s B |
| 74 | have h (g : Ortho.Skew) a b : Integrable (F g a b) := term_integrable (draw S v) χ (fun y => turn g (y-x 0)) x s B hs.smooth hx hχ a b (((turn_motion g).smooth b).continuous.comp (continuous_id.sub continuous_const)) |
| 75 | have ht a b y : F (p+t) a b y = F p a b y + F t a b y := by simp [F,term, turn_add,mul_add,add_mul] |
| 76 | change -(∑ a, ∑ b, ∫ y, F _ a b y)=-(∑ a, ∑ b, ∫ y, F _ a b y) + -(∑ a, ∑ b, ∫ y, F _ a b y) |
| 77 | simp_rw [ht,integral_add (h p ..) (h t ..),Finset.sum_add_distrib]; abel |
| 78 | obtain ⟨χ,hχ⟩ := exists_window x hx |
| 79 | change _ = S.useAt S _ (Fin.cons ⟨d,c • Q g B⟩ s) |
| 80 | rw [← front_eval,← front_eval, ← (hQ _ B _ _ s χ hx hχ), show frontRead s x d (c • Q g B) = c • frontRead s x d (Q g B) from ((frontRead s x d).restrictScalars ℝ).map_smul c _, ← (hQ _ B _ _ s χ hx hχ)] |
| 81 | simp_rw [about,turn_smul,flux_scale]; rfl |
| 82 | |
| 83 | theorem laws (hs : S.Hierarchy) (hd : W.Derivatives S) {v : Axis → Axis → L.Ref 4} (hJ : Conserved W H (draw S v)) |
| 84 | (he : ∀ d (B : L.Ref d), Snip S v B (d+1) 3 ∧ Snip S v B d 4) : ∃ p A, StressLaws S (draw S v) p A := by |
| 85 | choose Q hQ using fun d (a : Axis) => linear hs hd hJ (constant_motion (basis a)) (fun B => (he d B).1) |
| 86 | choose A hA using fun d => rotationMaps hs hd hJ (fun B => (he d B).2) |
| 87 | refine ⟨Q,A,⟨fun {n x} hx q {_χ} w b d B => ?_,fun {n x} hx q {_χ} w g d B => ?_⟩⟩ |
| 88 | · exact (flux_translation ..).symm.trans ((hQ d b B n x q _ hx w).trans (front_eval ..)) |
| 89 | exact (hA d g B n x q _ hx w).trans (front_eval ..) |
| 90 | end YM.StressFlux.Annular |