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.Next.SCHEDULE.Melt |
| 2 | import YM.UVNext.PRICED_KERNELS.Degree |
| 3 | |
| 4 | |
| 5 | set_option warningAsError false |
| 6 | |
| 7 | |
| 8 | set_option linter.unusedSectionVars false |
| 9 | set_option linter.unnecessarySeqFocus false |
| 10 | |
| 11 | /-! |
| 12 | # One-plaquette Wilson deficit |
| 13 | |
| 14 | Real coordinates, careful factor-of-two and matrix Frobenius normalization. |
| 15 | For .delta top, the only nontrivial unmasked correction through quartic order |
| 16 | at the last layer can be derived from this local Taylor deficit, an invariant |
| 17 | tensor in *curvature* coordinates. No single-trace formula in abstract Lie |
| 18 | brackets substituted. Uses authoritative energy comparison (`price_limit`, plog |
| 19 | & adjoint library) on G. Analytic germs, all of degrees 0--4. No new hypotheses |
| 20 | from period nor L, nor even simple used here. |
| 21 | -/ |
| 22 | set_option autoImplicit false |
| 23 | noncomputable section |
| 24 | namespace YM.UVNext.PricedKernels |
| 25 | open Filter Set Function Lattice RG RG.Supply Wilson Precision Exterior Gauge Work.F03 |
| 26 | open scoped Topology Matrix.Norms.Frobenius BigOperators ContDiff InnerProductSpace |
| 27 | attribute [local instance] Gauge.frobInner |
| 28 | |
| 29 | variable (G : Gauge) |
| 30 | -- k chart is not necessarily inverse on the closure (indeed k = 0 |
| 31 | -- possibly even away from 1). Use only at graded positive jets. |
| 32 | def view (x : G.Color) := G.curvature (G.lieExp x) |
| 33 | def term (x : G.Color) := (‖x‖:ℝ)^2/2 |
| 34 | def missing (x : G.Color) := G.price (G.lieExp x) - term G (view G x) |
| 35 | def polish (c : ℝ) : G.Color [×4]→L[ℝ] ℝ := c • fourth (missing G) |
| 36 | |
| 37 | lemma expFlip (b : G.Color) : G.lieExp (-b)=(G.lieExp b)⁻¹ := by |
| 38 | apply G.mat_injective |
| 39 | simp only [G.mat_lieExp, G.mat_inv, map_neg,NormedSpace.star_exp,G.colorMat_skew] |
| 40 | lemma expUnder (u : G.El) (b : G.Color) : G.lieExp (G.adjoint u b)=u*(G.lieExp b)*u⁻¹ := by |
| 41 | apply G.mat_injective |
| 42 | simp; exact G.exp_conjugate u (G.colorMat b) |
| 43 | |
| 44 | lemma view_cont : ContDiff ℝ ω (view G) := by |
| 45 | unfold view Gauge.curvature; simp_rw [G.mat_inv] |
| 46 | refine G.projectColor.toContinuousLinearMap.contDiff.comp ((G.exp_jet.sub ?_).const_smul (1/2:ℝ)) |
| 47 | exact (show G.Mat ≃L[ℝ] G.Mat from starL ℝ).contDiff.comp G.exp_jet |
| 48 | lemma term_cont : ContDiff ℝ ω (term G) := |
| 49 | ContDiff.div_const (contDiff_id.norm_sq ℝ) _ |
| 50 | lemma missing_cont : ContDiff ℝ ω (missing G) := by |
| 51 | apply contDiff_iff_contDiffAt.mpr |
| 52 | suffices hg : ContDiff ℝ ω (fun a => ‖G.mat (G.lieExp a) - 1‖^2 / G.colorScale^2 /2) by |
| 53 | have hh (x : G.Color) : G.price (G.lieExp x)= ‖G.mat (G.lieExp x) - 1‖^2 / G.colorScale^2 /2 := by |
| 54 | rw [← div_pow]; change _ = G.chord _ ^ 2/2; rw [G.chord_price]; ring |
| 55 | intro y; unfold missing; simp_rw [hh]; exact hg.contDiffAt.sub ((term_cont G).contDiffAt.comp _ (view_cont G).contDiffAt) |
| 56 | exact ((((G.exp_jet.sub (contDiff_const (c:=1))).norm_sq ℝ).div_const _).div_const _) |
| 57 | |
| 58 | lemma expRay (x : G.Color) : HasDerivAt (fun t : ℝ => G.mat (G.lieExp (t • x))) (G.colorMat x) 0 := by |
| 59 | have ht : HasDerivAt (fun t : ℝ => t • x) x 0 := by simpa using (hasDerivAt_id' (0:ℝ)).smul_const x |
| 60 | exact (show HasFDerivAt (fun a => G.mat (G.lieExp a)) G.colorMat.toContinuousLinearMap ((0:ℝ) • x) by rw [zero_smul]; exact G.expDiff_zero).comp_hasDerivAt 0 ht |
| 61 | lemma view_zero : view G 0=0 := by simp [view] |
| 62 | lemma view_one : UpTo 1 (id : G.Color → G.Color) (view G) := by |
| 63 | have h := (view_cont G).contDiffAt (x:=0) |
| 64 | refine ⟨contDiffAt_id, h, fun j hj => ?_⟩ |
| 65 | ext1 v |
| 66 | interval_cases j |
| 67 | · rw [iteratedFDeriv_zero_apply,iteratedFDeriv_zero_apply,view_zero]; rfl |
| 68 | rw [iteratedFDeriv_one_apply,iteratedFDeriv_one_apply,fderiv_id] |
| 69 | let x := v 0 |
| 70 | have ht : HasDerivAt (fun t : ℝ => t • x) x 0 := by simpa using (hasDerivAt_id' (0:ℝ)).smul_const x |
| 71 | have hg : DifferentiableAt ℝ (view G) ((0:ℝ) • x) := by rw [zero_smul]; exact h.differentiableAt (by simp) |
| 72 | exact (curvature_of_hasDerivAt (expRay G x)).unique (by simpa using! (hg.hasFDerivAt.comp_hasDerivAt 0 ht)) -- composition unfolds |
| 73 | |
| 74 | lemma target_parity (x : G.Color) : missing G (-x)=missing G x := by |
| 75 | simp [missing,view,term,expFlip] |
| 76 | lemma target_fixed (u : G.El) (x : G.Color) : missing G (G.adjoint u x)=missing G x := by |
| 77 | simp [missing,expUnder,view,G.curvature_conjugate,term] |
| 78 | |
| 79 | lemma derivative_symm {g : G.Color →L[ℝ] G.Color} (he : missing G ∘ g=missing G) (j : ℕ) (v : Fin j → G.Color) : |
| 80 | iteratedFDeriv ℝ j (missing G) 0 (fun i => g (v i)) = iteratedFDeriv ℝ j (missing G) 0 v := by |
| 81 | have hh := g.iteratedFDeriv_comp_right (missing_cont G) 0 (i:=j) le_top |
| 82 | rw [g.map_zero,he] at hh |
| 83 | exact DFunLike.congr_fun hh.symm v |
| 84 | lemma polish_symm (u : G.El) (c : ℝ) (v : Fin 4 → G.Color) : polish G c (fun i => G.adjoint u (v i))=polish G c v := by |
| 85 | have hh := derivative_symm G (g:=(G.adjoint u).toContinuousLinearMap) |
| 86 | (funext fun x => target_fixed G u x) 4 v |
| 87 | unfold polish fourth; simp only [smul_apply]; rw [← hh]; rfl |
| 88 | lemma missing_odd (v : Fin 3 → G.Color) : iteratedFDeriv ℝ 3 (missing G) 0 v=0 := by |
| 89 | let g := (-1:ℝ) • ContinuousLinearMap.id ℝ G.Color |
| 90 | have he : ∀ x : G.Color, g x = -x := by intro x; simp [g] |
| 91 | have hh := derivative_symm G (g:=g) (funext fun x => by simp [he,target_parity]) 3 v |
| 92 | let P := iteratedFDeriv ℝ 3 (missing G) 0 |
| 93 | change (P fun i => (-1:ℝ) • v i)=P v at hh |
| 94 | rw [P.map_smul_univ (fun _ => (-1:ℝ)) v] at hh |
| 95 | norm_num [smul_eq_mul] at hh; linarith |
| 96 | |
| 97 | lemma missing_lower (j : ℕ) (hj : j < 4) : iteratedFDeriv ℝ j (missing G) 0=0 := by |
| 98 | have hd (x : G.Color) : Tendsto (fun t : ℝ => missing G (t • x) / t^2) (𝓝[≠] 0) (𝓝 0) := by |
| 99 | have hm := price_limit (V:=fun t => G.lieExp (t • x)) (by simp) (expRay G x) |
| 100 | have hv : HasDerivAt (fun t : ℝ => view G (t • x)) x 0 := curvature_of_hasDerivAt (expRay G x) |
| 101 | have hc : Tendsto (fun t : ℝ => t⁻¹ • view G (t • x)) (𝓝[≠] 0) (𝓝 x) := by |
| 102 | simpa [view_zero] using (hasDerivAt_iff_tendsto_slope_zero.mp hv) |
| 103 | have ha : Tendsto (fun t : ℝ => missing G (t • x) / t^2) (𝓝[≠] 0) (𝓝 (‖x‖^2/2-‖x‖^2/2)) := |
| 104 | (hm.sub ((hc.norm.pow 2).div_const 2)).congr' (Eventually.of_forall fun t => by |
| 105 | unfold missing term |
| 106 | rw [norm_smul,Real.norm_eq_abs,mul_pow, sq_abs, inv_pow]; ring) |
| 107 | simpa using ha |
| 108 | obtain ⟨h₁,h₂,h₃⟩ := hessian_of_limit (Q:=fun _ _ => 0) ((missing_cont G).contDiffAt.of_le le_top) (by simpa using hd) (by simp) (by simp) |
| 109 | ext1 v |
| 110 | interval_cases j |
| 111 | · exact h₁ |
| 112 | · rw [iteratedFDeriv_one_apply,h₂]; rfl |
| 113 | · rw [show v=![v 0,v 1] from funext fun i => by fin_cases i <;> rfl,h₃]; rfl |
| 114 | exact missing_odd .. |
| 115 | |
| 116 | /-- At the chosen top, adding the same polynomial but in *path curvature* |
| 117 | coordinates is valid through degree four. Restore the Wilson normalization |
| 118 | on actual links via G's local plog later, not claiming the polynomial is |
| 119 | exactly the deficit outside log chart (or even inside it). -/ |
| 120 | lemma unpolished (c : ℝ) : |
| 121 | UpTo 4 (c • missing G) ((homog (polish G c)) ∘ view G) := by |
| 122 | have he := (fourth_restores (missing_cont G).contDiffAt (missing_lower G)).weight c |
| 123 | have hx : (homog (polish G c)) = c • (homog (fourth (missing G))) := by |
| 124 | ext x; unfold homog polish; rw [smul_apply]; rfl |
| 125 | refine he.trans ?_ |
| 126 | have H : UpTo 4 (homog (polish G c) ∘ id) (homog (polish G c) ∘ view G) := UpTo.valuation_comp (contDiff_homog _).contDiffAt |
| 127 | (homog_lower _) (view_one G) rfl (view_zero G) |
| 128 | rw [comp_id,hx] at H; rw [hx]; exact H |
| 129 | section field |
| 130 | variable {A : Type} [NormedAddCommGroup A] [NormedSpace ℝ A] {E F : A → ℝ} {T U : A → ℝ} {n : ℕ} |
| 131 | lemma UpTo.germ (h : UpTo n E F) (hx : E=ᶠ[𝓝 0] T) (hu : F=ᶠ[𝓝 0] U) : UpTo n T U := by |
| 132 | refine ⟨h.left.congr_of_eventuallyEq hx.symm,h.right.congr_of_eventuallyEq hu.symm,fun j hj => ?_⟩ |
| 133 | rw [← (hx.iteratedFDeriv ℝ j).self_of_nhds, ← (hu.iteratedFDeriv ℝ j).self_of_nhds,h.jets j hj] |
| 134 | |
| 135 | variable (p : A → G.El) (h : ContDiffAt ℝ ω (fun a => G.mat (p a)) 0) (he : p 0=1) (c : ℝ) |
| 136 | include h he |
| 137 | lemma apply_polish : |
| 138 | let E (a:A) := c * (G.price (p a) - ‖G.curvature (p a)‖^2/2) |
| 139 | UpTo 4 E (fun a => homog (polish G c) (G.curvature (p a))) := by |
| 140 | intro E |
| 141 | have hv : Tendsto p (𝓝 0) (𝓝 1) := by |
| 142 | have hx : Topology.IsEmbedding G.mat := (G.continuous_mat.isClosedEmbedding G.mat_injective).isEmbedding |
| 143 | rw [hx.tendsto_nhds_iff,← he]; exact h.continuousAt |
| 144 | have hk := hv.eventually G.plog_right |
| 145 | have hz : G.mat (p 0)=1 := he ▸ G.mat_one |
| 146 | let f (x : A) := G.plog (G.mat (p x)) |
| 147 | have hd : ContDiffAt ℝ ω f 0 := (show ContDiffAt ℝ ω G.plog (G.mat (p 0)) by rw [hz]; exact G.plog_diff).comp (f:=fun x => G.mat (p x)) (0:A) h |
| 148 | have hZ : f 0=0 := by unfold f; rw [hz]; exact G.plog_one |
| 149 | refine ((unpolished G c).comp hd hZ).germ ?_ ?_ <;> |
| 150 | filter_upwards [hk] with i hi |
| 151 | · show c * (G.price (G.lieExp (f i))-_)=_; unfold f view; rw [hi]; rfl |
| 152 | change homog (polish G c) (G.curvature (G.lieExp (G.plog (G.mat (p i)))))=_; rw [hi] |
| 153 | |
| 154 | lemma price_jet (d : ℝ) (hd : 0 ≤ 1-d) : |
| 155 | let c := 1-d |
| 156 | UpTo 4 (fun a => G.price (p a)) (fun a => d * G.price (p a)+ |
| 157 | ‖Real.sqrt c • G.curvature (p a)‖^2/2 + homog (polish G c) (G.curvature (p a))) := by |
| 158 | intro c |
| 159 | let K x := G.curvature (p x); let P x := G.price (p x) |
| 160 | let L x := d * P x + ‖Real.sqrt c • K x‖^2/2 |
| 161 | let T x := c * (P x-‖K x‖^2/2) |
| 162 | have hP : ContDiffAt ℝ ω P 0 := price_smooth h -- Type universe X Type! |
| 163 | have hK : ContDiffAt ℝ ω K 0 := by |
| 164 | simp_rw [K,Gauge.curvature, G.mat_inv] |
| 165 | refine G.projectColor.toContinuousLinearMap.contDiff.contDiffAt.comp _ ((h.sub ?_).const_smul _) |
| 166 | exact (show G.Mat ≃L[ℝ] G.Mat from starL ℝ).contDiff.contDiffAt.comp _ h |
| 167 | have hL : ContDiffAt ℝ ω L 0 := (contDiffAt_const.mul hP).add (((hK.const_smul (Real.sqrt c)).norm_sq ℝ).div_const _) |
| 168 | have hh := (UpTo.refl hL 4).add (apply_polish G p h he c) |
| 169 | have he : P=L+T := by |
| 170 | funext x |
| 171 | unfold L T P K |
| 172 | simp only [Pi.add_apply,norm_smul,Real.norm_eq_abs,abs_of_nonneg (Real.sqrt_nonneg _),mul_pow,Real.sq_sqrt (show 0 ≤ c from hd)] |
| 173 | unfold c; ring |
| 174 | change UpTo 4 P _; rw (occs := .pos [1]) [he] |
| 175 | exact hh |
| 176 | end field |
| 177 | end YM.UVNext.PricedKernels |