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.Marker.Truncated |
| 2 | |
| 3 | /-! |
| 4 | # Connected vs total moments in the commuting marker algebra |
| 5 | |
| 6 | Fix a finite family of slots. Use zero marker weights separately as quantum |
| 7 | vacuum; `Expands C F` means simply `C` is the unique connected polynomial of |
| 8 | `F` (F has constant coefficient one), by the finite exponential in this |
| 9 | marker algebra. The identities here are before any integral/copy estimate. They |
| 10 | honour the commuting square-zero convention even for higher arity. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.Next.Rank.Exponential |
| 16 | open Marker Finset |
| 17 | open scoped BigOperators Pointwise |
| 18 | |
| 19 | variable {V : Type*} [DecidableEq V] {R : Census V} |
| 20 | |
| 21 | private def vanish (q : ℕ) (a : Poly R) := ∀ T : R.Mode,T.val.card < q → a.part T=0 |
| 22 | |
| 23 | private lemma vanish_add {p q : ℕ} {a b : Poly R} (hx : vanish p a) (hy : vanish q b) : vanish (p+q) (a*b) := by |
| 24 | intro T ht; rw [Poly.part_mul] |
| 25 | apply sum_eq_zero; intro i _; apply sum_eq_zero; intro j _ |
| 26 | split_ifs with h |
| 27 | · rcases h with ⟨h₁,h₂⟩ |
| 28 | by_cases hi : i.val.card<p |
| 29 | · rw [hx i hi,zero_mul] |
| 30 | rw [hy j (by rw [← h₂,card_union_of_disjoint h₁] at ht;omega),mul_zero] |
| 31 | rfl |
| 32 | private lemma vanish_zero (a : Poly R) : vanish 0 a := fun _ hx => False.elim (Nat.not_lt_zero _ hx) |
| 33 | private lemma vanish_one {a : Poly R} (ha : a.part R.quiet=0) : vanish 1 a := by |
| 34 | intro i hi; exact (show R.quiet=i from Subtype.ext (card_eq_zero.mp (show i.val.card=0 by omega)).symm) ▸ ha |
| 35 | private lemma vanish_pow {q} {a : Poly R} (h : vanish q a) : ∀ p : ℕ,vanish (q*p) (a^p) |
| 36 | | 0 => by rw [Nat.mul_zero]; exact vanish_zero _ |
| 37 | | p+1 => by rw [Nat.mul_succ, pow_succ]; exact vanish_add (vanish_pow h p) h |
| 38 | |
| 39 | @[simp] lemma part_sub (a b : Poly R) (i : R.Mode) : (a-b).part i=a.part i-b.part i := rfl |
| 40 | |
| 41 | variable [Fintype V] |
| 42 | |
| 43 | private def term (x : Poly R) (n : ℕ) := (n.factorial:ℂ)⁻¹ • x^n |
| 44 | lemma pass_extend {x : Poly R} (ht : x.part R.quiet=0) (n) (hn : Fintype.card V≤n) : Poly.pass x = |
| 45 | ∑ i∈ Finset.range (n+1),(i.factorial:ℂ)⁻¹ • x^i := by |
| 46 | apply sum_subset (Finset.range_mono (show Fintype.card V+1≤n+1 by omega)) |
| 47 | intro i _ hi; rw [Poly.stops x ht i (by simp at hi; exact hi),smul_zero] |
| 48 | |
| 49 | @[simp] lemma pass_zero : Poly.pass (0:Poly R)=1 := by |
| 50 | unfold Poly.pass |
| 51 | rw [sum_eq_single 0] |
| 52 | · simp |
| 53 | · intro b _ h; rw [zero_pow h,smul_zero] |
| 54 | simp |
| 55 | |
| 56 | theorem pass_add (x y : Poly R) (hx : x.part R.quiet=0) (hy : y.part R.quiet=0) : |
| 57 | Poly.pass (x+y) = Poly.pass x * Poly.pass y := by |
| 58 | let p := term x |
| 59 | let q := term y |
| 60 | have he (n : ℕ) : term (x+y) n = ∑ z ∈ Finset.antidiagonal n,p z.1 * q z.2 := by |
| 61 | unfold p q term |
| 62 | rw [(Commute.all x y).add_pow' n,Finset.smul_sum] |
| 63 | refine Finset.sum_congr rfl fun i hi => ?_ |
| 64 | have hl := Finset.mem_antidiagonal.mp hi |
| 65 | rw [← Nat.cast_smul_eq_nsmul ℂ, smul_smul, smul_mul_smul_comm, ← hl, Nat.cast_add_choose, hl] |
| 66 | field_simp [n.factorial_ne_zero] |
| 67 | have h (i j : ℕ) (ht : Fintype.card V < i+j) : p i*q j=0 := by |
| 68 | have hr := vanish_add (vanish_pow (vanish_one hx) i) (vanish_pow (vanish_one hy) j) |
| 69 | unfold p q term |
| 70 | rw [smul_mul_smul_comm,show x^i*y^j=0 from ?_,smul_zero] |
| 71 | ext T; rw [Poly.part_nil,hr T (by simpa using lt_of_le_of_lt (card_le_univ _) ht)] |
| 72 | let A := Finset.range (Fintype.card V + 1) |
| 73 | let I := fun (x : ℕ × ℕ) => p x.1*q x.2 |
| 74 | let B := A.biUnion Finset.antidiagonal |
| 75 | have hf : B ⊆ A ×ˢ A := by |
| 76 | refine Finset.biUnion_subset.mpr ?_ |
| 77 | intro i hi z hz; unfold A at *; rw [Finset.mem_range] at hi;rw [Finset.mem_antidiagonal] at hz |
| 78 | exact Finset.mem_product.mpr ⟨mem_range.mpr (by omega),mem_range.mpr (by omega)⟩ |
| 79 | have hv : (∑ i∈B,I i)=∑ i∈ A ×ˢ A,I i := by |
| 80 | refine sum_subset hf ?_ |
| 81 | rintro ⟨i,j⟩ _ H |
| 82 | apply h |
| 83 | by_contra! hh; exact H (mem_biUnion.mpr ⟨i+j,mem_range.mpr (by omega),Finset.mem_antidiagonal.mpr rfl⟩) |
| 84 | have hg : (A:Set ℕ).PairwiseDisjoint Finset.antidiagonal := by |
| 85 | intro i _ j _ he; exact Finset.disjoint_left.mpr fun k hk he' => he (((Finset.mem_antidiagonal.mp hk).symm).trans (Finset.mem_antidiagonal.mp he')) |
| 86 | rw [show (∑ i∈B,I i) = ∑ j∈A, ∑ i ∈ Finset.antidiagonal j,I i from Finset.sum_biUnion hg, Finset.sum_product] at hv |
| 87 | change (∑ i∈A,term (x+y) i)=(∑ i∈A,p i)*(∑ i∈A,q i) |
| 88 | rw [sum_mul_sum]; simp_rw [he]; exact hv |
| 89 | |
| 90 | lemma pass_neg (x : Poly R) (hx : x.part R.quiet=0) : Poly.pass (-x)*Poly.pass x=1 := by rw [← pass_add _ _ (by simp [hx]) hx, neg_add_cancel, pass_zero] |
| 91 | |
| 92 | lemma pass_sum {W : Type*} (s : Finset W) (f : W → Poly R) (h : ∀ i∈s,(f i).part R.quiet=0) : |
| 93 | Poly.pass (∑ i∈s,f i)= ∏ i∈s,Poly.pass (f i) := by |
| 94 | classical |
| 95 | induction s using Finset.induction_on with |
| 96 | | empty => simp |
| 97 | | @insert i t hi ih => |
| 98 | have he : ∀ i∈t,(f i).part R.quiet=0 := fun k hk => h k (by simp [hk]) |
| 99 | rw [sum_insert hi, prod_insert hi, pass_add,ih he]; exact h i (mem_insert_self ..) |
| 100 | rw [Poly.part_sum]; exact sum_eq_zero he |
| 101 | |
| 102 | -- For the logarithm we use the triangularity rather than formal differentiation. |
| 103 | private lemma pass_linear (x : Poly R) {m : ℕ} (hm : 0<m) (hx : vanish m x) (i : R.Mode) |
| 104 | (hi : i.val.card < m+1) : (Poly.pass x).part i = (1:Poly R).part i+x.part i := by |
| 105 | let n := Fintype.card V |
| 106 | rw [pass_extend (hx _ (show Finset.card _ < _ from by simpa [Census.quiet])) (n+1) (by dsimp [n]; omega),Poly.part_sum] |
| 107 | rw [Finset.sum_range_succ', Finset.sum_range_succ'] |
| 108 | change (∑ j∈ Finset.range n,(term x (j+1+1)).part i)+(term x 1).part i+(term x 0).part i = _ |
| 109 | have he j : (term x (j+1+1)).part i=0 := by |
| 110 | have h : m*(j+1+1)≥m+1 := by nlinarith |
| 111 | rw [term, Poly.part_smul,vanish_pow hx (j+1+1) i (lt_of_lt_of_le hi h),mul_zero] |
| 112 | simp_rw [he,Finset.sum_const_zero,zero_add] |
| 113 | simp [term, add_comm] |
| 114 | |
| 115 | private lemma fresh (a x : Poly R) (ha : a.part R.quiet=0) {m : ℕ} (hp : 0<m) |
| 116 | (hx : vanish m x) : vanish (m+1) (Poly.pass (a+x) - (Poly.pass a + x)) := by |
| 117 | let u := Poly.pass a - 1 |
| 118 | let v := Poly.pass x - (1+x) |
| 119 | have hu : vanish 1 u := vanish_one (by simp only [u, part_sub,Poly.pass_part a ha,Poly.one_part]; simp) |
| 120 | have hv : vanish (m+1) v := fun i hi => by simp only [v,part_sub,pass_linear x hp hx i hi,Poly.part_plus,sub_self] |
| 121 | have hE : Poly.pass (a+x) - (Poly.pass a+x) = u*x + (Poly.pass a)*v := by |
| 122 | rw [pass_add a x ha (hx _ (by simpa [Census.quiet]))]; dsimp [u,v]; ring |
| 123 | intro i hi; rw [hE,Poly.part_plus,vanish_add hu hx i (by omega),vanish_add (vanish_zero _) hv i (by omega), add_zero] |
| 124 | |
| 125 | /-- In marker algebra use unique logarithm with vanishing vacuum value. -/ |
| 126 | def Expands (C F : Poly R) : Prop := C.part R.quiet=0 ∧ Poly.pass C=F |
| 127 | |
| 128 | -- A continuous extension formula for the cumulants from coordinates (when F.part quiet=1). |
| 129 | |
| 130 | def roll (F : Poly R) : ℕ → Poly R |
| 131 | | 0 => 0 |
| 132 | | i+1 => roll F i+(F-Poly.pass (roll F i)) |
| 133 | lemma rolls (F : Poly R) (hf : F.part R.quiet=1) : Expands (roll F (Fintype.card V)) F := by |
| 134 | have h (n : ℕ) : (roll F n).part R.quiet=0 ∧ vanish (n+1) (F-Poly.pass (roll F n)) := by |
| 135 | induction n with |
| 136 | | zero => exact ⟨rfl,vanish_one (by simp [hf,roll])⟩ |
| 137 | | succ n ih => |
| 138 | let C := roll F n |
| 139 | obtain ⟨hx,H⟩ := ih |
| 140 | let x := F-Poly.pass C |
| 141 | have hz : x.part R.quiet=0 := H _ (by simp [Census.quiet]) |
| 142 | rw [roll]; refine ⟨by rw [Poly.part_plus,hx,hz,zero_add],fun i hi => ?_⟩ |
| 143 | have he := fresh C x hx (Nat.zero_lt_succ _) H i hi |
| 144 | have hh : F=Poly.pass C + x := by dsimp [x]; abel |
| 145 | rw [← hh,part_sub] at he |
| 146 | exact sub_eq_zero.mpr (sub_eq_zero.mp he).symm |
| 147 | obtain ⟨hp,H⟩ := h (Fintype.card V) |
| 148 | refine ⟨hp,?_⟩; ext i |
| 149 | have he := H i (Nat.lt_succ_of_le (card_le_univ _)); rw [part_sub] at he; exact (sub_eq_zero.mp he).symm |
| 150 | |
| 151 | lemma roll_cont (i : ℕ) : Continuous fun F : Poly R => roll F i := by |
| 152 | induction i with |
| 153 | | zero => exact continuous_const |
| 154 | | succ i H => |
| 155 | simp_rw [roll]; apply H.add; refine continuous_id.sub ?_ |
| 156 | unfold Poly.pass; exact continuous_finsetSum _ fun j _ => (H.pow j).const_smul ((j.factorial:ℂ)⁻¹) |
| 157 | |
| 158 | lemma exists_expands (F : Poly R) (hf : F.part R.quiet=1) : ∃ C : Poly R, Expands C F := |
| 159 | ⟨_,rolls F hf⟩ |
| 160 | |
| 161 | lemma Expands.uniq {C D F : Poly R} (h : Expands C F) (hx : Expands D F) : C=D := by |
| 162 | let p := C+ -D |
| 163 | have ht : p.part R.quiet=0 := by simp [p,h.1,hx.1] |
| 164 | have he : Poly.pass p=1 := by |
| 165 | dsimp only [p]; rw [pass_add _ _ h.1 (by simp [hx.1]),h.2,← hx.2, mul_comm]; exact pass_neg _ hx.1 |
| 166 | have H (m : ℕ) : vanish (m+1) p := by |
| 167 | induction m with |
| 168 | | zero => exact vanish_one ht |
| 169 | | succ k ih => |
| 170 | intro i hi |
| 171 | have h := pass_linear p (Nat.zero_lt_succ _) ih i hi |
| 172 | rw [he] at h; exact add_left_cancel (h.symm.trans (add_zero _).symm) |
| 173 | have hh : p=0 := Poly.ext fun i => H (Fintype.card V) i (Nat.lt_succ_of_le (card_le_univ _)) |
| 174 | exact sub_eq_zero.mp (by rwa [sub_eq_add_neg]) |
| 175 | |
| 176 | /-- Only for vacuum coefficient one. -/ |
| 177 | def connected (F : Poly R) (hf : F.part R.quiet=1) := (exists_expands F hf).choose |
| 178 | |
| 179 | lemma connected_spec (F : Poly R) (hf : F.part R.quiet=1) : Expands (connected F hf) F := |
| 180 | (exists_expands F hf).choose_spec |
| 181 | |
| 182 | /-- Remove the free total moments via exp of *minus* the connected ones; returns exact |
| 183 | moments, not norm estimates. Keep constant = 1 when present. -/ |
| 184 | lemma correct {D F : Poly R} (h : Expands D F) (P : Poly R) : F*(Poly.pass (-D)*P)=P := by |
| 185 | rw [← mul_assoc,← h.2,mul_comm (Poly.pass D),pass_neg _ h.1,one_mul] |
| 186 | |
| 187 | end YM.Next.Rank.Exponential |