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.Contact.Order |
| 2 | import YM.Euclid.Differential |
| 3 | |
| 4 | /-! Finite derivative costs for the ordinary (integer degree, real multivariate) Taylor |
| 5 | subtraction before introducing annular splittings. Exponents here are independent of any |
| 6 | perturbative-order index. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | set_option autoImplicit false |
| 10 | open Set Function Filter ContinuousLinearMap |
| 11 | open scoped Topology BigOperators ContDiff |
| 12 | namespace YM.Contacts |
| 13 | variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F][NormedSpace ℝ F] |
| 14 | lemma polynomial_smooth (m:ℕ)(φ:E→ℂ)(x:E):ContDiff ℝ ⊤ (polynomial m φ x):=ContDiff.sum fun _ _=>jet_smooth .. |
| 15 | lemma jet_t_pow (j:ℕ)(φ:E→ℂ)(x y : E)(t:ℝ) : jet j φ x (x+t • y) = (t^j) • jet j φ x (x+y):=by |
| 16 | simp only [jet,add_sub_cancel_left,ContinuousMultilinearMap.map_smul_univ,Finset.prod_const,Finset.card_univ,Fintype.card_fin];rw [smul_comm] |
| 17 | private lemma along_ray (φ:E→ℂ) (x v:E)(i:ℕ) (hf:ContDiff ℝ i φ): |
| 18 | iteratedDeriv i (fun t:ℝ=> φ (x+t • v)) 0 = Tensor.diagonal (iteratedFDeriv ℝ i φ x) v :=by |
| 19 | let f(y:E):=φ (x+y); let L:ℝ→L[ℝ] E:= (ContinuousLinearMap.id ℝ ℝ).smulRight v |
| 20 | have hl:ContDiff ℝ i f:= hf.comp (contDiff_const.add contDiff_id) |
| 21 | rw [iteratedDeriv_eq_iteratedFDeriv]; change iteratedFDeriv ℝ i (f∘⇑L) 0 _ = _ |
| 22 | rw [L.iteratedFDeriv_comp_right hl 0 (le_refl _),show iteratedFDeriv ℝ i f (L 0)=_ from iteratedFDeriv_comp_add_left ..,map_zero,add_zero,ContinuousMultilinearMap.compContinuousLinearMap_apply]; congr 1;ext1 j; change (1:ℝ) • v= v; exact one_smul .. |
| 23 | |
| 24 | lemma flat_of_sub (m j : ℕ) (φ:E→ℂ)(hf:ContDiff ℝ ∞ φ)(x:E)(hj:j ≤ m): |
| 25 | iteratedFDeriv ℝ j (fun y=> φ y-polynomial m φ x y) x=0:=by |
| 26 | let f(y):= φ y - polynomial m φ x y |
| 27 | have hz:ContDiff ℝ ∞ f:= hf.sub ((polynomial_smooth ..).of_le le_top) |
| 28 | refine Tensor.ext_diag _ _ (Analysis.sym_Jet (hz.of_le (WithTop.coe_le_coe.mpr (show (j:ℕ∞)≤⊤ from le_top))|>.contDiffAt)) (fun _ _=>rfl) (funext fun v=>?_) -- field local |
| 29 | change Tensor.diagonal (iteratedFDeriv ℝ j f x) v=(0: YM.Tensor.T E ℂ j) (fun _=>v) |
| 30 | rw [← along_ray f x v j] |
| 31 | · change iteratedDeriv j (fun t:ℝ=> φ (x+t•v)-_) 0=0 |
| 32 | let g(t:ℝ):=x+t • v; have hg: ContDiff ℝ ∞ g:=contDiff_const.add (contDiff_id.smul_const ..) |
| 33 | -- Taylor along a ray polynomial |
| 34 | rw [show (fun t:ℝ=> φ (x+t•v)-polynomial m φ x (x+t • v))=(fun t=>φ (g t))- (∑ i∈Finset.range (m+1),(fun t:ℝ=>(t^i) • jet i φ x (x+v))) from funext (fun t=>by change _ = _ - (∑ i∈Finset.range (m+1),fun t:ℝ=>t^i • jet i φ x (x+v)) t; rw [Finset.sum_apply]; change _ - ∑ i∈_, jet .. = _ - _;simp_rw [jet_t_pow];rfl), |
| 35 | iteratedDeriv_sub (f:=fun t=>φ (g t)) (n:=j) ((hf.comp hg).of_le (WithTop.coe_le_coe.mpr (show (j:ℕ∞)≤⊤ from le_top))|>.contDiffAt) ?_,sub_eq_zero] |
| 36 | · have hb(i): iteratedDeriv j (fun t:ℝ=>t^i • jet i φ x (x+v)) 0=if j=i then (j.factorial:ℝ) • jet j φ x (x+v) else 0:=by |
| 37 | rw [iteratedDeriv_smul_const ((contDiffAt_id.pow _).of_le le_top), iteratedDeriv_pow]; by_cases ht:j=i |
| 38 | · subst i; rw [tsub_self,pow_zero,mul_one,if_pos rfl,Nat.descFactorial_self] |
| 39 | rw [if_neg ht]; rcases lt_or_gt_of_ne ht with hv|hv |
| 40 | · rw [zero_pow (Nat.sub_ne_zero_iff_lt.mpr hv),mul_zero,zero_smul] |
| 41 | rw [Nat.descFactorial_of_lt hv,Nat.cast_zero,zero_mul,zero_smul] |
| 42 | rw [iteratedDeriv_sum (fun i _=>(contDiffAt_id.pow ..).smul contDiffAt_const)]; simp_rw [hb]; rw [Finset.sum_eq_single_of_mem j (Finset.mem_range_succ_iff.mpr hj) (fun i _ hi=>by rw [if_neg (Ne.symm hi)]),if_pos rfl] |
| 43 | change iteratedDeriv j (fun t:ℝ=>φ (x+t • v)) 0=(j.factorial:ℝ) • _ |
| 44 | rw [along_ray φ x v j (hf.of_le (WithTop.coe_le_coe.mpr (show (j:ℕ∞)≤⊤ from le_top))), jet, add_sub_cancel_left,← mul_smul, mul_inv_cancel₀ (by exact_mod_cast (Nat.factorial_pos j|>.ne')),one_smul]; rfl |
| 45 | · rw [show (∑ i∈Finset.range (m+1),_)= (fun t:ℝ=>∑ i∈Finset.range (m+1), t^i • jet i φ x (x+v)) from funext fun t:ℝ=>Finset.sum_apply ..] |
| 46 | exact (ContDiff.sum (n:=⊤) (𝕜:=ℝ) (f:=fun i t=> (t:ℝ)^i • jet i φ x (x+v)) (s:=Finset.range (m+1)) (fun _ _=> contDiff_id.pow ..|>.smul contDiff_const)).of_le le_top|>.contDiffAt |
| 47 | exact hz.of_le (WithTop.coe_le_coe.mpr le_top) |
| 48 | |
| 49 | /-- Taylor jet zero at the origin plus a bound on highest derivative gives all the weighted |
| 50 | lower bounds *on the entire segment* of approach. -/ |
| 51 | theorem norm_deriv_from_zero (j l:ℕ){f:E→F} (hf:ContDiff ℝ (↑(j+l+1:ℕ)) f) |
| 52 | (ht:∀ i ≤ j,iteratedFDeriv ℝ (l+i) f 0=0){x:E}{B:ℝ}(hb:0≤B) |
| 53 | (h:∀ y,‖y‖≤‖x‖ → ‖iteratedFDeriv ℝ (j+l+1) f y‖≤ B) : |
| 54 | ‖iteratedFDeriv ℝ l f x‖ ≤ ‖x‖^(j+1)*B:=by |
| 55 | have he:∀ i:ℕ,i≤j→∀ y:E,‖y‖≤‖x‖ → ‖iteratedFDeriv ℝ (l+j-i) f y‖ ≤ ‖x‖^(i+1)*B:=by |
| 56 | intro i hi; induction i with |
| 57 | | zero=> |
| 58 | intro y hy; rw [Nat.sub_zero,pow_one] |
| 59 | have hz:= convex_closedBall (E:=E) (0:E) ‖x‖ |>.norm_image_sub_le_of_norm_fderiv_le |
| 60 | (f:=iteratedFDeriv ℝ (l+j) f) (C:=B) (x:=0) (y:=y) |
| 61 | (fun y _=> hf.differentiable_iteratedFDeriv (mod_cast (by omega : l+j<j+l+1)) y) |
| 62 | (fun z hz=> norm_fderiv_iteratedFDeriv (f:=f)|>.trans_le (by rw [Nat.add_comm l]; exact h z (mem_closedBall_zero_iff.mp hz))) |
| 63 | (by simp) (mem_closedBall_zero_iff.mpr hy) |
| 64 | rw [ht _ le_rfl,sub_zero,sub_zero] at hz; exact hz.trans ((mul_le_mul_of_nonneg_left hy hb).trans_eq (mul_comm ..)) |
| 65 | | succ i ih=> |
| 66 | intro y hy; have hzi:i+1≤j:=hi; have hq:= ht (j-(i+1)) (by omega); rw [← Nat.add_sub_assoc hzi] at hq |
| 67 | have hz:= convex_closedBall (E:=E) (0:E) ‖x‖ |>.norm_image_sub_le_of_norm_fderiv_le |
| 68 | (f:=iteratedFDeriv ℝ (l+j-(i+1)) f) (C:=‖x‖^(i+1)*B) (x:=0) (y:=y) |
| 69 | (fun y _=> hf.differentiable_iteratedFDeriv (mod_cast (by omega : l+j-(i+1)<j+l+1)) y) |
| 70 | (fun z hz=> norm_fderiv_iteratedFDeriv (f:=f)|>.trans_le (by rw [show l+j-(i+1)+1=l+j-i by omega];exact ih (by omega) z (mem_closedBall_zero_iff.mp hz))) |
| 71 | (by simp) (mem_closedBall_zero_iff.mpr hy) |
| 72 | rw [hq,sub_zero,sub_zero] at hz; apply hz.trans ((mul_le_mul_of_nonneg_left hy (mul_nonneg (pow_nonneg (norm_nonneg _) _) hb)).trans_eq (by rw [pow_succ (‖x‖)]; ring)) |
| 73 | have hg:=he j le_rfl x le_rfl; rw [show l+j-j=l by omega] at hg; exact hg |
| 74 | |
| 75 | -- Linear map from the top derivative at the center into any local derivative of a Taylor term. |
| 76 | def diagMap (j:ℕ)(a:E)(v:Tensor.T E ℂ j)(x:E):= ((j.factorial:ℝ)⁻¹ :ℝ) • v (fun _=>x-a) |
| 77 | lemma diagMap_smooth (j:ℕ)(a:E)(v:Tensor.T E ℂ j): ContDiff ℝ ⊤ (diagMap _ a v):= |
| 78 | (contDiff_const (c:=(j.factorial:ℝ)⁻¹)).smul (ContinuousMultilinearMap.contDiff v |>.comp (contDiff_pi.mpr (fun _=> contDiff_id.sub (contDiff_const (c:=a))))) |
| 79 | def termOperator (i j:ℕ)(a:E)(x:E): Tensor.T E ℂ j →ₗ[ℝ] Tensor.T E ℂ i where |
| 80 | toFun v:=iteratedFDeriv ℝ i (diagMap j a v) x |
| 81 | map_add' f g:=by rw [show diagMap j a (f+g)=diagMap j a f+diagMap j a g from funext fun y=>smul_add _ (f (fun _=> y-a)) (g (fun _=> y-a)),iteratedFDeriv_add ((diagMap_smooth ..)|>.of_le le_top) ((diagMap_smooth ..)|>.of_le le_top),Pi.add_apply] -- exact transparent? |
| 82 | map_smul' c f:=by rw [show diagMap j a (c • f)= c • (diagMap j a f) from funext fun y=> smul_comm _ c (f fun _=> y-a),iteratedFDeriv_const_smul_apply ((diagMap_smooth ..).of_le le_top|>.contDiffAt)]; rfl |
| 83 | |
| 84 | lemma poly_deriv_bound [FiniteDimensional ℝ E] (k j:ℕ)(R:ℝ):∃ C≥0,∀ {φ:E→ℂ}{B}, (∀ i≤j, ‖iteratedFDeriv ℝ i φ 0‖≤B) →∀ l≤k,∀ x:E,‖x‖≤R→ |
| 85 | ‖iteratedFDeriv ℝ l (polynomial j φ 0) x‖ ≤ C*B:=by |
| 86 | classical |
| 87 | let ι(i:ℕ):=Module.Free.ChooseBasisIndex ℝ (Tensor.T E ℂ i); letI (i:ℕ):Fintype (ι i):= inferInstanceAs (Fintype (Module.Free.ChooseBasisIndex ..)) |
| 88 | let b (i:ℕ): Module.Basis (ι i) ℝ _:=Module.Free.chooseBasis ℝ (Tensor.T E ℂ i) |
| 89 | let w (i:ℕ)(p:ι i):ℝ:=‖LinearMap.toContinuousLinearMap ((b i).coord p)‖ |
| 90 | let K:= Metric.closedBall (0:E) R; have hf:= isCompact_closedBall (0:E) R |
| 91 | choose f₀ h₀ using (show ∀ i l (t:ι i),∃ D:ℝ,∀ x∈K, ‖iteratedFDeriv ℝ (l:ℕ) (diagMap i 0 (b i t)) x‖≤ D from fun i l t => |
| 92 | let ht:= hf.bddAbove_image (f:= fun x=> ‖iteratedFDeriv ℝ (l:ℕ) (diagMap i 0 (b i t)) x‖) ((diagMap_smooth ..).continuous_iteratedFDeriv le_top|>.norm.continuousOn) |
| 93 | ⟨ht.choose,fun x hx=>ht.choose_spec (Set.mem_image_of_mem _ hx)⟩) |
| 94 | let f(i l:ℕ)(p:ι i):= max 1 (f₀ i l p) |
| 95 | let c(φ:E→ℂ)(i:ℕ)(p:ι i):=(b i).coord p (iteratedFDeriv ℝ i φ 0) |
| 96 | let g(l i:ℕ)(p:ι i)(x:E):=termOperator l i (0:E) x (b i p) |
| 97 | have hl l i x (φ):iteratedFDeriv ℝ l (jet i φ 0) x= ∑ p,c φ i p • g l i p x:=by |
| 98 | change termOperator l i _ _ _=_ |
| 99 | have ht(v:Tensor.T E ℂ i):v=∑ p:ι i,(b i).coord p v • b i p:= ((b i).sum_repr v).symm |
| 100 | conv_lhs=> rw [ht (iteratedFDeriv ℝ i φ 0), map_sum]; simp only [map_smul] |
| 101 | let cost(l:ℕ):= ∑ i∈Finset.range (j+1),∑ p:ι i,w i p*f i l p |
| 102 | have hm(l):0≤cost l:= Finset.sum_nonneg fun i _=> Finset.sum_nonneg fun p _=> mul_nonneg (norm_nonneg (LinearMap.toContinuousLinearMap ((b i).coord p))) (le_trans zero_le_one (le_max_left ..)) |
| 103 | refine ⟨∑ l∈Finset.range (k+1),cost l,Finset.sum_nonneg (fun l _=> hm l),fun {φ B} H l hl' x hx=>?_⟩ |
| 104 | have hB:0≤B:= (norm_nonneg _).trans (H _ (Nat.zero_le _)) |
| 105 | have he i (hi:i∈Finset.range (j+1)): ‖iteratedFDeriv ℝ l (jet i φ 0) x‖ ≤ (∑ p:ι i,w i p*f i l p) * B:=by |
| 106 | rw [hl,Finset.sum_mul]; apply (norm_sum_le ..).trans (Finset.sum_le_sum (fun p _=>?_)) |
| 107 | have hV : ‖c φ i p‖≤w i p * B:= ((LinearMap.toContinuousLinearMap ((b i).coord p)).le_opNorm _).trans (mul_le_mul_of_nonneg_left (H _ (Finset.mem_range_succ_iff.mp hi)) (norm_nonneg _)) |
| 108 | rw [norm_smul]; calc |
| 109 | _ ≤ (w i p*B) * ‖g l i p x‖:= mul_le_mul_of_nonneg_right hV (norm_nonneg (g l i p x)) |
| 110 | _ ≤ (w i p*B)*f i l p:= mul_le_mul_of_nonneg_left ((h₀ i l p x (mem_closedBall_zero_iff.mpr hx)).trans (le_max_right ..)) (mul_nonneg (norm_nonneg (LinearMap.toContinuousLinearMap ((b i).coord p))) hB) |
| 111 | _ = _:=by ring |
| 112 | rw [show polynomial j φ (0:E) = (fun y=>∑ i∈Finset.range (j+1), jet i φ 0 y) from rfl, iteratedFDeriv_sum (f:=fun i (y:E)=>jet i φ 0 y) (u:=Finset.range (j+1)) (h:=fun i _=>(jet_smooth ..|>.of_le le_top)),Finset.sum_apply] |
| 113 | calc ‖_‖ ≤ cost l * B := (norm_sum_le ..).trans ((Finset.sum_le_sum he).trans_eq (Finset.sum_mul ..).symm) |
| 114 | _ ≤ _:= mul_le_mul_of_nonneg_right (Finset.single_le_sum (fun l _=>hm l) (Finset.mem_range_succ_iff.mpr hl')) hB |
| 115 | end YM.Contacts |