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.Analytic.Binomial |
| 2 | import Mathlib.Analysis.Calculus.BumpFunction.Convolution |
| 3 | import Mathlib.Analysis.Calculus.ContDiff.RestrictScalars |
| 4 | import Mathlib.Analysis.Calculus.ImplicitContDiff |
| 5 | import Mathlib.Analysis.Calculus.IteratedDeriv.FaaDiBruno |
| 6 | import Mathlib.Analysis.Calculus.LineDeriv.Measurable |
| 7 | import Mathlib.Analysis.Calculus.VectorField |
| 8 | import Mathlib.Analysis.Complex.RemovableSingularity |
| 9 | import Mathlib.Analysis.Normed.Group.Tannery |
| 10 | import Mathlib.LinearAlgebra.Multilinear.Pi |
| 11 | import Mathlib.LinearAlgebra.PiTensorProduct.Generators |
| 12 | import YM.Bid.Fuels |
| 13 | import YM.Pressure.Seeds |
| 14 | import YM.Source.ODE |
| 15 | import YM.Work.A05.Read |
| 16 | import YM.Work.A07 |
| 17 | import YM.Work.G02 |
| 18 | |
| 19 | |
| 20 | |
| 21 | set_option warningAsError false |
| 22 | |
| 23 | /-! |
| 24 | # Polynomial moments on log links, I: common endpoint shape |
| 25 | |
| 26 | Adapt `TimeProfile` (cf `Foundations/LinkBounds`. We need an explicit |
| 27 | version as a map of ordinary 3-tuple including gauge values). |
| 28 | Thus derivatives act pointwise into the polynomial spaces. Link matches |
| 29 | on cover using SolvesLink uniqueness, no assertion of existence of |
| 30 | some other smooth holonomy scheme. Pay sign of actual Right |
| 31 | multiplication and derivative of `G.plog` exactly. -/ |
| 32 | set_option autoImplicit false |
| 33 | noncomputable section |
| 34 | namespace YM.MultiNext.SignedSource.Pattern |
| 35 | open Function Filter Finset Tensor Work Set MeasureTheory RG Wilson Lattice Labels Source Drops Analysis |
| 36 | open scoped Topology ContDiff Matrix.Norms.Frobenius BigOperators Classical |
| 37 | variable {G : Gauge} {d n : ℕ} |
| 38 | |
| 39 | abbrev Fiber (G : Gauge) (d : ℕ) := (i : Fin (d-1)) → Tensor.T (ℝ × ℝ) G.Color (i.val+1) |
| 40 | |
| 41 | def field (X : Fiber G d) (t : ℝ) := ∑ i,Tensor.diagonal (X i) (1,t) |
| 42 | lemma field_smooth (X : Fiber G d) : ContDiff ℝ 1 (field X) := ContDiff.sum fun _ _ => (diag_smooth ..).comp (contDiff_const.prodMk contDiff_id) |
| 43 | |
| 44 | def path (X : Fiber G d) := (Hol.pipes (field_smooth X)).choose |
| 45 | lemma launches (X : Fiber G d) : SolvesLink (path X) (field X) := (Hol.pipes (field_smooth X)).choose_spec |
| 46 | |
| 47 | def run (G : Gauge) (d : ℕ) : Fiber G d → G.Mat := fun X => G.mat (path X 1) |
| 48 | |
| 49 | lemma endpoint (G : Gauge) (d : ℕ) : ContDiffAt ℝ ω (run G d) 0 ∧ run G d 0=1 ∧ ∀ a : Fiber G d, |
| 50 | HasDerivAt (fun t : ℝ => run G d (t • a)) (G.colorMat (∫ t in (0:ℝ)..1, field a t)) 0 := by |
| 51 | let p : Fiber G d →ₗ[ℝ] ℝ → G.Mat := { |
| 52 | toFun i t := G.colorMat (field i t) |
| 53 | map_add' := fun x y => funext fun i => by simp [field, Tensor.diagonal, Finset.sum_add_distrib] |
| 54 | map_smul' := fun s x => funext fun i => by simp [field, Tensor.diagonal, Finset.smul_sum] } |
| 55 | obtain ⟨H,hA,hs⟩:= G02.endpointGerm p (fun x => G.colorMat.toContinuousLinearMap.continuous.comp (field_smooth x).continuous) |
| 56 | (fun x t => G.mat (path x t)) (fun i => by rw [(launches i).1,G.mat_one]) (fun i t => (launches i).2 t) |
| 57 | exact ⟨H.contDiffAt,hA,fun i => (hs i).congr_deriv (G.colorMat.toContinuousLinearMap.intervalIntegral_comp_comm |
| 58 | ((field_smooth i).continuous.intervalIntegrable _ _))⟩ |
| 59 | |
| 60 | /-- Arguments: incoming site algebra, displacement to outgoing, |
| 61 | polynomial potential. Output log gauged link. -/ |
| 62 | abbrev Panel (G : Gauge) (d : ℕ) := G.Color × G.Color × Fiber G d |
| 63 | |
| 64 | def stereo (G : Gauge) (d : ℕ) (x : Panel G d) := G.plog |
| 65 | (G.mat (G.lieExp x.1)*run G d x.2.2* star (G.mat (G.lieExp (x.1+x.2.1)))) |
| 66 | |
| 67 | lemma scripts (G : Gauge) (d : ℕ) : ContDiffAt ℝ ω (stereo G d) 0 ∧ stereo G d 0=0 := by |
| 68 | have hu := endpoint G d |
| 69 | constructor |
| 70 | · unfold stereo |
| 71 | have ht : ContDiffAt ℝ ω (fun p : Panel G d => run G d p.2.2) 0 := hu.1.comp (f:=fun p : Panel G d => p.2.2) 0 (contDiffAt_snd.comp _ contDiffAt_snd) |
| 72 | have he : ContDiff ℝ ω (fun p : Panel G d => G.mat (G.lieExp (p.1+p.2.1))) := G.exp_jet.comp (contDiff_fst.add (contDiff_fst.comp contDiff_snd)) |
| 73 | have hp : ContDiff ℝ ω (fun p : Panel G d => star (G.mat (G.lieExp (p.1+p.2.1)))) := ((starL ℝ : G.Mat ≃L[ℝ] G.Mat).contDiff).comp he |
| 74 | refine ((?_: ContDiffAt ℝ ω G.plog _) ).comp 0 (((G.exp_jet.comp contDiff_fst).contDiffAt.mul ht).mul hp.contDiffAt) |
| 75 | change ContDiffAt ℝ ω G.plog |
| 76 | (G.mat (G.lieExp 0)*run G d 0*star (G.mat (G.lieExp (0+0)))) |
| 77 | simpa [hu.2.1] using G.plog_diff |
| 78 | simp [stereo,hu.2.1] |
| 79 | |
| 80 | def line (x : E4) (i : Axis) : (ℝ × ℝ) →L[ℝ] E4 := (ContinuousLinearMap.fst ℝ ℝ ℝ).smulRight x + |
| 81 | (ContinuousLinearMap.snd ℝ ℝ ℝ).smulRight (basis i) |
| 82 | lemma line_at (x : E4) (i : Axis) (s : ℝ) : line x i (1,s)=x+s • basis i := by simp [line] |
| 83 | |
| 84 | def tempo (x : E4) (i : Axis) : Snap G d →L[ℝ] Fiber G d := |
| 85 | let F : Snap G d →ₗ[ℝ] Fiber G d := { |
| 86 | toFun v j := ((v j).val i).compContinuousLinearMap (fun _ => line x i) |
| 87 | map_add' v w := by funext j; ext1 Z; simp |
| 88 | map_smul' r v := by funext j; ext1 Z; simp } |
| 89 | F.toContinuousLinearMap |
| 90 | |
| 91 | def xyz (x : Cover) : E4 := WithLp.toLp 2 fun i => (x i:ℝ) |
| 92 | lemma xyz_step (x : Cover) (i : Axis) : xyz (x+Lattice.step i)=xyz x + basis i := by |
| 93 | ext j; simp [xyz,basis] |
| 94 | |
| 95 | lemma humming (A : Snap G d) (x : Cover) (i : Axis) : partConnection d (expand d A) 1 (x,i) = field (tempo (xyz x) i A) := by |
| 96 | funext t |
| 97 | simp only [field,partConnection,potential,one_smul] |
| 98 | rw [←Fin.sum_univ_eq_sum_range] |
| 99 | refine sum_congr rfl fun j _ => ?_ |
| 100 | rw [expand,dif_pos j.isLt] |
| 101 | change Tensor.diagonal ((A j).val i) (xyz x + _) = _ |
| 102 | rw [←line_at]; rfl |
| 103 | |
| 104 | lemma stem (H : Hol G) (A : Snap G d) (x : Cover) (i : Axis) : G.mat (H.links d (expand d A) 1 (x,i))= |
| 105 | run G d (tempo (xyz x) i A) := by |
| 106 | have he := (H.solves d (expand d A) 1 (x,i)) |
| 107 | rw [humming] at he |
| 108 | exact congrArg (fun f : ℝ → G.El => G.mat (f 1)) (he.unique (launches (tempo _ _ A))) |
| 109 | |
| 110 | lemma physical (v : G.Color) : fderiv ℝ G.plog 1 (G.colorMat v)=v := by |
| 111 | have hf : DifferentiableAt ℝ G.plog (G.mat (G.lieExp 0)) := by |
| 112 | rw [G.mat_lieExp_zero, G.mat_one]; exact G.plog_diff.differentiableAt (by simp) |
| 113 | have hh : (fun p : G.Color => G.plog (G.mat (G.lieExp p))) =ᶠ[𝓝 0] (fun x => x) := G.plog_left |
| 114 | have ht := hh.fderiv_eq (𝕜:=ℝ) |
| 115 | have hv := (hf.hasFDerivAt.comp 0 G.expDiff_zero).fderiv |
| 116 | have hi := congrArg (fun t : G.Color →L[ℝ] G.Color => t v) (hv.symm.trans ht) |
| 117 | simp only [G.mat_lieExp_zero,G.mat_one,ContinuousLinearMap.comp_apply,fderiv_fun_id] at hi |
| 118 | exact hi |
| 119 | |
| 120 | lemma first (x : Panel G d) : fderiv ℝ (stereo G d) 0 x=(∫ t in (0:ℝ)..1, field x.2.2 t) - x.2.1 := by |
| 121 | let M (s : G.Color) := G.mat (G.lieExp s) |
| 122 | have hf : M 0=1 := by simp [M] |
| 123 | have he (v : G.Color) : HasDerivAt (fun t : ℝ => M (t • v)) (G.colorMat v) 0 := by |
| 124 | exact G.expDiff_zero.comp_hasDerivAt_of_eq (0:ℝ) (show HasDerivAt (fun t : ℝ => t • v) v 0 from by |
| 125 | simpa using (hasDerivAt_id' (0:ℝ)).smul_const v) (by simp) |
| 126 | let p (t : ℝ) := M (t • x.1) * run G d (t • x.2.2) * star (M (t • (x.1+x.2.1))) |
| 127 | have h0 : p 0=1 := by simp [p,hf,(endpoint G d).2.1] |
| 128 | let y := ∫ t in (0:ℝ)..1, field x.2.2 t |
| 129 | have hp : HasDerivAt p (G.colorMat (y-x.2.1)) 0 := by |
| 130 | apply (((he x.1).mul ((endpoint G d).2.2 x.2.2)).mul (he (x.1+x.2.1)).star).congr_deriv |
| 131 | simp only [Pi.mul_apply,zero_smul,hf,(endpoint G d).2.1,star_one,mul_one,one_mul,G.colorMat_skew,map_add,map_sub,star_add] |
| 132 | unfold y; abel |
| 133 | have hx := (G.plog_diff.differentiableAt (by simp)).hasFDerivAt.comp_hasDerivAt_of_eq (0:ℝ) hp h0.symm |
| 134 | have hs := ((scripts G d).1.differentiableAt (by simp)).hasFDerivAt.comp_hasDerivAt_of_eq (0:ℝ) (show HasDerivAt |
| 135 | (fun t : ℝ => t • x) x 0 from by simpa using (hasDerivAt_id' (0:ℝ)).smul_const x) (by simp) |
| 136 | have hh : G.plog ∘ p= stereo G d ∘ fun t : ℝ => t • x := by |
| 137 | funext v; simp [Function.comp,p,M,stereo,smul_add] |
| 138 | rw [hh] at hx; exact (hs.unique hx).trans (physical _) |
| 139 | end YM.MultiNext.SignedSource.Pattern |