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.TraceExtension.Perfect.Pace |
| 2 | set_option autoImplicit false |
| 3 | noncomputable section |
| 4 | namespace YM.Trace.Perfect |
| 5 | open Function Filter Matrix Lattice Precision Laurent Stationary Bloch Exterior Tree RG Wilson Finset Push.Uniform |
| 6 | open scoped BigOperators Topology ContDiff Matrix.Norms.Frobenius Classical |
| 7 | variable {G:Gauge}{f:Side} |
| 8 | def topF : Peat G f →ₗ[ℝ] (Acr G f→ℝ) := |
| 9 | {toFun:=ballX, map_add':=fun _ _=>rfl,map_smul':=fun _ _=>rfl} |
| 10 | def follic : Gal G f→ₗ[ℝ] (Acr G f→ℝ) := |
| 11 | {toFun:=bottom, map_add':=fun _ _=>funext fun i=>add_dotProduct .., map_smul':=fun u x=>funext fun i=>smul_dotProduct u (x (input G f (bite G _ i).1)) _} |
| 12 | variable {I:Type}[Fintype I][DecidableEq I] |
| 13 | lemma cell_fee (A:I→ℕ)(α:ℝ)(V:Rays I→ℝ)(k:ℕ)(q:ℝ)(h:ContDiffAt ℝ ω V 0): cost A α 4 0 (leaf (q • V) 0 k) = |q| * cost A α 4 0 (leaf V 0 k):=by |
| 14 | unfold cost leaf bank; rw [iteratedFDeriv_const_smul_apply]; swap; · exact h.of_le le_top |
| 15 | simp only [_root_.smul_apply,norm_smul, Real.norm_eq_abs, mul_left_comm |q|, Finset.mul_sum] |
| 16 | variable {V:Type} {F:Filter V}{n:V→Side} {d k:ℕ}{α D C:ℝ}{x:∀ i,Site (n i)} {fZ g:∀ i,Acr G (n i)→ℝ} |
| 17 | structure Ear (F:Filter V) (x:∀ i, Site (n i))(f:∀ i,Acr G (n i)→ℝ)(α:ℝ)(k:ℕ)(C:ℝ): Prop where |
| 18 | h(w): ContDiffAt ℝ ω (f w) 0 |
| 19 | fee: earns F (fun w=>cost (landW (x w)) α 4 0 (leaf (f w) 0 k)) C |
| 20 | namespace Ear |
| 21 | lemma plus (hx:Ear F x fZ α k C)(h:Ear F x g α k D): Ear F x (fun w=> fZ w+g w) α k (C+D):=by |
| 22 | refine ⟨fun w=> (hx.h w).add (h.h w),(hx.fee.add h.fee).tighten (Eventually.of_forall fun i=>?_)⟩ |
| 23 | unfold leaf; rw [iteratedFDeriv_add_apply ((hx.h i).of_le le_top) ((h.h i).of_le le_top)]; exact cost_add .. |
| 24 | lemma grind (p:ℝ)(h:Ear F x fZ α k C): Ear F x (fun w=>p • fZ w) α k (|p| *C):=⟨fun w=>(h.h w).const_smul p, (h.fee.unit (abs_nonneg p)).tighten (Eventually.of_forall fun w=>(cell_fee _ _ _ _ _ (h.h w)).le)⟩ |
| 25 | lemma except (hx:Ear F x fZ α k C)(h:Ear F x g α k D): Ear F x (fun w=>fZ w-g w) α k (C+D):=by |
| 26 | have ht:= hx.plus (h.grind (-1)); simp only[abs_neg,abs_one,one_mul,neg_one_smul,← sub_eq_add_neg] at ht; exact ht |
| 27 | lemma up (hp:Ear F x fZ α k C)(h:C≤D): Ear F x fZ α k D:=⟨hp.h,hp.fee.higher h⟩ |
| 28 | lemma empty (hp : 0 ≤ C): Ear F x (fun w=> (0 : Acr G (n w) →ℝ)) α k C:=by refine ⟨fun w=> contDiffAt_const,earns.eventually (Eventually.of_forall fun i=>?_)⟩; simp [cost,leaf,bank,hp] |
| 29 | lemma likewise (hp:Ear F x fZ α k C)(h:∀ w,fZ w=ᶠ[𝓝 0] g w): Ear F x g α k C:=by refine ⟨fun w=>(hp.h w).congr_of_eventuallyEq (h w).symm,hp.fee.tighten (Eventually.of_forall (fun w=>?_))⟩; unfold leaf; rw[(h w|>.iteratedFDeriv ℝ k).eq_of_nhds] |
| 30 | end Ear |
| 31 | structure Tip (F:Filter V) (x:∀ i, Site (n i))(f:∀ i,Acr G (n i)→ℝ)(P:Tit G→Tit G→ℝ)(d:ℕ):Prop where |
| 32 | h(w): ContDiffAt ℝ ω (f w) 0 |
| 33 | sees: Stoke F x f P d |
| 34 | namespace Tip |
| 35 | variable {P Q:Tit G→Tit G→ℝ} |
| 36 | lemma plus (hx:Tip F x fZ P d)(h:Tip F x g Q d): Tip F x (fun w=> fZ w+g w) (P+Q) d:=by |
| 37 | refine ⟨fun w=> (hx.h w).add (h.h w),⟨fun i j hi=> ((hx.sees.taste i j hi).add (h.sees.taste i j hi)).congr fun w=> ?_⟩⟩; rw [iteratedFDeriv_add_apply ((hx.h w).of_le le_top) ((h.h w).of_le le_top)]; rfl |
| 38 | lemma grind (p:ℝ)(h:Tip F x fZ P d): Tip F x (fun w=>p • fZ w) (p • P) d:=by |
| 39 | refine ⟨fun w=>(h.h w).const_smul p, ⟨fun i j hp=> ((h.sees.taste i j hp).const_mul p).congr fun w=>?_⟩⟩ |
| 40 | rw [iteratedFDeriv_const_smul_apply]; rfl; exact (h.h w).of_le le_top |
| 41 | lemma except (hx:Tip F x fZ P d)(h:Tip F x g Q d): Tip F x (fun w=>fZ w-g w) (P-Q) d:=by |
| 42 | have ht:= hx.plus (h.grind (-1)); simp only[neg_one_smul,← sub_eq_add_neg] at ht; exact ht |
| 43 | lemma empty (F:Filter V)(x:∀ i, Site (n i)) (d): Tip F x (fun w=>(0:Acr G (n w) →ℝ)) 0 d:=by refine ⟨fun _=>contDiffAt_const,⟨fun i j _=> tendsto_const_nhds.congr fun w=>?_⟩⟩; simp |
| 44 | lemma likewise (hp:Tip F x fZ P d)(h:∀ w,fZ w=ᶠ[𝓝 0] g w): Tip F x g P d:= by |
| 45 | refine ⟨fun w=>(hp.h w).congr_of_eventuallyEq (h w).symm,⟨fun i j hi=>(hp.sees.taste i j hi).congr (fun w=>?_)⟩⟩; rw[(h w|>.iteratedFDeriv ℝ 2).eq_of_nhds] |
| 46 | end Tip |
| 47 | lemma Sheaf.ear (X: Sheaf)(x:∀ w:V,Site (n w))(f:∀ w:V,Cover→Acr G (n w)→ℝ)(a:Cover)(p:ℕ)(H:∀ b:Cover,Laurent.size b ≤ Laurent.size a+p+X.radius→ Ear F x (fun w=> f w b) α k C): |
| 48 | Ear F x (fun w=>Sheaf.take (f w) X a) α k (X.debt*C):=by |
| 49 | induction X generalizing p f C a with |
| 50 | | stay=>rw [Sheaf.debt];simp only[Sheaf.take,zero_mul]; exact Ear.empty le_rfl |
| 51 | | mon z=> simpa only [Sheaf.take,Sheaf.debt,one_mul] using H _ ((size_add ..).trans (Nat.add_le_add_right (Nat.le_add_right (size a) p) (size z))) |
| 52 | | duo X Y v h=> rw[debt,add_mul]; simp only[take,Pi.add_apply]; exact (v f a p (fun w hp=> H w (le_trans hp (by simp only[radius];omega)))).plus (h f a p (fun w hp=> H w (le_trans hp (by simp only[radius];omega)))) |
| 53 | | scale c X ih=> rw[debt,mul_assoc]; simp only[take,Pi.smul_apply]; exact (ih f a p H).grind c |
| 54 | | mix X Y v h=> rw[debt,mul_assoc]; simp only[take]; refine v _ a p (fun w hp=> h f w 0 (fun i ht=> H i ?_)); unfold radius; omega |
| 55 | lemma Sheaf.top (X:Sheaf)(x:∀ w:V,Site (n w))(P:Tit G→Tit G→ℝ)(f:∀ w:V,Cover→Acr G (n w)→ℝ)(a:Cover)(H:∀ b:Cover, Tip F x (fun w=>f w b) P d): Tip F x (fun w=>Sheaf.take (f w) X a) (X.gold • P) d:=by |
| 56 | induction X generalizing P a f with |
| 57 | | stay=> simp only[take,gold,zero_smul]; exact Tip.empty .. |
| 58 | | mon v=>simpa only[take,gold,one_smul] using H (a+v) |
| 59 | | duo V W p h=>simp only[take,gold,add_smul]; exact (p P f a H).plus (h P f a H) |
| 60 | | scale c V h=>simp only[take,gold,mul_smul]; exact (h P f a H).grind c |
| 61 | | mix V W p h=>simp only[take,gold,mul_smul]; exact p _ _ _ (fun b=> h _ _ _ H) |
| 62 | end YM.Trace.Perfect |