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.Shell |
| 2 | import Mathlib.Analysis.InnerProductSpace.Calculus |
| 3 | import Mathlib.Analysis.Calculus.Deriv.Inv |
| 4 | |
| 5 | /-! |
| 6 | # Free potential kernel (radian, 4D) |
| 7 | |
| 8 | Off the origin only. No assertion about distributional extension here. |
| 9 | It will only enter the Schwinger comparison under curls at distinct sites. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.Maxwell |
| 15 | open Set Function Filter Analysis |
| 16 | open scoped Topology ContDiff BigOperators RealInnerProductSpace |
| 17 | |
| 18 | def normal := (4 * Real.pi^2)⁻¹ |
| 19 | |
| 20 | theorem normal_pos : 0 < normal := by unfold normal; positivity |
| 21 | |
| 22 | def Green (x : E4) : ℝ := normal * (‖x‖^2)⁻¹ |
| 23 | |
| 24 | lemma normalization (x : E4) : Green x = 1 / (4 * Real.pi^2 * ‖x‖^2) := by |
| 25 | simp [Green, normal]; ring |
| 26 | |
| 27 | theorem freeSmooth {x : E4} (h : x ≠ 0) : ContDiffAt ℝ ∞ Green x := by |
| 28 | unfold Green; have hw := norm_pos_iff.mpr h; exact contDiffAt_const.mul ((contDiff_norm_sq ℝ).contDiffAt.inv (by dsimp; positivity)) |
| 29 | |
| 30 | @[simp] theorem even_Green (x : E4) : Green (-x) = Green x := by unfold Green; rw [norm_neg] |
| 31 | |
| 32 | def away : Set E4 := {x | x ≠ 0} |
| 33 | lemma open_away : IsOpen away := isOpen_compl_singleton |
| 34 | |
| 35 | variable {x : E4} |
| 36 | |
| 37 | theorem first_Green (hx : x ≠ 0) (i : Axis) : grad i Green x = -2 * normal * x i * (‖x‖^2)⁻¹^2 := by |
| 38 | have hw := norm_pos_iff.mpr hx |
| 39 | have h := ((hasFDerivAt_inv (show ‖x‖^2 ≠ 0 by positivity)).comp x |
| 40 | (hasStrictFDerivAt_norm_sq x).hasFDerivAt).const_mul normal |
| 41 | have he := h.fderiv |
| 42 | change fderiv ℝ Green x = _ at he |
| 43 | unfold grad D |
| 44 | rw [he] |
| 45 | simp [two_smul] |
| 46 | rw [← real_inner_comm x, basis_inner] |
| 47 | ring |
| 48 | |
| 49 | theorem second_Green (hx : x ≠ 0) (i j : Axis) : |
| 50 | grad j (grad i Green) x = -2 * normal * (basis j i) * (‖x‖^2)⁻¹^2 + |
| 51 | 8 * normal * (x j * x i) * (‖x‖^2)⁻¹^3 := by |
| 52 | have hw := norm_pos_iff.mpr hx |
| 53 | let g : E4 → ℝ := fun y => -2 * normal * y i * (‖y‖^2)⁻¹^2 |
| 54 | have he : grad i Green =ᶠ[𝓝 x] g := by |
| 55 | filter_upwards [open_away.mem_nhds (show x ∈ away from hx)] with y hy |
| 56 | exact first_Green hy i |
| 57 | change D (basis j) _ _ = _ |
| 58 | rw [GermD _ he] |
| 59 | have h := ( (compAxis i).hasFDerivAt.const_mul (-2 * normal)).mul |
| 60 | (((hasFDerivAt_inv (show ‖x‖^2 ≠ 0 by positivity)).comp x |
| 61 | (hasStrictFDerivAt_norm_sq x).hasFDerivAt).pow 2) |
| 62 | have hd := h.fderiv; change fderiv ℝ g x = _ at hd |
| 63 | rw [D,hd] |
| 64 | simp [two_smul, -basis_eq, compAxis] |
| 65 | rw [← real_inner_comm x, basis_inner] |
| 66 | ring |
| 67 | |
| 68 | /-- Laplacian vanishes on the open patch. -/ |
| 69 | theorem harmonic (hx : x ≠ 0) : ∑ i : Axis, grad i (grad i Green) x = 0 := by |
| 70 | have hw := norm_pos_iff.mpr hx |
| 71 | simp only [second_Green hx, basis_eq, ↓reduceIte, mul_one, ← sq] |
| 72 | rw [Finset.sum_add_distrib] |
| 73 | rw [Finset.sum_const, Finset.card_univ, Fintype.card_fin, ← Finset.sum_mul, |
| 74 | ← Finset.mul_sum, ← EuclideanSpace.real_norm_sq_eq] |
| 75 | simp only [nsmul_eq_mul, Nat.cast_ofNat] |
| 76 | field_simp |
| 77 | ring |
| 78 | |
| 79 | /- Ordinary differentiated radial identities. -/ |
| 80 | theorem gradGradientSmooth (hx : x ≠ 0) (i : Axis) : ContDiffAt ℝ ∞ (grad i Green) x := |
| 81 | grad_smooth i (freeSmooth hx) (by simp) |
| 82 | theorem HessSmooth (hx : x ≠ 0) (i j : Axis) : ContDiffAt ℝ ∞ (grad i (grad j Green)) x := |
| 83 | grad_smooth i (gradGradientSmooth hx j) (by simp) |
| 84 | |
| 85 | theorem grad_sum (f : Axis → E4 → ℝ) (H : ∀ i, ContDiffAt ℝ ∞ (f i) x) (k : Axis) : |
| 86 | grad k (fun y => ∑ j, f j y) x = ∑ j, grad k (f j) x := by |
| 87 | unfold grad D |
| 88 | rw [fderiv_fun_sum (fun i _ => (H i).differentiableAt (by simp)), sum_apply] |
| 89 | |
| 90 | theorem Hess_sym (hx : x ≠ 0) (i j : Axis) : grad i (grad j Green) x = grad j (grad i Green) x := |
| 91 | grad_comm ((freeSmooth hx).of_le (show ((↑(2 : ℕ)) : WithTop ℕ∞) ≤ ∞ from |
| 92 | WithTop.coe_le_coe.mpr le_top)) .. |
| 93 | |
| 94 | theorem harmonic_gradient (hx : x ≠ 0) (i : Axis) : ∑ a : Axis, grad a (grad a (grad i Green)) x = 0 := by |
| 95 | have he (a b) : grad a (grad b Green) =ᶠ[𝓝 x] grad b (grad a Green) := by |
| 96 | filter_upwards [open_away.mem_nhds (show x ∈ away from hx)] with y hy |
| 97 | exact Hess_sym hy .. |
| 98 | have hw (a) : grad a (grad a (grad i Green)) x = grad i (grad a (grad a Green)) x := |
| 99 | (GermD (basis a) (he a i)).trans (grad_comm ((gradGradientSmooth hx _).of_le |
| 100 | (show ((↑(2 : ℕ)) : WithTop ℕ∞) ≤ ∞ from WithTop.coe_le_coe.mpr le_top)) ..) |
| 101 | simp_rw [hw, ← grad_sum (fun j => grad j (grad j Green)) (fun j => HessSmooth hx j j)] |
| 102 | have H : (fun y => ∑ a : Axis, grad a (grad a Green) y) =ᶠ[𝓝 x] fun _ => (0:ℝ) := by |
| 103 | filter_upwards [open_away.mem_nhds (show x ∈ away from hx)] with y hy |
| 104 | exact harmonic hy |
| 105 | exact (GermD (basis i) H).trans (by simp [D]) |
| 106 | |
| 107 | end YM.Maxwell |