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.PertExtension.Uniform |
| 2 | import Mathlib.Analysis.SpecialFunctions.ExpDeriv |
| 3 | |
| 4 | /-! All estimates here are on finite-dimensional cutoffs; no uniform-in-cutoff assertion. -/ |
| 5 | set_option autoImplicit false |
| 6 | noncomputable section |
| 7 | namespace YM.PertExtension.Series.Radial |
| 8 | open Filter Set Metric |
| 9 | open scoped BigOperators Topology ContDiff Classical |
| 10 | open Zone |
| 11 | variable {E : Type*} [NormedAddCommGroup E][NormedSpace ℝ E][FiniteDimensional ℝ E] |
| 12 | protected abbrev invoice : Zone E:=Radial.zone |
| 13 | |
| 14 | |
| 15 | def kernel (f : E→ℝ) := fun u=>Real.exp (-jet f 2 u) |
| 16 | def higher (f : E→ℝ) (t :ℝ)(u) := -f (t • u) / t^2 + jet f 2 u |
| 17 | def layers (f : E→ℝ)(k : ℕ)(u:E) : ℝ:= -jet f (k+2) u+(if k=0 then jet f 2 u else 0) |
| 18 | def shade (c:ℝ) : E→ℝ:=fun u=>Real.exp (c*‖u‖^2) |
| 19 | |
| 20 | structure Stationary (f : E→ℝ) : Prop where |
| 21 | smooth : ContDiffAt ℝ ∞ f 0 |
| 22 | base0 : f 0=0 |
| 23 | base1 (u : E) : jet f 1 u=0 |
| 24 | |
| 25 | namespace Stationary |
| 26 | variable {f : E→ℝ} (F : Stationary f) |
| 27 | include F |
| 28 | protected theorem cancellation (u : E)(n)(t:ℝ)(ht : 0<t) : |
| 29 | (higher f t u - eval (layers f) n t u)*t^2 = -(f (t • u) - eval (jet f) (n+2) t u) := by |
| 30 | have hne:t≠0:=ht.ne' |
| 31 | suffices h : eval (jet f) (n+2) t u=t^2*jet f 2 u - (eval (layers f) n t u)*t^2 by rw [h];unfold higher;field_simp;ring |
| 32 | unfold Zone.eval layers; simp only [smul_eq_mul] |
| 33 | rw [Finset.sum_range_succ' _ (n+2)] |
| 34 | rw [Finset.sum_range_succ' _ (n+1)] |
| 35 | have hh : (∑ i∈Finset.range (n+1), t^i * (-jet f (i+2) u + if i=0 then jet f 2 u else 0)) = -(∑ i∈Finset.range (n+1),t^i * jet f (i+2) u) + jet f 2 u := by |
| 36 | simp [mul_add, Finset.sum_add_distrib, Finset.sum_neg_distrib] |
| 37 | have he : (∑ i∈Finset.range (n+1),t^(i+1+1)*jet f (i+1+1) u)=(∑ i∈Finset.range (n+1),t^i * jet f (i+2) u)*t^2:=by |
| 38 | rw [Finset.sum_mul]; refine Finset.sum_congr rfl fun i _=>?_ |
| 39 | rw [show i+1+1=i+2 from rfl, pow_add];ring |
| 40 | rw [hh,he]; rw [jet_zero,F.base1,F.base0];ring |
| 41 | |
| 42 | protected theorem expansion : (Radial.zone (E:=E)).Built 1 (higher f) (layers f) := by |
| 43 | have H : ∀ i, (Radial.zone (E:=E)).Invoice (layers f i) := fun i => (jetInvoice f (i+2) |>.weaken (b:=fun x=>-jet f (i+2) x) (by simp)).add <| |
| 44 | ⟨by by_cases h:i=0 |
| 45 | · simpa [h] using! (jetInvoice f 2).exists_bound |
| 46 | simpa [h] using! (Invoice.const (Z:=Radial.zone) (0:ℝ)).exists_bound⟩ |
| 47 | refine ⟨H,fun k=>⟨fun _=>le_rfl,?_⟩⟩ |
| 48 | obtain ⟨δ,C,hδ,hC,hd⟩:= deposition f (k+2) F.smooth |
| 49 | refine ⟨δ,C,k+3,hδ,hC,fun u t ht hm=>?_⟩ |
| 50 | have he : ‖u‖ ≤ (Radial.zone (E:=E)).w u:= by simp [Radial.zone] |
| 51 | have h := hd u t ht <| (mul_le_mul_of_nonneg_left he ht.le).trans hm |
| 52 | calc |
| 53 | _ ≤ C*‖u‖^(k+2+1)*t^(k+1) := (le_of_mul_le_mul_right ?_ (pow_pos ht 2)) |
| 54 | _ ≤ _ := by simp only [Pi.one_apply,mul_one];gcongr |
| 55 | rw [← show ‖t^2‖=t^2 from by rw [Real.norm_eq_abs,abs_of_pos (pow_pos ht _)], ← norm_mul, Pi.sub_apply,Pi.sub_apply,F.cancellation u k t ht,norm_neg]; rw [Real.norm_eq_abs (t^2),abs_of_pos (pow_pos ht _)]; exact h.trans_eq (by rw [show k+2+1=k+1+2 from by omega, pow_add t];ring) |
| 56 | |
| 57 | omit F in |
| 58 | @[simp] lemma layers_zero (u : E) : layers f 0 u=0:=by unfold layers; exact neg_add_cancel _ |
| 59 | |
| 60 | protected theorem dominated {c : ℝ} (hc : 0 < c) : ∃ δ C : ℝ,0<δ ∧ 0≤C ∧ ∀ u (t:ℝ), |
| 61 | 0<t → t*‖u‖ ≤ δ → ‖higher f t u‖ ≤ C*‖u‖^3*t ∧ ‖higher f t u‖ ≤ c*‖u‖^2 := by |
| 62 | obtain ⟨δ,C,hδ,hC,h⟩:= deposition f 2 F.smooth |
| 63 | refine ⟨min δ (c/(C+1)),C,lt_min hδ (by positivity),hC,fun u t ht hm=>?_⟩ |
| 64 | have hd:=h u t ht (hm.trans (min_le_left ..)) |
| 65 | have he:=F.cancellation u 0 t ht; simp only [Zone.eval, zero_add,layers_zero,Finset.sum_range_one,smul_zero,sub_zero] at he |
| 66 | have h' : ‖higher f t u‖≤C*‖u‖^3*t := (le_of_mul_le_mul_right ?_ (pow_pos ht 2)) |
| 67 | · constructor;exact h' |
| 68 | calc |
| 69 | _ ≤ ‖u‖^2 * (C+1)*(t*‖u‖) := h'.trans (by nlinarith only [show 0≤t*‖u‖^3 by positivity]) |
| 70 | _ ≤ c*‖u‖^2 := by have hr := hm.trans (min_le_right ..); grw [hr];field_simp; exact le_rfl |
| 71 | calc |
| 72 | _ = ‖higher f t u*t^2‖ := by rw [norm_mul,Real.norm_eq_abs (t^2),abs_of_pos (pow_pos ht _)] |
| 73 | _ ≤ _ := by rw [he,norm_neg]; exact hd.trans_eq (by norm_num;ring) |
| 74 | |
| 75 | end Stationary |
| 76 | |
| 77 | private lemma exp_series_error (x : ℝ)(j : ℕ) : ‖Real.exp x - ∑ i∈Finset.range (j+1),(i.factorial:ℝ)⁻¹*x^i‖ ≤ ‖x‖^(j+1) * Real.exp ‖x‖ := by |
| 78 | let g : ℝ → ℝ := fun t=> Real.exp (x*t) |
| 79 | have hsm : ContDiff ℝ ∞ g := (Real.contDiff_exp).comp (contDiff_const.mul contDiff_id) |
| 80 | have hy (i : ℕ)(t)(ht : t∈Icc (0:ℝ) 1) : iteratedDerivWithin i g (Icc 0 1) t=x^i*Real.exp (x*t):=by |
| 81 | rw [iteratedDerivWithin_eq_iteratedDeriv (uniqueDiffOn_Icc zero_lt_one) ((hsm.of_le (by exact WithTop.coe_le_coe.mpr le_top)).contDiffAt) ht]; unfold g; rw [iteratedDeriv_exp_const_mul] |
| 82 | have hh : ContDiffOn ℝ ((j:WithTop ℕ∞)+1) g (Icc 0 1):=by rw [← Nat.cast_one (R:=WithTop ℕ∞),←Nat.cast_add];exact hsm.of_le (by exact WithTop.coe_le_coe.mpr le_top)|>.contDiffOn |
| 83 | have h := taylor_mean_remainder_bound (n:=j) (x:=1) (C:=‖x‖^(j+1) * Real.exp ‖x‖) (a:=0) (b:=1) zero_le_one hh (right_mem_Icc.mpr zero_le_one) ?_; swap |
| 84 | · intro y hy'; obtain ⟨hd,hu⟩:=hy' |
| 85 | rw [hy _ _ ⟨hd,hu⟩,norm_mul,norm_pow,Real.norm_eq_abs (Real.exp ..), abs_of_pos (Real.exp_pos _)] |
| 86 | exact mul_le_mul_of_nonneg_left (Real.exp_le_exp.mpr (show x*y≤‖x‖ by rw [Real.norm_eq_abs];rcases abs_cases x with ⟨eq,_⟩|⟨eq,_⟩ <;> rw [eq] <;> nlinarith)) (by positivity) |
| 87 | have e : taylorWithinEval g j (Icc 0 1) 0 1 = ∑ i∈Finset.range (j+1),(i.factorial:ℝ)⁻¹*x^i := by |
| 88 | rw [taylor_within_apply]; apply Finset.sum_congr rfl fun i _ => ?_ |
| 89 | rw [hy _ _ (left_mem_Icc.mpr zero_le_one)];simp |
| 90 | rw [e] at h; dsimp [g] at h; rw [mul_one,sub_zero,one_pow,mul_one] at h |
| 91 | exact h.trans <| div_le_self (by positivity) (by exact_mod_cast j.factorial_pos) |
| 92 | |
| 93 | def expsum (a : ℕ → E → ℝ)(k j : ℕ)(u : E) := ∑ i∈ Finset.range (k+1),(i.factorial:ℝ)⁻¹ * TaylorPow a i j u |
| 94 | lemma expsum_limit {a : ℕ → E → ℝ}(hf : a 0 = 0) {j k : ℕ} (hj : j≤k) : expsum a j j = expsum a k j := by |
| 95 | have h (i)(u : E) : ∀ j < i, TaylorPow a i j u=0:=by |
| 96 | induction i with |
| 97 | | zero=> simp |
| 98 | | succ i ih=> |
| 99 | intro j hj |
| 100 | simp only [TaylorPow, Zone.mul];apply Finset.sum_eq_zero |
| 101 | intro v hv; have hv:=Finset.mem_antidiagonal.mp hv |
| 102 | obtain hj|hj:=eq_zero_or_pos v.2 |
| 103 | · rw [hj,hf];simp |
| 104 | rw [ih _ (by omega),zero_mul] |
| 105 | funext u; unfold expsum |
| 106 | exact Finset.sum_subset (((by simp [Finset.range_subset];omega) : Finset.range (j+1) ⊆ Finset.range (k+1))) fun i hi ha=> by simp only [Finset.mem_range,not_lt] at ha; simp [h i u j ha] |
| 107 | |
| 108 | def scaled {V X : Type*}[NormedAddCommGroup V][NormedSpace ℝ V](c : ℝ) (a : X → V) := c • a |
| 109 | |
| 110 | lemma scaled_build {X : Type*}{Z : Zone X}{a : ℕ→X→ℝ}{f : ℝ→X→ℝ}{V : X→ℝ}(h : Built Z V f a)(c : ℝ) : Built Z V (fun t x=>c*f t x) (fun k x=>c*a k x) := by |
| 111 | let g : X→ℝ:=fun _=>c |
| 112 | have hb := (Invoice.const (Z:=Z) c) |
| 113 | refine ⟨fun j=> hb.mul (h.invoice j),fun j=>?_⟩ |
| 114 | refine (h.fits j).shift_a (h.fits j).envelope ⟨1,‖c‖,0,zero_lt_one,norm_nonneg _,fun x t _ _=>⟨?_,le_rfl⟩⟩ |
| 115 | dsimp only [Pi.sub_apply]; unfold Zone.eval |
| 116 | simp only [smul_eq_mul];rw [show ∑ i∈Finset.range (j+1), t^i*(c*a i x) = c*∑ i∈Finset.range (j+1),t^i*a i x by simp only [Finset.mul_sum];apply Finset.sum_congr rfl; intro; intro;ring,←mul_sub,norm_mul]; simp |
| 117 | |
| 118 | private lemma step_bound {f : E→ℝ}(F : Stationary f){c}{j : ℕ}(hc : 0<c) : (Radial.zone (E:=E)).Fits (shade c) (j+1) |
| 119 | (fun t u => Real.exp (higher f t u) - ∑ i∈Finset.range (j+1),(i.factorial:ℝ)⁻¹ * (higher f t u)^i):= by |
| 120 | have hn (u : E) : (1:ℝ)≤shade c u:= by unfold shade; apply Real.one_le_exp;positivity |
| 121 | obtain ⟨δ,C,hδ,hC,h⟩:=F.dominated hc |
| 122 | refine ⟨hn,δ,C^(j+1),3*(j+1),hδ,pow_nonneg hC _,fun u t ht hm=>?_⟩ |
| 123 | have hw : ‖u‖ ≤ (Radial.zone (E:=E)).w u := by simp [Radial.zone] |
| 124 | obtain ⟨h₁,h₂⟩:=h u t ht ((mul_le_mul_of_nonneg_left hw ht.le).trans hm) |
| 125 | have e:=exp_series_error (higher f t u) j |
| 126 | calc |
| 127 | _ ≤ (C*‖u‖^3*t)^(j+1) * shade c u := e.trans (mul_le_mul (by gcongr) (Real.exp_le_exp.mpr h₂) (Real.exp_pos _).le (by positivity)) |
| 128 | _ ≤ (C*((Radial.zone (E:=E)).w u)^3*t)^(j+1) * shade c u := by unfold shade;gcongr |
| 129 | _ = _ := by simp only [mul_pow,pow_mul];ring |
| 130 | |
| 131 | namespace Stationary |
| 132 | variable {f : E→ℝ}(F : Stationary f) |
| 133 | include F |
| 134 | protected lemma finiteExp (n : ℕ) : |
| 135 | (Radial.zone (E:=E)).Built 1 |
| 136 | (fun t u=>∑ i∈Finset.range (n+1), (i.factorial:ℝ)⁻¹ * (higher f t u)^i) |
| 137 | (expsum (layers f) n) := by |
| 138 | let g (i : ℕ) (t:ℝ)(u:E) := (i.factorial:ℝ)⁻¹ * (higher f t u)^i |
| 139 | let a (i j : ℕ)(u : E) := (i.factorial:ℝ)⁻¹*TaylorPow (layers f) i j u |
| 140 | have hp (i : ℕ) : (Radial.zone (E:=E)).Built 1 (g i) (a i) := by simpa only [one_pow, Pi.pow_apply] using! scaled_build (F.expansion.powers i) ((i.factorial:ℝ)⁻¹) |
| 141 | convert Built.fin_sum (Finset.range (n+1)) (fun i _=>hp i) (fun _=>le_rfl) using 1 |
| 142 | · funext t x;simp [Finset.sum_apply,g] |
| 143 | funext j x;simp [Finset.sum_apply,a,expsum] |
| 144 | |
| 145 | protected theorem exponential {c}(hc : 0<c) : |
| 146 | (Radial.zone (E:=E)).Built (shade c) (fun t u=>Real.exp (higher f t u)) (fun j=>expsum (layers f) j j) := by |
| 147 | refine ⟨fun j=> (F.finiteExp j).invoice j,fun j=>?_⟩ |
| 148 | have hv:=step_bound F (j:=j) hc |
| 149 | have h₁:=((F.finiteExp j).fits j).widen (V':=shade c) (fun _=>hv.envelope ..) |
| 150 | have he: eval (fun j=>expsum (layers f) j j) j= eval (expsum (layers f) j) j:=by |
| 151 | funext t u; apply Finset.sum_congr rfl (fun i hi=> by exact congrArg (fun q : E→ℝ => t^i • q u) (expsum_limit (a:=layers f) (funext fun x=>layers_zero (f:=f) x) (Nat.le_of_lt_succ (Finset.mem_range.mp hi)))) |
| 152 | rw [he]; convert hv.add h₁ using 1 |
| 153 | funext t u;exact (sub_add_sub_cancel ..).symm |
| 154 | end Stationary |
| 155 | |
| 156 | def insertion (f K : E→ℝ)(t:ℝ)(u) := K (t • u)*Real.exp (higher f t u) |
| 157 | def integrandSeries (f K : E→ℝ) := Zone.mul (jet K) (fun j=>expsum (layers f) j j) |
| 158 | |
| 159 | theorem integrand {K f : E→ℝ}(h : ContDiffAt ℝ ∞ K 0) (hf : Stationary f){c}(hc : 0<c) : |
| 160 | (Radial.zone (E:=E)).Built (shade c) (insertion f K) (integrandSeries f K) := by |
| 161 | simpa only [one_mul] using! (ordinary K h).prod (hf.exponential hc) |
| 162 | |
| 163 | end YM.PertExtension.Series.Radial |