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.MultipleContact.Panel.Blade |
| 2 | import Mathlib.Analysis.InnerProductSpace.PiL2 |
| 3 | |
| 4 | /-! Taylor subtraction in a split linear slot of a joint test (no tensor factorization). -/ |
| 5 | set_option autoImplicit false |
| 6 | set_option maxHeartbeats 1600000 |
| 7 | noncomputable section |
| 8 | namespace YM.MultipleContact.Panel |
| 9 | open Set Function Filter MeasureTheory |
| 10 | open scoped ContDiff Classical BigOperators |
| 11 | variable (X V:Type*)[NormedAddCommGroup X][NormedSpace ℝ X][NormedAddCommGroup V][InnerProductSpace ℝ V] |
| 12 | structure Lens where |
| 13 | read : X →L[ℝ] V |
| 14 | put : V →L[ℝ] X |
| 15 | take (y:V): read (put y)=y |
| 16 | namespace Lens |
| 17 | variable {X V}(p:Lens X V) |
| 18 | def off : X →L[ℝ] X:=.id ℝ X - p.put.comp p.read |
| 19 | def lay (x:X)(y:V):=p.put y+p.off x |
| 20 | @[simp] lemma read_off(x:X):p.read (p.off x)=0:=by simp [off,p.take] |
| 21 | @[simp] lemma lay_read (x:X):p.lay x (p.read x)=x:=by change p.put (p.read x)+(x-p.put (p.read x))=x; abel |
| 22 | @[simp] lemma read_lay (x:X)(y:V):p.read (p.lay x y)=y:=by simp [lay,p.take] |
| 23 | def slice (x:X)(f:X→ℂ)(y:V):= f (p.lay x y) |
| 24 | lemma slice_smooth (x:X){f:X→ℂ}(hf:ContDiff ℝ ∞ f):ContDiff ℝ ∞ (p.slice x f):=hf.comp (p.put.contDiff.add contDiff_const) |
| 25 | lemma slice_deriv (n:ℕ)(x:X){f:X→ℂ}(hf:ContDiff ℝ ∞ f)(m:Fin n→V)(y:V):iteratedFDeriv ℝ n (p.slice x f) y m=iteratedFDeriv ℝ n f (p.lay x y) (fun k=>p.put (m k)):=by |
| 26 | change iteratedFDeriv ℝ n ((fun a=> f (a+p.off x))∘p.put) y m = _ |
| 27 | have hd : ContDiff ℝ ∞ (fun (y:X)=>f (y+p.off x)):=hf.comp (contDiff_id.add contDiff_const) |
| 28 | rw [p.put.iteratedFDeriv_comp_right hd y (show (n:ℕ∞ω)≤∞ by exact_mod_cast (show (n:ℕ∞)≤⊤ by simp))] |
| 29 | change iteratedFDeriv ℝ n (fun a=>f (a+p.off x)) (p.put y) (fun k=>p.put (m k))=_ |
| 30 | rw [iteratedFDeriv_comp_add_right]; rfl |
| 31 | |
| 32 | def atom (i:ℕ)(f:X→ℂ)(x:X):= (i.factorial:ℝ)⁻¹ • iteratedFDeriv ℝ i f (p.off x) (fun _=>p.put (p.read x)) |
| 33 | def atoms (m:ℕ)(f:X→ℂ)(x:X):=∑k∈Finset.range (m+1),p.atom k f x |
| 34 | def trim (s:ℝ)(m:ℕ)(f:X→ℂ)(x:X):= f x-cutoff s (p.read x) • p.atoms m f x |
| 35 | lemma trim_on (s:ℝ)(m:ℕ){f:X→ℂ}(hf:ContDiff ℝ ∞ f)(x:X):p.trim s m f x=diff s (.some m) (p.slice x f) (p.read x):=by |
| 36 | unfold trim diff; simp only [slice,lay_read] |
| 37 | have hk(k):p.atom k f x=coeff k (p.slice x f) (p.read x):=by rw [atom,coeff,p.slice_deriv k x hf,lay,map_zero,zero_add] |
| 38 | rw [atoms,polyJet]; congr 2; exact Finset.sum_congr rfl fun k _=>hk k |
| 39 | lemma atom_smooth (i){f:X→ℂ}(hf:ContDiff ℝ ∞ f):ContDiff ℝ ∞ (p.atom i f):=by |
| 40 | have hv : ContDiff ℝ ∞ (iteratedFDeriv ℝ i f):=hf.iteratedFDeriv_right (by change ((⊤:ℕ∞):WithTop ℕ∞) + ((i:ℕ∞):WithTop ℕ∞) ≤ ∞; rw [← WithTop.coe_add]; simp) |
| 41 | let E:=ContinuousMultilinearMap ℝ (fun _:Fin i=>X) ℂ; let I:= ContinuousLinearMap.id ℝ E |
| 42 | have hu:ContDiff ℝ ∞ (fun (y:E × (Fin i → X))=>(I y.1) y.2):=contDiff_iff_contDiffAt.mpr (fun x=> I.cpolynomialAt_uncurry_of_multilinear.contDiffAt) |
| 43 | have hp:(ContDiff ℝ ∞ (fun (y:X)=>fun (_:Fin i) =>p.put (p.read y))):=contDiff_pi.mpr (fun i=>p.put.contDiff.comp p.read.contDiff) |
| 44 | exact (hu.comp ((hv.comp p.off.contDiff).prodMk hp)).const_smul _ |
| 45 | lemma trim_smooth (m s){f:X→ℂ}(hf:ContDiff ℝ ∞ f):ContDiff ℝ ∞ (p.trim s m f):=hf.sub (((cutoff_smooth s).comp p.read.contDiff).smul (.sum (fun i _=>p.atom_smooth i hf))) |
| 46 | |
| 47 | lemma atom_blades (i)(f:X→ℂ)(x:X) (hf:ContDiff ℝ ∞ f):p.atom i f x=(i.factorial:ℝ)⁻¹ • blades (List.ofFn (fun _:Fin i=>p.put (p.read x))) f (p.off x):=by rw [blades_eval hf]; rfl |
| 48 | omit p [NormedAddCommGroup V] [InnerProductSpace ℝ V] in |
| 49 | lemma blade_rail (x v:X){f g:X→ℂ}(hf:DifferentiableAt ℝ f x)(hg:DifferentiableAt ℝ g x)(h:∀t:ℝ,f (x+t • v)=g (x+t • v)):blade v f x=blade v g x:=by |
| 50 | let G:=fun (t:ℝ)=>x+t • v |
| 51 | have h0:G 0=x:=by unfold G; simp |
| 52 | have hG:HasDerivAt G v (0:ℝ):=by |
| 53 | have h' := HasDerivAt.smul_const (hasDerivAt_id (x:=(0:ℝ))) v |
| 54 | exact (one_smul ℝ v) ▸ h'.const_add x |
| 55 | suffices hh : HasDerivAt (f∘G) (blade v f x) 0 ∧ HasDerivAt (g∘G) (blade v g x) 0 by rw [← hh.1.deriv, ← hh.2.deriv,show f∘G=g∘G from funext h] |
| 56 | have m(u:X→ℂ)(hu:DifferentiableAt ℝ u x):HasDerivAt (u∘G) (blade v u x) 0:= ((h0.symm ▸ hu : DifferentiableAt ℝ u (G 0)).hasFDerivAt.comp_hasDerivAt 0 hG).congr_deriv (by rw [h0]; rfl) -- maybe theorem name |
| 57 | exact ⟨m _ hf,m _ hg⟩ |
| 58 | lemma read_rail (x v:X)(hv:p.read v=0)(t:ℝ): p.read (x + t • v)=p.read x:=by rw [map_add,map_smul,hv,smul_zero,add_zero] |
| 59 | lemma blade_complement (v:X) (hv:p.read v=0)(f:X→ℂ)(hf:ContDiff ℝ ∞ f):blade v (f ∘ p.off)=blade v f ∘ p.off:=by |
| 60 | funext x |
| 61 | have he:p.off v=v:=by change v-(p.put (p.read v))=v; rw [hv,map_zero,sub_zero] |
| 62 | rw [blade, fderiv_comp _ (hf.differentiable (by simp) _) (p.off.differentiableAt), ContinuousLinearMap.fderiv,ContinuousLinearMap.comp_apply,he];rfl |
| 63 | lemma blade_atom (v:X)(hv:p.read v=0)(f:X→ ℂ)(hf:ContDiff ℝ ∞ f)(i:ℕ): blade v (p.atom i f) = p.atom i (blade v f):=by |
| 64 | funext x; let L:=List.ofFn (fun _:Fin i=>p.put (p.read x)); let root:=blades L f |
| 65 | let y:= (i.factorial:ℝ)⁻¹; let h:= root ∘ p.off |
| 66 | have hs:ContDiff ℝ ∞ h:= (blades_smooth hf ..).comp p.off.contDiff |
| 67 | have eq:blade v (p.atom i f) x = blade v (y • h) x:=blade_rail x v ((atom_smooth p i hf).differentiable (by simp) _) ((hs.const_smul y).differentiable (by simp) _) (fun t=>by rw [p.atom_blades i f _ hf,p.read_rail x v hv t]; rfl) |
| 68 | rw [eq,blade, fderiv_const_smul (hs.differentiable (by simp) x)] |
| 69 | change y • blade v h x =_ |
| 70 | change y • blade v (root∘p.off) x =_ |
| 71 | rw [p.blade_complement v hv root (blades_smooth hf L)] -- root delta |
| 72 | rw [p.atom_blades i _ _ (blade_smooth hf v)] |
| 73 | change y • blade v (blades L f) (p.off x)= y • blades L (blade v f) (p.off x) |
| 74 | rw [blades_pin hf] |
| 75 | lemma blade_atoms (v:X)(hv:p.read v=0)(f:X→ℂ)(hf:ContDiff ℝ ∞ f)(i:ℕ):blade v (p.atoms i f)=p.atoms i (blade v f):=by funext x; unfold atoms; change blades [v] (p.atoms i f) x=_; change blades [v] (fun y=>∑k∈Finset.range (i+1),p.atom k f y) x = _; rw [blades_sum (Finset.range (i+1)) _ (fun k=>p.atom_smooth k hf)];exact Finset.sum_congr rfl (fun k _=>congr_fun (p.blade_atom v hv f hf k) x) |
| 76 | lemma blade_trim (v:X)(hv:p.read v=0)(f:X→ℂ)(hf:ContDiff ℝ ∞ f)(i:ℕ)(s:ℝ): blade v (p.trim s i f) = p.trim s i (blade v f):=by |
| 77 | funext x; let y:=cutoff s (p.read x); let h:=p.atoms i f |
| 78 | have hs:ContDiff ℝ ∞ h:= ContDiff.sum (fun k _=>p.atom_smooth k hf) |
| 79 | have hsub:ContDiff ℝ ∞ (f - y • h) := hf.sub (hs.const_smul y) |
| 80 | rw [blade_rail x v ((p.trim_smooth i s hf).differentiable (by simp) _) (g:=f-y • h) (hsub.differentiable (by simp) _) (fun t=>by rw [trim,p.read_rail x v hv t];rfl)] |
| 81 | change blades [v] (f-y•h) x =_ |
| 82 | rw [blades_sub hf (g:=y • h) (hs.const_smul y),blades_smul y hs] |
| 83 | exact congr_arg (fun r=>blade v f x-y • r x) (p.blade_atoms v hv f hf i) -- definally |
| 84 | lemma blades_trim (v:List X)(hv:∀t∈v,p.read t=0)(f:X→ℂ)(hf:ContDiff ℝ ∞ f)(i:ℕ)(s:ℝ): blades v (p.trim s i f) = p.trim s i (blades v f):=by |
| 85 | induction v with |
| 86 | |nil=>rfl |
| 87 | |cons x w IH=>rw [List.forall_mem_cons] at hv; simp only [blades]; rw [IH hv.2]; exact p.blade_trim x hv.1 _ (blades_smooth hf w) i s |
| 88 | end Lens |
| 89 | end YM.MultipleContact.Panel |