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.Figure |
| 2 | |
| 3 | set_option autoImplicit false |
| 4 | noncomputable section |
| 5 | namespace YM.MergeProof.Accent |
| 6 | open Finset Function Filter Set MeasureTheory Lattice Wilson RG Push Marker Extra.Histories Ac |
| 7 | open scoped Topology Matrix.Norms.Frobenius BigOperators Classical ContDiff |
| 8 | variable {V I J Y : Type*}[DecidableEq V] {B:Census V} {G:Gauge}{n:Side} |
| 9 | open GridApprox.Nil Extra.Trajectories |
| 10 | variable (K:Box n → Config G n→Poly B)(u : J→Config G n→Poly B) (X:J→Support n) |
| 11 | variable (t:ℝ)(U:Config G n) |
| 12 | abbrev FlowKind (J:Type*) (n: Side):= Box n ⊕ J |
| 13 | def bloom (i:FlowKind J n): Support n:= i.elim Prod.fst X |
| 14 | def bread (i:FlowKind J n): Prop:= i.elim Sure (fun j=>(X j).Nonempty) |
| 15 | def flash (p:Finset (FlowKind J n)): Box n:= (p.biUnion (bloom X),p.toLeft.biUnion Prod.snd) |
| 16 | -- state all flag molecules |
| 17 | structure Sealed (p:Finset (FlowKind J n)): Prop where |
| 18 | spark: Spark (bloom X) p |
| 19 | life:p.toLeft.Nonempty |
| 20 | neat:(p.toLeft:Set (Box n)).PairwiseDisjoint Prod.fst |
| 21 | bulk:∀ i∈p,bread X i |
| 22 | -- classical decEq may clash. use local.* |
| 23 | variable [DecidableEq J] |
| 24 | abbrev Period := {p:Finset (FlowKind J n)// Sealed X p} |
| 25 | def forst (j:Period X):= flash X j.val |
| 26 | def pork : FlowKind J n→ Config G n→Poly B:= Sum.elim K u |
| 27 | def crow (i:Period X) (U:Config G n):Poly B:= let p:=forst X i; if p.1∩flags t U=p.2 then ∏ j∈i.val,pork K u j U else 0 |
| 28 | def paddle (p:Finset (FlowKind J n)):= grid (fun q=>K q U) (flags t U) p.toLeft * ∏ i ∈ p.toRight,u i U |
| 29 | def token (p:Finset (Period X)) := p.biUnion Subtype.val |
| 30 | omit [DecidableEq J] in |
| 31 | lemma moist (p: Period X): Sure (forst X p):=by |
| 32 | obtain ⟨i,hi⟩:=p.property.life |
| 33 | have he(i) (hi:i∈p.val.toLeft) : Sure i:= p.property.bulk _ (mem_toLeft.mp hi) |
| 34 | refine ⟨(he i hi).1.mono (Finset.subset_biUnion_of_mem Prod.snd hi),?_⟩ |
| 35 | intro i hi; obtain ⟨j,hj,hx⟩:= mem_biUnion.mp hi; exact mem_biUnion.mpr ⟨Sum.inl j,mem_toLeft.mp hj,(he j hj).2 hx⟩ |
| 36 | lemma net (p:Finset (Period X)): (token X p).toLeft.biUnion Prod.snd=p.biUnion fun i=> (forst X i).2:=by |
| 37 | ext x; constructor |
| 38 | · intro hx; obtain ⟨i,hi,hp⟩:= mem_biUnion.mp hx; obtain ⟨j,hj,he⟩:= mem_biUnion.mp (mem_toLeft.mp hi); exact mem_biUnion.mpr ⟨j,hj,mem_biUnion.mpr ⟨i,mem_toLeft.mpr he,hp⟩⟩ |
| 39 | intro hx; obtain ⟨j,hj,he⟩:= mem_biUnion.mp hx; obtain ⟨i,hi,hp⟩:= mem_biUnion.mp he; exact mem_biUnion.mpr ⟨i,mem_toLeft.mpr (mem_biUnion.mpr ⟨j,hj,mem_toLeft.mp hi⟩),hp⟩ |
| 40 | lemma separateR (p:Finset (Period X))(H:Packets.selected (forst X) (Pattern (flags t U)) p) : (p:Set _).PairwiseDisjoint (fun j:Period X=> (forst X j).1) ∧ (token X p).toLeft.biUnion Prod.snd= flags t U:=by |
| 41 | rw [net]; exact (marked_pattern (forst X) _ p (fun i _=> (moist X i).1.mono (moist X i).2)).1 H |
| 42 | lemma lined (p:Finset (Period X))(H:Packets.selected (forst X) (Pattern (flags t U)) p) : Pattern (flags t U) (token X p).toLeft:=by |
| 43 | obtain ⟨hp,hq⟩:=separateR X t U p H; refine ⟨fun i hi j hj he=> ?_,hq⟩ |
| 44 | obtain ⟨x,hx,hk⟩:= mem_biUnion.mp (mem_toLeft.mp hi); obtain ⟨y,hy,hr⟩:= mem_biUnion.mp (mem_toLeft.mp hj); by_cases h:x=y |
| 45 | · subst y; exact x.property.neat (mem_toLeft.mpr hk) (mem_toLeft.mpr hr) he |
| 46 | exact Finset.disjoint_left.mpr fun a ha hA=> disjoint_left.mp (hp hx hy h) (mem_biUnion.mpr ⟨_,hk,ha⟩) (mem_biUnion.mpr ⟨_,hr,hA⟩) |
| 47 | lemma strung (p:Finset (Period X))(H:Packets.selected (forst X) (Pattern (flags t U)) p): paddle K u t U (token X p)= ∏ i∈p,crow K u X t i U:=by |
| 48 | unfold paddle grid; rw [if_pos (lined X t U p H)]; refine (prod_sum_eq_prod_toLeft_mul_prod_toRight (s:=token X p) (f:=fun i=>pork K u i U)).symm.trans ?_ |
| 49 | have hp := (separateR X t U p H).1 |
| 50 | unfold token; rw [prod_biUnion]; refine prod_congr rfl fun i hi=> ?_; unfold crow; dsimp only; rw [if_pos ?_]; refine Finset.ext (fun j=>?_) -- equality flash flag |
| 51 | · rw [Finset.mem_inter,← (separateR X t U p H).2,net]; constructor |
| 52 | · rintro ⟨ht,h⟩; obtain ⟨k,hk,hh⟩:= mem_biUnion.mp h; by_cases hz:k=i; exact (show j∈ (forst X i).2 from hz ▸ (show j∈ (forst X k).2 from hh)); exact False.elim (Finset.disjoint_left.mp (hp hi hk (Ne.symm hz)) ht ((moist X k).2 hh)) |
| 53 | intro hx; exact ⟨(moist X i).2 hx, mem_biUnion.mpr ⟨i,hi,hx⟩⟩ |
| 54 | intro i hi j hj he; apply Finset.disjoint_left.mpr; intro q hq hm; have hv:(bloom X q).Nonempty:= by |
| 55 | have ht:= i.property.bulk q hq; cases q with |
| 56 | | inl q=> exact (show Sure q from ht).1.mono (show Sure q from ht).2 |
| 57 | | inr q=> exact ht |
| 58 | obtain ⟨x,hx⟩:=hv; exact disjoint_left.mp (hp hi hj he) (mem_biUnion.mpr ⟨q,hq,hx⟩) (mem_biUnion.mpr ⟨q,hm,hx⟩) |
| 59 | end YM.MergeProof.Accent |