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.GaussTrack |
| 2 | import YM.Next.RANK.Rise |
| 3 | |
| 4 | |
| 5 | /-! |
| 6 | # Pointwise costs/comparison on *finite* W polynomials |
| 7 | |
| 8 | Pull over-charge uniform K cap into coordinates BEFORE moment expansion. Only |
| 9 | parameter losses polynomial in degree ceiling powers (may use p^{o(1)} once). |
| 10 | Dimension-independent costs suffice. Mean unscaled; same-field values pre vs post |
| 11 | normal-ordered kernel. -/ |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.Next.Rank.Common |
| 15 | open Function MvPolynomial Finset Normal Rise |
| 16 | open scoped BigOperators Classical |
| 17 | |
| 18 | variable {A V : Type*} {Q Q' : Symmetric V} {m m' : V → ℂ} {B E : ℝ} |
| 19 | |
| 20 | -- means, symmetric samples; may also use over coarse geometry even over dead coordinates. |
| 21 | |
| 22 | structure Sorts (Q : Symmetric V) (m : V → ℂ) (B : ℝ) : Prop where |
| 23 | paid : 1≤B |
| 24 | mean i : ‖m i‖ ≤ B |
| 25 | entries i j : ‖Q.cov i j‖≤B |
| 26 | |
| 27 | structure Nearby (Q Q' : Symmetric V) (m m' : V → ℂ) (B E : ℝ) : Prop where |
| 28 | small : Sorts Q m B |
| 29 | small' : Sorts Q' m' B |
| 30 | pos : 0 ≤ E |
| 31 | mean i : ‖m i-m' i‖ ≤ E |
| 32 | cov i j : ‖Q.cov i j-Q'.cov i j‖ ≤ E |
| 33 | |
| 34 | -- crude but degree-continuous bound. use $((2B)(d+1))^d$ for both. - |
| 35 | |
| 36 | def priced (B : ℝ) (d : ℕ) := ((2*B)*(d+1:ℝ))^d |
| 37 | |
| 38 | private lemma finds [DecidableEq A] (Z : A → V) (d : ℕ) (p : Finset A) (h : Sorts Q m B) (hp : p.card ≤ d) : |
| 39 | ‖blend Q m (glyphs Z p)‖≤ priced B d := by |
| 40 | induction d generalizing p with |
| 41 | | zero => have he := card_eq_zero.mp (Nat.eq_zero_of_le_zero hp); subst p; simp only [glyphs,prod_empty,fresh,priced,pow_zero,norm_one,le_refl] |
| 42 | | succ d IH => |
| 43 | let c := priced B d |
| 44 | have hb := zero_lt_one.trans_le h.paid |
| 45 | have ht : 0 ≤ c := by dsimp only [c,priced]; positivity |
| 46 | obtain rfl|⟨i,hi⟩ := p.eq_empty_or_nonempty |
| 47 | · simp only [glyphs,prod_empty,fresh,norm_one]; apply one_le_pow₀; have hz := h.paid; push_cast; nlinarith |
| 48 | let s:= p.erase i |
| 49 | have hv : s.card ≤ d := by dsimp only [s]; rw [card_erase_of_mem hi]; omega |
| 50 | have h2 : ‖∑ j∈s,Q.cov (Z i) (Z j) * blend Q m (glyphs Z (s.erase j))‖ ≤ (d:ℝ)*(B*c) := by |
| 51 | apply (norm_sum_le ..).trans |
| 52 | calc |
| 53 | _ ≤ ∑ _∈s, B*c := by |
| 54 | apply sum_le_sum; intro j _; rw [norm_mul]; exact mul_le_mul (h.entries ..) (IH _ ((card_le_card (erase_subset ..)).trans hv)) (norm_nonneg _) hb.le |
| 55 | _ ≤ _ := by rw [sum_const,nsmul_eq_mul]; exact mul_le_mul_of_nonneg_right (Nat.cast_le.mpr hv) (mul_nonneg hb.le ht) |
| 56 | rw [show p=insert i s from (insert_erase hi).symm, spring ..]; rotate_left; exact notMem_erase _ _ |
| 57 | apply (norm_add_le ..).trans; rw [norm_mul] |
| 58 | apply (add_le_add (mul_le_mul (h.mean _) (IH _ hv) (norm_nonneg _) hb.le) h2).trans |
| 59 | change B*c+d*(B*c) ≤ priced B _ |
| 60 | unfold priced; push_cast; rw [pow_succ] |
| 61 | have ht' : c ≤ (2*B*(↑d+1+1))^d := by dsimp only [c,priced]; gcongr; exact le_add_of_nonneg_right zero_le_one |
| 62 | refine le_trans ?_ (mul_le_mul_of_nonneg_right ht' ?_) |
| 63 | · nlinarith only [mul_nonneg hb.le ht,zero_le_one' ℝ,mul_nonneg (Nat.cast_nonneg d) (mul_nonneg hb.le ht)] |
| 64 | positivity |
| 65 | |
| 66 | private lemma compare_pair {x y v w : ℂ} {b a E C : ℝ} (hx : ‖x-y‖ ≤ a) (hb : ‖x‖ ≤ b) (hw : ‖w‖ ≤ C) (he : ‖v-w‖ ≤ E) : |
| 67 | ‖x*v-y*w‖ ≤ b*E +a*C := by |
| 68 | rw [show x*v-y*w=x*(v-w)+(x-y)*w by ring]; apply (norm_add_le ..).trans; rw [norm_mul,norm_mul]; exact add_le_add |
| 69 | (mul_le_mul hb he (norm_nonneg _) ((norm_nonneg _).trans hb)) (mul_le_mul hx hw (norm_nonneg _) ((norm_nonneg _).trans hx)) |
| 70 | |
| 71 | private lemma crosses [DecidableEq A] (Z : A → V) (d : ℕ) (p : Finset A) (hp : p.card ≤ d) (h : Nearby Q Q' m m' B E) : |
| 72 | ‖blend Q m (glyphs Z p)-blend Q' m' (glyphs Z p)‖ ≤ E*priced B d := by |
| 73 | induction d generalizing p with |
| 74 | | zero => have he := card_eq_zero.mp (Nat.eq_zero_of_le_zero hp); subst p; simpa only [glyphs,prod_empty,fresh,sub_self, priced,pow_zero,norm_zero,mul_one] using h.pos |
| 75 | | succ d IH => |
| 76 | let c := priced B d |
| 77 | have hb := zero_lt_one.trans_le h.small'.paid; have hh := h.pos |
| 78 | have ht : 0 ≤ c := by dsimp only [c,priced]; positivity |
| 79 | obtain rfl|⟨i,hi⟩ := p.eq_empty_or_nonempty |
| 80 | · simp only [glyphs,prod_empty,fresh,sub_self,norm_zero,priced]; positivity |
| 81 | let s:= p.erase i |
| 82 | have hv : s.card ≤ d := by dsimp only [s]; rw [card_erase_of_mem hi]; omega |
| 83 | have h2 : ‖(∑ j∈s,Q.cov (Z i) (Z j)*blend Q m (glyphs Z (s.erase j))) - |
| 84 | (∑ j∈s,Q'.cov (Z i) (Z j)*blend Q' m' (glyphs Z (s.erase j)))‖ ≤ (d:ℝ)*(B*(E*c)+E*c) := by |
| 85 | rw [← Finset.sum_sub_distrib]; apply (norm_sum_le ..).trans |
| 86 | calc |
| 87 | _ ≤ ∑ j∈s, (B*(E*c)+E*c) := by |
| 88 | apply sum_le_sum; intro j _; have hn := (card_le_card (erase_subset j s)).trans hv |
| 89 | exact compare_pair (h.cov ..) (h.small.entries ..) (finds Z d _ h.small' hn) (IH _ hn) |
| 90 | _ ≤ _ := by rw [sum_const,nsmul_eq_mul]; exact mul_le_mul_of_nonneg_right (Nat.cast_le.mpr hv) (by positivity) |
| 91 | have he : i ∉ s := notMem_erase _ _ |
| 92 | rw [show p=insert i s from (insert_erase hi).symm, spring _ _ _ _ he,spring _ _ _ _ he,add_sub_add_comm] |
| 93 | apply (norm_add_le ..).trans; apply (add_le_add (compare_pair (h.mean _) (h.small.mean _) (finds Z d _ h.small' hv) (IH _ hv)) h2).trans |
| 94 | change B*(E*c)+E*c + d*(B*(E*c)+E*c) ≤ _ |
| 95 | unfold priced; push_cast; rw [pow_succ] |
| 96 | have ht' : c ≤ (2*B*(↑d+1+1))^d := by dsimp only [c,priced]; gcongr; exact le_add_of_nonneg_right zero_le_one |
| 97 | have hn : E*c ≤ B*(E*c) := le_mul_of_one_le_left (by positivity) h.small.paid |
| 98 | refine le_trans ?_ (mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_right ht' (by positivity)) hh) |
| 99 | nlinarith only [hn,mul_le_mul_of_nonneg_left hn (show (0:ℝ) ≤ d by positivity),mul_nonneg hb.le (mul_nonneg hh ht)] |
| 100 | |
| 101 | lemma letter (i : V →₀ ℕ) : |
| 102 | let n := i.sum (fun _ k => k) |
| 103 | ∃ v : Fin n → V,(monomial i 1 : poly V) = glyphs v univ := by |
| 104 | classical |
| 105 | intro n; let U := (k : i.support) × Fin (i k.val) |
| 106 | have hh : Fintype.card U=n := by |
| 107 | dsimp only [n,Finsupp.sum]; simp only [U,Fintype.card_sigma,Fintype.card_fin]; exact Finset.sum_attach .. |
| 108 | let w := Fintype.equivFinOfCardEq hh |
| 109 | let H (z : U) := X (R:=ℂ) z.1.val |
| 110 | let v := fun (k : Fin n) => (w.symm k).1.val |
| 111 | refine ⟨v,?_⟩ |
| 112 | have he : (∏ z:U,H z)=glyphs v univ := Fintype.prod_equiv w H _ (fun i => by simp only [v,Equiv.symm_apply_apply,H]) |
| 113 | rw [← he,Fintype.prod_sigma H,monomial_eq,map_one,one_mul,Finsupp.prod] |
| 114 | simp only [H,prod_const,card_univ,Fintype.card_fin]; exact (Finset.prod_attach i.support (fun k => X k ^ i k)).symm |
| 115 | |
| 116 | lemma to_basis (L : poly V→ₗ[ℂ] ℂ) (p : poly V) {A : ℝ} (h : ∀ i∈p.support, ‖L (monomial i 1)‖≤A) : ‖L p‖ ≤ coin p * A := by |
| 117 | nth_rw 1 [MvPolynomial.as_sum p]; rw [map_sum]; apply (norm_sum_le ..).trans; rw [metal,Finset.sum_mul] |
| 118 | apply sum_le_sum; intro i hi; have ht : monomial i (coeff i p) = coeff i p • monomial i (1:ℂ) := by rw [← map_smul, smul_eq_mul,mul_one] |
| 119 | rw [ht,map_smul,norm_smul]; exact mul_le_mul_of_nonneg_left (h i hi) (norm_nonneg _) |
| 120 | |
| 121 | lemma width (p : poly V) (d : ℕ) (h : Sorts Q m B) (hp : p.totalDegree ≤ d) : |
| 122 | ‖blend Q m p‖ ≤ coin p * priced B d := to_basis _ _ fun i hi => by |
| 123 | obtain ⟨v,ht⟩ := letter i; rw [ht]; apply finds v d _ h; simpa using (le_totalDegree hi).trans hp |
| 124 | lemma differs (p : poly V) (d : ℕ) (h : Nearby Q Q' m m' B E) (hp : p.totalDegree ≤ d) : |
| 125 | ‖blend Q m p-blend Q' m' p‖≤coin p * (E*priced B d) := to_basis ((blend Q m)-(blend Q' m')) p fun i hi => by |
| 126 | obtain ⟨v,ht⟩ := letter i; rw [ht]; exact crosses v d _ (by simpa using (le_totalDegree hi).trans hp) h |
| 127 | end YM.Next.Rank.Common |