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.PhysicalNext.ACTUAL_SECTOR_FACTOR_DICTIONARY.Eclipse |
| 2 | |
| 3 | /-! |
| 4 | # Syntax for carrying goods into Tryouts |
| 5 | |
| 6 | Not separate choices of `R`, carry the SAME R and V on every head. Preserve |
| 7 | actual K indices even when its essay is numerically zero. |
| 8 | -/ |
| 9 | set_option autoImplicit false |
| 10 | noncomputable section |
| 11 | namespace YM.PhysicalNext.Dictionary.Formal |
| 12 | open Function Filter Set Lattice RG Wilson Pressure Pressure.Tube Pressure.Stores Tree Precision Exterior MeasureTheory Matrix Bloch |
| 13 | open Next.Fluctuations Next.Fluctuations.Sector Next.SectorChange Next.SectorChange.Rows Push.SectorMeasure Push.SectorMeasure.Oriented Push.SectorMeasure.Presented |
| 14 | open AnalyticBridge.Annulus.Map |
| 15 | open AnalyticBridge.LocalGaussian Spot |
| 16 | open scoped Topology BigOperators Classical Matrix.Norms.Frobenius ContDiff InnerProductSpace YM.PhysicalNext.Dictionary.Formal |
| 17 | open Wires Geo Notify Voice Voice.Check Voice.Defenses Parcel Shipment Lobbies SectorNext.Reconnect |
| 18 | open Finset hiding card |
| 19 | variable {G : Gauge} {c f : Side} {S : StepData c f} {I : Type} [DecidableEq I] |
| 20 | |
| 21 | abbrev Head (I : Type) := Finset I × Finset ℕ × Finset ℕ × Finset (ℕ×ℕ) |
| 22 | -- abbrevivation to ease inference |
| 23 | abbrev coin (i : Head I) := i.1 -- units |
| 24 | abbrev menu (i : Head I) := i.2.1 -- bulk (Bool later) |
| 25 | abbrev team (i : Head I) := i.2.2.1 -- K parents including vacuum |
| 26 | abbrev torn (i : Head I) := i.2.2.2 -- qualified |
| 27 | abbrev Versions (i : Head I) := ↥(menu i)→Bool |
| 28 | |
| 29 | variable (i : Head I) |
| 30 | |
| 31 | -- Record the Mark-bearing emissions and their sets on R (even before |
| 32 | -- checking censorship). |
| 33 | abbrev Emit (I : Type) := I ⊕ ℕ ⊕ ℕ×ℕ |
| 34 | def emissions : Finset (Emit I) := (coin i).disjSum ((menu i).disjSum (torn i)) |
| 35 | def token (D : AnalyticBridge.LocalGaussian.Desk G S) (Z : Art I D) : Emit I → Finset I := Sum.elim ({·}) |
| 36 | (Sum.elim Z.names fun j=>Z.sig j.1 j.2) |
| 37 | |
| 38 | def slide (β : Versions i) : ↥(menu i) ↪ ℕ×Bool := ⟨fun j=>(j.val,β j),fun _ _ e=>Subtype.ext (congr_arg Prod.fst e)⟩ |
| 39 | def curtains (β : Versions i) := (menu i).attach.map (slide i β) |
| 40 | variable (D : AnalyticBridge.LocalGaussian.Desk G S) (A : Stores S) (Z : Art I D) |
| 41 | local notation "B"=>radiusB D.betaHat |
| 42 | local notation "Q" => Fleet.packs S (hump B) (Fleet.manifest A) |
| 43 | local notation "T"=>Voice.Check.Test |
| 44 | |
| 45 | def shops (β : Versions i) (l : Tryouts S) : Finset (Bills S I) := l.1.disjSum (l.2.disjSum (((coin i).disjSum (curtains i β)).disjSum (torn i))) |
| 46 | def submit (β : Versions i) (l : Tryouts S) := Fleet.draft (hump B) A (team i) (shops i β l) |
| 47 | -- for easier independent instance function use |
| 48 | abbrev Hypothesis (I : Type) := Σ i : Head I,Versions i |
| 49 | def construct (l : Hypothesis I × Tryouts S) : Finset (Bill S I) := submit l.1.1 D A l.1.2 l.2 |
| 50 | |
| 51 | section |
| 52 | variable (β : Versions i) |
| 53 | omit [DecidableEq I] |
| 54 | lemma slides {j b} : (j,b)∈curtains i β ↔ ∃ hj : j∈menu i, β ⟨j,hj⟩ = b := by |
| 55 | rw [curtains, Finset.mem_map] |
| 56 | constructor |
| 57 | · rintro ⟨p,H,hb⟩ |
| 58 | cases p with |
| 59 | | mk p hp=> |
| 60 | simp only [slide,Embedding.coeFn_mk,Prod.mk.injEq] at hb |
| 61 | obtain ⟨rfl,rfl⟩:=hb; exact ⟨hp,rfl⟩ |
| 62 | exact fun ⟨hj,he⟩=>⟨⟨_,hj⟩, Finset.mem_attach _ _,Prod.ext rfl he⟩ |
| 63 | lemma sliding : (curtains i β).image Prod.fst=menu i := by |
| 64 | ext j; rw [Finset.mem_image]; constructor |
| 65 | · rintro ⟨⟨b,s⟩,hb,rfl⟩; obtain ⟨hz,hh⟩:=(slides i β).mp hb; exact hz |
| 66 | exact fun hj=>⟨(j,β ⟨j,hj⟩), (slides i β).mpr ⟨hj,rfl⟩,rfl⟩ |
| 67 | lemma one_arrow : Fleet.pure Prod.fst (curtains i β) := by |
| 68 | rintro ⟨j,s⟩ hj ⟨l,t⟩ hl he; change l=j at he; subst l |
| 69 | obtain ⟨hq,rfl⟩:=(slides _ _).mp hj; obtain ⟨h0,rfl⟩:=(slides _ _).mp hl; rfl |
| 70 | |
| 71 | -- recover every pure bulk choice. |
| 72 | lemma swatches {r : Finset (ℕ×Bool)} (h₁ : Fleet.pure Prod.fst r) (h₂ : r.image Prod.fst= menu i) : ∃ u : Versions i,r=curtains i u := by |
| 73 | have he (j:menu i) : ∃ t,(j.val,t)∈r := by |
| 74 | obtain ⟨⟨k,t⟩,hk,hf⟩:=Finset.mem_image.mp (show j.val∈ r.image Prod.fst by rw [h₂]; exact j.property) |
| 75 | change k=j.val at hf; exact ⟨t,hf ▸ hk⟩ |
| 76 | choose u hu using he; use u; ext ⟨j,t⟩; rw [slides] |
| 77 | constructor |
| 78 | · intro hi; have hp : j∈menu i := h₂ ▸ Finset.mem_image_of_mem Prod.fst (by exact hi) |
| 79 | use hp; exact congr_arg Prod.snd (h₁ _ hi _ (hu ⟨_,hp⟩) rfl) |
| 80 | rintro ⟨hp,rfl⟩; exact hu ⟨j,hp⟩ |
| 81 | end |
| 82 | |
| 83 | omit [DecidableEq I] |
| 84 | lemma unweave {i j: Head I} (x : Versions i) (y : Versions j) (b d : Tryouts S) (h : shops i x b=shops j y d) : b = d ∧ coin i=coin j ∧ |
| 85 | curtains i x= curtains j y ∧ torn i=torn j := by |
| 86 | refine ⟨Prod.ext ?_ ?_,?_,?_,?_⟩ |
| 87 | · simpa only [shops,Finset.toLeft_disjSum] using congr_arg Finset.toLeft h |
| 88 | · simpa only [shops, Finset.toRight_disjSum,Finset.toLeft_disjSum] using |
| 89 | congr_arg (fun i : Finset (Bills S I)=>i.toRight.toLeft) h |
| 90 | · simpa only [shops, Finset.toRight_disjSum,Finset.toLeft_disjSum] using |
| 91 | congr_arg (fun i : Finset (Bills S I)=>i.toRight.toRight.toLeft.toLeft) h |
| 92 | · simpa only [shops, Finset.toRight_disjSum,Finset.toLeft_disjSum] using |
| 93 | congr_arg (fun i : Finset (Bills S I)=>i.toRight.toRight.toLeft.toRight) h |
| 94 | simpa only [shops, Finset.toRight_disjSum,Finset.toLeft_disjSum] using |
| 95 | congr_arg (fun i : Finset (Bills S I)=>i.toRight.toRight.toRight) h |
| 96 | |
| 97 | lemma build_inj : Injective (construct D A (I:=I)) := by |
| 98 | rintro ⟨⟨i,x⟩,p⟩ ⟨⟨j,y⟩,q⟩ hi |
| 99 | have hm := (Fleet.draft_inj (S:=S) (α:=Bills S I) (hump B) (a₁:=(A,team i, shops i x p)) (a₂:=(A,team j, shops j y q)) hi) |
| 100 | have hh := (Prod.ext_iff.mp (Prod.ext_iff.mp hm).2) -- use congr_arg Prod.snd |
| 101 | obtain ⟨hr,hx,hk,hl⟩:=unweave x y p q hh.2 |
| 102 | have hq : i=j := Prod.ext hx (Prod.ext (show menu i=menu j by rw [←sliding i x,←sliding j y,hk]) (Prod.ext hh.1 hl)) |
| 103 | subst j q |
| 104 | suffices h : x=y by rw [h] |
| 105 | funext k |
| 106 | have he : (k.val,x k)∈curtains i y := hk ▸ (slides i x).mpr ⟨k.property,rfl⟩ |
| 107 | obtain ⟨_,ht⟩ := (slides _ _).mp he; exact ht.symm |
| 108 | |
| 109 | lemma build_range (ρ : Finset (Bill S I)) {v : Activities G f} |
| 110 | (he : Fleet.draft (hump B) A (Fleet.kSet ρ) (Fleet.addSet ρ)=ρ) |
| 111 | (hp : Words.permits (Fleet.required S v (hump B) question) ρ) : ρ ∈ Set.range (construct D A) := by |
| 112 | let u:=Fleet.addSet ρ; let r:=u.toRight.toRight.toLeft.toRight |
| 113 | let s:Head I := (u.toRight.toRight.toLeft.toLeft, r.image Prod.fst,Fleet.kSet ρ,u.toRight.toRight.toRight) |
| 114 | have hr : Fleet.pure Prod.fst r := by |
| 115 | rintro ⟨i,t⟩ hi ⟨j,m⟩ hj ht |
| 116 | have hx i t (hi : (i,t)∈r) : bead i t∈u := by |
| 117 | simpa only [r,Finset.mem_toRight,Finset.mem_toLeft] using hi |
| 118 | have hh := ((Fleet.classified ..).mp hp).2.2 _ (hx i t hi) _ (hx j m hj) |
| 119 | (show question (ι:=I) (S:=S) (bead j m)=question (bead i t) by change j=i at ht; cases ht; rfl) -- binder ι |
| 120 | simpa only [bead,Sum.inr.injEq,Sum.inl.injEq] using hh |
| 121 | obtain ⟨y, hy⟩:=swatches s (r:=r) hr rfl |
| 122 | refine ⟨(⟨s,y⟩,u.toLeft,u.toRight.toLeft),?_⟩ |
| 123 | change Fleet.draft (hump B) A (Fleet.kSet ρ) _ =_ |
| 124 | rw [shops,← hy]; simp only [coin,s,torn,r,Finset.toLeft_disjSum_toRight]; exact he |
| 125 | end YM.PhysicalNext.Dictionary.Formal |