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.Space.Configurations |
| 2 | import Mathlib.Analysis.Distribution.TestFunction |
| 3 | import Mathlib.Analysis.Distribution.SchwartzSpace.Basic |
| 4 | import Mathlib.Analysis.Distribution.AEEqOfIntegralContDiff |
| 5 | |
| 6 | /-! |
| 7 | # Test against *all* compact smooth separated tests |
| 8 | |
| 9 | Ambient `TestFunction` on `conf`, Lebesgue on Points n. Boundary uses joint Schwartz maps instead. |
| 10 | -/ |
| 11 | set_option autoImplicit false |
| 12 | noncomputable section |
| 13 | namespace YM |
| 14 | open MeasureTheory Set Function TopologicalSpace Filter |
| 15 | open scoped Topology ContDiff |
| 16 | |
| 17 | def patch (n : ℕ) : Opens (Points n) := ⟨conf n,conf_open _⟩ |
| 18 | abbrev Test (n : ℕ) := TestFunction (patch n) ℂ ⊤ |
| 19 | abbrev RealTest (n : ℕ) := TestFunction (patch n) ℝ ⊤ |
| 20 | |
| 21 | namespace Test |
| 22 | variable {n : ℕ} |
| 23 | |
| 24 | @[simp] theorem vanishes (f : Test n) {x : Points n} (h : x ∉ conf n) : f x = 0 := |
| 25 | by_contra fun w => h (f.tsupport_subset (subset_closure w)) |
| 26 | |
| 27 | /-- Complex linear convention (not sesquilinear). -/ |
| 28 | def applyTo (f : Test n) (K : Points n → ℂ) := ∫ x : Points n, f x * K x |
| 29 | |
| 30 | theorem smearing (f : Test n) {K} (H : ContinuousOn K (conf n)) : |
| 31 | Integrable (fun x => f x * K x) := by |
| 32 | have hu : HasCompactSupport ((f : Points n → ℂ) * K) := HasCompactSupport.mul_right f.hasCompactSupport |
| 33 | refine Continuous.integrable_of_hasCompactSupport ?_ hu |
| 34 | refine continuous_iff_continuousAt.mpr fun x => ?_ |
| 35 | by_cases h : x ∈ conf n |
| 36 | · exact f.continuous.continuousAt.mul ((H x h).continuousAt ((conf_open _).mem_nhds h)) |
| 37 | have he : ∀ᶠ y in 𝓝 x, y ∉ tsupport f := isOpen_compl_iff.mpr (isClosed_tsupport _) |
| 38 | |>.mem_nhds (show x ∈ (tsupport f)ᶜ from fun w => h (f.tsupport_subset w)) |
| 39 | refine continuousAt_const.congr (?_ : (fun _ => (0:ℂ)) =ᶠ[𝓝 x] fun a => f a*K a) |
| 40 | filter_upwards [he] with y hy |
| 41 | rw [show f y = 0 from by_contra fun w ↦ hy (subset_closure w), zero_mul] |
| 42 | |
| 43 | theorem schwartz (f : Test n) : ∃ g : SchwartzMap (Points n) ℂ, (f : Points n → ℂ) = g := |
| 44 | ⟨HasCompactSupport.toSchwartzMap f.hasCompactSupport f.contDiff,rfl⟩ |
| 45 | |
| 46 | theorem apply_eq (f : Test n) {K P} (H : EqOn K P (conf n)) : f.applyTo K = f.applyTo P := by |
| 47 | refine integral_congr_ae (Eventually.of_forall fun x => ?_) |
| 48 | by_cases hx : x ∈ conf n |
| 49 | · exact congr_arg (fun y => f x * y) (H hx) |
| 50 | simp [hx] |
| 51 | |
| 52 | /-- Null via all such tests equals null at separated points for continuous kernels. -/ |
| 53 | theorem weak_null {K : Points n → ℂ} (HK : ContinuousOn K (conf n)) : |
| 54 | (∀ f : Test n, f.applyTo K = 0) ↔ EqOn K 0 (conf n) := by |
| 55 | constructor |
| 56 | · intro h |
| 57 | have he := (conf_open _).ae_eq_zero_of_integral_contDiff_smul_eq_zero (μ := volume) |
| 58 | (HK.locallyIntegrableOn (conf_open _).measurableSet) (fun g hg hg' H => ?_) |
| 59 | · exact Measure.eqOn_open_of_ae_eq ((ae_restrict_iff' (conf_open _).measurableSet).mpr he) |
| 60 | (conf_open _) HK continuousOn_const |
| 61 | let f : Points n → ℂ := Complex.ofRealCLM ∘ g |
| 62 | have hu : tsupport f = tsupport g := by |
| 63 | unfold tsupport |
| 64 | rw [show support f = support g by ext; simp [f]] |
| 65 | let p : Test n := ⟨f, Complex.ofRealCLM.contDiff.comp hg, |
| 66 | by rw [HasCompactSupport, hu]; exact hg', hu ▸ H⟩ |
| 67 | rw [← h p]; apply integral_congr_ae |
| 68 | exact Eventually.of_forall fun x => Complex.real_smul |
| 69 | intro H f; rw [apply_eq f H]; simp [applyTo] |
| 70 | |
| 71 | /-- Equality on compact smooth separated tests already determines continuous kernels. -/ |
| 72 | theorem unique_kernel {K P : Points n → ℂ} (hK : ContinuousOn K (conf n)) (hP : ContinuousOn P (conf n)) : |
| 73 | (∀ f : Test n, f.applyTo K = f.applyTo P) ↔ EqOn K P (conf n) := by |
| 74 | constructor |
| 75 | · intro H |
| 76 | have h : EqOn (K-P) 0 (conf n) := (weak_null (hK.sub hP)).1 fun f => by |
| 77 | unfold applyTo; simp_rw [Pi.sub_apply, mul_sub]; rw [integral_sub (f.smearing hK) (f.smearing hP)] |
| 78 | exact sub_eq_zero.mpr (H f) |
| 79 | exact fun _ hx => sub_eq_zero.mp (h hx) |
| 80 | exact fun h f => apply_eq f h |
| 81 | end Test |
| 82 | end YM |