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 Mathlib.RingTheory.Nilpotent.Exp |
| 2 | import YM.Next.EXTRACTION.Base |
| 3 | |
| 4 | /-! |
| 5 | # Exact coefficient algebra for joint trajectories |
| 6 | |
| 7 | Exponential on the marked ideal of the *existing* commuting square-zero marker |
| 8 | algebra (including any of its allowed-set truncations); an inverse on 1 + that |
| 9 | ideal obtained by a triangular recursion by number of markers. No analytic |
| 10 | logarithm and no assumption of independence at any distance. |
| 11 | -/ |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.Extra.Trajectories |
| 15 | open Finset Marker Function |
| 16 | open scoped BigOperators ContDiff |
| 17 | variable {V : Type*} [DecidableEq V] {R : Census V} |
| 18 | |
| 19 | lemma part_sub (a b : Poly R) (i : R.Mode) : (a-b).part i = a.part i-b.part i := rfl |
| 20 | |
| 21 | lemma send_add (s : R.Mode) (a b : ℂ) : Poly.send s (a+b) = Poly.send s a + Poly.send s b := by |
| 22 | ext i |
| 23 | simp only [Poly.part_plus, Poly.part_send]; split <;> simp |
| 24 | |
| 25 | lemma tagged_mul (x y z : R.Mode) (h : Poly.merges x y z) (a b : ℂ) : |
| 26 | Poly.send x a * Poly.send y b = Poly.send z (a*b) := by |
| 27 | ext i |
| 28 | rw [Poly.part_send]; change (Poly.prod _ _).part i = _; rw [Poly.cart] |
| 29 | have he : Poly.merges x y i ↔ i = z := |
| 30 | ⟨fun hh => Subtype.ext (hh.2.symm.trans h.2), fun e => e.symm ▸ h⟩ |
| 31 | simp only [he] |
| 32 | |
| 33 | lemma merges_of_tagged_mul {x y : R.Mode} {a b : ℂ} (h : Poly.send x a * Poly.send y b ≠ 0) : |
| 34 | ∃ z, Poly.merges x y z := by |
| 35 | by_contra he |
| 36 | push Not at he |
| 37 | apply h; ext i |
| 38 | change (Poly.prod _ _).part i = 0 |
| 39 | rw [Poly.cart, if_neg (he i)] |
| 40 | |
| 41 | section Mates |
| 42 | variable {ι : Type*} (tag : ι → R.Mode) |
| 43 | |
| 44 | def Fits (s : Finset ι) := (s : Set ι).PairwiseDisjoint (fun i => (tag i).val) ∧ |
| 45 | s.biUnion (fun i => (tag i).val) ∈ R.choices |
| 46 | |
| 47 | lemma Fits.subset {s t : Finset ι} (h : Fits tag s) (ht : t ⊆ s) : Fits tag t := by |
| 48 | refine ⟨h.1.subset (coe_subset.mpr ht), R.down h.2 _ (biUnion_subset.mpr fun i hi => ?_)⟩ |
| 49 | exact subset_biUnion_of_mem (fun i => (tag i).val) (ht hi) |
| 50 | |
| 51 | def unionTag (s : Finset ι) (h : Fits tag s) : R.Mode := ⟨_,h.2⟩ |
| 52 | |
| 53 | lemma fits_empty : Fits tag ∅ := ⟨by simp, by simpa only [biUnion_empty] using R.blank⟩ |
| 54 | |
| 55 | lemma fits_singleton (i : ι) : Fits tag {i} := ⟨by simp,by simp⟩ |
| 56 | |
| 57 | lemma tagged_prod (s : Finset ι) (h : Fits tag s) (a : ι → ℂ) : |
| 58 | ∏ i∈s,Poly.send (tag i) (a i) = Poly.send (unionTag tag s h) (∏ i∈s,a i) := by |
| 59 | classical |
| 60 | induction s using Finset.induction_on with |
| 61 | | empty => |
| 62 | rw [prod_empty,prod_empty, show unionTag tag ∅ h = R.quiet from Subtype.ext biUnion_empty] |
| 63 | rfl |
| 64 | | insert i s hi ih => |
| 65 | have hs := h.subset tag (subset_insert i s) |
| 66 | rw [prod_insert hi, prod_insert hi, ih hs] |
| 67 | apply tagged_mul |
| 68 | refine ⟨(disjoint_biUnion_right ..).mpr (fun j hj => ?_), biUnion_insert.symm⟩ |
| 69 | exact h.1 (mem_insert_self ..) (mem_insert_of_mem hj) (fun e => hi (e.symm ▸ hj)) |
| 70 | |
| 71 | lemma fits_of_tagged_prod {s : Finset ι} {a : ι → ℂ} (h : ∏ i∈s,Poly.send (tag i) (a i) ≠ 0) : |
| 72 | Fits tag s := by |
| 73 | classical |
| 74 | induction s using Finset.induction_on with |
| 75 | | empty => exact fits_empty tag |
| 76 | | insert i s hi ih => |
| 77 | rw [prod_insert hi] at h |
| 78 | have hs := ih (right_ne_zero_of_mul h) |
| 79 | rw [tagged_prod tag s hs] at h |
| 80 | obtain ⟨z,hdis,hz⟩ := merges_of_tagged_mul h |
| 81 | refine ⟨?_, by rw [biUnion_insert]; exact hz ▸ z.property⟩ |
| 82 | intro j hj k hk hjk; rw [mem_coe,mem_insert] at hj hk |
| 83 | obtain rfl|ha := hj <;> obtain rfl|hb := hk |
| 84 | · contradiction |
| 85 | · exact (disjoint_biUnion_right ..).mp hdis k hb |
| 86 | · exact ((disjoint_biUnion_right ..).mp hdis j ha).symm |
| 87 | exact hs.1 ha hb hjk |
| 88 | |
| 89 | lemma toll_union (s : Finset ι) (h : Fits tag s) (w : V → ℝ) : |
| 90 | Poly.toll w (unionTag tag s h) = ∏ i∈s, Poly.toll w (tag i) := prod_biUnion h.1 |
| 91 | end Mates |
| 92 | |
| 93 | section Exp |
| 94 | variable [Fintype V] |
| 95 | |
| 96 | private local instance : Module ℚ (Poly R) := Module.compHom _ (algebraMap ℚ ℂ) |
| 97 | |
| 98 | private lemma exp_eq (x : Poly R) (h : x.part R.quiet=0) : IsNilpotent.exp x = Poly.pass x := by |
| 99 | rw [IsNilpotent.exp_eq_sum (Poly.stops x h _ (Nat.lt_succ_self _))] |
| 100 | apply sum_congr rfl |
| 101 | intro i _ |
| 102 | change (algebraMap ℚ ℂ ((i.factorial:ℚ)⁻¹)) • (x^i) = _ |
| 103 | simp |
| 104 | |
| 105 | lemma pass_add {x y : Poly R} (hx : x.part R.quiet=0) (hy : y.part R.quiet=0) : |
| 106 | Poly.pass (x+y) = Poly.pass x * Poly.pass y := by |
| 107 | rw [← exp_eq x hx,← exp_eq y hy,← exp_eq (x+y) (by simp [hx,hy])] |
| 108 | exact IsNilpotent.exp_add_of_commute (Commute.all ..) ⟨_,Poly.stops x hx _ (Nat.lt_succ_self _)⟩ |
| 109 | ⟨_,Poly.stops y hy _ (Nat.lt_succ_self _)⟩ |
| 110 | |
| 111 | lemma pass_zero : Poly.pass (0 : Poly R) = 1 := by rw [← exp_eq 0 rfl, IsNilpotent.exp_zero] |
| 112 | |
| 113 | lemma pass_send {i : R.Mode} (h : i.val.Nonempty) (c : ℂ) : |
| 114 | Poly.pass (Poly.send i c) = 1 + Poly.send i c := by |
| 115 | have ht : R.quiet ≠ i := fun e => h.ne_empty (congrArg Subtype.val e.symm) |
| 116 | have he : Poly.send i c ^ 2 = 0 := by |
| 117 | rw [pow_two]; by_contra hn |
| 118 | obtain ⟨s,h₁,h₂⟩ := merges_of_tagged_mul hn |
| 119 | obtain ⟨j,hj⟩ := h |
| 120 | exact disjoint_left.mp h₁ hj hj |
| 121 | rw [← exp_eq (Poly.send i c) (by simp [ht]), IsNilpotent.exp_eq_sum he] |
| 122 | simp [sum_range_succ] |
| 123 | |
| 124 | lemma pass_sum {α : Type*} (s : Finset α) (tag : α → R.Mode) (h : ∀ i∈s,(tag i).val.Nonempty) (f : α → ℂ) : |
| 125 | Poly.pass (∑ i∈s,Poly.send (tag i) (f i)) = ∏ i∈s,(1+Poly.send (tag i) (f i)) := by |
| 126 | classical |
| 127 | induction s using Finset.induction_on with |
| 128 | | empty => simpa using (pass_zero (R:=R)) |
| 129 | | insert i s hi ih => |
| 130 | have ht j (hj : j ∈ insert i s) : R.quiet ≠ tag j := |
| 131 | fun e => (h _ hj).ne_empty (congrArg Subtype.val e.symm) |
| 132 | rw [sum_insert hi,prod_insert hi,pass_add (by simp [ht i (mem_insert_self ..)]) (by |
| 133 | rw [Poly.part_sum]; exact sum_eq_zero fun j hj => by simp [ht j (mem_insert_of_mem hj)]), |
| 134 | pass_send (h _ (mem_insert_self ..)),ih (fun i hi => h _ (mem_insert_of_mem hi))] |
| 135 | end Exp |
| 136 | |
| 137 | section Log |
| 138 | variable [Fintype V] |
| 139 | |
| 140 | private def vanishing (x : Poly R) (k : ℕ) := ∀ s : R.Mode, s.val.card ≤ k → x.part s=0 |
| 141 | omit [Fintype V] in |
| 142 | private lemma vanish_zero {x : Poly R} (h : x.part R.quiet = 0) : vanishing x 0 := by |
| 143 | intro s hs |
| 144 | have he : s = R.quiet := Subtype.ext (card_eq_zero.mp (Nat.eq_zero_of_le_zero hs)) |
| 145 | rw [he,h] |
| 146 | |
| 147 | omit [Fintype V] in |
| 148 | private lemma vanish_mul {x y : Poly R} {k : ℕ} (h : vanishing x k) (he : y.part R.quiet=0) : |
| 149 | vanishing (x*y) (k+1) := by |
| 150 | intro s hs |
| 151 | rw [Poly.part_mul]; refine sum_eq_zero fun i _ => sum_eq_zero fun j _ => ?_ |
| 152 | split |
| 153 | next hM => |
| 154 | by_cases hj : j.val=∅ |
| 155 | · rw [show j=R.quiet from Subtype.ext hj,he,mul_zero] |
| 156 | have hc := card_pos.mpr (nonempty_iff_ne_empty.mpr hj) |
| 157 | rw [← hM.2,card_union_of_disjoint hM.1] at hs |
| 158 | rw [h i (by omega),zero_mul] |
| 159 | rfl |
| 160 | |
| 161 | private lemma vanish_pass {x : Poly R} {k : ℕ} (h : vanishing x k) : |
| 162 | vanishing (Poly.pass x-1-x) (k+1) := by |
| 163 | have h0 := h R.quiet (by simp [Census.quiet]) |
| 164 | have ht (i : ℕ) (hi : 2 ≤ i) : vanishing (x^i) (k+1) := by |
| 165 | induction i,hi using Nat.le_induction with |
| 166 | | base => rw [pow_two]; exact vanish_mul h h0 |
| 167 | | succ i hi ih => |
| 168 | rw [pow_succ]; exact vanish_mul (fun s hs => ih s (hs.trans k.le_succ)) h0 |
| 169 | intro s hs |
| 170 | rw [part_sub,part_sub,Poly.pass,Poly.part_sum, ← sum_erase_add (range (Fintype.card V+1)) _ (a:=0) (by simp), |
| 171 | sum_eq_single 1] |
| 172 | · simp |
| 173 | · intro j hj hne |
| 174 | have hj' : 2 ≤ j := by simp at hj; omega |
| 175 | rw [Poly.part_smul, ht j hj' s hs,mul_zero] |
| 176 | intro hj |
| 177 | have hz : Fintype.card V = 0 := by simpa using hj |
| 178 | rw [Poly.part_smul,pow_one,h s (by have := s.val.card_le_univ; omega),mul_zero] |
| 179 | |
| 180 | private lemma improved {x y : Poly R} {k : ℕ} (hx : x.part R.quiet=0) (h : vanishing y k) : |
| 181 | vanishing (Poly.pass (x+y)-Poly.pass x-y) (k+1) := by |
| 182 | let z := Poly.pass y-1-y |
| 183 | have hz : vanishing z (k+1) := vanish_pass h |
| 184 | have hv := h R.quiet (by simp [Census.quiet]) |
| 185 | rw [pass_add hx hv] |
| 186 | have hy : (Poly.pass x - 1).part R.quiet=0 := by simp [part_sub,Poly.pass_part x hx] |
| 187 | rw [show Poly.pass x * Poly.pass y - Poly.pass x - y = z+(y*(Poly.pass x-1))+(z*(Poly.pass x-1)) by unfold z; ring] |
| 188 | intro s hs |
| 189 | simp [hz s hs,vanish_mul h hy s hs,vanish_mul (k:=k) (fun s H => hz s (H.trans k.le_succ)) hy s hs] |
| 190 | |
| 191 | def iteration (x : Poly R) : ℕ → Poly R |
| 192 | | 0 => 0 |
| 193 | | k+1 => iteration x k + (x-Poly.pass (iteration x k)) |
| 194 | |
| 195 | private lemma convergence {x : Poly R} (h : x.part R.quiet=1) (k : ℕ) : |
| 196 | (iteration x k).part R.quiet=0 ∧ vanishing (x-Poly.pass (iteration x k)) k := by |
| 197 | induction k with |
| 198 | | zero => exact ⟨rfl,vanish_zero (by simp [iteration,pass_zero,part_sub,h])⟩ |
| 199 | | succ k ih => |
| 200 | let y := iteration x k |
| 201 | let z := x-Poly.pass y |
| 202 | have hz : vanishing z k := ih.2 |
| 203 | have he := hz R.quiet (by simp [Census.quiet]) |
| 204 | refine ⟨show (y+z).part _ = _ by simp [ih.1,he,y], ?_⟩ |
| 205 | have ht := improved ih.1 hz |
| 206 | rw [iteration,show x-Poly.pass (y+z) = -(Poly.pass (y+z)-Poly.pass y-z) by unfold z; abel] |
| 207 | exact fun s hs => by rw [Poly.part_neg, ht s hs, neg_zero] |
| 208 | |
| 209 | def connected (x : Poly R) : Poly R := iteration x (Fintype.card V) |
| 210 | |
| 211 | lemma connected_quiet {x : Poly R} (h : x.part R.quiet=1) : (connected x).part R.quiet=0 := |
| 212 | (convergence h _).1 |
| 213 | |
| 214 | lemma pass_connected {x : Poly R} (h : x.part R.quiet=1) : Poly.pass (connected x) = x := by |
| 215 | ext i |
| 216 | have he := (convergence h (Fintype.card V)).2 i i.val.card_le_univ |
| 217 | exact (eq_of_sub_eq_zero he).symm |
| 218 | |
| 219 | lemma pass_inj {x y : Poly R} (hx : x.part R.quiet=0) (hy : y.part R.quiet=0) |
| 220 | (he : Poly.pass x = Poly.pass y) : x=y := by |
| 221 | have h (k : ℕ) : vanishing (y-x) k := by |
| 222 | induction k with |
| 223 | | zero => exact vanish_zero (by rw [part_sub,hx,hy,sub_self]) |
| 224 | | succ k ih => |
| 225 | have ht := improved hx ih |
| 226 | rw [add_sub_cancel, he, sub_self, zero_sub] at ht |
| 227 | intro s hs; simpa only [Poly.part_neg,neg_eq_zero] using ht s hs |
| 228 | ext i; exact (eq_of_sub_eq_zero (h (Fintype.card V) i i.val.card_le_univ)).symm |
| 229 | |
| 230 | |
| 231 | |
| 232 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] {k : WithTop ℕ∞} {F : E → Poly R} |
| 233 | |
| 234 | omit [Fintype V] in |
| 235 | private lemma contDiff_mul_part {H : E → Poly R} |
| 236 | (hf : ∀ i, ContDiff ℝ k (fun x => (F x).part i)) (hh : ∀ i, ContDiff ℝ k (fun x => (H x).part i)) |
| 237 | (i : R.Mode) : ContDiff ℝ k (fun x => (F x * H x).part i) := by |
| 238 | simp only [Poly.part_mul] |
| 239 | refine ContDiff.sum fun i _ => ContDiff.sum fun j _ => ?_ |
| 240 | split |
| 241 | · exact (hf i).mul (hh j) |
| 242 | exact contDiff_const |
| 243 | |
| 244 | lemma contDiff_pass (hf : ∀ i, ContDiff ℝ k (fun x => (F x).part i)) (i : R.Mode) : |
| 245 | ContDiff ℝ k (fun x => (Poly.pass (F x)).part i) := by |
| 246 | have hh (n : ℕ) (j : R.Mode) : ContDiff ℝ k (fun x => (F x ^ n).part j) := by |
| 247 | induction n generalizing j with |
| 248 | | zero => simp only [pow_zero]; exact contDiff_const |
| 249 | | succ n ih => simp only [pow_succ]; exact contDiff_mul_part ih hf j |
| 250 | simp only [Poly.pass,Poly.part_sum,Poly.part_smul] |
| 251 | exact ContDiff.sum fun j _ => contDiff_const.mul (hh j i) |
| 252 | |
| 253 | lemma contDiff_connected (hf : ∀ i, ContDiff ℝ k (fun x => (F x).part i)) (i : R.Mode) : |
| 254 | ContDiff ℝ k (fun x => (connected (F x)).part i) := by |
| 255 | have hh (n : ℕ) (j : R.Mode) : ContDiff ℝ k (fun x => (iteration (F x) n).part j) := by |
| 256 | induction n generalizing j with |
| 257 | | zero => exact contDiff_const |
| 258 | | succ n ih => simp only [iteration,Poly.part_plus,part_sub]; exact (ih j).add ((hf j).sub (contDiff_pass ih j)) |
| 259 | exact hh _ _ |
| 260 | end Log |
| 261 | end YM.Extra.Trajectories |