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.Stool |
| 2 | set_option autoImplicit false |
| 3 | noncomputable section |
| 4 | namespace YM.MergeProof.Accent |
| 5 | open Finset Function Filter Set MeasureTheory Lattice Wilson RG Push Marker Extra.Histories Ac |
| 6 | open scoped Topology Matrix.Norms.Frobenius BigOperators Classical ContDiff |
| 7 | variable {V I J Y : Type*}[DecidableEq V] {B:Census V} {G:Gauge}{n:Side} |
| 8 | open GridApprox.Nil Extra.Trajectories |
| 9 | variable (K:Box n → Config G n→Poly B)(u : J→Config G n→Poly B) (X:J→Support n) |
| 10 | variable (t:ℝ)(U:Config G n) |
| 11 | variable [DecidableEq J] |
| 12 | lemma turnout (p:Finset (Period X))(H:Packets.selected (forst X) (Pattern (flags t U)) p) : Parts (bloom X) (token X p)=p.image Subtype.val:=by |
| 13 | unfold token; rw [← show (p.image Subtype.val).biUnion id=p.biUnion Subtype.val by rw [image_biUnion]; rfl] |
| 14 | refine Ac.separates (bloom X) _ (fun i h=> ?_) (fun A ha B hB he => ?_) |
| 15 | · obtain ⟨i,_,rfl⟩:=mem_image.mp h; exact i.property.spark |
| 16 | obtain ⟨x,hx,rfl⟩:= mem_image.mp ha; obtain ⟨y,hy,rfl⟩:= mem_image.mp hB; exact (separateR X t U p H).1 hx hy fun hh=> he (congr_arg _ hh) |
| 17 | variable (hv:∀ i,K i U≠0 → Sure i) (hr:∀ i,u i U≠0→¬ Healthy t (X i) U) |
| 18 | include hv hr |
| 19 | lemma recoil (p:Finset (FlowKind J n)) (hp:paddle K u t U p≠0) :∃ j:Finset (Period X),Packets.selected (forst X) (Pattern (flags t U)) j ∧ token X j=p:=by |
| 20 | let q:= Parts (bloom X) p |
| 21 | have h := left_ne_zero_of_mul hp; unfold grid at h; split at h; swap; · contradiction |
| 22 | rename_i he |
| 23 | have hl(z : Box n)(hz:z∈p.toLeft) : Sure z:= hv z (fun hh=> h (prod_eq_zero hz hh)) |
| 24 | have hd(i:J)(hi:i∈p.toRight) : ¬ Healthy t (X i) U:= hr i (fun hh=> right_ne_zero_of_mul hp (prod_eq_zero hi hh)) |
| 25 | have hs (i:Finset _)(hh:i∈q) : Sealed X i:=by |
| 26 | obtain ⟨hy,ha⟩:= Ac.lives (bloom X) p hh |
| 27 | refine ⟨ha,?_,he.1.subset (coe_subset.mpr (toLeft_subset_toLeft hy)),?_⟩ |
| 28 | · obtain ⟨j,hj⟩:= ha.1; cases j with |
| 29 | | inl j=> exact ⟨j,mem_toLeft.mpr hj⟩ |
| 30 | | inr j=> |
| 31 | obtain ⟨x,hx,hf⟩:= Finset.not_disjoint_iff.mp (hd j (mem_toRight.mpr (hy hj))); rw [← he.2] at hf; obtain ⟨i,hi,hI⟩:=mem_biUnion.mp hf |
| 32 | have hu:=mem_toLeft.mp hi; have ht: bonds (bloom X) p (.inr j) (.inl i):=⟨hy hj,hu,x,hx,(hl i hi).2 hI⟩ |
| 33 | exact ⟨i,mem_toLeft.mpr ((Ac.contains _ hh _ hj) ▸ ((Ac.bright _ _ _).2 ⟨hu,.single ht⟩))⟩ |
| 34 | rintro (j|j) hj; exact hl _ (mem_toLeft.mpr (hy hj)); obtain ⟨x,hx,-⟩:=Finset.not_disjoint_iff.mp (hd j (mem_toRight.mpr (hy hj))); exact ⟨x,hx⟩ |
| 35 | let j:= q.subtype (fun i=> Sealed X i); have hx:j.image Subtype.val=q:=by ext i; constructor; intro hi; obtain ⟨j,hj,rfl⟩:=mem_image.mp hi; exact mem_subtype.mp hj; intro hi; exact mem_image.mpr ⟨⟨i,hs i hi⟩, mem_subtype.mpr hi,rfl⟩ -- parser |
| 36 | have hr : token X j=p:=by rw [token,← show (j.image Subtype.val).biUnion id=j.biUnion Subtype.val by rw [image_biUnion]; rfl, hx]; exact reconstruct .. |
| 37 | refine ⟨j,(marked_pattern (forst X) _ _ (fun i _=> (moist X i).1.mono (moist X i).2)).2 ⟨fun i hi k hk hℓ=> ?_,?_⟩,hr⟩ |
| 38 | · exact Ac.separate (bloom X) p (mem_subtype.mp hi) (mem_subtype.mp hk) (fun e=> hℓ (Subtype.ext e)) |
| 39 | exact (net X j|>.symm).trans ((congr_arg (fun p:Finset (FlowKind J n)=>p.toLeft.biUnion Prod.snd) hr).trans he.2) |
| 40 | lemma allpoint : let Z(p):= Packets.value (forst X) (Pattern (flags t U)) (fun i=>crow K u X t i U) p; let W:= paddle K u t U |
| 41 | ∑' p,Z p=∑' p,W p:=by |
| 42 | intro Y W |
| 43 | have hh (i : Function.support Y): Packets.selected (forst X) (Pattern (flags t U)) i.val := Classical.byContradiction (fun h=> i.property (if_neg h)) |
| 44 | have hu i (h:Packets.selected (forst X) (Pattern (flags t U)) i): W (token X i)=Y i:=(strung K u X t U i h).trans (if_pos h).symm |
| 45 | let f (i : Function.support Y) : Function.support W:=⟨token X i.val,fun h=>i.property ((hu i.val (hh i)).symm.trans h)⟩ |
| 46 | have hp : Bijective f:=by |
| 47 | refine ⟨fun i j he=>Subtype.ext (Finset.image_injective Subtype.val_injective ((turnout X t U i.val (hh i)).symm.trans ((congr_arg (fun i: Function.support W=> Parts (bloom X) i.val) he).trans (turnout X t U j.val (hh j))))),fun j=>?_⟩ |
| 48 | obtain ⟨i,h,H⟩:= recoil K u X t U hv hr j.val j.property; exact ⟨⟨i,fun e=> j.property ((show W j.val=W (token X i) from congr_arg W H.symm).trans ((hu i h).trans e))⟩,Subtype.ext H⟩ |
| 49 | let e:= Equiv.ofBijective f hp |
| 50 | rw [← tsum_subtype_eq_of_support_subset (s:=Function.support Y) (f:=Y) Subset.rfl,← tsum_subtype_eq_of_support_subset (s:=Function.support W) (f:=W) Subset.rfl,← e.tsum_eq]; exact tsum_congr fun i=>(hu i.val (hh i)).symm |
| 51 | end YM.MergeProof.Accent |