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.MergeProof.Badlands |
| 2 | import YM.MergeProof.Platter |
| 3 | set_option autoImplicit false |
| 4 | noncomputable section |
| 5 | namespace YM.MergeProof |
| 6 | open Finset Function Filter Set MeasureTheory Lattice Wilson RG Source Labels Extra.Histories |
| 7 | open Planned.GuardedAtom Guard Push Local RelayDifference.Opening Next.Foundations |
| 8 | open scoped Topology Matrix.Norms.Frobenius BigOperators ContDiff Classical |
| 9 | variable {G:Gauge}{n:Side}{d:ℕ}{F:Labels.Frame G d}{o:Site n} |
| 10 | lemma zest (B : BudgetPoint) (X:Support n) {u t:ℝ}(hv:0 < t)(ht:0 ≤ u)(hc:X.card*t ≤1) : mergePrice B t X u ≤ Real.sqrt t*(2*(X.card:ℝ)*Real.sqrt t*B.mass X u):=by |
| 11 | have hp : 0 ≤ B.mass X u:=mul_nonneg (Real.exp_pos _).le ht |
| 12 | unfold Local.mergePrice; have hs := Real.abs_exp_sub_one_le (by rwa [abs_of_nonneg (show 0 ≤ X.card*t from mul_nonneg (Nat.cast_nonneg _) hv.le)]: |(X.card:ℝ)*t| ≤ 1); rw [abs_of_nonneg (show 0 ≤ X.card*t from mul_nonneg (Nat.cast_nonneg _) hv.le)] at hs |
| 13 | apply (mul_le_mul_of_nonneg_left ((le_abs_self _).trans hs) hp).trans_eq |
| 14 | have he:= Real.sq_sqrt hv.le; nth_rw 1 [← he]; ring |
| 15 | -- need ring |
| 16 | lemma platter (R:Rep G n)(S:Keeper R.p R.activities)(A:Hol G) (T:SectionData F){D:Support n}{f y p:Config G n→ℂ}{x:F.Coeff}{v δ σ C Λ r h:ℝ} (hp:R.Lawful σ C Λ δ v)(hv:0 < v) (ht:D.card*v≤1) |
| 17 | (hx: R.p.Regular D f)(hg:R.p.supBounds o D f r)(hu:f 1=0)(he:Nonwrapping D o→ A.PiVanish d o f)(hc:o∈D) |
| 18 | (hy:Attaches R.p.threshold D p)(hh:0 ≤ h)(ha:∀ U,‖p U‖≤h)(hq:∀ U, part T o R U x+masked R.p.threshold D f U+p U = y U): |
| 19 | ∃ P: Coefficient F n, P.x=x ∧ P.Format o A R ∧ (∀ U, P.density o T R U=(R.eval U:ℂ)*y U) ∧ |
| 20 | P.remBound o R (Real.sqrt v) (R.p.mass D r+ 2*(D.card:ℝ)*Real.sqrt v*R.p.mass D h) ∧ ∃ f',Attainment R.p o f' (reservedMass R.p D h) ∧ profile R.activities P.forced= hook R.activities R.p.threshold f' :=by |
| 21 | let X:Unit→Support n:=fun _=>D; let s:= mergePrice R.p v D h |
| 22 | obtain ⟨K,hK,hs,hf,hQ⟩:= garnish R hp (S.supply X) (t:=s) (f:=fun _:Unit=>p) (A:=fun _:Unit=>h) (fun _=>hc) (fun _=>hy) (fun _=>hh) (fun _=>ha) (show SumBudget (fun _:Unit=>s) s from ⟨fun _=>mergePrice_nonneg _ _ hv.le hh, Summable.of_finite,by rw [tsum_fintype,Fintype.sum_unique]⟩) Summable.of_finite -- edit |
| 23 | let P:= kickoff x D f K; have hy0:X ()=D:=rfl |
| 24 | refine ⟨P,rfl,?_,?_,?_,Pi.single D p,?_,?_⟩ |
| 25 | · refine ⟨?_,fun _=>hc,?_,?_,hK.forcing,hK.carried,hK.invariant,hK.supported,hK.borel⟩ |
| 26 | · intro i; change R.p.Regular D _; by_cases ht:i=0; rwa [show P.regular i=f by simp [P,kickoff,ht]]; rw [show P.regular i=0 by simp [P,kickoff,ht]]; simpa using regular_smul 0 hx |
| 27 | · intro i; by_cases h : i=0<;>simp [P,kickoff,h,hu] |
| 28 | intro l hw; by_cases H:l=0 |
| 29 | · rw [show P.regular l=f by simp [P,kickoff,H]]; exact he hw |
| 30 | rw [show P.regular l=0 by simp [P,kickoff,H]]; exact fun J => ⟨contDiffAt_const,fun k hk => by change iteratedDeriv k (0:ℝ→ℂ) 0 = 0; simp⟩ |
| 31 | · intro U; have hi: ∀ j,P.marked R j U=gasMark R.p R.activities U j K:=fun _=>(gasMark_eq ..).symm |
| 32 | have hg' (U): P.exponentialEntry o T R U=part T o R U x+ masked R.p.threshold D f U:= congr_arg _ (masks ..) |
| 33 | unfold Coefficient.density; rw [hg']; simp_rw [hi,(hQ U).tsum_eq]; rw [tsum_fintype,Fintype.sum_unique,← hq,Rep.eval, Complex.ofReal_mul]; ring_nf |
| 34 | · have hz:=zest R.p D hv hh ht; refine ⟨_,_,mul_nonneg (Real.exp_pos _).le hg.1,mul_nonneg (mul_nonneg (mul_nonneg zero_le_two (Nat.cast_nonneg _)) (Real.sqrt_nonneg _)) (mul_nonneg (Real.exp_pos _).le hh),le_rfl,Real.sqrt_pos.mpr hv,⟨fun j=> if j=0 then r else 0,?_,?_⟩,?_⟩ |
| 35 | · have hM := R.p.loMass D r hg.1; rw [show (fun i:ℕ=> R.p.mass (P.support i) (if i=0 then r else 0))=Pi.single 0 (R.p.mass D r) by funext i; by_cases h:i=0; subst i; simp [P,kickoff]; simp only [if_neg h,Pi.single_eq_of_ne h]; simp [BudgetPoint.mass]]; exact ⟨fun i=>by by_cases h:i=0; subst i; simpa using hg.1.trans hM; rw [Pi.single_eq_of_ne h], (hasSum_pi_single _ _).summable,by simp; rfl⟩ |
| 36 | · intro i; by_cases h:i=0; simpa [P,kickoff,h] using hg; simpa [P,kickoff,h] using bound_smul 0 hg |
| 37 | obtain ⟨b,hb,ht⟩:=hs; exact ⟨b,⟨hb.1,hb.2.1,hb.2.2.trans hz⟩,ht⟩ |
| 38 | · have ht (i):0 ≤ (Pi.single D h : Support n→ℝ) i:= by by_cases hx:i=D; subst i; simpa; rw [Pi.single_eq_of_ne hx] |
| 39 | refine ⟨fun i=>?_,fun i hp=>?_,Pi.single D h,⟨fun i=>mul_nonneg (Real.exp_pos _).le (ht i),Summable.of_finite,?_⟩, fun i=>⟨ht i,fun U=>?_⟩⟩ |
| 40 | · by_cases hx:i=D;subst i; rwa [Pi.single_eq_same]; rw [Pi.single_eq_of_ne hx]; exact Attaches.zero .. |
| 41 | · by_cases h:i=D; exact h.symm ▸ hc; exact (hp (Pi.single_eq_of_ne h _)).elim |
| 42 | · rw [tsum_fintype,sum_eq_single D,Pi.single_eq_same]; intro b _ hb; rw [Pi.single_eq_of_ne hb,reservedMass,mul_zero]; simp |
| 43 | by_cases hx:i=D; subst i; rw [Pi.single_eq_same,Pi.single_eq_same]; exact ha U |
| 44 | simp [Pi.single_eq_of_ne hx] |
| 45 | change profile R.activities K=_; rw [hf,show clipSum X (fun x=>p) = Pi.single D p from ?_] |
| 46 | funext i U; unfold clipSum; rw [expand_eq,tsum_fintype,Fintype.sum_unique];by_cases h:D=i; subst i; simp [X]; rw [if_neg (fun he=>h he),Pi.single_eq_of_ne (Ne.symm h)]; rfl |
| 47 | end YM.MergeProof |