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.Flair |
| 2 | import YM.MergeProof.Stool |
| 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 (X:J→Support n) |
| 11 | -- with no leaves |
| 12 | lemma silent_gate (p:Finset (Box n)): Sealed X (p.disjSum ∅) ↔ ∃ i,p={i} ∧ Sure i:=by |
| 13 | let w(i:Box n):FlowKind J n := .inl i; let R:= p.disjSum (∅:Finset J); have he:R.toLeft=p:= toLeft_disjSum ..; have hf:R.toRight=∅:=toRight_disjSum .. |
| 14 | constructor |
| 15 | · intro h;change Sealed X R at h |
| 16 | obtain ⟨i,hi⟩:= h.life; refine ⟨i,?_, h.bulk (w i) (mem_toLeft.mp hi)⟩ |
| 17 | have hu j (hp:chain (bloom X) R (w i) j): w i=j:=by |
| 18 | induction hp with |
| 19 | | refl=>rfl |
| 20 | | tail _ hk ih=> |
| 21 | rw [← ih] at hk; obtain ⟨hx,hm,y,hq,hh⟩:=hk; rename_i j' _ -- edit |
| 22 | first|skip |
| 23 | cases j' with |
| 24 | | inl j => |
| 25 | by_cases he:i=j; exact congr_arg w he; exact False.elim (Finset.disjoint_left.mp (h.neat hi (mem_toLeft.mpr hm) he) hq hh) |
| 26 | | inr j=> exact False.elim (Finset.notMem_empty j (hf ▸ mem_toRight.mpr hm)) |
| 27 | ext j; rw [← he,Finset.mem_singleton]; exact ⟨fun hx => (Sum.inl.inj (hu (w j) (h.spark.2 _ (mem_toLeft.mp hi) _ (mem_toLeft.mp hx)))).symm,fun hh=> hh.symm ▸ hi⟩ |
| 28 | rintro ⟨i,hx,h⟩; rw [hx,show disjSum ({i}:Finset _) (∅:Finset J)={w i} from ?_]; |
| 29 | · have he : ({w i}:Finset _).toLeft={i}:=by ext x; unfold w; rw [mem_toLeft,Finset.mem_singleton,Finset.mem_singleton,Sum.inl.injEq] |
| 30 | refine ⟨⟨Finset.singleton_nonempty _,fun j hj k hk=>?_⟩,he.symm ▸ Finset.singleton_nonempty i,by rw [he]; simp,fun j hj=> (Finset.mem_singleton.mp hj).symm ▸ h⟩ |
| 31 | rw [Finset.mem_singleton.mp hj,Finset.mem_singleton.mp hk]; exact Relation.ReflTransGen.refl |
| 32 | ext a; cases a<;> simp [w] |
| 33 | |
| 34 | lemma street (j:J)(p:Finset (Box n)): Sealed X (p.disjSum {j})↔ Stars (X j) p:=by |
| 35 | let s:= p.disjSum ({j}:Finset J); let k (i:Box n):FlowKind J n:= .inl i; let x:FlowKind J n:= Sum.inr j |
| 36 | have h:s.toLeft=p:= toLeft_disjSum ..; have he:s.toRight={j}:= toRight_disjSum ..; have hx:x∈ s:= mem_toRight.mp (he.symm ▸ mem_singleton_self j) |
| 37 | change Sealed X s↔ _ |
| 38 | constructor |
| 39 | · intro hp; refine ⟨fun i hi=> hp.bulk (.inl i) (mem_toLeft.mp (h.symm ▸ hi)),h ▸ hp.life,?_,fun i hi=>?_⟩ |
| 40 | · rw [← h]; exact hp.neat |
| 41 | -- excise x. Pack on leaves force singles. |
| 42 | let e:= s.erase x; have ht(k':FlowKind J n)(hz:k'∈e):∃ i∈s.toLeft,k'=k i:=by |
| 43 | obtain ⟨hi,hh⟩:=mem_erase.mp hz; cases k' with |
| 44 | | inl i=>exact ⟨i,mem_toLeft.mpr hh,rfl⟩ |
| 45 | | inr i=> have hs:i=j:= by have hv:= mem_toRight.mpr hh; rw [he] at hv; exact Finset.mem_singleton.mp hv |
| 46 | exact False.elim (hi (congr_arg Sum.inr hs)) |
| 47 | have hk : k i∈e:= mem_erase.mpr ⟨Sum.inl_ne_inr,mem_toLeft.mp (h.symm ▸ hi)⟩ |
| 48 | obtain ⟨a,ha,hb,hc⟩:= excise _ hp.spark hx (k i) hk |
| 49 | have hu{b c}(hh:chain (bloom X) e b c): b=c:=by |
| 50 | induction hh with |
| 51 | | refl=>rfl |
| 52 | | tail _ hh ih=> |
| 53 | obtain ⟨i,hi,h1⟩:= ht _ hh.1; obtain ⟨j,hj,h2⟩:= ht _ hh.2.1; rw [h1,h2] at hh; obtain ⟨_,_,y,hb,hc⟩:=hh; have he:i=j:= of_not_not (fun h=> Finset.disjoint_left.mp (hp.neat hi hj h) hb hc); exact ih.trans (h1.trans ((congr_arg k he).trans h2.symm)) |
| 54 | rw [hu hc] at hb; exact Finset.not_disjoint_iff.mpr hb |
| 55 | intro hp |
| 56 | have ha(i)(hi:i∈s) : chain (bloom X) s x i:=by |
| 57 | cases i with |
| 58 | | inl i=> exact .single ⟨hx,hi,Finset.not_disjoint_iff.mp (hp.meets i (h ▸ mem_toLeft.mpr hi))⟩ |
| 59 | | inr i=> |
| 60 | have hh:i=j:= by have hv:=mem_toRight.mpr hi; rw [he] at hv; exact Finset.mem_singleton.mp hv |
| 61 | subst i; exact Relation.ReflTransGen.refl |
| 62 | refine ⟨⟨⟨x,hx⟩,fun i hi j hj=> Relation.ReflTransGen.trans (swaps _ (ha i hi)) (ha j hj)⟩,h.symm ▸ hp.cash,?_,?_⟩ |
| 63 | · rw [h]; exact hp.safe |
| 64 | rintro (i|i) hi; exact hp.shines i (h ▸ mem_toLeft.mpr hi) |
| 65 | have hs:i=j:= by have hv:=mem_toRight.mpr hi; rw [he] at hv; exact Finset.mem_singleton.mp hv |
| 66 | obtain ⟨u,hu⟩:=hp.cash; obtain ⟨y,hy,-⟩:=Finset.not_disjoint_iff.mp (hp.meets u hu); subst i; exact ⟨y,hy⟩ |
| 67 | lemma stepR (j:J)(p:Finset (Box n)): flash X (p.disjSum {j})= cluster (X j) p:=by |
| 68 | apply Prod.ext |
| 69 | · ext y; change y∈ Finset.biUnion (p.disjSum {j}) _ ↔ y∈ _∪ p.biUnion Prod.fst |
| 70 | rw [Finset.mem_biUnion,Finset.mem_union]; constructor |
| 71 | · rintro ⟨i,hi,ht⟩; rcases i with i|i |
| 72 | · exact Or.inr (mem_biUnion.mpr ⟨i,(by simpa using hi),ht⟩) |
| 73 | have hg : i=j:= by simpa using hi |
| 74 | subst i; exact Or.inl ht |
| 75 | rintro (hi|hi); exact ⟨.inr j,by simp,hi⟩ |
| 76 | obtain ⟨i,hi,hh⟩:= mem_biUnion.mp hi; exact ⟨.inl i,by simpa using hi,hh⟩ |
| 77 | change (p.disjSum {j}).toLeft.biUnion Prod.snd=p.biUnion Prod.snd; simp |
| 78 | lemma stepL (i:Box n):flash X (({i}:Finset _).disjSum ∅)=i:=by unfold flash; rw [toLeft_disjSum,show disjSum ({i}:Finset _) (∅:Finset J)={Sum.inl i} from (by ext j; rcases j with i|i<;> simp)]; simp [bloom] -- edit |
| 79 | end YM.MergeProof.Accent |