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.Pills.Knick |
| 2 | set_option autoImplicit false |
| 3 | noncomputable section |
| 4 | namespace YM.Trace.Pills |
| 5 | open Function Filter Matrix Lattice Pressure Ac Wilson RG Precision Laurent Stationary Perfect Exterior Tree RG Wilson Finset Push.Uniform Det Planned.PrimaryIntegral295 Lamp |
| 6 | open Filch Turret Shepherd AnalyticBridge VerifiedReset Drupes Extra.Iteration SectorAffine Fen Kits |
| 7 | open scoped BigOperators Topology ContDiff Matrix.Norms.Frobenius Classical |
| 8 | variable {G:Gauge}{n:Side}{I : Type} |
| 9 | abbrev Flop := Fin 2→ PlaqAxes |
| 10 | variable (L:Finset I)(P:I→Wo G) (h:∀ i∈L,(P i).Invariant) |
| 11 | def strum (a:Flop)(b:Cards G) :=∑ i∈ L,charge (P i) a b |
| 12 | def thud(a:Flop) (x:Axis)(b:Cards G):= ∑ i∈L,charge (P i) a b*delta (P i) x |
| 13 | def tint (a:Flop)(p:Cover)(c: Cards G→ℝ): Wo G:=⟨![Extra.Iteration.slot 0 (a 0),Extra.Iteration.slot p (a 1)],c⟩ |
| 14 | lemma tint_k (a:Flop)(p:Cover)(c: Cards G→ℝ): delta (tint a p c)=p ∧ (fun k=>((tint a p c).leg k).plaq)=a:=⟨by simp [delta,tint],by funext k;fin_cases k<;>simp[tint]⟩ |
| 15 | abbrev Colour := Flop × Option Axis |
| 16 | def ink : Colour→Wo G := fun i=>match i.2 with |
| 17 | | none=> tint i.1 0 (-strum L P i.1 + ∑ x:Axis, thud L P i.1 x) |
| 18 | | some x=>tint i.1 (step x) (-thud L P i.1 x) |
| 19 | def shade:= (P ⊕ᵥ ink L P) |
| 20 | def swat (L:Finset I):= L.disjSum (univ:Finset Colour) |
| 21 | lemma paint_ch (a q:Flop)(p:Cover)(c b): charge (tint a p c) q (b:Cards G)= if a=q then c b else 0:=by rw[charge,(tint_k ..).2]; rfl |
| 22 | private lemma note_h (i:Flop)(a:Option Axis) (b v) : charge (ink L P (b,a)) i v = if b=i then match a with|none=> -(strum L P b v)+(∑ x:Axis,thud L P b x v)|some x=>-thud L P b x v else 0:=by |
| 23 | unfold ink; cases a <;> dsimp only <;> rw [paint_ch] <;> split_ifs <;> try rfl |
| 24 | private lemma tools (i:Flop)(a:Option Axis): delta (ink L P (i,a))=match a with|none=>0|some x=>step x:=by cases a <;> exact (tint_k ..).1 |
| 25 | lemma valid : hush (swat L) (shade L P):=by |
| 26 | intro a v |
| 27 | constructor |
| 28 | · change (∑ i∈swat L,charge _ _ _)=0; rw [swat,sum_disjSum] |
| 29 | change strum L P a v+(∑ i:Colour, charge _ _ _)=_ |
| 30 | rw [Fintype.sum_prod_type,sum_eq_single a]; rotate_left |
| 31 | · intro x _ hp; simp [shade,note_h,hp] |
| 32 | · simp |
| 33 | simp only[shade,Sum.elim_inr,note_h,if_true,eq_self]; rw [Fintype.sum_option]; simp only[sum_neg_distrib]; abel |
| 34 | intro x; rw[swat,sum_disjSum]; change thud L P a x v+(∑ i:Colour,charge (ink L P i) a v * (delta (ink L P i) x:ℝ))=_ |
| 35 | rw [Fintype.sum_prod_type,sum_eq_single a]; rotate_left |
| 36 | · intro x _ he; simp [note_h,he] |
| 37 | · simp |
| 38 | rw [Fintype.sum_option]; simp only [note_h,tools,if_true]; simp[step_apply,mul_ite] |
| 39 | -- invariance of successive label. arbitrary coefficients at finite roots. |
| 40 | private def clo(G:Gauge):Submodule ℝ (Cards G→ℝ) where |
| 41 | carrier:= setOf fun F=>∀ u:G.El,∀ X:Fin 2→ G.Color, ∑ b:Cards G,F b * (∏ k,(G.adjoint u (X k)) (b k)) = ∑ b:Cards G,F b*(∏ k,X k (b k)) |
| 42 | zero_mem':=by simp |
| 43 | add_mem':=by |
| 44 | intro F H hp hv u X; simp only[Pi.add_apply, add_mul,Finset.sum_add_distrib]; exact congr_arg₂ _ (hp u X) (hv u X) |
| 45 | smul_mem':=by intro c F h u X; simp only[Pi.smul_apply,smul_eq_mul,mul_assoc,← Finset.mul_sum,h u X] |
| 46 | include h |
| 47 | lemma pristine (c:Colour): (ink L P c).Invariant:=by |
| 48 | rcases c with ⟨c,a⟩ |
| 49 | have hv(i)(hi:i∈L) : charge (P i) c ∈ clo G:=by |
| 50 | by_cases hx:(fun k=> ((P i).leg k).plaq)=c |
| 51 | · rw[show charge (P i) c=(P i).coeff from funext fun _=> if_pos hx]; exact h i hi |
| 52 | rw [show charge (P i) c=0 from funext fun _=> if_neg hx]; exact (clo G).zero_mem |
| 53 | have hh (x:Axis): thud L P c x ∈ clo G:=by |
| 54 | rw[show thud L P c x=(∑ i∈L, (↑(delta (P i) x):ℝ) • charge (P i) c) from funext (fun i=>by unfold thud; rw[Finset.sum_apply]; exact sum_congr rfl fun _ _=>mul_comm ..)] |
| 55 | exact (clo G).sum_mem fun i hi=> (clo G).smul_mem _ (hv _ hi) |
| 56 | cases a with |
| 57 | | none=> |
| 58 | change -strum L P c +∑ x:Axis,thud L P c x∈clo G; refine (clo G).add_mem ((clo G).neg_mem ?_) ((clo G).sum_mem (fun i _=>hh i)); rw [show strum L P c=∑ i∈ L,charge (P i) c from funext fun x=>(Finset.sum_apply ..).symm]; exact (clo G).sum_mem hv |
| 59 | | some x=> exact (clo G).neg_mem (hh x) |
| 60 | omit h |
| 61 | lemma ink_length(c:Colour): (ink L P c).length ≤ 10:=by |
| 62 | have hp(a:Flop)(b:Cover)(v:Cards G→ℝ): (tint a b v).length= 8+ size b:=by simp [Atom.length,tint,Laurent.size,Fin.sum_univ_two]; omega |
| 63 | rcases c with ⟨q,v⟩; unfold ink; cases v |
| 64 | · simp [hp,Laurent.size] |
| 65 | rename_i x; simp[hp, show Laurent.size (step x) =1 from step_size (posDir x)] |
| 66 | end YM.Trace.Pills |