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.Gauge.Chart |
| 2 | import YM.RG.Masks |
| 3 | |
| 4 | |
| 5 | /-! |
| 6 | # Ordered derivatives for the proof of G07 |
| 7 | |
| 8 | Small algebra of globally smooth functions of links (as seen by increments), |
| 9 | truncated order bounds `c * r ^ length` on any direction and base-point |
| 10 | test sets. `r` can e.g. be the threshold, to charge link variations, or 1, |
| 11 | to charge products of curvature factors, where each factor already pays a |
| 12 | threshold at all the tested orders. Finitary, no uniformity in the maximum |
| 13 | order. No symmetry of mixed derivatives used here. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | noncomputable section |
| 18 | namespace YM.Work.G07 |
| 19 | open RG Lattice Wilson |
| 20 | open scoped ContDiff Matrix.Norms.Frobenius |
| 21 | |
| 22 | variable {G : Gauge} {n : Side} {k m : ℕ} |
| 23 | {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 24 | [NormedAddCommGroup F] [NormedSpace ℝ F] {f g : Config G n → E} |
| 25 | |
| 26 | theorem at_zero_increment (U : Config G n) : increment U 0 = U := by |
| 27 | funext e; simp [increment] |
| 28 | |
| 29 | /-- Truncate how many ordered derivatives we're keeping. All are globally |
| 30 | smooth when read in increments around any configuration. -/ |
| 31 | def LeftSmooth (k : ℕ) (f : Config G n → E) : Prop := |
| 32 | ∀ l : List (Directions G n), l.length ≤ k → ∀ U : Config G n, |
| 33 | ContDiff ℝ ∞ (fun v => leftDerivs f l (increment U v)) |
| 34 | |
| 35 | theorem LeftSmooth.truncate (hf : LeftSmooth k f) (h : m ≤ k) : LeftSmooth m f := |
| 36 | fun l hl U => hf l (hl.trans h) U |
| 37 | |
| 38 | theorem LeftSmooth.has (hf : LeftSmooth k f) {l} (hl : List.length l ≤ k) |
| 39 | (U : Config G n) (A : Directions G n) : |
| 40 | HasDerivAt (fun t : ℝ => leftDerivs f l (increment U (t • A))) |
| 41 | (leftDerivs f (A::l) U) 0 := by |
| 42 | have hs : ContDiff ℝ ∞ (fun t : ℝ => leftDerivs f l (increment U (t • A))) := |
| 43 | (hf l hl U).comp (show ContDiff ℝ ∞ (fun t : ℝ => t • A) from contDiff_id.smul contDiff_const) |
| 44 | exact ((hs.differentiable (by simp)) 0).hasDerivAt |
| 45 | |
| 46 | theorem left_append (f : Config G n → E) (l l' : List (Directions G n)) : |
| 47 | leftDerivs f (l ++ l') = leftDerivs (leftDerivs f l') l := by |
| 48 | induction l with |
| 49 | | nil => rfl |
| 50 | | cons A l ih => funext U; simp only [List.cons_append, leftDerivs, ih] |
| 51 | |
| 52 | theorem LeftSmooth.inner_derivative (hf : LeftSmooth (k+1) f) (A : Directions G n) : |
| 53 | LeftSmooth k (leftDerivs f [A]) := by |
| 54 | intro l hl U |
| 55 | simp only [← left_append]; apply hf |
| 56 | simpa only [List.length_append, List.length_singleton, Nat.add_le_add_iff_right] |
| 57 | |
| 58 | theorem left_add (hf : LeftSmooth k f) (hg : LeftSmooth k g) {l} |
| 59 | (hl : List.length l ≤ k) : |
| 60 | leftDerivs (fun U => f U + g U) l = fun U => leftDerivs f l U + leftDerivs g l U := by |
| 61 | induction l with |
| 62 | | nil => rfl |
| 63 | | cons A l ih => |
| 64 | have hm : l.length ≤ k := (by simp at hl; omega) |
| 65 | funext U |
| 66 | change deriv (fun t : ℝ => leftDerivs _ l (increment U (t • A))) 0 = _ |
| 67 | simp only [ih hm]; exact ((hf.has hm U A).add (hg.has hm U A)).deriv |
| 68 | |
| 69 | theorem LeftSmooth.add (hf : LeftSmooth k f) (hg : LeftSmooth k g) : |
| 70 | LeftSmooth k fun U => f U + g U := by |
| 71 | intro l hl U |
| 72 | simp only [left_add hf hg hl]; exact (hf _ hl U).add (hg _ hl U) |
| 73 | |
| 74 | theorem left_linear (hf : LeftSmooth k f) (L : E →L[ℝ] F) {l} |
| 75 | (hl : List.length l ≤ k) : |
| 76 | leftDerivs (fun U => L (f U)) l = fun U => L (leftDerivs f l U) := by |
| 77 | induction l with |
| 78 | | nil => rfl |
| 79 | | cons A l ih => |
| 80 | have hm : l.length ≤ k := (by simp at hl; omega) |
| 81 | funext U |
| 82 | change deriv (fun t : ℝ => leftDerivs _ l (increment U (t • A))) 0 = _ |
| 83 | simp only [ih hm]; exact (L.hasFDerivAt.comp_hasDerivAt 0 (hf.has hm U A)).deriv |
| 84 | |
| 85 | theorem LeftSmooth.postcomp (hf : LeftSmooth k f) (L : E →L[ℝ] F) : |
| 86 | LeftSmooth k fun U => L (f U) := by |
| 87 | intro l hl U |
| 88 | simp only [left_linear hf L hl]; exact L.contDiff.comp (hf _ hl U) |
| 89 | |
| 90 | section product |
| 91 | variable {R : Type*} [NormedRing R] [NormedAlgebra ℝ R] {x y : Config G n → R} |
| 92 | |
| 93 | theorem left_first_mul (hx : LeftSmooth k x) (hy : LeftSmooth k y) (A : Directions G n) : |
| 94 | leftDerivs (fun U => x U * y U) [A] = |
| 95 | fun U => leftDerivs x [A] U * y U + x U * leftDerivs y [A] U := by |
| 96 | funext U |
| 97 | have he := ((hx.has (l:=[]) (Nat.zero_le _) U A).mul (hy.has (l:=[]) (Nat.zero_le _) U A)).deriv |
| 98 | change deriv (fun t : ℝ => x (increment U (t • A)) * y (increment U (t • A))) 0 = |
| 99 | leftDerivs x [A] U * y (increment U ((0:ℝ) • A)) + |
| 100 | x (increment U ((0:ℝ) • A)) * leftDerivs y [A] U at he |
| 101 | rw [zero_smul, at_zero_increment] at he; exact he |
| 102 | |
| 103 | theorem LeftSmooth.mul (hx : LeftSmooth k x) (hy : LeftSmooth k y) : |
| 104 | LeftSmooth k fun U => x U * y U := by |
| 105 | induction k generalizing x y with |
| 106 | | zero => |
| 107 | intro l hl U |
| 108 | simp only [Nat.le_zero, List.length_eq_zero_iff] at hl |
| 109 | subst l; exact (hx [] (Nat.zero_le _) U).mul (hy [] (Nat.zero_le _) U) |
| 110 | | succ k ih => |
| 111 | intro l hl |
| 112 | induction l using List.reverseRecOn with |
| 113 | | nil => intro U; exact (hx [] hl U).mul (hy [] hl U) |
| 114 | | append_singleton l A _ => |
| 115 | simp only [List.length_append, List.length_singleton, Nat.add_le_add_iff_right] at hl |
| 116 | intro U |
| 117 | simp only [left_append, left_first_mul hx hy A] |
| 118 | have ha := ih (hx.inner_derivative A) (hy.truncate k.le_succ) |
| 119 | have hb := ih (hx.truncate k.le_succ) (hy.inner_derivative A) |
| 120 | exact ha.add hb l hl U |
| 121 | end product |
| 122 | |
| 123 | /-- Bound the l-th ordered derivatives tested with D on Z. -/ |
| 124 | structure LeftBound (k : ℕ) (D : Directions G n → Prop) (Z : Config G n → Prop) |
| 125 | (r c : ℝ) (f : Config G n → E) : Prop where |
| 126 | smooth : LeftSmooth k f |
| 127 | nonneg : 0 ≤ c |
| 128 | bound (l : List (Directions G n)) : l.length ≤ k → (∀ i∈l, D i) → |
| 129 | ∀ U, Z U → ‖leftDerivs f l U‖ ≤ c * r ^ l.length |
| 130 | |
| 131 | variable {D : Directions G n → Prop} {Z : Config G n → Prop} {c c' r : ℝ} |
| 132 | |
| 133 | theorem LeftBound.truncate (hf : LeftBound k D Z r c f) (h : m ≤ k) : |
| 134 | LeftBound m D Z r c f := |
| 135 | ⟨hf.smooth.truncate h, hf.nonneg, fun l hl => hf.bound l (hl.trans h)⟩ |
| 136 | |
| 137 | theorem LeftBound.inner_derivative (hf : LeftBound (k+1) D Z r c f) (hr : 0 ≤ r) |
| 138 | {A : Directions G n} (hA : D A) : LeftBound k D Z r (c*r) (leftDerivs f [A]) := by |
| 139 | refine ⟨hf.smooth.inner_derivative A, mul_nonneg hf.nonneg hr, ?_⟩ |
| 140 | intro l hl hD U hU |
| 141 | rw [← left_append] |
| 142 | apply (hf.bound (l++[A]) (by simpa) |
| 143 | (fun i hi => by |
| 144 | simp only [List.mem_append, List.mem_singleton] at hi |
| 145 | rcases hi with hh|rfl |
| 146 | · exact hD _ hh |
| 147 | · exact hA) U hU).trans_eq |
| 148 | simp only [List.length_append, List.length_singleton, pow_succ] |
| 149 | ring |
| 150 | |
| 151 | theorem LeftBound.add (hf : LeftBound k D Z r c f) (hg : LeftBound k D Z r c' g) : |
| 152 | LeftBound k D Z r (c+c') fun U => f U + g U := by |
| 153 | refine ⟨hf.smooth.add hg.smooth, add_nonneg hf.nonneg hg.nonneg, ?_⟩ |
| 154 | intro l hl hD U hU |
| 155 | simp only [left_add hf.smooth hg.smooth hl, add_mul] |
| 156 | exact (norm_add_le ..).trans <| add_le_add (hf.bound _ hl hD U hU) (hg.bound _ hl hD U hU) |
| 157 | |
| 158 | theorem LeftBound.postcomp (hf : LeftBound k D Z r c f) (L : E →L[ℝ] F) : |
| 159 | LeftBound k D Z r (‖L‖*c) fun U => L (f U) := by |
| 160 | refine ⟨hf.smooth.postcomp L, mul_nonneg (norm_nonneg _) hf.nonneg, ?_⟩ |
| 161 | intro l hl hD U hU |
| 162 | simp only [left_linear hf.smooth L hl, mul_assoc] |
| 163 | exact (L.le_opNorm _).trans <| mul_le_mul_of_nonneg_left (hf.bound _ hl hD U hU) |
| 164 | (norm_nonneg _) |
| 165 | |
| 166 | theorem left_const (x : E) (l : List (Directions G n)) (U : Config G n) : |
| 167 | leftDerivs (fun (_ : Config G n) => x) l U = if l = [] then x else 0 := by |
| 168 | classical |
| 169 | induction l generalizing U with |
| 170 | | nil => simp [leftDerivs] |
| 171 | | cons A l ih => simp [leftDerivs, ih, deriv_const] |
| 172 | |
| 173 | theorem LeftBound.const (hr : 0 ≤ r) (x : E) : |
| 174 | LeftBound k D Z r ‖x‖ fun _ => x := by |
| 175 | refine ⟨fun l _ U => ?_, norm_nonneg _, ?_⟩ |
| 176 | · simp only [left_const]; exact contDiff_const |
| 177 | · intro l _ _ U _; cases l with |
| 178 | | nil => simp [left_const] |
| 179 | | cons A l => |
| 180 | simp only [left_const, reduceCtorEq, ↓reduceIte, norm_zero] |
| 181 | exact mul_nonneg (norm_nonneg _) (pow_nonneg hr _) |
| 182 | |
| 183 | /-- A coarse Leibniz budget, no factorials. -/ |
| 184 | theorem LeftBound.mul {R : Type*} [NormedRing R] [NormedAlgebra ℝ R] {x y : Config G n → R} |
| 185 | (hx : LeftBound k D Z r c x) (hy : LeftBound k D Z r c' y) (hr : 0 ≤ r) : |
| 186 | LeftBound k D Z r (2^k*c*c') fun U => x U * y U := by |
| 187 | have start {m : ℕ} {x y : Config G n → R} {c c' : ℝ} |
| 188 | (h1 : LeftBound m D Z r c x) (h2 : LeftBound m D Z r c' y) (U : Config G n) (hU : Z U) : |
| 189 | ‖x U * y U‖ ≤ 2^m*c*c' := by |
| 190 | have he : ‖x U‖ ≤ c := by simpa [leftDerivs] using h1.bound [] (by simp) (by simp) U hU |
| 191 | have hh : ‖y U‖ ≤ c' := by simpa [leftDerivs] using h2.bound [] (by simp) (by simp) U hU |
| 192 | have hpow : (1:ℝ) ≤ 2^m := one_le_pow₀ (by norm_num) |
| 193 | apply (norm_mul_le ..).trans <| (mul_le_mul he hh (norm_nonneg _) h1.nonneg).trans ?_ |
| 194 | rw [mul_assoc] |
| 195 | exact le_mul_of_one_le_left (mul_nonneg h1.nonneg h2.nonneg) hpow |
| 196 | induction k generalizing x y c c' with |
| 197 | | zero => |
| 198 | refine ⟨hx.smooth.mul hy.smooth, mul_nonneg (mul_nonneg (by positivity) hx.nonneg) hy.nonneg, ?_⟩ |
| 199 | intro l hl _ U hU |
| 200 | simp only [Nat.le_zero, List.length_eq_zero_iff] at hl |
| 201 | subst l; simpa only [leftDerivs, List.length_nil, pow_zero, mul_one] using |
| 202 | (show ‖x U * y U‖ ≤ 2^0*c*c' from start hx hy U hU) |
| 203 | | succ k ih => |
| 204 | refine ⟨hx.smooth.mul hy.smooth, mul_nonneg (mul_nonneg (by positivity) hx.nonneg) hy.nonneg, ?_⟩ |
| 205 | intro l hl hD |
| 206 | induction l using List.reverseRecOn with |
| 207 | | nil => |
| 208 | intro U hU; simpa only [leftDerivs, List.length_nil, pow_zero, mul_one] using |
| 209 | (show ‖x U * y U‖ ≤ 2^(k+1)*c*c' from start hx hy U hU) |
| 210 | | append_singleton l A _ => |
| 211 | simp only [List.length_append, List.length_singleton, Nat.add_le_add_iff_right] at hl |
| 212 | intro U hU |
| 213 | have ha := ih (hx.inner_derivative hr (hD A (by simp))) (hy.truncate k.le_succ) |
| 214 | have hb := ih (hx.truncate k.le_succ) (hy.inner_derivative hr (hD A (by simp))) |
| 215 | simp only [left_append, left_first_mul hx.smooth hy.smooth A] |
| 216 | exact le_trans ((ha.add hb).bound l hl (fun i hi => hD _ (List.mem_append_left _ hi)) U hU) |
| 217 | (le_of_eq (by simp only [List.length_append, List.length_singleton, pow_succ]; ring)) |
| 218 | |
| 219 | end YM.Work.G07 |