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 Mathlib.Analysis.Calculus.FDeriv.Symmetric |
| 2 | import Mathlib.Analysis.Calculus.ImplicitContDiff |
| 3 | import Mathlib.Analysis.Complex.CauchyIntegral |
| 4 | import Mathlib.Analysis.Fourier.AddCircleMulti |
| 5 | import YM.PCalc.Band |
| 6 | |
| 7 | |
| 8 | |
| 9 | /-! Real germ calculus tools for the fixed-period solve. -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | noncomputable section |
| 13 | |
| 14 | open Filter Function Matrix |
| 15 | open scoped Topology ContDiff |
| 16 | |
| 17 | namespace YM.Work.F04 |
| 18 | |
| 19 | variable {X Y : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 20 | [NormedAddCommGroup Y] [NormedSpace ℝ Y] |
| 21 | |
| 22 | /-- Vertical differential, agreeing with the partial derivative at smooth points. -/ |
| 23 | def vert (F : X × Y → ℝ) (z : X × Y) : Y →L[ℝ] ℝ := |
| 24 | fderiv ℝ F z ∘L ContinuousLinearMap.inr ℝ X Y |
| 25 | |
| 26 | lemma hasFDerivAt_slice (F : X × Y → ℝ) (x : X) (y : Y) |
| 27 | (hd : DifferentiableAt ℝ F (x, y)) : |
| 28 | HasFDerivAt (fun v => F (x, v)) (vert F (x, y)) y := by |
| 29 | have he : HasFDerivAt (fun v => (x, v)) (ContinuousLinearMap.inr ℝ X Y) y := |
| 30 | (hasFDerivAt_const x y).prodMk (hasFDerivAt_id y) |
| 31 | exact hd.hasFDerivAt.comp y he |
| 32 | |
| 33 | lemma vert_smooth (F : X × Y → ℝ) (z : X × Y) (hf : ContDiffAt ℝ ω F z) : |
| 34 | ContDiffAt ℝ ω (vert F) z := |
| 35 | (hf.fderiv_right (m := ω) (by simp)).clm_comp contDiffAt_const |
| 36 | |
| 37 | lemma vert_rate (F : X × Y → ℝ) (z : X × Y) (hf : ContDiffAt ℝ ω F z) |
| 38 | (w : X × Y) (v : Y) : |
| 39 | fderiv ℝ (vert F) z w v = iteratedFDeriv ℝ 2 F z ![w, (0, v)] := by |
| 40 | have hh := ((hf.fderiv_right (m := ω) (by simp)).differentiableAt (by simp)).hasFDerivAt.clm_comp |
| 41 | (hasFDerivAt_const (ContinuousLinearMap.inr ℝ X Y) z) |
| 42 | rw [show fderiv ℝ (vert F) z = _ from hh.fderiv, iteratedFDeriv_two_apply] |
| 43 | simp |
| 44 | |
| 45 | /-- At a stationary point the second derivative on pullback has no second |
| 46 | chain-rule summand from the inner map. -/ |
| 47 | lemma stationary_chain (F : Y → ℝ) (W : X → Y) (x : X) (hg : ContDiffAt ℝ ω F (W x)) |
| 48 | (hh : ContDiffAt ℝ ω W x) (he : fderiv ℝ F (W x) = 0) (a b : X) : |
| 49 | fderiv ℝ (fderiv ℝ (F ∘ W)) x a b = |
| 50 | iteratedFDeriv ℝ 2 F (W x) ![fderiv ℝ W x a, fderiv ℝ W x b] := by |
| 51 | have H : fderiv ℝ (F ∘ W) =ᶠ[𝓝 x] fun y => fderiv ℝ F (W y) ∘L fderiv ℝ W y := by |
| 52 | filter_upwards [hh.eventually (by simp), |
| 53 | hh.continuousAt.tendsto.eventually (hg.eventually (by simp))] with y hy hz |
| 54 | exact fderiv_comp y (hz.differentiableAt (by simp)) (hy.differentiableAt (by simp)) |
| 55 | have hx := (hg.fderiv_right (m := ω) (by simp)).differentiableAt (by simp) |
| 56 | have hw := hh.differentiableAt (by simp) |
| 57 | have hh' := (hh.fderiv_right (m := ω) (by simp)).differentiableAt (by simp) |
| 58 | have hd := (hx.hasFDerivAt.comp x hw.hasFDerivAt).clm_comp hh'.hasFDerivAt |
| 59 | rw [H.fderiv_eq, show fderiv ℝ (fun y => fderiv ℝ F (W y) ∘L fderiv ℝ W y) x = _ from hd.fderiv, |
| 60 | iteratedFDeriv_two_apply] |
| 61 | simp [he] |
| 62 | |
| 63 | /-- Recognise the quadratic part from just the Hessian of a smooth real germ. -/ |
| 64 | lemma half_pairing (F : X → ℝ) (hf : ContDiffAt ℝ ω F 0) : |
| 65 | Precision.SameJet 2 F (fun x : X => (1/2:ℝ) * (fderiv ℝ (fderiv ℝ F) 0 x x)) := by |
| 66 | let Q := fderiv ℝ (fderiv ℝ F) 0 |
| 67 | have hs (a b : X) : Q a b = Q b a := hf.isSymmSndFDerivAt (by simp) a b |
| 68 | change Precision.SameJet 2 F (fun x => (1/2:ℝ) * Q x x) |
| 69 | have hd (x : X) : HasFDerivAt (fun y => (1/2:ℝ) * Q y y) (Q x) x := by |
| 70 | have hh := (Q.hasFDerivAt (x := x)).clm_apply (hasFDerivAt_id x) |
| 71 | convert! hh.const_smul (1/2:ℝ) using 1 |
| 72 | ext y |
| 73 | simp [smul_eq_mul, hs y x] |
| 74 | ring |
| 75 | have he : fderiv ℝ (fun x => (1/2:ℝ) * Q x x) = Q := funext fun x => (hd x).fderiv |
| 76 | refine ⟨hf, ?_, ?_⟩ |
| 77 | · apply ContDiffAt.mul contDiffAt_const |
| 78 | exact Q.contDiff.contDiffAt.clm_apply contDiffAt_id |
| 79 | ext v |
| 80 | rw [iteratedFDeriv_two_apply, iteratedFDeriv_two_apply, he, Q.fderiv] |
| 81 | |
| 82 | lemma form_invertible [FiniteDimensional ℝ Y] (Q : Y →L[ℝ] Y →L[ℝ] ℝ) (hi : Injective Q) : |
| 83 | Q.IsInvertible := by |
| 84 | have hf : Module.finrank ℝ Y = Module.finrank ℝ (Y →L[ℝ] ℝ) := calc |
| 85 | _ = Module.finrank ℝ (Y →ₗ[ℝ] ℝ) := Subspace.dual_finrank_eq.symm |
| 86 | _ = _ := LinearMap.toContinuousLinearMap.finrank_eq |
| 87 | have hs := (LinearMap.injective_iff_surjective_of_finrank_eq_finrank hf).mp |
| 88 | (show Injective Q.toLinearMap from hi) |
| 89 | exact ⟨(LinearEquiv.ofBijective Q.toLinearMap ⟨hi, hs⟩).toContinuousLinearEquiv, rfl⟩ |
| 90 | |
| 91 | end YM.Work.F04 |