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.OPE.Nesting.Parcels |
| 2 | |
| 3 | /-! Complete signed moment comparisons with a child chosen before the |
| 4 | remaining symbols are combined. Term weights multiply in the full (not |
| 5 | connected) hierarchy. Only separated words ever participate. -/ |
| 6 | set_option autoImplicit false |
| 7 | noncomputable section |
| 8 | namespace YM.OPE.Nesting |
| 9 | open Orbits Orbits.Reader Function Filter Extraction Set Table |
| 10 | open scoped Topology BigOperators ContDiff Matrix.Norms.Frobenius Classical |
| 11 | section |
| 12 | variable {I:Type} (j:I) (P:I→Type) |
| 13 | def dissect {I:Type} (j:I) (P:I→Type): (Σ i,P i) ≃ P j ⊕ (Σ i:{i:I//i≠j}, P i.val) where |
| 14 | toFun t := if h:t.fst=j then Sum.inl (h ▸ t.snd) else Sum.inr ⟨⟨t.fst,h⟩,t.snd⟩ |
| 15 | invFun w:= Sum.elim (fun v=> ⟨j,v⟩) (fun t:Σ i:{i:I//i≠j},P i.val=> ⟨t.1.val,t.2⟩) w |
| 16 | left_inv := by |
| 17 | rintro ⟨i,t⟩; dsimp only |
| 18 | by_cases h:i=j |
| 19 | · subst i; rw [dif_pos rfl]; rfl |
| 20 | rw [dif_neg h]; rfl |
| 21 | right_inv := by |
| 22 | rintro (a|⟨⟨i,h⟩,t⟩) |
| 23 | · dsimp only [Sum.elim_inl]; rw [dif_pos rfl] |
| 24 | dsimp only [Sum.elim_inr]; rw [dif_neg h] |
| 25 | lemma dissect_at (p:P j): dissect j P ⟨j,p⟩=Sum.inl p:=dif_pos rfl |
| 26 | lemma dissect_off {i:I}(p:P i)(h:i≠j):dissect j P ⟨i,p⟩=Sum.inr ⟨⟨i,h⟩,p⟩ :=dif_neg h |
| 27 | |
| 28 | def bifurc (J:Type) := ((Equiv.sumCongr (dissect j P) (Equiv.refl J))).trans (Equiv.sumAssoc _ _ _) |
| 29 | lemma bifurc_main {J:Type}(p:P j) : bifurc j P J (Sum.inl ⟨j,p⟩)= Sum.inl p :=by unfold bifurc; erw [Equiv.trans_apply,Equiv.sumCongr_apply,Sum.map_inl,dissect_at]; rfl |
| 30 | lemma bifurc_rest {J:Type}{i:I}(p:P i) (hi:i≠j) : bifurc j P J (Sum.inl ⟨i,p⟩)=Sum.inr (Sum.inl ⟨⟨i,hi⟩,p⟩):=by unfold bifurc; erw [Equiv.trans_apply,Equiv.sumCongr_apply,Sum.map_inl,dissect_off j P p hi]; rfl |
| 31 | lemma bifurc_end {J:Type} (v:J) : bifurc j P J (Sum.inr v)=Sum.inr (Sum.inr v):=rfl |
| 32 | end |
| 33 | |
| 34 | namespace Atom |
| 35 | variable {G:Gauge}{L':Register G}{S:Table L'}{K L I J:Type}[Fintype I][Fintype J] |
| 36 | |
| 37 | def utter (v:I→S.Tag)(i:I):L'.Token:=names (voices v) i |
| 38 | lemma duet_reorder {K Q:Type}[Fintype K][Fintype Q] {T:Table L'}(ht:T.Hierarchy)(e:I⊕J ≃ K⊕Q)(x:I→E4)(y:J→E4)(x':K→E4)(y':Q→E4)(v:I→S.Tag)(w:J→S.Tag)(v':K→S.Tag)(w':Q→S.Tag) |
| 39 | (hi:Injective (beside x y))(hx:∀ i:I⊕J,beside x y i=beside x' y' (e i))(hv:∀ i:I⊕J,beside v w i=beside v' w' (e i)) : duet T x v y w = duet T x' v' y' w':=by |
| 40 | let m:=beside (utter v) (utter w); let n:=beside (utter v') (utter w') |
| 41 | have hw:m=n ∘ ⇑e:=funext fun ij=>by |
| 42 | let g(c:S.Tag):L'.Token:=⟨c.1,S.representative _ c.2⟩ |
| 43 | have hm:m ij=g (beside v w ij):=by cases ij <;> rfl |
| 44 | have hn(ij'):n ij'=g (beside v' w' ij'):=by cases ij' <;> rfl |
| 45 | exact hm.trans ((congr_arg g (hv ij)).trans (hn _).symm) |
| 46 | have hx:beside x y=beside x' y' ∘ e:=funext hx |
| 47 | have he:Injective (beside x' y'):= fun i j hij=>by |
| 48 | obtain ⟨i,rfl⟩:= e.surjective i; obtain ⟨j,rfl⟩:= e.surjective j |
| 49 | rw [hx] at hi |
| 50 | exact congr_arg e (hi hij) |
| 51 | rw [duet,duet,whole_observed,whole_observed] |
| 52 | change observe T (beside x y) m=observe T _ n |
| 53 | rw [hw,hx]; exact perm_observe T ht.laws.toSymmetric e n he |
| 54 | |
| 55 | abbrev RestIndex (j:I):= {i:I//i≠j} |
| 56 | lemma explode_values (h : I→Atom S L)(j:I) |
| 57 | {V:Type}(f:(Atom.bundle h).Slot→V) (f': ((h j).Slot⊕ (Atom.bundle fun k:RestIndex j=>h k.val).Slot) → V) |
| 58 | (hf₁:∀ u, f ⟨j,u⟩=f' (.inl u)) |
| 59 | (hf₂:∀ (i:RestIndex j) u, f ⟨i.val,u⟩ = f' (.inr ⟨i,u⟩)) :∀ iv, f iv= f' ((dissect j (fun i=>(h i).Slot)) iv):=by |
| 60 | rintro ⟨i,v⟩ |
| 61 | by_cases hv:i=j |
| 62 | · subst i; rw [dissect_at]; exact hf₁ v |
| 63 | rw [dissect_off _ _ _ hv]; exact hf₂ ⟨i,hv⟩ v |
| 64 | |
| 65 | lemma explode (h:I→Atom S L)(T:Table L')(j:I)(y:J→E4)(w:J→S.Tag)(s:L) (hT:T.Hierarchy)(hv:Injective (beside ((Atom.bundle h).place s) y)):let h':=Atom.bundle fun k:RestIndex j=>h k.val |
| 66 | duet T ((Atom.bundle h).place s) (Atom.bundle h).tags y w = duet T ((h j).place s) (h j).tags (beside (h'.place s) y) (splice h'.tags w):=by |
| 67 | intros h'; let g:= bifurc j (fun i=>(h i).Slot) J |
| 68 | refine duet_reorder hT g _ _ _ _ _ _ _ _ hv ?_ ?_ |
| 69 | · rintro (⟨i,p⟩|k) |
| 70 | swap; · rfl |
| 71 | change (h i).place s p=_ |
| 72 | by_cases hh:i=j; subst i |
| 73 | · erw [bifurc_main j (fun i=>(h i).Slot)]; rfl |
| 74 | erw [bifurc_rest j (fun i=>(h i).Slot) p hh]; rfl |
| 75 | rintro (⟨i,p⟩|k) |
| 76 | swap; · rfl |
| 77 | change (h i).tags p=_ |
| 78 | by_cases hh:i=j; subst i |
| 79 | · erw [bifurc_main j (fun i=>(h i).Slot)]; rfl |
| 80 | erw [bifurc_rest j (fun i=>(h i).Slot) p hh]; rfl |
| 81 | |
| 82 | lemma amp_alone (x:I→ℂ)(j:I):∏ i,x i= (∏ k:RestIndex j,x k.val)*x j:=by |
| 83 | letI : Unique ({i:I // i=j}) := { default:=⟨j,rfl⟩, uniq:=fun a=>Subtype.ext a.prop } |
| 84 | apply Eq.trans (Fintype.prod_subtype_mul_prod_subtype (fun i=>i=j) x).symm |
| 85 | rw [mul_comm]; apply congr_arg; rw [@Fintype.prod_unique _ _ (Subtype.fintype _)]; rfl |
| 86 | lemma expose (h:I→Atom S L)(T:L→Table L')(j:I)(y:L→J→E4)(w:J→S.Tag)(s:L)(ht:(T s).Hierarchy)(hv:Injective (beside ((Atom.bundle h).place s) (y s))) : |
| 87 | let h':=Atom.bundle fun k:RestIndex j=>h k.val |
| 88 | (Atom.bundle h).sample T y w s = h'.amp s * (h j).sample T (fun s=> beside (h'.place s) (y s)) (splice h'.tags w) s:=by |
| 89 | intros h'; unfold sample; change (∏ i,(h i).amp s)*duet ..= _; rw [amp_alone _ j,explode h (T s) j (y s) w s ht hv]; exact mul_assoc _ _ _ |
| 90 | end Atom |
| 91 | |
| 92 | namespace Menu |
| 93 | open Atom |
| 94 | variable {G:Gauge}{L':Register G}{S:Table L'}{K L I J:Type}[Fintype I][Fintype J] |
| 95 | |
| 96 | def rest (P:I→Menu S L)(j:I):Menu S L :=fuse (fun i:RestIndex j=>P i.val) |
| 97 | lemma rest_eq {P P':I→Menu S L}(j:I)(h:∀i≠j,P i=P' i):rest P j=rest P' j:= congr_arg fuse (funext fun (a:RestIndex j)=> h a a.prop) |
| 98 | |
| 99 | def attached (P:I→Menu S L)(j:I)(y:L→J→E4)(w:J→S.Tag)(T:L→Table L')(s:L)(q:(rest P j).Draw) := |
| 100 | let z:=(rest P j).pick q |
| 101 | z.amp s*(P j).atView T (fun s=> beside (z.place s) (y s)) (splice z.tags w) s |
| 102 | |
| 103 | def taxi (Z:Atom S L)(T:L→Table L')(P:Menu S L)(y:L→J→E4)(w:J→S.Tag)(s:L):ℂ := (P.atView T (fun s=>beside (Z.place s) (y s)) (splice Z.tags w) s) * Z.amp s |
| 104 | |
| 105 | lemma disrupt (P:I→Menu S L)(T:L→Table L')(j:I)(y:L→J→E4)(w:J→S.Tag)(s:L)(ht:(T s).Hierarchy) |
| 106 | (hv: ∀ k:(fuse P).Draw,Injective (beside (((fuse P).pick k).place s) (y s))): |
| 107 | (fuse P).atView T y w s= ∑ k:(rest P j).Draw,(attached P j y w T s k):=by |
| 108 | unfold atView; let Lf:= fun (p:(fuse P).Draw)=> ((fuse P).pick p).sample T y w s |
| 109 | let Rf:= fun (k:(P j).Draw × (rest P j).Draw)=> let z:=(rest P j).pick k.2; z.amp s*((P j).pick k.1).sample T (fun s=> beside (z.place s) (y s)) (splice z.tags w) s |
| 110 | change (∑ c:(fuse P).Draw,Lf c) = _ |
| 111 | let e:(fuse P).Draw ≃ (P j).Draw × (rest P j).Draw := Equiv.piSplitAt j (fun i=>(P i).Draw) |
| 112 | rw [Fintype.sum_equiv e Lf Rf (fun x=>?_)] |
| 113 | · rw [Fintype.sum_prod_type,Finset.sum_comm]; refine Finset.sum_congr rfl fun k hk=>?_ |
| 114 | unfold attached atView; rw [Finset.mul_sum] |
| 115 | change (Atom.bundle (fun i=>(P i).pick (x i))).sample T y w s=_; change _ = Rf (e x); unfold Rf e; simp only [Equiv.piSplitAt_apply]; exact expose _ T j y w s ht (hv x) |
| 116 | |
| 117 | lemma taxi_formula (P:I→Menu S L)(T:L→Table L')(j:I)(y:L→J→E4)(w:J→S.Tag)(s:L)(ht:(T s).Hierarchy) |
| 118 | (hv: ∀ k:(fuse P).Draw,Injective (beside (((fuse P).pick k).place s) (y s))) (Z:Menu S L)(he:rest P j=Z): |
| 119 | (fuse P).atView T y w s= ∑ k:Z.Draw, taxi (Z.pick k) T (P j) y w s:=by |
| 120 | subst Z; rw [disrupt P T j y w s ht hv]; apply Finset.sum_congr rfl fun _ _=>mul_comm .. |
| 121 | end Menu |
| 122 | end YM.OPE.Nesting |