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.Analysis.Analytic.Binomial |
| 2 | import Mathlib.Analysis.Calculus.BumpFunction.Convolution |
| 3 | import Mathlib.Analysis.Calculus.ContDiff.RestrictScalars |
| 4 | import Mathlib.Analysis.Calculus.ImplicitContDiff |
| 5 | import Mathlib.Analysis.Calculus.IteratedDeriv.FaaDiBruno |
| 6 | import Mathlib.Analysis.Calculus.LineDeriv.Measurable |
| 7 | import Mathlib.Analysis.Calculus.VectorField |
| 8 | import Mathlib.Analysis.Complex.RemovableSingularity |
| 9 | import Mathlib.Analysis.Fourier.AddCircleMulti |
| 10 | import Mathlib.Analysis.Normed.Group.Tannery |
| 11 | import Mathlib.Analysis.ODE.ExistUnique |
| 12 | import Mathlib.LinearAlgebra.Multilinear.Pi |
| 13 | import Mathlib.LinearAlgebra.PiTensorProduct.Generators |
| 14 | import YM.Ac.Table |
| 15 | import YM.Bid.Drops |
| 16 | import YM.Bid.Fuels |
| 17 | import YM.Org.Theatre |
| 18 | import YM.Pressure.Seeds |
| 19 | import YM.Work.A05.Read |
| 20 | import YM.Work.A07 |
| 21 | import YM.Work.B06 |
| 22 | import YM.Work.G07.Calculus |
| 23 | |
| 24 | /-! |
| 25 | # Pre-mask algebra for combining the purchased columns |
| 26 | |
| 27 | Use at *arbitrary* healthy U for `supBounds` compatibility checks, including |
| 28 | flag boundary. A subtlety adding/subtracting regular f: around a healthy U, |
| 29 | when calculating an iterated left derivative, smaller derivatives may be |
| 30 | used even at nearby **nonhealthy** V. Here we check that the actual |
| 31 | `ContDiffAt` condition in `B.Regular` suffices. |
| 32 | -/ |
| 33 | |
| 34 | set_option autoImplicit false |
| 35 | noncomputable section |
| 36 | namespace YM.Next.Foundations |
| 37 | open Function Filter Lattice Wilson RG |
| 38 | open scoped Topology Matrix.Norms.Frobenius BigOperators ContDiff |
| 39 | |
| 40 | variable {G : Gauge} {n : Side} |
| 41 | |
| 42 | section Germ |
| 43 | |
| 44 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 45 | |
| 46 | private def combine (v : Directions G n × Directions G n) : Directions G n := |
| 47 | fun e => G.plog (G.mat (G.lieExp (v.2 e) * G.lieExp (v.1 e))) |
| 48 | |
| 49 | private theorem combine_diff : ContDiffAt ℝ ω (combine (G:=G) (n:=n)) 0 := by |
| 50 | refine contDiffAt_pi.mpr fun e => ?_ |
| 51 | have hg : ContDiff ℝ ω (fun v : Directions G n × Directions G n => |
| 52 | G.mat (G.lieExp (v.2 e) * G.lieExp (v.1 e))) := |
| 53 | (G.exp_jet.comp ((contDiff_apply ℝ G.Color e).comp contDiff_snd)).mul |
| 54 | (G.exp_jet.comp ((contDiff_apply ℝ G.Color e).comp contDiff_fst)) |
| 55 | refine ContDiffAt.comp (f:=fun v => _) (g:=G.plog) _ ?_ hg.contDiffAt |
| 56 | simp only [Prod.fst_zero, Prod.snd_zero, Pi.zero_apply, G.mat_lieExp_zero, one_mul, G.mat_one] |
| 57 | exact G.plog_diff |
| 58 | |
| 59 | private theorem combine_germ (U : Config G n) : |
| 60 | (fun x : Directions G n × Directions G n => increment (increment U x.1) x.2) =ᶠ[𝓝 0] |
| 61 | increment U ∘ combine := by |
| 62 | suffices hh : ∀ i, ∀ᶠ v : Directions G n × Directions G n in 𝓝 0, |
| 63 | increment (increment U v.1) v.2 i = increment U (combine v) i by |
| 64 | filter_upwards [eventually_all.mpr hh] with x hx |
| 65 | exact funext hx |
| 66 | intro i |
| 67 | let f (q : Directions G n × Directions G n) := G.lieExp (q.2 i) * G.lieExp (q.1 i) |
| 68 | have he : Tendsto f (𝓝 0) (𝓝 1) := by |
| 69 | rw [← show f 0 = 1 by simp [f]] |
| 70 | exact (show Continuous f by unfold f; fun_prop).tendsto _ |
| 71 | filter_upwards [he.eventually G.plog_right] with q hq |
| 72 | unfold increment combine |
| 73 | rw [← mul_assoc, show G.lieExp _ = f q from hq] |
| 74 | |
| 75 | private theorem doubleAt {U : Config G n} {k : WithTop ℕ∞} {f : Config G n → E} |
| 76 | (h : ContDiffAt ℝ k (f ∘ increment U) 0) : |
| 77 | ContDiffAt ℝ k (fun q : Directions G n × Directions G n => f (increment (increment U q.1) q.2)) 0 := by |
| 78 | have hz : combine (0 : Directions G n × Directions G n) = 0 := by funext i; simp [combine] |
| 79 | apply ((hz.symm ▸ h).comp _ (combine_diff.of_le le_top)).congr_of_eventuallyEq |
| 80 | exact (combine_germ U).fun_comp f |
| 81 | |
| 82 | /-- Smoothness of lower leftDerivs in a moving increment chart, no |
| 83 | flags on those displacements. -/ |
| 84 | theorem leftDerivs_chart {U : Config G n} {f : Config G n → E} (l : List (Directions G n)) |
| 85 | (k : ℕ) (h : ContDiffAt ℝ (↑(l.length + k : ℕ)) (f ∘ increment U) 0) : |
| 86 | ContDiffAt ℝ (k : WithTop ℕ∞) (leftDerivs f l ∘ increment U) 0 := by |
| 87 | induction l generalizing k with |
| 88 | | nil => simpa! only [List.length_nil, Nat.zero_add] using h |
| 89 | | cons A l ih => |
| 90 | let V (b : Directions G n) (s : ℝ) := leftDerivs f l (increment (increment U b) (s • A)) |
| 91 | change ContDiffAt ℝ _ (fun b : Directions G n => fderiv ℝ (V b) 0 1) 0 |
| 92 | have he : ContDiffAt ℝ (↑(k+1 : ℕ)) (leftDerivs f l ∘ increment U) 0 := |
| 93 | ih (k+1) (by simpa [add_right_comm, add_assoc, add_left_comm, add_comm] using h) |
| 94 | have hQ : ContDiffAt ℝ (↑(k+1 : ℕ)) (uncurry V) 0 := by |
| 95 | let m (p : Directions G n × ℝ) := (p.1, p.2 • A) |
| 96 | have h0 : m 0 = 0 := by simp [m, Prod.zero_eq_mk] |
| 97 | have hh : ContDiffAt ℝ (↑(k+1 : ℕ)) |
| 98 | (fun q : Directions G n × Directions G n => leftDerivs f l (increment (increment U q.1) q.2)) (m 0) := |
| 99 | h0.symm ▸ doubleAt he |
| 100 | exact hh.comp 0 (f:=m) (by unfold m; fun_prop) |
| 101 | exact (hQ.fderiv (f:=V) (g:=fun _ => 0) (m:=↑k) contDiffAt_const (by push_cast; rfl)).clm_apply |
| 102 | (g:=fun _ => (1:ℝ)) contDiffAt_const |
| 103 | |
| 104 | /-- In these conventions `ContDiffAt` already supplies the additional |
| 105 | `Regular.hasDerivs` check. -/ |
| 106 | theorem left_has {U : Config G n} {f : Config G n → E} {k : ℕ} (A : Directions G n) |
| 107 | {l : List (Directions G n)} (h : l.length < k) (he : ContDiffAt ℝ k (f ∘ increment U) 0) : |
| 108 | HasDerivAt (fun t : ℝ => leftDerivs f l (increment U (t • A))) (leftDerivs f (A :: l) U) 0 := by |
| 109 | have hh : ContDiffAt ℝ (1 : WithTop ℕ∞) (leftDerivs f l ∘ increment U) 0 := by |
| 110 | simpa only [Nat.cast_one] using leftDerivs_chart l 1 (he.of_le (Nat.cast_le.mpr h)) |
| 111 | have ht : ContDiffAt ℝ (1 : WithTop ℕ∞) (fun t : ℝ => leftDerivs f l (increment U (t • A))) 0 := by |
| 112 | let q (t : ℝ) := t • A |
| 113 | exact ((show q 0=0 by simp [q]).symm ▸ hh).comp 0 (f:=q) (by unfold q; fun_prop) |
| 114 | exact (ht.differentiableAt one_ne_zero).hasDerivAt |
| 115 | |
| 116 | /-- Changing base points along a variation. -/ |
| 117 | private theorem chart_near {U : Config G n} {f : Config G n → E} {k : ℕ} |
| 118 | (he : ContDiffAt ℝ k (f ∘ increment U) 0) (A : Directions G n) : |
| 119 | ∀ᶠ t : ℝ in 𝓝 0, ContDiffAt ℝ k (f ∘ increment (increment U (t • A))) 0 := by |
| 120 | let q (t : ℝ) := (t • A, (0:Directions G n)) |
| 121 | have ht : Tendsto q (𝓝 0) (𝓝 0) := by |
| 122 | rw [← show q 0=0 by simp [q, Prod.zero_eq_mk]] |
| 123 | exact (show Continuous q by unfold q; fun_prop).tendsto _ |
| 124 | filter_upwards [ht.eventually ((doubleAt he).eventually (by simp))] with i hi |
| 125 | exact hi.comp 0 (f:=fun x => (i • A,x)) (contDiffAt_const.prodMk contDiffAt_id) |
| 126 | |
| 127 | private theorem jet_add {U : Config G n} {f g : Config G n → E} {k : ℕ} (l : List (Directions G n)) |
| 128 | (h : ContDiffAt ℝ k (f ∘ increment U) 0) (hg : ContDiffAt ℝ k (g ∘ increment U) 0) (he : l.length ≤ k) : |
| 129 | leftDerivs (f+g) l U = leftDerivs f l U + leftDerivs g l U := by |
| 130 | induction l generalizing U with |
| 131 | | nil => rfl |
| 132 | | cons A l ih => |
| 133 | have hh : l.length < k := he |
| 134 | refine (((left_has A hh h).add (left_has A hh hg)).congr_of_eventuallyEq (f₁:=fun t => |
| 135 | leftDerivs (f+g) l (increment U (t • A))) ?_).deriv |
| 136 | filter_upwards [chart_near h A, chart_near hg A] with i hi ht |
| 137 | exact ih hi ht hh.le |
| 138 | |
| 139 | end Germ |
| 140 | |
| 141 | section Columns |
| 142 | |
| 143 | variable {P : BudgetPoint} {o : Site n} {s : Support n} {f g : Config G n → ℂ} {a b : ℝ} |
| 144 | |
| 145 | private theorem jet_mult (c : ℂ) (f : Config G n → ℂ) (l : List (Directions G n)) |
| 146 | (U : Config G n) : leftDerivs (c • f) l U = c • leftDerivs f l U := by |
| 147 | induction l generalizing U with |
| 148 | | nil => rfl |
| 149 | | cons A l ih => simp only [leftDerivs, ih]; exact deriv_fun_const_smul_field .. |
| 150 | |
| 151 | lemma regular_add (hf : P.Regular s f) (hg : P.Regular s g) : P.Regular s (f+g) := by |
| 152 | have he : ∀ U : Config G n, Healthy P.threshold s U → |
| 153 | ContDiffAt ℝ (P.order : WithTop ℕ∞) ((f+g) ∘ increment U) 0 := |
| 154 | fun U hu => (hf.smooth U hu).add (hg.smooth U hu) |
| 155 | refine ⟨?_, hf.borel.add hg.borel, ?_, he, fun U hv A _ h => left_has A h (he U hv)⟩ |
| 156 | · intro U V h |
| 157 | exact congr_arg₂ (· + ·) (hf.sites U V h) (hg.sites U V h) |
| 158 | intro T U; exact congr_arg₂ (· + ·) (hf.symmetry _ _) (hg.symmetry _ _) |
| 159 | |
| 160 | lemma regular_smul (c : ℂ) (hf : P.Regular s f) : P.Regular s (c • f) := by |
| 161 | have he : ∀ U : Config G n, Healthy P.threshold s U → |
| 162 | ContDiffAt ℝ (P.order : WithTop ℕ∞) ((c • f) ∘ increment U) 0 := |
| 163 | fun U hu => (hf.smooth U hu).const_smul c |
| 164 | refine ⟨?_, hf.borel.const_smul _, ?_, he, fun U hv A _ h => left_has A h (he U hv)⟩ |
| 165 | · intro U V h |
| 166 | exact congr_arg (c • ·) (hf.sites U V h) |
| 167 | intro T U; exact congr_arg (c • ·) (hf.symmetry _ _) |
| 168 | |
| 169 | lemma regular_sub (hf : P.Regular s f) (hg : P.Regular s g) : P.Regular s (f-g) := by |
| 170 | rw [sub_eq_add_neg, ← neg_one_smul ℂ g]; exact regular_add hf (regular_smul _ hg) |
| 171 | |
| 172 | lemma bound_add (hf : P.Regular s f) (hg : P.Regular s g) |
| 173 | (h : P.supBounds o s f a) (h' : P.supBounds o s g b) : P.supBounds o s (f+g) (a+b) := by |
| 174 | refine ⟨add_nonneg h.1 h'.1, fun U hu l hl hD => ?_⟩ |
| 175 | rw [jet_add l (hf.smooth U hu) (hg.smooth U hu) hl] |
| 176 | exact (norm_add_le ..).trans (add_le_add (h.2 _ hu _ hl hD) (h'.2 _ hu _ hl hD)) |
| 177 | |
| 178 | lemma bound_smul (c : ℂ) (h : P.supBounds o s f a) : P.supBounds o s (c • f) (‖c‖*a) := by |
| 179 | refine ⟨mul_nonneg (norm_nonneg _) h.1, fun U hu l hl hD => ?_⟩ |
| 180 | rw [jet_mult, norm_smul] |
| 181 | exact mul_le_mul_of_nonneg_left (h.2 _ hu _ hl hD) (norm_nonneg _) |
| 182 | |
| 183 | lemma bound_sub (hf : P.Regular s f) (hg : P.Regular s g) |
| 184 | (h : P.supBounds o s f a) (h' : P.supBounds o s g b) : P.supBounds o s (f-g) (a+b) := by |
| 185 | simpa [sub_eq_add_neg] using bound_add hf (regular_smul (-1) hg) h (bound_smul _ h') |
| 186 | |
| 187 | lemma regular_bound_sum {ι : Type*} (I : Finset ι) (u : ι → Config G n → ℂ) (c : ι → ℝ) |
| 188 | (h : ∀ i ∈ I, P.Regular s (u i) ∧ P.supBounds o s (u i) (c i)) : |
| 189 | P.Regular s (∑ i ∈ I, u i) ∧ P.supBounds o s (∑ i ∈ I, u i) (∑ i ∈ I, c i) := by |
| 190 | classical |
| 191 | induction I using Finset.induction_on with |
| 192 | | empty => |
| 193 | simp only [Finset.sum_empty] |
| 194 | refine ⟨⟨fun _ _ _ => rfl, measurable_const, fun _ _ => rfl, ?_, ?_⟩, ?_⟩ |
| 195 | · intro U _; exact contDiffAt_const |
| 196 | · intro U _ A l hl |
| 197 | exact left_has A hl (f:=0) contDiffAt_const |
| 198 | refine ⟨le_rfl,fun U hu l hl hd => le_of_eq ?_⟩ |
| 199 | rw [show leftDerivs (0 : Config G n → ℂ) l U = _ from Work.G07.left_const 0 l U] |
| 200 | simp |
| 201 | | insert i I hi ih => |
| 202 | simp only [Finset.sum_insert hi] |
| 203 | obtain ⟨hp,hb⟩ := h i (by simp) |
| 204 | obtain ⟨hx,hX⟩ := ih fun j hj => h j (by simp [hj]) |
| 205 | exact ⟨regular_add hp hx, bound_add hp hx hb hX⟩ |
| 206 | |
| 207 | lemma regular_larger {u : Support n} (h : P.Regular s f) (hs : s ⊆ u) : P.Regular u f := |
| 208 | ⟨fun _ _ hv => h.sites _ _ (agrees_mono hv (Finset.coe_subset.mpr hs)), h.borel,h.symmetry, |
| 209 | fun U hU => h.smooth U (Finset.disjoint_of_subset_left hs hU), |
| 210 | fun U hU => h.hasDerivs U (Finset.disjoint_of_subset_left hs hU)⟩ |
| 211 | |
| 212 | lemma bound_larger {u : Support n} (h : P.supBounds o s f a) (hs : s ⊆ u) : P.supBounds o u f a := |
| 213 | ⟨h.1, fun U hU => h.2 U (Finset.disjoint_of_subset_left hs hU)⟩ |
| 214 | |
| 215 | end Columns |
| 216 | end YM.Next.Foundations |