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.Next.RANK.Common |
| 2 | import YM.Next.RANK.LegBlock |
| 3 | |
| 4 | /-! |
| 5 | # Vertex error bound ON calibrated data |
| 6 | |
| 7 | An overloaded arrangement of all endpoint coordinates. Charge admits exact |
| 8 | low readout on key-facing substitutions. Cost powers in Efficiency go on weights |
| 9 | $v,u$ in previous phases, here expose the vertex bounds needed after normal ordering |
| 10 | with all actual sign conventions and folded kernel/m labels. Result: genuine |
| 11 | finite free comparison for total Wick output at this polynomial portion. |
| 12 | -/ |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.Next.Rank.Particle |
| 16 | open MvPolynomial Normal Configuration Rise Function Finset Glyph Labels Common Maxwell.Wick |
| 17 | open scoped Topology BigOperators Classical |
| 18 | |
| 19 | variable {A V W : Type*} {G : Gauge} {n d : ℕ} |
| 20 | variable {r R a b c B E : ℝ} {i j k : ℕ} |
| 21 | -- V old array; W residual test directions. No shell at endpoint assumed, pull via finite keys and projections. |
| 22 | |
| 23 | section |
| 24 | -- lifts all tags injectively, signs only at reads. |
| 25 | def polar (i : A × V) : A × (V ⊕ W) := (i.1,Sum.inl i.2) |
| 26 | def grip (z : A × V) := Finsupp.single (polar (W:=W) z) (1:ℂ) |
| 27 | def ferry (Q : Normal.Symmetric (A × (V ⊕ W))) := scope grip Q |
| 28 | |
| 29 | theorem tide (q : Normal.Symmetric (A × (V ⊕ W))) (m : A × (V ⊕ W) → ℂ) (p : Finset A) (P : A → poly V) : |
| 30 | blend q m (pot p (fun i => rename Sum.inl (P i)))=blend (ferry q) (m ∘ polar) (pot p P) := by |
| 31 | let M := fun x : V => Finsupp.single (Sum.inl x : V ⊕ W) (1:ℂ) |
| 32 | have he : pot p (fun i => rename Sum.inl (P i))=exchange (grip (W:=W)) (pot p P) := by |
| 33 | unfold grip; rw [← Normal.labelled (polar : A × V → A × (V ⊕ W))] |
| 34 | unfold pot; rw [map_prod]; refine prod_congr rfl fun i _ => ?_ |
| 35 | unfold post; simp only [rename_rename]; rfl |
| 36 | rw [he,wets]; rw [show reads grip m=m ∘ polar by ext i; simp [grip,reads,Finsupp.linearCombination_single]]; rfl |
| 37 | end |
| 38 | |
| 39 | -- current joint pulled covariance and reference tag. B bounds ambient W nodes, both Q and F. |
| 40 | |
| 41 | private lemma bracket {A : Type*} (R : poly V) : totalDegree R ≤ totalDegree (rename (Sum.inl : V → V ⊕ A) R) := by |
| 42 | let M : V ⊕ A → V →₀ ℂ := Sum.elim (fun i => Finsupp.single i 1) (fun _ => 0) |
| 43 | have hf : (exchange M).comp (rename (Sum.inl : V→ V ⊕ A))= AlgHom.id ℂ (poly V) := by ext1 i; simp [M] |
| 44 | exact le_trans (show totalDegree R = totalDegree (exchange M (rename Sum.inl R)) from congr_arg MvPolynomial.totalDegree (DFunLike.congr_fun hf R).symm).le (Rise.ascent ..) |
| 45 | |
| 46 | private lemma ceiling (Z : Finset (Fin n)) (Q : Fin n → poly A) (h : ∀ i,totalDegree (Q i)≤k) : totalDegree (pot Z Q) ≤ n*k := by |
| 47 | apply (totalDegree_finsetProd ..).trans; calc |
| 48 | _ ≤ ∑ _∈Z,k := sum_le_sum fun i _ => (totalDegree_rename_le _ (Q i)).trans (h _) |
| 49 | _ ≤ _ := by rw [sum_const]; exact Nat.mul_le_mul_right _ (by simpa using card_le_univ Z) |
| 50 | |
| 51 | -- output tolerance R. Spine = ℓ¹ of base label. Fall = unused inverse p. |
| 52 | structure Spend (n : ℕ) (k : ℕ) where |
| 53 | ξ : ℝ |
| 54 | base : ℝ |
| 55 | pos : 0 ≤ ξ |
| 56 | home : 1 ≤ base |
| 57 | collision : ℝ |
| 58 | B : ℝ |
| 59 | cost : ℝ |
| 60 | enough : (n:ℝ)*ξ*(base+ξ)^n * priced B (n*k) + base^n * (collision*priced B (n*k)) ≤ cost |
| 61 | |
| 62 | def cast (M : Fin n → V → (KeyIn G d ⊕ W) →₀ ℂ) (P : Fin n → poly V) (i : Fin n) := Normal.exchange (M i) (P i) |
| 63 | |
| 64 | -- undo weighted proof |
| 65 | structure Tolls (X : Spend n k) (M : Fin n → V → (KeyIn G d ⊕ W) →₀ ℂ) (P : Fin n → poly V) (F : Fin n→Label G d) (r a b : ℝ) : Prop where |
| 66 | radius : 1 ≤ r |
| 67 | base i : coin (P i)≤a |
| 68 | words i : totalDegree (P i)≤k |
| 69 | price i : coin (thawKey (F i)) ≤ X.base |
| 70 | seats i z : cents (Normal.glyph (M i z)) bear r≤b |
| 71 | renew : 1 ≤ b |
| 72 | mark i : trim (cast M P i) bear d = rename Sum.inl (thawKey (F i)) |
| 73 | upper : a*b^k ≤ X.ξ*r^(d+1) |
| 74 | |
| 75 | variable {X : Spend n k} {M : Fin n → V → (KeyIn G d ⊕ W) →₀ ℂ} {P : Fin n → poly V} {F : Fin n→Label G d} |
| 76 | variable (T : Tolls X M P F r a b) |
| 77 | include T |
| 78 | lemma paid (i : Fin n) : coin (cast M P i-rename Sum.inl (thawKey (F i))) ≤ X.ξ := by |
| 79 | apply le_of_mul_le_mul_right (a:=r^(d+1)) _ (pow_pos (zero_lt_one.trans_le T.radius) _) |
| 80 | rw [← T.mark i]; apply (Rise.ridge _ _ _ T.radius).trans |
| 81 | exact (Rise.rise _ _ (zero_le_one.trans T.radius) T.renew (T.seats i) (P i) (T.words _)).trans ((mul_le_mul_of_nonneg_right (T.base i) (pow_nonneg (zero_le_one.trans T.renew) _)).trans T.upper) |
| 82 | |
| 83 | private lemma decks (i : Fin n) : coin (rename (Sum.inl : _ → KeyIn G d ⊕ W) (thawKey (F i))) ≤ X.base := by |
| 84 | rw [labelled] |
| 85 | have hx:= Rise.rise (fun z => Finsupp.single (Sum.inl z:KeyIn G d⊕W) (1:ℂ)) 0 zero_le_one (c:=1) le_rfl (by simp) (thawKey (F i)) le_rfl |
| 86 | simp only [one_pow,mul_one] at hx; exact hx.trans (T.price i) |
| 87 | |
| 88 | -- compare products AFTER drawing on paid bounds. Includes switch and output at same weights. |
| 89 | private lemma vertices (D : Finset (Fin n)) : |
| 90 | coin (pot D (cast M P)-pot D (fun i => rename Sum.inl (thawKey (F i)))) ≤ D.card*X.ξ*(X.base+X.ξ)^D.card := by |
| 91 | let Y := fun i => rename (Sum.inl : _ → KeyIn G d ⊕ W) (thawKey (F i)) |
| 92 | let H := cast M P |
| 93 | have hb : 0<X.base := zero_lt_one.trans_le X.home |
| 94 | have hF := X.pos |
| 95 | let v := X.base+X.ξ |
| 96 | have hv : 1 ≤ v := X.home.trans (le_add_of_nonneg_right hF) |
| 97 | have hz : 0 < v := zero_lt_one.trans_le hv |
| 98 | have he i : coin (post i (Y i))≤v := (Rise.port ..).trans ((decks T i).trans (le_add_of_nonneg_right hF)) |
| 99 | have hX i : coin (post i (H i)) ≤ v := by |
| 100 | have hh : H i=Y i+(H i-Y i) := by abel |
| 101 | apply (Rise.port i _).trans; conv_lhs => rw [hh] |
| 102 | exact (Rise.taller _ zero_le_one _ _).trans (add_le_add (decks T i) (paid T i)) |
| 103 | induction D using Finset.induction_on with |
| 104 | | empty => simp [pot,coin] |
| 105 | | @insert i D hi IH => |
| 106 | change coin (pot _ H-pot _ Y) ≤ _*v^_ |
| 107 | unfold pot; rw [prod_insert hi,prod_insert hi, card_insert_of_notMem hi]; push_cast |
| 108 | have hh (p q f g : poly (Fin n × (KeyIn G d ⊕ W))) : p*f-q*g=(p-q)*g+p*(f-g) := by ring |
| 109 | rw [hh]; apply (Rise.taller _ zero_le_one _ _).trans |
| 110 | have hq : coin (pot D Y) ≤ v^D.card := by |
| 111 | apply (purchased _ zero_le_one ..).trans; refine (Finset.prod_le_prod (fun i _ => Rise.sign _ (post i _) zero_le_one) (fun i _ => he i)).trans ?_; simp |
| 112 | rw [← map_sub] |
| 113 | apply (add_le_add (le_trans (funds _ zero_le_one ..) (mul_le_mul ((Rise.port ..).trans (paid T i)) hq |
| 114 | (Rise.sign _ (pot D Y) zero_le_one) X.pos)) ((funds _ zero_le_one ..).trans (mul_le_mul (hX i) IH (Rise.sign _ (pot D H-pot D Y) zero_le_one) hz.le))).trans |
| 115 | change X.ξ * v^D.card + v * (D.card*X.ξ*v^D.card) ≤ _ |
| 116 | have hg := mul_le_mul_of_nonneg_left (pow_le_pow_right₀ hv (Nat.le_succ D.card)) X.pos |
| 117 | rw [pow_succ] at hg ⊢; linarith only [hg] |
| 118 | |
| 119 | variable {x : Points n} (hx : x ∈ conf n) (p : Finset (Fin n)) |
| 120 | variable (Q : Normal.Symmetric (Fin n × (KeyIn G d ⊕ W))) (μ : Fin n × (KeyIn G d ⊕ W) → ℂ) |
| 121 | |
| 122 | theorem accuracy (Tset : modes (Fin n)) (Q₀ : Normal.Symmetric (Fin n × V)) (m : Fin n × V → ℂ) |
| 123 | (hp : Q₀=Normal.scope (perSlot M) Q) (hμ : m=Normal.reads (perSlot M) μ) |
| 124 | (h : Sorts Q μ X.B) |
| 125 | (he : Nearby (ferry Q) (Configuration.currentX hx G d) (μ∘polar) 0 X.B X.collision) : |
| 126 | ‖blend Q₀ m (pot Tset.val P)- Maxwell.Wick.moment G (Read.portion Tset x) (fun i => Maxwell.observable G d (F ((Read.project Tset) i).val))‖ ≤ X.cost := by |
| 127 | let Z := Tset.val |
| 128 | have hZ : Z.card ≤ n := by simpa using card_le_univ Z |
| 129 | let X' := fun i => thawKey (F i) |
| 130 | let H := cast M P |
| 131 | let Y := fun i => rename (Sum.inl : _ → KeyIn G d ⊕ W) (X' i) |
| 132 | have hz : blend Q₀ m (pot Z P)=blend Q μ (pot Z H) := by |
| 133 | rw [hp,hμ, ← wets]; apply congr_arg |
| 134 | unfold pot; rw [map_prod]; exact prod_congr rfl fun i _ => Normal.posts M i (P i) |
| 135 | have hc i : totalDegree (H i)≤k := (ascent ..).trans (T.words i) |
| 136 | have hy i : totalDegree (Y i)≤k := by unfold Y X'; rw [← T.mark i]; exact (below_degree ..).trans (hc i) |
| 137 | have hC i : totalDegree (X' i) ≤ k := le_trans (bracket ..) (hy i) |
| 138 | rw [hz, Configuration.G_subset hx]; refine (norm_sub_le_norm_sub_add_norm_sub _ (blend Q μ (pot Z Y)) _).trans ?_ |
| 139 | have hh := zero_lt_one.trans_le he.small.paid; have hD : 0≤ Common.priced X.B (n*k) := by dsimp only [Common.priced]; positivity |
| 140 | apply le_trans _ X.enough; apply add_le_add |
| 141 | · rw [← map_sub]; apply (Common.width (pot Z H-pot Z Y) (n*k) h ?_).trans |
| 142 | · apply mul_le_mul_of_nonneg_right _ hD |
| 143 | have hp : 1 ≤ X.base+X.ξ := X.home.trans (le_add_of_nonneg_right X.pos) |
| 144 | exact (vertices T Z).trans (mul_le_mul (mul_le_mul_of_nonneg_right (Nat.cast_le.mpr hZ) X.pos) |
| 145 | (pow_le_pow_right₀ hp hZ) (pow_nonneg (zero_le_one.trans hp) _) (mul_nonneg (Nat.cast_nonneg _) X.pos)) |
| 146 | rw [sub_eq_add_neg,show -(pot Z Y)=(-1:ℂ) • (pot Z Y) by simp]; exact (totalDegree_add (pot Z H) _).trans (max_le (ceiling Z H hc) ((totalDegree_smul_le (-1:ℂ) (pot Z Y)).trans (ceiling Z Y hy))) |
| 147 | · change ‖blend Q μ _-_‖ ≤ _ |
| 148 | rw [show blend Q μ (pot Z Y)=_ from tide Q μ Z X'] |
| 149 | refine (Common.differs (pot Z X') (n*k) he (ceiling Z _ hC)).trans (mul_le_mul_of_nonneg_right ?_ (mul_nonneg he.pos hD)) |
| 150 | refine (Rise.purchased _ zero_le_one ..).trans ?_ |
| 151 | have hh := prod_le_prod (s:=Z) (fun i _ => Rise.sign _ (post i (X' i)) zero_le_one) (fun i _ => (Rise.port i (X' i)).trans (T.price i)) |
| 152 | rw [prod_const] at hh; exact hh.trans (pow_le_pow_right₀ X.home hZ) |
| 153 | end YM.Next.Rank.Particle |