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.Flax |
| 2 | import YM.MergeProof.Heap |
| 3 | |
| 4 | set_option autoImplicit false |
| 5 | noncomputable section |
| 6 | namespace YM.MergeProof.Menu |
| 7 | open Function Filter Lattice Wilson RG MeasureTheory Finset Push Local Extra.Histories PhysicalNext.Repeat Lotus Merge Merge.Palette Accent Marker |
| 8 | open Extra.Multi GridApprox.Nil |
| 9 | open scoped Topology Matrix.Norms.Frobenius BigOperators ContDiff Classical |
| 10 | variable {V ι β : Type}[DecidableEq V] {B:Census V} {G:Gauge}{f c:Side}{R:Rep G f}{E:Rep G c} |
| 11 | open Extra.Trajectories |
| 12 | variable [Fintype ι] [Fintype V](q:ι→ Hat B R)(U : Config G f) |
| 13 | -- sum expansions using logs including empty. more comps |
| 14 | local notation "ι'"=> Mound q |
| 15 | lemma faithful (k:Wing): rush q k U=∑ i∈ atKey q k,amount (q i) U:=by rw [rush,← Finset.sum_filter]; rfl |
| 16 | set_option maxHeartbeats 400000 in |
| 17 | lemma rolled_up (k:Wing): Poly.pass (rush q k U)=1+rush q k U+∑ j:Rock q k,amount (rise q k j.val) U:=by |
| 18 | rw [faithful]; let X:= atKey q k; let l(i):= amount (q i) U |
| 19 | have hv(i):l i=Poly.send (hatMode q i) ((↑((q i).M.ingredient U):ℂ)*(q i).charge):= varnish .. |
| 20 | let L(p:Finset ι):= ∏ i∈p,l i |
| 21 | have ht : Poly.pass (∑ i∈ X,l i)=∑ i∈ X.powerset,L i:=by unfold L; rw [← Finset.prod_one_add]; simp_rw [hv]; exact Extra.Trajectories.pass_sum X _ (fun i _=> (q i).shiny) _ |
| 22 | change Poly.pass (∑ i∈X,l i)=1+_+_ |
| 23 | rw [ht,← add_sum_erase _ _ (empty_mem_powerset X),show L ∅=1 from Finset.prod_empty,add_assoc]; refine congr_arg (1+·) ?_ |
| 24 | let d:= X.image (fun i=>({i}:Finset ι)); have hy:d⊆ X.powerset.erase ∅:= by intro i he; obtain ⟨i,hi,rfl⟩:= mem_image.mp he; exact mem_erase.mpr ⟨by simp,by simpa using hi⟩ |
| 25 | let A:= X.powerset.erase ∅; let S:=A\d |
| 26 | have hS(i:Finset ι):i∈ S↔ i⊆X ∧ 2≤ i.card:=by |
| 27 | rw [show i∈S↔ i∈ A∧ i∉d from mem_sdiff]; constructor |
| 28 | · rintro ⟨hp,h⟩; have hs:= mem_erase.mp hp; have hc:= card_pos.mpr (nonempty_iff_ne_empty.mpr hs.1); have ha:= mem_powerset.mp hs.2 |
| 29 | refine ⟨ha,?_⟩; by_contra hx; obtain ⟨j,hj⟩:=card_eq_one.mp (show i.card=1 from by omega); subst i; exact h (mem_image.mpr ⟨j,ha (mem_singleton_self _),rfl⟩) |
| 30 | rintro ⟨hx,hp⟩; refine ⟨mem_erase.mpr ⟨fun h=> by subst i; simp at hp,mem_powerset.mpr hx⟩,?_⟩ |
| 31 | intro he; obtain ⟨j,_,rfl⟩:= mem_image.mp he; simp at hp |
| 32 | change ∑ i∈A,L i = _; rw [← show (∑ i∈d,L i)+(∑ i∈S,L i)= ∑ i∈A,L i from (by rw [add_comm]; exact Finset.sum_sdiff hy)] -- sum_sdiff? edit |
| 33 | refine congr_arg₂ (·+·) ?_ ?_ |
| 34 | · unfold d; rw [Finset.sum_image (fun _ _ _ _ h=> Finset.singleton_inj.mp h)]; exact sum_congr rfl fun i _=> Finset.prod_singleton .. |
| 35 | simp_rw [flaunt]; symm; let e(i:Rock q k):=i.val.val; let R:=Rock q k |
| 36 | change ∑ i,L (e i)= _; have hu:Injective e:= Subtype.val_injective.comp Subtype.val_injective; rw [← Finset.sum_image hu.injOn] |
| 37 | apply Finset.sum_subset ?_ (fun i hi hh=> ?_) |
| 38 | · intro i hi; obtain ⟨j,_,rfl⟩:= mem_image.mp hi; exact (hS _).2 ⟨j.val.property.2.1,j.property⟩ |
| 39 | by_contra hn; unfold L at hn; simp_rw [hv] at hn |
| 40 | have ht := fits_of_tagged_prod _ hn; have hk := (hS i).1 hi |
| 41 | let v:Rock q k := ⟨⟨i,card_pos.mp (show 0 < i.card from by linarith only [hk.2]),hk.1,ht⟩,hk.2⟩; exact hh (mem_image.mpr ⟨v,mem_univ _,rfl⟩) |
| 42 | |
| 43 | lemma gold (k:logDeck q): 1+rush (heap q) (.logKey k.val) U=Poly.pass (rush q (.logKey k.val) U):=by |
| 44 | rw [rolled_up,add_assoc]; congr 1; unfold rush Mound |
| 45 | rw [Fintype.sum_sum_type]; refine congr_arg₂ (·+·) rfl ?_ |
| 46 | rw [Fintype.sum_sigma, sum_eq_single k] |
| 47 | · apply sum_congr rfl; intro i _; exact if_pos rfl |
| 48 | · intro i _ hi; exact sum_eq_zero fun j _=> if_neg fun h=> hi (Subtype.ext (Wing.logKey.inj h)) |
| 49 | simp |
| 50 | |
| 51 | def roll (U:Config G f): Poly B:=∑ i∈logDeck q,rush q (.logKey i) U |
| 52 | lemma golden : jets (heap q) U=Poly.pass (roll q U):=by |
| 53 | unfold jets roll; rw [logs_kept]; let X i:=1+rush (heap q) (.logKey i) U; let f i:= rush q (.logKey i) U |
| 54 | have he(p:Finset ℕ) (hx:p⊆ logDeck q): ∏ i∈p,X i=Poly.pass (∑ i∈p,f i):=by |
| 55 | induction p using Finset.induction with |
| 56 | | empty => simp |
| 57 | | insert i p hi ih=> rw [sum_insert hi,Finset.prod_insert hi,show X i=Poly.pass (f i) from gold q U ⟨i,hx (mem_insert_self ..)⟩,Extra.Trajectories.pass_add (by unfold f; rw [still]) (by unfold f; simp [Poly.part_sum,still q _ U]),ih ((subset_insert ..).trans hx)] |
| 58 | exact he _ (Finset.Subset.refl _) |
| 59 | end YM.MergeProof.Menu |