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.TraceExtension.Pi.Cut |
| 2 | import YM.TraceExtension.Pi.Bound |
| 3 | set_option autoImplicit false |
| 4 | noncomputable section |
| 5 | namespace YM.Trace.Kits |
| 6 | open Function Filter Matrix Lattice Precision Laurent Stationary Perfect Bloch Exterior Tree RG Wilson Finset Push.Uniform Audience Metric Lamp Det Loft MeasureTheory |
| 7 | open Source Source.Drops Labels Work Planned.PrimaryIntegral295 Place Parts Next.Foundations WardBin StressFlux |
| 8 | open scoped BigOperators Topology ContDiff Matrix.Norms.Frobenius Interval InnerProductSpace Classical |
| 9 | variable {d n k:ℕ}{G:Gauge}{s:Side}{F:Peat G s} |
| 10 | -- Linear test by midpoint plane annotations |
| 11 | abbrev tracks (p:Track): E4→L[ℝ] ℝ:=∑ i, (p i) • Maxwell.compAxis i |
| 12 | lemma axe_t (p:Track)(i): tracks p (basis i)=p i:=by rw[tracks,_root_.sum_apply];simp[basis_eq,Maxwell.compAxis] |
| 13 | variable (p: Track)(i:Axis)(v:G.Color) |
| 14 | abbrev Gtune (k:ℕ)(z:E4):= ((z i * (tracks p z)^k)/((k+1:ℕ):ℝ)) • v |
| 15 | abbrev Ptune (k:ℕ) : Potential G:= fun z a=> ((basis a i * (tracks p z)^k)) • v |
| 16 | def Xtune : Taylor G 0:=∑ a:Axis,p a • leg0 a i v |
| 17 | def Ytune : Taylor G 1:=∑ a:Axis,∑ b:Axis, (2*p a*p b) • leg1 b a i v |
| 18 | private def tent (x : E4)(i:Axis): Taylor G n→ₗ[ℝ] G.Color:={ toFun T:=T.value i x, map_add':=fun _ _=>rfl,map_smul':=fun _ _=>rfl } |
| 19 | lemma mind_t (z:E4): tracks p z=∑ a,p a*z a:=by unfold tracks; rw[_root_.sum_apply]; rfl |
| 20 | lemma mind_v (z:E4)(x:G.Color): (tracks p z) • x= ∑ a,p a • (z a • x):=by rw[mind_t,Finset.sum_smul]; apply sum_congr rfl fun a _=>?_ ; rw[mul_smul] |
| 21 | lemma glance1 (a:Axis)(x:E4): (Xtune p i v).value a x= (1/2:ℝ) • ((basis a i*tracks p x) • v-(x i*p a) • v):=by |
| 22 | change tent x a (Xtune p i v)=_; unfold Xtune; rw[map_sum]; simp only [map_smul]; simp_rw [show ∀ z:Axis,tent x a (leg0 z i v)=_ from fun z:Axis=> leg0_value v z i a x]; |
| 23 | have hv: ∑ b:Axis,p b • ((if a=i then x b • v else 0) - if a=b then x i • v else 0)=(basis a i * tracks p x) • v - (x i*p a) • v:=by |
| 24 | simp_rw [smul_sub,Finset.sum_sub_distrib]; apply congr_arg₂ (·-·) |
| 25 | · by_cases h:a=i; · rw[mul_smul, mind_v]; simp[h,basis_eq] |
| 26 | simp [h,basis_eq,Ne.symm h] |
| 27 | simp [smul_ite]; module |
| 28 | simp_rw [smul_comm (p _) ((2:ℝ)⁻¹), ← smul_sum,hv];norm_num |
| 29 | lemma glance2 (a:Axis)(x:E4): (Ytune p i v).value a x= (2/3:ℝ) • ((basis a i*(tracks p x)^2) • v- (x i*tracks p x*p a) • v):=by |
| 30 | change tent x a (Ytune p i v)=_ |
| 31 | unfold Ytune; simp only [map_sum,map_smul];simp_rw [show ∀ y z:Axis,tent x a (leg1 y z i v)=_ from fun y z=> leg1_value v y z i a x] |
| 32 | have hv : (∑ y,∑ z:Axis, p y • p z • ((if a=i then x y • x z • v else 0)-(if a=y then x i • x z • v else 0)))=(basis a i*tracks p x^2) • v - (x i*tracks p x * p a) • v:=by |
| 33 | simp_rw [smul_sub, Finset.sum_sub_distrib]; congr 1 |
| 34 | · by_cases ha:a=i |
| 35 | · rw[mind_t]; simp[ha]; rw [pow_two,sum_mul]; simp_rw [mul_sum,sum_smul]; refine sum_congr rfl fun i _=>sum_congr rfl fun j _=>?_ ; simp only [smul_smul]; module |
| 36 | simp[ha,basis_eq,Ne.symm ha] |
| 37 | rw [sum_eq_single a]; rotate_left |
| 38 | · intro i _ hi; simp [hi.symm] |
| 39 | · simp |
| 40 | simp only[if_true]; rw[mind_t, mul_sum, sum_mul,sum_smul]; refine sum_congr rfl fun i _=>?_ ; simp only[smul_smul];module |
| 41 | rw [show (∑ y:Axis,∑ z:Axis,_)=(2/3:ℝ) • (∑ y,∑ z:Axis, p y • p z • ((if a=i then x y • x z • v else 0)-(if a=y then x i • x z • v else 0))) by |
| 42 | simp_rw [smul_sum]; refine sum_congr rfl fun i _=>sum_congr rfl fun j _=>?_ ; module] |
| 43 | rw[hv] |
| 44 | lemma walk_g(k:ℕ) : ContDiff ℝ ω (Gtune p i v k):=by |
| 45 | have hp:ContDiff ℝ ω (fun x:E4=> x i):= Maxwell.compAxis i |>.contDiff |
| 46 | exact ((hp.mul ((tracks p).contDiff.pow _)).div_const _).smul contDiff_const |
| 47 | set_option maxHeartbeats 400000 in |
| 48 | lemma descent_g (k:ℕ)(x:E4)(a:Axis): Place.descent (Gtune p i v k) x a = (((basis a i*tracks p x^k+x i*(k*tracks p x^(k-1)*p a))/((k+1:ℕ):ℝ))) • v:=by |
| 49 | let U:ℝ:= ((k+1:ℕ):ℝ); let T (x:E4):= x i* tracks p x^k; have ht: HasFDerivAt T _ x:=(Maxwell.compAxis i).hasFDerivAt.mul ((tracks p).hasFDerivAt.pow k) |
| 50 | have hy:(fun x=> (T x*U⁻¹) • v)= Gtune p i v k:=by funext x; unfold Gtune; rw[div_eq_mul_inv] |
| 51 | have he:= (ht.mul_const U⁻¹).smul_const v |
| 52 | unfold Place.descent; rw[← hy,he.fderiv]; dsimp only [_root_.smul_apply,_root_.add_apply,ContinuousLinearMap.smulRight_apply]; |
| 53 | by_cases h:i=a <;> simp [Maxwell.compAxis,h,U] <;> module |
| 54 | lemma radial0 : Ptune p i v 0=Place.descent (Gtune p i v 0):=by funext x a; simp [descent_g,Ptune] |
| 55 | lemma radial1 : Ptune p i v 1= Place.descent (Gtune p i v 1) + radialValue (Xtune p i v):=by |
| 56 | ext1 z; ext1 a; unfold Ptune radialValue; rw[Pi.add_apply,Pi.add_apply,descent_g,glance1]; norm_num only [Nat.cast_one,Nat.cast_add];module |
| 57 | lemma radial2 : Ptune p i v 2= Place.descent (Gtune p i v 2)+radialValue (Ytune p i v):=by |
| 58 | ext1 z; ext1 a; unfold Ptune radialValue; rw[Pi.add_apply, Pi.add_apply,descent_g,glance2];norm_num only [Nat.cast_one,Nat.cast_add,Nat.cast_ofNat];module |
| 59 | lemma fume1 : fume (Ptune p i v 1)= -(Place.jump (Gtune p i v 1))+variation (Xtune p i v):=by |
| 60 | rw[radial1,fume_add,fume_grad (walk_g p i v 1|>.of_le le_top), show fume (radialValue _) = _ from fume_leg (Xtune p i v)] |
| 61 | · intro a; unfold Place.descent; exact ((walk_g p i v _).continuous_fderiv (by simp)).clm_apply continuous_const |
| 62 | intro a; exact (Tensor.diag_smooth _ 1).continuous |
| 63 | lemma fume2 : fume (Ptune p i v 2)= -(Place.jump (Gtune p i v 2))+variation (Ytune p i v):=by |
| 64 | rw[radial2,fume_add, fume_grad (walk_g p i v 2|>.of_le le_top), show fume (radialValue _) = _ from fume_leg (Ytune p i v)] |
| 65 | · intro a; unfold Place.descent; exact ((walk_g p i v _).continuous_fderiv (by simp)).clm_apply continuous_const |
| 66 | intro a; exact (Tensor.diag_smooth _ 1).continuous |
| 67 | lemma fume0 : fume (Ptune p i v 0)= -(Place.jump (Gtune p i v 0)):=by rw[radial0,fume_grad (walk_g p i v 0|>.of_le le_top)] |
| 68 | end YM.Trace.Kits |