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.Maxwell.Curls |
| 2 | import YM.Maxwell.Equation |
| 3 | |
| 4 | /-! |
| 5 | # One Wick contraction on the actual shell |
| 6 | |
| 7 | `legKernel` is bilinear (away origin; value at 0 not used). |
| 8 | Polynomial moments only use different insertions. |
| 9 | TaylorTower uses Taylor coefficients; both left and right. Use extension |
| 10 | of dual on subspace only for an everywhere-function germ convention; prove |
| 11 | independence of BOTH extensions before defining null. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | noncomputable section |
| 16 | namespace YM.Maxwell |
| 17 | open Function Set Filter |
| 18 | open WaveOn Tensor Analysis |
| 19 | open scoped Topology ContDiff BigOperators |
| 20 | |
| 21 | section Paint |
| 22 | variable {F M : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 23 | [NormedAddCommGroup M] [NormedSpace ℝ M] |
| 24 | variable (L : F →L[ℝ] M) |
| 25 | |
| 26 | theorem grad_linear {f : E4 → F} {x} (hf : ContDiffAt ℝ ∞ f x) (a) : |
| 27 | grad a (L ∘ f) x = L (grad a f x) := by |
| 28 | unfold grad D |
| 29 | rw [fderiv_comp x L.differentiableAt (hf.differentiableAt (by simp)), L.fderiv] |
| 30 | rfl |
| 31 | |
| 32 | lemma composeColor {U} {f : Field F} (H : WaveOn U f) : WaveOn U (fun a b => L ∘ f a b) := by |
| 33 | refine ⟨fun _ _ x hx => L.contDiff.contDiffAt.comp x (H.smooth _ _ _ hx),?_,?_,?_⟩ |
| 34 | · intro a b x hx |
| 35 | nth_rw 1 [Function.comp_apply,H.form a b x hx] |
| 36 | rw [map_neg]; rfl |
| 37 | · intro a b c x hx |
| 38 | rw [grad_linear L (H.smooth _ _ _ hx), grad_linear L (H.smooth _ _ _ hx), |
| 39 | grad_linear L (H.smooth _ _ _ hx), ← map_add, ← map_add, H.cycle _ _ _ _ hx, map_zero] |
| 40 | intro b x hx |
| 41 | have he (a) := grad_linear L (H.smooth a b x hx) a |
| 42 | simp_rw [he,← map_sum,H.divergence b x hx,map_zero] |
| 43 | |
| 44 | lemma superpose {ι : Type*} [Fintype ι] {U} {f : ι → Field F} (H : ∀ i, WaveOn U (f i)) : |
| 45 | WaveOn U (fun a b x => ∑ i, f i a b x) := by |
| 46 | have hd (a b c : Axis) (x : E4) (hx : x ∈ U) : |
| 47 | grad c (fun x : E4 => ∑ i, f i a b x) x = ∑ i, grad c (f i a b) x := by |
| 48 | unfold grad D |
| 49 | rw [fderiv_fun_sum (fun i _ => ((H i).smooth a b x hx).differentiableAt (by simp)),sum_apply] |
| 50 | refine ⟨fun a b x hx => ContDiffAt.sum (fun i _ => (H i).smooth a b x hx), ?_, ?_, ?_⟩ |
| 51 | · intro a b x hx |
| 52 | rw [← Finset.sum_neg_distrib] |
| 53 | exact Finset.sum_congr rfl fun i _ => (H i).form a b x hx |
| 54 | · intro a b c x hx |
| 55 | rw [hd b c a x hx, hd c a b x hx, hd a b c x hx, ← Finset.sum_add_distrib, ← Finset.sum_add_distrib] |
| 56 | exact Finset.sum_eq_zero fun i _ => (H i).cycle a b c x hx |
| 57 | intro b x hx |
| 58 | simp_rw [show ∀ a, grad a (fun x => ∑ i, f i a b x) x = _ from fun a => hd a b a x hx] |
| 59 | rw [Finset.sum_comm] |
| 60 | exact Finset.sum_eq_zero fun i _ => (H i).divergence b x hx |
| 61 | end Paint |
| 62 | |
| 63 | variable {G : Gauge} {j l : ℕ} |
| 64 | abbrev Probe (G : Gauge) (j : ℕ) := Shell G j →ₗ[ℝ] ℝ |
| 65 | abbrev Extended (G : Gauge) (j : ℕ) := TwoJet G.Color j →ₗ[ℝ] ℝ |
| 66 | |
| 67 | def extension (p : Probe G j) : Extended G j := p ∘ₗ (onShell _ _).subtype.leftInverse |
| 68 | |
| 69 | def constrain (P : TwoJet G.Color j →ₗ[ℝ] ℝ) : Probe G j := P.comp (onShell _ _).subtype |
| 70 | |
| 71 | theorem genuine (p : Probe G j) : constrain (extension p) = p := by |
| 72 | ext x |
| 73 | exact congr_arg p (LinearMap.leftInverse_apply_of_inj (onShell G.Color j).ker_subtype x) |
| 74 | |
| 75 | def unitColor (G : Gauge) (i : G.ColorIndex) : G.Color := EuclideanSpace.single i 1 |
| 76 | |
| 77 | def tint (v : G.Color) : ℝ →L[ℝ] G.Color := (ContinuousLinearMap.id ℝ ℝ).smulRight v |
| 78 | |
| 79 | theorem tint_at (v : G.Color) (t : ℝ) : tint v t = t • v := rfl |
| 80 | |
| 81 | def leftF (G : Gauge) (c : G.ColorIndex) (i l : Axis) : Field G.Color := fun a b => |
| 82 | tint (G := G) (unitColor G c) ∘ bareCurl a b i l |
| 83 | |
| 84 | theorem left_eq (c : G.ColorIndex) (i l : Axis) : WaveOn away (leftF G c i l) := |
| 85 | composeColor _ (Bare.equation ..) |
| 86 | |
| 87 | theorem for_right (c : G.ColorIndex) (i l : Axis) : WaveOn away (fun a b => leftF G c a b i l) := |
| 88 | composeColor _ (Bare.equation_right ..) |
| 89 | |
| 90 | def scalarTest (P : Extended G j) (c : G.ColorIndex) : Field ℝ := fun i l => |
| 91 | P ∘ nth (leftF G c i l) j |
| 92 | |
| 93 | lemma test_mem (P : Extended G j) (c : G.ColorIndex) : WaveOn away (scalarTest P c) := by |
| 94 | let V (i l) := leftF G c i l |
| 95 | let A : Axis → Axis → E4 → TwoJet G.Color j := fun i l => nth (V i l) j |
| 96 | let L := P.toContinuousLinearMap |
| 97 | change WaveOn away (fun i l => L ∘ A i l) |
| 98 | have he (i l) (x) (hx : x ≠ 0) : ContDiffAt ℝ ∞ (A i l) x := |
| 99 | (left_eq c i l).nth_smooth hx |
| 100 | have hw (α β i l : Axis) (x : E4) (hx : x ≠ 0) (a : Axis) : |
| 101 | grad a (A i l) x α β = coeff (grad a (V i l α β)) j x := by |
| 102 | have hf := he i l x hx |
| 103 | let E1 := ContinuousLinearMap.proj (R := ℝ) (φ := fun _ : Axis => Axis → T E4 G.Color j) α |
| 104 | let E2 := ContinuousLinearMap.proj (R := ℝ) (φ := fun _ : Axis => T E4 G.Color j) β |
| 105 | change E2.comp E1 (grad a (A i l) x) = _ |
| 106 | rw [← grad_linear (E2.comp E1) hf] |
| 107 | exact D_coeff (((left_eq c i l).smooth α β x hx).of_le (WithTop.coe_le_coe.mpr le_top)) (basis a) |
| 108 | have hp (α β a i l : Axis) (x : E4) (hx : x ≠ 0) : ContDiffAt ℝ j (grad a (V i l α β)) x := |
| 109 | (grad_smooth a ((left_eq c i l).smooth α β x hx) (m := ∞) (by simp)).of_le (WithTop.coe_le_coe.mpr le_top) |
| 110 | apply composeColor |
| 111 | refine ⟨he,?_,?_,?_⟩ |
| 112 | · intro i l x hx |
| 113 | ext1 α; ext1 β |
| 114 | change coeff _ _ _ = -coeff _ _ _ |
| 115 | rw [← neg_coeff]; refine GermCoeff j ?_ |
| 116 | filter_upwards [open_away.mem_nhds hx] with y hy |
| 117 | exact (for_right c α β).form i l y hy |
| 118 | · intro a b d x hx |
| 119 | funext α β |
| 120 | simp only [Pi.add_apply,hw _ _ _ _ _ hx,Pi.zero_apply] |
| 121 | rw [← coeff_add (hp _ _ _ _ _ _ hx) (hp _ _ _ _ _ _ hx), ← coeff_add |
| 122 | (show ContDiffAt ℝ j (grad a (V b d α β) + grad b (V d a α β)) x from (hp _ _ _ _ _ _ hx).add (hp _ _ _ _ _ _ hx)) |
| 123 | (hp _ _ _ _ _ _ hx)] |
| 124 | rw [← coeff_zero j x]; refine GermCoeff _ ?_ |
| 125 | filter_upwards [open_away.mem_nhds hx] with y hy; exact (for_right c α β).cycle a b d y hy |
| 126 | intro b x hx |
| 127 | funext α β |
| 128 | simp_rw [Finset.sum_apply, hw _ _ _ _ _ hx] |
| 129 | rw [← coeff_sum] |
| 130 | · have ht : ∑ a : Axis, grad a (V a b α β) =ᶠ[𝓝 x] (fun _ => (0:G.Color)) := by |
| 131 | filter_upwards [open_away.mem_nhds hx] with y hy |
| 132 | rw [Finset.sum_apply]; exact (for_right c α β).divergence b y hy |
| 133 | exact (GermCoeff j ht).trans (coeff_zero j x) |
| 134 | exact fun i _ => hp _ _ _ _ _ _ hx |
| 135 | |
| 136 | /-- The left functional applied to the Taylor coefficients at x leaves |
| 137 | color-valued germ indexed by the right k,m. Variable is still z=x-y. -/ |
| 138 | def responded (G : Gauge) {j : ℕ} (P : Extended G j) : Field G.Color := fun i l z => |
| 139 | ∑ c, scalarTest (G := G) P c i l z • unitColor G c |
| 140 | |
| 141 | theorem response (P : Extended G j) : WaveOn away (responded G P) := |
| 142 | superpose fun c => composeColor (tint (G := G) (unitColor G c)) (test_mem (G := G) P c) |
| 143 | |
| 144 | /-- One-leg pairing with unconstrained functionals first. -/ |
| 145 | def contraction (G : Gauge) {j l : ℕ} (P : Extended G j) (Q : Extended G l) (z : E4) : ℝ := |
| 146 | (-1)^l * Q (nth (responded G P) l z) |
| 147 | |
| 148 | theorem descends {P P' : Extended G j} {Q Q' : Extended G l} (hp : constrain (G := G) P = constrain P') |
| 149 | (hq : constrain (G := G) Q = constrain Q') {z : E4} (hz : z ≠ 0) : |
| 150 | contraction G P Q z = contraction G P' Q' z := by |
| 151 | have ht (i m : Axis) : responded G P i m =ᶠ[𝓝 z] responded G P' i m := by |
| 152 | filter_upwards [open_away.mem_nhds (show z ∈ away from hz)] with y hy |
| 153 | unfold responded |
| 154 | exact Finset.sum_congr rfl fun c _ => congr_arg (fun x : ℝ => x • unitColor G c) |
| 155 | (LinearMap.congr_fun hp ⟨_,(left_eq c i m).jets open_away hy⟩) |
| 156 | unfold contraction |
| 157 | rw [show nth (responded G P) l z = nth (responded G P') l z from funext fun i => funext fun k => GermCoeff l (ht i k)] |
| 158 | exact congr_arg (fun x : ℝ => (-1 : ℝ)^l * x) |
| 159 | (LinearMap.congr_fun hq ⟨_, (response (G := G) P').jets open_away hz⟩) |
| 160 | |
| 161 | def legKernel (p : Probe G j) (q : Probe G l) (z : E4) : ℝ := |
| 162 | contraction G (extension p) (extension q) z |
| 163 | |
| 164 | theorem concrete (P : Extended G j) (Q : Extended G l) {x} (hx : x ≠ 0) : |
| 165 | legKernel (constrain (G := G) P) (constrain Q) x = contraction G P Q x := |
| 166 | descends (genuine _) (genuine _) hx |
| 167 | |
| 168 | theorem kernel_smooth (p : Probe G j) (q : Probe G l) {x} (hx : x ≠ 0) : |
| 169 | ContDiffAt ℝ ∞ (legKernel p q) x := by |
| 170 | let L := (extension q).toContinuousLinearMap |
| 171 | refine contDiffAt_const.mul ?_ |
| 172 | exact L.contDiff.contDiffAt.comp x ((response (G := G) (extension p)).nth_smooth hx) |
| 173 | |
| 174 | end YM.Maxwell |