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.Buys |
| 2 | set_option autoImplicit false |
| 3 | noncomputable section |
| 4 | namespace YM.MergeProof.Menu |
| 5 | open Function Filter Lattice Wilson RG MeasureTheory Finset Push Local Extra.Histories PhysicalNext.Repeat Lotus Merge Marker |
| 6 | open Extra.Multi GridApprox.Nil |
| 7 | open scoped Topology Matrix.Norms.Frobenius BigOperators ContDiff Classical |
| 8 | variable {V ι β : Type}[DecidableEq V] {B:Census V} {G:Gauge}{f c:Side}{R:Rep G f}{E:Rep G c} |
| 9 | open Extra.Trajectories |
| 10 | variable [Fintype ι](q:ι→Hat B R) |
| 11 | local notation "u"=> legs q |
| 12 | set_option quotPrecheck false |
| 13 | abbrev hatKey (q:ι→Hat B R)(p:ι):= WKey (q p) |
| 14 | abbrev hatMode (q:ι→Hat B R)(p:ι):= (q p).s |
| 15 | -- singletons included but subsequently drop to retain literal Leaf. |
| 16 | def atKey (k:Wing): Finset ι:= Finset.univ.filter fun i=> WKey (q i)=k |
| 17 | def harvestKind (k:Wing)(p:Finset ι):Prop:= p.Nonempty ∧ p⊆ atKey q k ∧ Fits (hatMode q) p |
| 18 | abbrev Hay (k:Wing):= {p:Finset ι// harvestKind q k p} |
| 19 | omit [Fintype ι] in |
| 20 | lemma hats_ne (p:Finset ι) (ht:p.Nonempty) (he:Fits (hatMode q) p): (unionTag (hatMode q) p he).val.Nonempty:=by obtain ⟨i,hi⟩:=ht; exact (q i).shiny.mono (subset_biUnion_of_mem _ hi) |
| 21 | private lemma home (k:Wing)(p:Hay q k)(i:ι)(hi:i∈p.val): hatKey q i=k:=(mem_filter.mp (p.property.2.1 hi)).2 |
| 22 | |
| 23 | def rise (k:Wing)(p:Hay q k): Hat B R where |
| 24 | M := { turn:= k |
| 25 | ingredient:=fun U=>∏ i∈p.val,(q i).M.ingredient U |
| 26 | weight:=∏ i∈p.val,(q i).M.weight |
| 27 | borel:= Finset.measurable_fun_prod _ fun i _=> (q i).M.borel |
| 28 | glows:=fun g U => prod_congr rfl fun i hi=> (q i).M.glows g U |
| 29 | scopedR:= fun U V hx ht=> prod_congr rfl fun i hi=> (q i).M.scopedR U V ((show (q i).M.turn=k from home q k p i hi).symm ▸ hx) ((show (q i).M.turn=k from home q k p i hi).symm ▸ ht) |
| 30 | earn:= fun U=> by rw [norm_prod]; exact prod_le_prod (fun i _=>norm_nonneg _) (fun i _=>(q i).M.earn _) |
| 31 | blank:= by obtain ⟨i,hi⟩:=p.property.1; exact (home q k p i hi) ▸ (show _ from (q i).M.blank) |
| 32 | grant:=fun U hu=>by obtain ⟨i,hi⟩:=p.property.1; exact (home q k p i hi) ▸ (show _ from (q i).M.grant U (fun h=> hu (prod_eq_zero hi h))) } |
| 33 | s:= unionTag (hatMode q) p.val p.property.2.2 |
| 34 | charge:= ∏ i∈p.val,(q i).charge |
| 35 | shiny := hats_ne q p.val p.property.1 p.property.2.2 |
| 36 | |
| 37 | lemma tolls (k:Wing)(p:Hay q k)(w : V→ℝ) : fare (rise q k p) w=∏ i∈p.val, fare (q i) w:=by |
| 38 | unfold fare sumFee; change ((Poly.toll w (unionTag (hatMode q) p.val p.property.2.2))*‖∏ i∈p.val,(q i).charge‖)* _= _ |
| 39 | rw [toll_union,norm_prod,prod_mul_distrib,prod_mul_distrib];rfl |
| 40 | lemma flaunt (k:Wing)(p:Hay q k)(U : Config G f): amount (rise q k p) U = ∏ i∈p.val, amount (q i) U:=by |
| 41 | rw [varnish]; let t:= p.val;simp_rw [varnish]; |
| 42 | rw [tagged_prod (hatMode q) p.val p.property.2.2]; unfold rise; dsimp only; rw [Complex.ofReal_prod,prod_mul_distrib] |
| 43 | -- carriers bound |
| 44 | lemma fills (k:Wing)(p:Hay q k)(o:V→Site f)(h:∀ i,(q i).s.val.image o ⊆ (q i).M.crest): (rise q k p).s.val.image o ⊆ (rise q k p).M.crest:=by |
| 45 | intro j hj; obtain ⟨x,hx,ht⟩:=mem_image.mp hj; obtain ⟨i,hi,hI⟩:= mem_biUnion.mp hx; have hQ:= h i (show j∈_ from mem_image.mpr ⟨x,hI,ht⟩); change j∈ (hatKey q i).support R at hQ; rw [home q k p i hi] at hQ; exact hQ |
| 46 | lemma large (k:Wing)(p:Hay q k)(h:2 ≤ p.val.card): 2≤(rise q k p).s.val.card:= by |
| 47 | obtain ⟨x,hx,y,hy,hn⟩:= Finset.one_lt_card.mp (show 1 < _ from h); obtain ⟨i,hi⟩:= (q x).shiny; obtain ⟨j,hj⟩ := (q y).shiny |
| 48 | refine Finset.one_lt_card.mpr ⟨i,mem_biUnion.mpr ⟨x,hx,hi⟩,j,mem_biUnion.mpr ⟨y,hy,hj⟩,fun he=> Finset.disjoint_left.mp (p.property.2.2.1 hx hy hn) hi ?_⟩; subst i; exact hj |
| 49 | -- Tops: leaf + composites of true log |
| 50 | abbrev Rock (k:Wing):= {p:Hay q k//2 ≤ p.val.card} |
| 51 | abbrev Mound := ι ⊕ (Σ j:logDeck q, Rock q (.logKey j.val)) |
| 52 | def heap : Mound q→ Hat B R:= Sum.elim q (fun i=> rise q (.logKey i.1.val) i.2.val) |
| 53 | lemma logs_kept : logDeck (heap q)= logDeck q:=by |
| 54 | ext i; rw [cams,cams]; constructor |
| 55 | · rintro ⟨b,hb⟩; cases b with |
| 56 | | inl j=> exact ⟨j,hb⟩ |
| 57 | | inr j=> have hx : j.fst.val=i:= Wing.logKey.inj (show Wing.logKey _= .logKey _ from hb); exact hx ▸ (cams q _).1 j.fst.property |
| 58 | rintro ⟨j,h⟩; exact ⟨.inl j,h⟩ |
| 59 | lemma gases (k:ℕ)(U:Config G f): rush (heap q) (.gasKey k) U=rush q (.gasKey k) U:=by |
| 60 | unfold rush; change (∑ i:Mound q,_)=_; unfold Mound; rw [Fintype.sum_sum_type,sum_eq_zero (s:=univ) (f:=fun i:Σ j:logDeck q, Rock q (.logKey j.val)=> if WKey (heap q (.inr i))= .gasKey k then _ else _) ?_,add_zero]; rfl |
| 61 | exact fun i _=> if_neg (show ¬ Wing.logKey i.1.val=Wing.gasKey k by intro h; cases h) |
| 62 | end YM.MergeProof.Menu |