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.Perg |
| 2 | set_option autoImplicit false |
| 3 | noncomputable section |
| 4 | namespace YM.Trace.Kits |
| 5 | open Function Filter Matrix Lattice Precision Laurent Stationary Perfect Bloch Exterior Tree RG Wilson Finset Push.Uniform Audience Metric Lamp Det Loft MeasureTheory Source Source.Drops Work Planned.PrimaryIntegral295 Place Parts Next.Foundations WardBin StressFlux Labels |
| 6 | open scoped BigOperators Topology ContDiff Matrix.Norms.Frobenius InnerProductSpace Classical |
| 7 | variable {G:Gauge} |
| 8 | section Rad |
| 9 | variable (A:Taylor G 1)(i a:Axis) |
| 10 | private def flex (x:E4): E4→L[ℝ] G.Color := (ContinuousMultilinearMap.ofSubsingleton ℝ E4 G.Color (0:Fin 1)).symm ((A.val i).curryLeft x) |
| 11 | private lemma flux (x y:E4): flex A i x y= A.val i ![x,y]:=by |
| 12 | let U:=ContinuousMultilinearMap.ofSubsingleton ℝ E4 G.Color (0:Fin 1) |
| 13 | change U (U.symm ((A.val i).curryLeft x)) (fun _=>y)=_; rw [U.apply_symm_apply,ContinuousMultilinearMap.curryLeft_apply]; congr 1; ext1 k; fin_cases k<;>rfl |
| 14 | private lemma flashV (x y:E4): flex A i x y=flex A i y x:=by |
| 15 | rw[flux,flux]; exact (A.property.1 i ![x,y] (Equiv.swap (0:Fin 2) 1)).symm.trans (congr_arg (A.val i) (funext fun k=> by fin_cases k<;>simp)) |
| 16 | private lemma flower (x:E4): flex A i x x=A.value i x:=by rw[flux]; exact congr_arg (A.val i) (funext fun k=>by fin_cases k<;>rfl) |
| 17 | def breeze : E4→L[ℝ] G.Color:= (2:ℝ) • flex A i (basis a) |
| 18 | lemma bearV (x:E4): Maxwell.grad a (A.value i) x= breeze A i a x:=by |
| 19 | unfold Maxwell.grad Analysis.D Taylor.value; rw[Tensor.differential_diagonal _ (A.property.1 i),breeze,_root_.smul_apply,flux]; change ((1+1:ℕ)) • _=_; norm_cast; congr 1; rw [ContinuousMultilinearMap.curryLeft_apply]; congr 1; ext1 k; fin_cases k<;>rfl |
| 20 | lemma flower_ad (x:E4)(t:ℝ): A.value i (x+t • basis a)= A.value i x+t • breeze A i a x+(t^2) • A.value i (basis a):=by |
| 21 | simp_rw [← flower]; rw[map_add,map_smul,flashV A i _ x,map_add,map_smul,flashV A i x (basis a),flashV A i _ (basis a),map_add,map_smul,breeze,_root_.smul_apply]; module |
| 22 | lemma curl1_b (i j : Axis): curl1 a i j A=breeze A j a (basis i)-breeze A i a (basis j):=by rw[curl1,curled_deriv,bearV,bearV]; unfold breeze; simp only[_root_.smul_apply,flashV A j (basis i),flashV A i (basis j)] |
| 23 | end Rad |
| 24 | section Line |
| 25 | private theorem stab (z:E4): ∑ i:Axis, z i •basis i=z:=by ext1 k;simp |
| 26 | variable (V:Axis→ E4→L[ℝ] G.Color) |
| 27 | def replica : Taylor G 0:=∑ i:Axis,∑ j:Axis,leg0 i j (V j (basis i)) |
| 28 | lemma curl_b (i j) : curl0 i j (replica V)= V j (basis i)-V i (basis j):=by unfold replica; simp_rw[map_sum,curl0_leg,sub_smul, Finset.sum_sub_distrib]; simp [basis_eq,mul_ite,ite_smul] |
| 29 | private def fellV (i:Axis)(x:E4): Taylor G 0→ₗ[ℝ] G.Color:={toFun A:= A.value i x, map_add':=by intros;rfl, map_smul':=by intros;rfl} |
| 30 | lemma recoil (x:E4)(k:Axis): (replica V).value k x= (1/2:ℝ) • (V k x - ∑ i, x i • V i (basis k)):=by |
| 31 | change fellV k x (replica V)= _; unfold replica; simp_rw [map_sum]; change (∑ i:Axis,∑ j:Axis,(leg0 i j _).value k x)=_ |
| 32 | simp_rw [leg0_value,← Finset.smul_sum, Finset.sum_sub_distrib]; |
| 33 | simp; conv_rhs=> rw[← stab x] |
| 34 | simp only[map_sum,map_smul] |
| 35 | private def moist (x:E4):= (1/2:ℝ) • ∑ i:Axis,x i • (V i x) |
| 36 | private lemma hotM : ContDiff ℝ ω (moist V):=by unfold moist; have h(i:Axis): ContDiff ℝ ω (fun x:E4=> x i • V i x):= (Maxwell.compAxis i).contDiff.smul (V i).contDiff; exact (ContDiff.sum (fun i _=>h i)).const_smul _ |
| 37 | lemma splitH : (fun z i=> V i z)= radialValue (replica V)+Place.descent (moist V):=by |
| 38 | funext z i; change V i z=(replica V).value i z + fderiv ℝ (moist V) z (basis i); have hv(j:Axis): HasFDerivAt (fun z:E4=> z j • V j z) ((z j) • (V j)+(Maxwell.compAxis j).smulRight (V j z)) z:= (Maxwell.compAxis j).hasFDerivAt.smul (V j).hasFDerivAt |
| 39 | rw [show moist V= (1/2:ℝ) • (∑ i:Axis,fun z:E4=>z i • V i z) from funext fun z=>by simp[moist], ((HasFDerivAt.sum (u:=univ) (fun i _=> hv i)).const_smul (1/2:ℝ)).fderiv, recoil]; simp[Finset.sum_add_distrib];module |
| 40 | end Line |
| 41 | section Shift |
| 42 | variable {s:Side}{P:Support s}{F:Peat G s} |
| 43 | lemma fume_scale (V:Potential G)(t:ℝ): fume (t • V)= t • fume V:=by |
| 44 | ext1 z; ext1 i; unfold fume; simp only[Pi.smul_apply]; apply intervalIntegral.integral_smul |
| 45 | lemma fume_rep (V:Axis→E4→L[ℝ] G.Color): fume (fun z i=> V i z)= variation (replica V) - Place.jump (moist V):=by |
| 46 | rw [splitH V, fume_add, fume_grad (hotM V|>.of_le le_top),show fume (radialValue _) = _ from fume_leg _, sub_eq_add_neg] |
| 47 | · intro i; exact (Tensor.diag_smooth _ 1).continuous |
| 48 | intro i; exact ((hotM V).continuous_fderiv (by simp)).clm_apply continuous_const |
| 49 | private def rocH (U: Axis→G.Color): E4→L[ℝ] G.Color:= ∑ i:Axis, (Maxwell.compAxis i).smulRight (U i) |
| 50 | lemma fume_const (U:Axis→G.Color): fume (fun z:E4=> U)= -Place.jump (rocH U):=by |
| 51 | rw[← fume_grad ((rocH U).contDiff)]; congr 1; funext z i; simp[Place.descent,rocH] |
| 52 | lemma coon0 (A:Taylor G 0)(i:Axis)(t:ℝ)(v z:E4): A.value i (z+t • v)=A.value i z+t • A.value i v:=by |
| 53 | obtain ⟨h,hx⟩:= (ContinuousMultilinearMap.ofSubsingleton ℝ E4 G.Color (0:Fin 1)).surjective (A.val i) |
| 54 | unfold Taylor.value; rw[← hx]; change h _=h z+t • h v; rw [map_add,map_smul] |
| 55 | abbrev revD (w:E4){G:Gauge} (V: Potential G):Potential G:=fun z=> V (z+w) |
| 56 | lemma fume_r (V:Potential G)(w:E4): revD w (fume V)=fume (revD w V):=by |
| 57 | ext1 z; ext1 i; unfold revD fume; simp_rw [show ∀ t:ℝ, z+w+t •basis i=z+t • basis i+w from fun t=>by abel] |
| 58 | lemma ride_0 (A:Taylor G 0)(t:ℝ)(v:E4): revD (t • v) (variation A)= variation A - Place.jump (rocH (fun i=> t • A.value i v)):=by |
| 59 | rw [← fume_leg A,fume_r,show revD (t • v) (_:Potential G)=(fun z i=>A.value i z)+(fun (_z:E4) i=> t • A.value i v) from funext fun z=> funext fun i=>coon0 A i t v z,fume_add,fume_const,sub_eq_add_neg]; exact fun _=>(Tensor.diag_smooth _ 1).continuous; exact fun _=>continuous_const |
| 60 | abbrev bentV (A:Taylor G 1)(a:Axis):=replica fun i=> breeze A i a |
| 61 | lemma bendV (A:Taylor G 1)(a i j:Axis): curl1 a i j A=curl0 i j (bentV A a):=by rw [curl1_b]; exact (curl_b (fun i=> breeze A i a) i j).symm |
| 62 | lemma ride_1 (A:Taylor G 1)(a:Axis)(t:ℝ): let v:=t •basis a; let V i:= breeze A i a |
| 63 | revD v (variation A)= variation A+t • (variation (bentV A a)-Place.jump (moist V))- Place.jump (rocH (fun i=> (t^2) • A.value i (basis a))):=by |
| 64 | intro v V; have hG(i:Axis): Continuous (fun x=>A.value i x + t • V i x):=(Tensor.diag_smooth _ 1).continuous.add ((V i).continuous.const_smul t) |
| 65 | rw [← fume_leg A,fume_r,show revD v (_:Potential G)=(fun z i=>A.value i z) + t • (fun z i=> V i z) +(fun (_z:E4) i=>(t^2) • A.value i (basis a)) from funext fun z=>funext fun i=>flower_ad A i a z t, fume_add (G:=G), fume_add (G:=G),fume_scale (G:=G), fume_rep V, fume_const,sub_eq_add_neg (_ + t • _) (Place.jump (rocH _))]; rotate_left |
| 66 | all_goals first| exact hG| exact fun _=>continuous_const| rfl| exact fun _=> (Tensor.diag_smooth _ 1).continuous| exact fun j=>(V j).continuous.const_smul t |
| 67 | end Shift |
| 68 | end YM.Trace.Kits |