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.Calculus.ContDiff.CPolynomial |
| 2 | import Mathlib.Analysis.Calculus.TaylorIntegral |
| 3 | import Mathlib.Analysis.Calculus.BumpFunction.InnerProduct |
| 4 | import Mathlib.Analysis.InnerProductSpace.Calculus |
| 5 | import Mathlib.Analysis.SpecialFunctions.Pow.Integral |
| 6 | |
| 7 | /-! Concrete radial/Taylor subtraction utilities on the full smooth test class. -/ |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | namespace YM.MultipleContact |
| 11 | open Set Function Filter MeasureTheory TopologicalSpace |
| 12 | open scoped Topology ContDiff InnerProductSpace BigOperators Classical |
| 13 | |
| 14 | variable {E: Type*}[NormedAddCommGroup E][InnerProductSpace ℝ E] |
| 15 | |
| 16 | /-- Common C∞ radial profile. -/ |
| 17 | def χ : ContDiffBump (0:ℝ):=⟨1,4,zero_lt_one,by norm_num⟩ |
| 18 | def cutoff (s:ℝ) (x:E) : ℝ:=χ (‖x‖^2/s^2) |
| 19 | omit [InnerProductSpace ℝ E] in |
| 20 | lemma cutoff_eq_one {s:ℝ}(hs:0<s) {x:E}(hx:‖x‖≤s):cutoff s x=1:=by |
| 21 | apply χ.one_of_mem_closedBall |
| 22 | have he:0 ≤ ‖x‖^2/s^2:=by positivity |
| 23 | rw [Metric.mem_closedBall,dist_zero_right,Real.norm_eq_abs,abs_of_nonneg he] |
| 24 | exact (div_le_one (sq_pos_of_pos hs)).2 ((sq_le_sq₀ (norm_nonneg x) hs.le).2 hx) |
| 25 | omit [InnerProductSpace ℝ E] in |
| 26 | lemma cutoff_eq_zero {s:ℝ}(hs:0<s) {x:E}(hx:2*s≤‖x‖):cutoff s x=0:=by |
| 27 | apply χ.zero_of_le_dist |
| 28 | rw [dist_zero_right]; refine le_trans ?_ (Real.le_norm_self _) |
| 29 | exact ((le_div_iff₀ (sq_pos_of_pos hs)).2 (by dsimp [χ]; nlinarith [(norm_nonneg x)])) |
| 30 | omit [InnerProductSpace ℝ E] in |
| 31 | lemma cutoff_mem (s:ℝ)(x:E):0≤cutoff s x ∧ cutoff s x≤1:= ⟨χ.nonneg,χ.le_one⟩ |
| 32 | lemma cutoff_smooth (s:ℝ):ContDiff ℝ ∞ (cutoff (E:=E) s):=χ.contDiff |>.comp ((contDiff_id.norm_sq (𝕜:=ℝ)).div_const _) |
| 33 | |
| 34 | def coeff (i:ℕ)(f : E→ℂ)(y:E) := (↑(i.factorial):ℝ)⁻¹ • iteratedFDeriv ℝ i f 0 (fun _=>y) |
| 35 | def polyJet (m:ℕ)(f : E→ℂ)(y:E) :=∑ i∈ Finset.range (m+1),coeff i f y |
| 36 | def diff (s:ℝ)(m:Option ℕ)(f:E→ℂ):E→ℂ:=match m with |
| 37 | | none=> f |
| 38 | | some m=> fun y=>f y-cutoff s y • polyJet m f y |
| 39 | |
| 40 | lemma coeff_contDiff (f:E→ℂ)(i:ℕ):ContDiff ℝ ∞ (coeff i f):=by |
| 41 | refine (iterate_after _).const_smul _ |
| 42 | where |
| 43 | iterate_after (i:ℕ):ContDiff ℝ ∞ (fun x=>iteratedFDeriv ℝ i f (0:E) fun _=>x):=by |
| 44 | exact (iteratedFDeriv ℝ i f 0).contDiff.comp (contDiff_pi.mpr fun _=>contDiff_id) |
| 45 | lemma polyJet_contDiff (m:ℕ)(f:E→ℂ):ContDiff ℝ ∞ (polyJet m f):=by exact ContDiff.sum (fun i _=>coeff_contDiff f i) |
| 46 | lemma diff_contDiff {f:E→ℂ}(hf:ContDiff ℝ ∞ f) (s:ℝ) : ∀ m,ContDiff ℝ ∞ (diff s m f) |
| 47 | | none=>hf |
| 48 | | some m=>hf.sub ((cutoff_smooth s).smul (polyJet_contDiff m f)) |
| 49 | |
| 50 | lemma poly_integral {f:E→ℂ} (hs:ContDiff ℝ ∞ f) (m:ℕ) (y:E): |
| 51 | f y= polyJet m f y + (↑m.factorial:ℝ)⁻¹ • ∫ t:ℝ in 0..1,(1-t)^m • iteratedFDeriv ℝ (m+1) f (t • y) (fun _=>y):=by |
| 52 | simpa only [zero_add, coeff,polyJet] using (map_add_eq_sum_add_integral_iteratedFDeriv (x:=(0:E)) (n:=m) (y:=y) fun t _=> hs.contDiffAt.of_le (by norm_cast;exact le_top)) |
| 53 | |
| 54 | def JetBounds (m:ℕ) (f:E→ℂ) (A:ℝ) : Prop:= 0 ≤ A ∧ ∀ y:E,∀ i:ℕ,i≤m→ ‖iteratedFDeriv ℝ i f y‖ ≤ A |
| 55 | theorem JetBounds.value {m:ℕ}{f:E→ℂ}{A:ℝ}(h:JetBounds m f A)(x:E):‖f x‖≤A:=by simpa only [norm_iteratedFDeriv_zero] using h.2 x 0 (Nat.zero_le _) |
| 56 | theorem JetBounds.weaker {m k:ℕ}{f:E→ℂ}{A:ℝ}(h:JetBounds k f A)(hm:m ≤ k):JetBounds m f A:=⟨h.1,fun y i hi=> h.2 y i (hi.trans hm)⟩ |
| 57 | theorem fact_mul_bound {x:ℂ}{n:ℕ}:‖(↑n.factorial:ℝ)⁻¹ • x‖≤‖x‖:=by |
| 58 | rw [norm_smul]; refine mul_le_of_le_one_left (norm_nonneg _) ?_ |
| 59 | rw [norm_inv,Real.norm_natCast]; exact inv_le_one_of_one_le₀ (by exact_mod_cast (Nat.one_le_iff_ne_zero.mpr (Nat.factorial_pos n|>.ne'))) |
| 60 | lemma JetBounds.peak {m:ℕ}{f:E→ℂ}{B}(h:JetBounds m f B)(z y:E)(i:ℕ)(hi:i≤m):‖(iteratedFDeriv ℝ i f z) (fun _=>y)‖ ≤ B*‖y‖^i:= by |
| 61 | |
| 62 | refine ((iteratedFDeriv ℝ i f z).le_opNorm (fun _=>y)).trans ?_; simp only [Finset.prod_const,Finset.card_univ,Fintype.card_fin]; exact (mul_le_mul_of_nonneg_right (h.2 z i hi) (by positivity)) |
| 63 | theorem poly_bound {f:E→ℂ}{A:ℝ}{m:ℕ} (hs:ContDiff ℝ ∞ f)(ha:JetBounds (m+1) f A) (y:E): |
| 64 | ‖f y - polyJet m f y‖ ≤ A*‖y‖^(m+1):=by |
| 65 | nth_rw 1 [poly_integral hs m y]; rw [add_sub_cancel_left]; apply fact_mul_bound.trans |
| 66 | refine (intervalIntegral.norm_integral_le_of_norm_le_const (C:=A*‖y‖^(m+1)) ?_).trans (by norm_num) |
| 67 | intro t ht |
| 68 | have ht : t∈Set.Ioc 0 1:=by rwa [Set.uIoc_of_le zero_le_one] at ht |
| 69 | apply le_trans ?_ (ha.peak (t•y) y (m+1) le_rfl) |
| 70 | rw [norm_smul]; refine mul_le_of_le_one_left (norm_nonneg _) ?_ |
| 71 | rw [norm_pow,Real.norm_eq_abs,abs_of_nonneg (by linarith [ht.2])]; exact pow_le_one₀ (by linarith [ht.2]) (by linarith [ht.1]) |
| 72 | |
| 73 | -- test with normalized Jacobian and arbitrary shrinking length r. |
| 74 | def scaled [FiniteDimensional ℝ E](r:ℝ)(f:E→ℂ)(x:E):ℂ := (r^(Module.finrank ℝ E))⁻¹ • f (r⁻¹ • x) |
| 75 | lemma scaled_jet [FiniteDimensional ℝ E]{f:E→ℂ}(hs:ContDiff ℝ ∞ f)(r:ℝ)(m:ℕ)(y:E): |
| 76 | polyJet m (scaled r f) y=(r^(Module.finrank ℝ E))⁻¹ • polyJet m f (r⁻¹ • y):=by |
| 77 | have he (i:ℕ):coeff i (scaled r f) y=(r^(Module.finrank ℝ E))⁻¹ • coeff i f (r⁻¹ • y):=by |
| 78 | let L : E →L[ℝ] E := (r⁻¹:ℝ) • .id ℝ E |
| 79 | let q := r^(Module.finrank ℝ E); unfold coeff |
| 80 | change (↑i.factorial:ℝ)⁻¹ • (iteratedFDeriv ℝ i (q⁻¹ • (f ∘ (L:E→E))) 0 (fun _=>y))=_ |
| 81 | rw [iteratedFDeriv_const_smul_apply, L.iteratedFDeriv_comp_right hs] |
| 82 | · change (↑i.factorial:ℝ)⁻¹ • (q⁻¹ • iteratedFDeriv ℝ i f (L 0) (fun _=>L y))=_ |
| 83 | rw [map_zero]; exact smul_comm .. |
| 84 | · norm_cast; exact le_top |
| 85 | · exact (hs.comp L.contDiff).contDiffAt.of_le (by norm_cast; exact le_top) |
| 86 | unfold polyJet; simp only [he,Finset.smul_sum] |
| 87 | |
| 88 | lemma diff_scaled [FiniteDimensional ℝ E]{f:E→ℂ}(hs:ContDiff ℝ ∞ f) |
| 89 | (r s:ℝ)(hr:0<r) (hR:r≤s){A:ℝ}{m:ℕ}(ha:JetBounds (m+1) f A)(y:E): |
| 90 | ‖diff s (some m) (scaled r f) y‖ ≤ (m+4:ℝ) * A * (r^(Module.finrank ℝ E))⁻¹ * min ((‖y‖/r)^(m+1)) ((‖y‖/r)^m):=by |
| 91 | have hy:0≤ ‖y‖/r:=by positivity |
| 92 | have hp:= (sq_pos_of_pos hr); let g:= ‖y‖/r |
| 93 | have ht:‖r⁻¹ • y‖=g:=by dsimp [g]; simp [norm_smul,Real.norm_of_nonneg (inv_nonneg.mpr hr.le), div_eq_inv_mul] |
| 94 | have he: ‖diff s (some m) (scaled r f) y‖=(r^(Module.finrank ℝ E))⁻¹ * ‖f (r⁻¹ • y) - cutoff s y • polyJet m f (r⁻¹ • y)‖ :=by |
| 95 | dsimp only [diff]; rw [scaled_jet hs r]; unfold scaled; rw [smul_comm (cutoff s y) ((r^(Module.finrank ℝ E))⁻¹),← smul_sub,norm_smul,Real.norm_of_nonneg (by positivity)] -- check |
| 96 | rw [he] |
| 97 | by_cases hg : ‖y‖ ≤ r |
| 98 | · rw [cutoff_eq_one (hr.trans_le hR) (hg.trans hR), one_smul,min_eq_left (pow_le_pow_of_le_one hy ((div_le_one hr).2 hg) (Nat.le_succ _))] |
| 99 | apply (mul_le_mul_of_nonneg_left (by simpa only [ht] using (poly_bound hs ha (r⁻¹•y))) (by positivity : 0≤(r^(Module.finrank ℝ E))⁻¹)).trans |
| 100 | have hm:= ha.1; have hq:= show 0 ≤ (r^Module.finrank ℝ E)⁻¹ * (A * (‖y‖/r)^(m+1)) by positivity |
| 101 | dsimp [g] |
| 102 | simp only [pow_succ] at hq ⊢; nlinarith only [mul_nonneg hq (Nat.cast_nonneg (α:=ℝ) m), hq] |
| 103 | have hg' := (one_le_div₀ hr).2 (le_of_not_ge hg) |
| 104 | have hh (i:ℕ)(hi:i<m+1):‖coeff i f (r⁻¹ • y)‖ ≤ A*g^m := fact_mul_bound.trans (by |
| 105 | rw [← ht]; exact (ha.peak 0 (r⁻¹ • y) _ (by omega)).trans (mul_le_mul_of_nonneg_left (pow_le_pow_right₀ (by rwa [ht]) (by omega : i≤m)) ha.1)) |
| 106 | have hv: ‖polyJet m f (r⁻¹ • y)‖ ≤ (m+1:ℝ) * (A*g^m) := (norm_sum_le ..).trans (by |
| 107 | refine (Finset.sum_le_sum (fun i hi=>hh i (Finset.mem_range.mp hi))).trans ?_ |
| 108 | simp) |
| 109 | rw [min_eq_right (pow_le_pow_right₀ hg' (Nat.le_succ _))] |
| 110 | refine (mul_le_mul_of_nonneg_left (a:=(r^Module.finrank ℝ E)⁻¹) (c:=A+‖polyJet m f (r⁻¹ • y)‖) ?_ (by positivity)).trans ?_ |
| 111 | · apply (norm_sub_le ..).trans (add_le_add (ha.value _) ?_) |
| 112 | rw [norm_smul]; exact mul_le_of_le_one_left (norm_nonneg _) (by rw [Real.norm_of_nonneg (cutoff_mem s y).1]; exact (cutoff_mem s y).2) |
| 113 | have hp:g=‖y‖/r:=rfl; rw [hp] at *; exact (mul_le_mul_of_nonneg_left (by rw [add_mul]; rw [add_mul]; nlinarith only [hv,mul_nonneg (sub_nonneg.mpr (one_le_pow₀ hg' (n:=m))) ha.1,ha.1] : A+‖polyJet m f _‖ ≤ (m+2:ℝ)* A*(‖y‖/r)^m) (by positivity : 0≤(r^(Module.finrank ℝ E))⁻¹)).trans (by nlinarith only [show 0 ≤ (‖y‖/r)^m * A* (r^(Module.finrank ℝ E))⁻¹ by have h := ha.1; positivity] ) |
| 114 | |
| 115 | lemma diff_bound {s:ℝ}{f:E→ℂ}(hs:0<s)(hf:ContDiff ℝ ∞ f)(m:ℕ){A:ℝ}(h:JetBounds (m+1) f A)(y:E): |
| 116 | ‖diff s (some m) f y‖ ≤ ((m+2:ℝ) * (1+s⁻¹)^(m+1) * A) * ‖y‖^(m+1):=by |
| 117 | have hp:=h.1; have ht:1 ≤ (1 + s⁻¹):= by have hg := inv_nonneg.mpr hs.le; linarith |
| 118 | let T:=(1+s⁻¹)^(m+1); have hT:1 ≤ T:=one_le_pow₀ ht |
| 119 | by_cases hy:‖y‖ ≤ s |
| 120 | · rw [diff]; dsimp only; rw [cutoff_eq_one hs hy,one_smul] |
| 121 | have he:A≤ (m+2:ℝ)*T*A:=(le_mul_of_one_le_left hp (by have hv:=Nat.cast_nonneg (α:=ℝ) m; nlinarith only [mul_nonneg (sub_nonneg.mpr hT) hv,hv,hT] : 1≤(m+2:ℝ)*T)) |
| 122 | exact (poly_bound hf h y).trans (mul_le_mul_of_nonneg_right he (by positivity)) |
| 123 | have hy':1 ≤ (1+s⁻¹)*‖y‖:=by |
| 124 | suffices 1 ≤ ‖y‖ / s by rw [add_mul,one_mul,← div_eq_inv_mul]; linarith only [this,norm_nonneg y] |
| 125 | exact (one_le_div₀ hs).2 (le_of_not_ge hy) |
| 126 | have hu (i:ℕ)(hi:i≤m+1):‖y‖^i ≤ T*‖y‖^(m+1):=by |
| 127 | by_cases hx:‖y‖≤1 |
| 128 | · unfold T; rw [← mul_pow]; exact (pow_le_one₀ (norm_nonneg y) hx).trans (one_le_pow₀ hy') |
| 129 | exact (pow_le_pow_right₀ (le_of_not_ge hx) hi).trans (le_mul_of_one_le_left (by positivity) hT) |
| 130 | have hg: ‖polyJet m f y‖ ≤ (m+1:ℝ)*(A*(T*‖y‖^(m+1))) := (norm_sum_le ..).trans (le_trans (Finset.sum_le_sum (fun i hi=> (@fact_mul_bound _ i).trans ((h.peak 0 y i (Nat.le_of_lt (Finset.mem_range.mp hi))).trans (mul_le_mul_of_nonneg_left (hu i (Nat.le_of_lt (Finset.mem_range.mp hi))) h.1)))) (by simp)) |
| 131 | have hl: ‖polyJet m f y‖ ≥ ‖cutoff s y • polyJet m f y‖:=by rw [norm_smul]; exact mul_le_of_le_one_left (norm_nonneg _) (by rw [Real.norm_of_nonneg (cutoff_mem s y).1]; exact (cutoff_mem s y).2) |
| 132 | refine (norm_sub_le ..).trans ((add_le_add ((h.value y).trans (le_trans ?_ (mul_le_mul_of_nonneg_left (hu 0 (by omega)) h.1))) hl).trans ?_) |
| 133 | · simp |
| 134 | change A * _ + _ ≤ (m+2:ℝ)*T*A*_; linarith only [hg] |
| 135 | end YM.MultipleContact |