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.RG08.Jetty.Dosh |
| 2 | import YM.RG08.Forms.Shuffle |
| 3 | |
| 4 | /-! # Rooted packet score |
| 5 | |
| 6 | Includes scalar vacuum WITH marker, no held slot convention. Root via |
| 7 | an absolute height func, max weights (before polynomial grade). |
| 8 | -/ |
| 9 | set_option autoImplicit false |
| 10 | noncomputable section |
| 11 | namespace YM.RG08.Jetty |
| 12 | open Forms Pert.Bulk Finset Function |
| 13 | open scoped Topology BigOperators ENNReal Classical ContDiff |
| 14 | variable {I J:Type}{n m d:ℕ}{σ τ B C:ℝ} |
| 15 | structure Loom (I:Type) where |
| 16 | height:I→ℝ |
| 17 | nn : ∀ i,0≤height i |
| 18 | def Loom.cage (l:Loom I)(x:Tape n I):= Finset.fold max 0 (l.height ∘ x) univ |
| 19 | lemma Loom.cage_nn (l:Loom I)(x:Tape n I):0≤l.cage x:= (le_fold_max _).mpr (Or.inl le_rfl) |
| 20 | lemma Loom.float (l:Loom I)(x:Tape n I)(i:Fin n):l.height (x i)≤l.cage x:=(le_fold_max _).mpr (Or.inr ⟨i,mem_univ i,le_rfl⟩) |
| 21 | lemma Loom.racks (l:Loom I)(x:Tape n I){M:ℝ}(h:0≤M)(hf:∀ i,l.height (x i)≤M):l.cage x≤M:=(fold_max_le _).mpr ⟨h,fun i _=>hf i⟩ |
| 22 | lemma Loom.picks (l:Loom I)(x:Tape n I)(e:Fin m→Fin n):l.cage (x ∘ e)≤ l.cage x:=l.racks _ (l.cage_nn x) (fun _=>l.float x _) |
| 23 | lemma Loom.perm (l:Loom I)(x:Tape n I)(e:Equiv.Perm (Fin n)):l.cage (x ∘ e)= l.cage x:=le_antisymm (l.picks x e) (by |
| 24 | have ht:=l.picks (x ∘ e) (e.symm:Fin n→Fin n) |
| 25 | rwa [show (x ∘ ⇑e) ∘ ⇑e.symm=x from funext fun i=>by simp] at ht) |
| 26 | lemma Loom.snoc (l:Loom I)(x:Tape m I)(y:Tape n I) : l.cage (Fin.append x y)= max (l.cage x) (l.cage y):=by |
| 27 | apply le_antisymm (l.racks _ ((l.cage_nn x).trans (le_max_left ..)) (fun i=>?_)) |
| 28 | · apply max_le |
| 29 | · exact l.racks _ (l.cage_nn _) (fun i=>by simpa using! l.float (Fin.append x y) (Fin.castAdd n i)) |
| 30 | exact l.racks _ (l.cage_nn _) (fun i=>by simpa using! l.float (Fin.append x y) (Fin.natAdd m i)) |
| 31 | exact Fin.addCases (motive:=fun i=> l.height (Fin.append x y i)≤max _ _) (fun j=>by simpa using! (l.float x j).trans (le_max_left (l.cage x) (l.cage y))) (fun j=>by simpa using! (l.float y j).trans (le_max_right (l.cage x) (l.cage y))) i |
| 32 | |
| 33 | abbrev Pack (n:ℕ)(I:Type):= Tape n I→NoteX |
| 34 | def weft (l:Loom I)(σ:ℝ)(x:Tape n I):= ENNReal.ofReal (Real.exp (σ*l.cage x)) |
| 35 | def gems (l:Loom I)(d:ℕ)(h:0<σ)(F:Pack n I)(x:Tape n I):= purse d h (F x) * weft l σ x |
| 36 | def Sings (l:Loom I)(d:ℕ)(h:0<σ)(F:Pack n I)(K:ℝ):= (∑' x:Tape n I,gems l d h F x)≤ENNReal.ofReal K |
| 37 | def Lyrics (F:Pack n I):Prop:=∀ x:Tape n I,Voice (F x) |
| 38 | def hymn (l:Loom I)(d:ℕ)(h:0<σ)(F:Pack n I):= ENNReal.toReal (∑' x:Tape n I,gems l d h F x) |
| 39 | |
| 40 | variable {l l':Loom I}{h:0<σ}{F F':Pack n I} |
| 41 | lemma knits (x:Tape n I)(h:0≤σ): 1≤weft l σ x:=(ENNReal.one_le_ofReal).mpr (Real.one_le_exp (mul_nonneg h (l.cage_nn _))) |
| 42 | lemma hymn_nn : 0 ≤ hymn l d h F := ENNReal.toReal_nonneg |
| 43 | lemma Sings.cost (hv:Sings l d h F C):Sings l d h F (hymn l d h F):= by |
| 44 | have he:=ne_top_of_le_ne_top ENNReal.ofReal_ne_top hv |
| 45 | unfold hymn Sings;rw [ENNReal.ofReal_toReal he] |
| 46 | lemma Sings.hymn_le (hv:Sings l d h F C)(hC:0≤C):hymn l d h F ≤ C:=(ENNReal.toReal_mono ENNReal.ofReal_ne_top hv).trans_eq (ENNReal.toReal_ofReal hC) |
| 47 | lemma Sings.point (hv:Sings l d h F C)(x):gems l d h F x ≤ ENNReal.ofReal C:=(ENNReal.le_tsum _).trans hv |
| 48 | lemma plain_gems (x:Tape n I):purse d h (F x)≤gems l d h F x:=le_mul_of_one_le_right (zero_le (a:=purse d h (F x))) (knits _ h.le) |
| 49 | lemma Sings.plain (hv:Sings l d h F C)(x):purse d h (F x) ≤ ENNReal.ofReal C:=(plain_gems x).trans (hv.point x) |
| 50 | lemma Sings.quote (hv:Sings l d h F C)(hx:Lyrics F)(hC:0≤C)(x)(f): |F x f| ≤ C*beam d h f:=by |
| 51 | refine (ENNReal.ofReal_le_ofReal_iff (mul_nonneg hC (beam_nn ..))).mp ?_ |
| 52 | rw [ENNReal.ofReal_mul hC]; exact (purse_gives _ _ (hx _) _).trans (mul_le_mul_left (hv.plain x) _) |
| 53 | lemma Sings.mono (hv:Sings l d h F C){D}{ht:0<τ}(hw:τ≤σ)(hb:d≤D)(hf:∀ i,l'.height i≤l.height i)(he:C≤B):Sings l' D ht F B:=by |
| 54 | apply (ENNReal.tsum_le_tsum (f:=gems l' D ht F) (g:=gems l d h F) (fun x=>mul_le_mul' (purse_up ht hw _ hb) ?_)).trans (hv.trans (ENNReal.ofReal_le_ofReal he)) |
| 55 | exact ENNReal.ofReal_le_ofReal (Real.exp_le_exp.mpr (mul_le_mul hw (l'.racks _ (l.cage_nn _) fun i=>(hf _).trans (l.float x i)) (l'.cage_nn _) h.le)) |
| 56 | lemma hush : Lyrics (0:Pack n I):=fun _=>quiet |
| 57 | lemma tin : Sings l d h (0:Pack n I) B:=by |
| 58 | unfold Sings gems; simp [purse_zero] |
| 59 | lemma Lyrics.add (hv:Lyrics F)(hx:Lyrics F'):Lyrics (F+F'):=fun x=>(hv x).add (hx x) |
| 60 | lemma Lyrics.neg (hv:Lyrics F):Lyrics (-F):=fun x=>(hv x).neg |
| 61 | lemma Lyrics.sub (hv:Lyrics F)(hx:Lyrics F'):Lyrics (F-F'):=fun x=>(hv x).sub (hx x) |
| 62 | lemma Lyrics.smul (hv:Lyrics F)(c:ℝ):Lyrics (c • F):=fun x=>(hv x).smul c |
| 63 | lemma Lyrics.sum {A:Type}{f:A→Pack n I}(s:Finset A)(hf:∀ i∈s,Lyrics (f i)):Lyrics (∑ i∈s,f i):=fun x=>by rw [Finset.sum_apply];exact Voice.stage s _ fun i hi=>(hf i hi) x |
| 64 | lemma Sings.add (hv:Sings l d h F B)(hx:Sings l d h F' C)(hb:0≤B)(hc:0≤C): Sings l d h (F+F') (B+C):=by |
| 65 | apply (ENNReal.tsum_le_tsum (g:=fun x=>gems l d h F x+gems l d h F' x) (fun x=>?_)).trans |
| 66 | · rw [ENNReal.tsum_add]; exact (add_le_add hv hx).trans_eq (ENNReal.ofReal_add hb hc).symm |
| 67 | unfold gems; rw [← add_mul]; exact mul_le_mul_left (purse_add ..) _ |
| 68 | lemma Sings.neg (hv:Sings l d h F B):Sings l d h (-F) B:=by unfold Sings gems; simp only [Pi.neg_apply,purse_neg]; exact hv |
| 69 | lemma Sings.sub (hv:Sings l d h F B)(hx:Sings l d h F' C)(hb:0≤B)(hc:0≤C): Sings l d h (F-F') (B+C):=by rw [sub_eq_add_neg];exact hv.add hx.neg hb hc |
| 70 | lemma Sings.smul (hv:Sings l d h F B)(c:ℝ):Sings l d h (c • F) (|c| * B):=by |
| 71 | apply (ENNReal.tsum_le_tsum (g:=fun x=>ENNReal.ofReal |c| * gems l d h F x) (fun x=>?_)).trans |
| 72 | · rw [ENNReal.tsum_mul_left, ENNReal.ofReal_mul (abs_nonneg _)]; exact mul_le_mul_right hv _ |
| 73 | unfold gems; rw [← mul_assoc]; exact mul_le_mul_left (purse_smul ..) _ |
| 74 | lemma Sings.sum {A:Type}{f:A→Pack n I}{a:A→ℝ}(s:Finset A)(hf:∀ i∈s,Sings l d h (f i) (a i))(hn:∀ i∈s,0≤a i):Sings l d h (∑ i∈s,f i) (∑ i∈s,a i):=by |
| 75 | induction s using Finset.induction_on with |
| 76 | | empty=> rw [sum_empty,sum_empty];exact tin |
| 77 | | @insert j s hh ih=> |
| 78 | rw [sum_insert hh,sum_insert hh] |
| 79 | have he:=show ∀ i∈s,0≤a i from fun i hi=>hn _ (by simp [hi]);exact (hf j (by simp)).add (ih (fun i hi=>hf i (by simp [hi])) he) (hn j (by simp)) (sum_nonneg he) |
| 80 | |
| 81 | def pattern (S:Equiv.Perm (Fin n))(F:Pack n I):Pack n I:= fun x=> F (x ∘ S) |
| 82 | def breeze (F:Pack n I):Pack n I:= ((Fintype.card (Equiv.Perm (Fin n)):ℝ)⁻¹) • ∑ p,pattern p F |
| 83 | lemma Sings.pattern (hv:Sings l d h F B)(S:Equiv.Perm (Fin n)):Sings l d h (Jetty.pattern S F) B:=by |
| 84 | have he(x:Tape n I): gems l d h (Jetty.pattern S F) x=gems l d h F (twist S x):=by |
| 85 | unfold gems weft twist Jetty.pattern; change _=_ * ENNReal.ofReal (Real.exp (σ*l.cage (_ ∘ ↑S))) |
| 86 | rw [l.perm];rfl |
| 87 | unfold Sings; simp_rw [he]; rw [Equiv.tsum_eq (twist S)]; exact hv |
| 88 | lemma Sings.breeze (hv:Sings l d h F B)(hb:0≤B):Sings l d h (Jetty.breeze F) B:=by |
| 89 | let a:ℝ:=Fintype.card (Equiv.Perm (Fin n)); have he:0<a:= Nat.cast_pos.mpr Fintype.card_pos |
| 90 | have hh:= (Sings.sum univ (fun i _=> hv.pattern i) (fun _ _=> hb)).smul a⁻¹ |
| 91 | simp_rw [abs_of_pos (inv_pos.mpr he),sum_const,nsmul_eq_mul,card_univ] at hh |
| 92 | change Sings _ _ _ (Jetty.breeze _) (a⁻¹*(a*B)) at hh; rwa [inv_mul_cancel_left₀ he.ne'] at hh |
| 93 | lemma Lyrics.breeze (hv:Lyrics F):Lyrics (Jetty.breeze F):=(Lyrics.sum (univ:Finset (Equiv.Perm (Fin n))) (f:=fun i=>Jetty.pattern i F) fun i _ x=> hv (x ∘ i)).smul _ |
| 94 | end YM.RG08.Jetty |