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.ProjectorNext.PROJECTOR_CALIBRATION.Force |
| 2 | |
| 3 | /-! |
| 4 | # Smooth reads on a finite cover stencil |
| 5 | |
| 6 | Track ALL endpoints of positive links, irrespective of whether the cylinder |
| 7 | is evaluated in cover or at the torus. Left derivatives of these reads have |
| 8 | authentic values; they too have smooth matrix formulas before any masks; no |
| 9 | wrapping hypotheses needed until differentiating a PLACED read with respect |
| 10 | to torus variables. No claim derivatives have affordable bounds from this |
| 11 | calculus alone. |
| 12 | -/ |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.ProjectorNext.Calibration |
| 16 | open Lattice Wilson RG Source Filter Function |
| 17 | open scoped Topology Matrix.Norms.Frobenius BigOperators ContDiff |
| 18 | variable {G : Gauge} |
| 19 | |
| 20 | instance (s : Finset Cover) : Fintype (UsedEdges s) := by |
| 21 | haveI : Finite (UsedEdges s) := Finite.of_injective (fun i : UsedEdges s => Prod.mk (⟨i.val.1,i.property.1⟩ : s) i.val.2) (by |
| 22 | rintro ⟨⟨x,i⟩,h⟩ ⟨⟨y,j⟩,k⟩ he; obtain ⟨e1,e2⟩ := Prod.mk.inj he |
| 23 | have e3 : x=y := congr_arg Subtype.val e1 |
| 24 | exact Subtype.ext (Prod.ext e3 e2)) |
| 25 | exact Fintype.ofFinite _ |
| 26 | |
| 27 | abbrev Scan (G : Gauge) (s : Finset Cover) := UsedEdges s → G.Mat |
| 28 | |
| 29 | def reel (G : Gauge) (s : Finset Cover) (U : CoverConfig G) : Scan G s := fun i => G.mat (U i.val) |
| 30 | |
| 31 | def pushLink (U : CoverConfig G) (D : Edge Cover → G.Color) (t : ℝ) : CoverConfig G := fun i => |
| 32 | G.lieExp (t • D i) * U i |
| 33 | |
| 34 | variable {E K B : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 35 | [NormedAddCommGroup K] [NormedSpace ℝ K] [NormedAddCommGroup B] [NormedSpace ℝ B] |
| 36 | |
| 37 | /-- representation on the given stencil by a smooth function of matrices. -/ |
| 38 | def Empirical (s : Finset Cover) (f : CoverConfig G → E) := ∃ g : Scan G s → E, |
| 39 | ContDiff ℝ ω g ∧ ∀ U, f U = g (reel G s U) |
| 40 | |
| 41 | def Small (G : Gauge) (f : CoverConfig G → E) := ∃ s : Finset Cover, Empirical s f |
| 42 | |
| 43 | variable {s q : Finset Cover} {f g : CoverConfig G → E} {v : CoverConfig G → K} |
| 44 | namespace Empirical |
| 45 | |
| 46 | lemma enlarge (h : Empirical s f) (hS : s⊆q) : Empirical q f := by |
| 47 | let p : UsedEdges s → UsedEdges q := fun i => ⟨i.val,hS i.property.1,hS i.property.2⟩ |
| 48 | obtain ⟨x,hx,hf⟩ := h |
| 49 | exact ⟨(fun A => x (A ∘ p)), hx.comp (contDiff_pi.mpr fun i => contDiff_apply ..), hf⟩ |
| 50 | |
| 51 | lemma constant (x : E) : Empirical s fun _ : CoverConfig G => x := ⟨_,contDiff_const, fun _ => rfl⟩ |
| 52 | |
| 53 | lemma link (i : UsedEdges s) : Empirical s fun U : CoverConfig G => G.mat (U i.val) := |
| 54 | ⟨(fun U => U i),contDiff_apply ..,fun _ => rfl⟩ |
| 55 | |
| 56 | protected lemma comp (h : Empirical s f) {L : E → B} (ht : ContDiff ℝ ω L) : Empirical s (fun U => L (f U)) := by |
| 57 | obtain ⟨x,hx,hf⟩ := h; exact ⟨_,ht.comp hx,fun i => congr_arg L (hf i)⟩ |
| 58 | |
| 59 | protected lemma pair (h : Empirical s f) (hv : Empirical s v) : Empirical s fun U => (f U,v U) := by |
| 60 | obtain ⟨x,hx,hf⟩ := h; obtain ⟨z,hz,hv⟩ := hv; exact ⟨_,hx.prodMk hz,fun i => Prod.ext (hf i) (hv i)⟩ |
| 61 | |
| 62 | lemma vector {I : Type*} [Fintype I] (f : I → CoverConfig G → E) (h : ∀ i, Empirical s (f i)) : |
| 63 | Empirical s fun U i => f i U := by |
| 64 | choose x hx he using h |
| 65 | exact ⟨_,contDiff_pi.mpr hx,fun U => funext fun i => he i U⟩ |
| 66 | |
| 67 | lemma supported (h : Empirical s f) : LocalOn s f := by |
| 68 | obtain ⟨x,-,he⟩ := h |
| 69 | intro U V hh; rw [he,he] |
| 70 | exact congr_arg x (funext fun i : UsedEdges s => congr_arg G.mat (hh i.val i.property.1 i.property.2)) |
| 71 | |
| 72 | |
| 73 | |
| 74 | /-- Compositions with any tested matrix law, also useful for reads other than |
| 75 | Hol. Only need germ around each needed point. -/ |
| 76 | lemma substituted (h : Empirical s f) {T : K → CoverConfig G} {a : K} |
| 77 | (he : ∀ i : UsedEdges s, ContDiffAt ℝ ω (fun y => G.mat (T y i.val)) a) : |
| 78 | ContDiffAt ℝ ω (fun y => f (T y)) a := by |
| 79 | obtain ⟨x,hx,h⟩ := h |
| 80 | simp_rw [h] |
| 81 | exact hx.contDiffAt.comp a (contDiffAt_pi.mpr he : ContDiffAt ℝ ω (fun y => reel G s (T y)) a) |
| 82 | |
| 83 | end Empirical |
| 84 | |
| 85 | namespace Small |
| 86 | |
| 87 | |
| 88 | |
| 89 | lemma link (e : Edge Cover) : Small G fun (U : CoverConfig G) => G.mat (U e) := |
| 90 | ⟨{e.1,e.1+step e.2},Empirical.link (s:={e.1,e.1+step e.2}) ⟨e,by simp,by simp⟩⟩ |
| 91 | |
| 92 | lemma constant (x : E) : Small G fun _ => x := ⟨∅,Empirical.constant _⟩ |
| 93 | |
| 94 | protected lemma comp (h : Small G f) {L : E → B} (ht : ContDiff ℝ ω L) : Small G (fun U => L (f U)) := by |
| 95 | obtain ⟨s,h⟩ := h; exact ⟨s,h.comp ht⟩ |
| 96 | |
| 97 | protected lemma pair (h : Small G f) (hv : Small G v) : Small G fun U => (f U,v U) := by |
| 98 | obtain ⟨s,h⟩ := h; obtain ⟨q,hv⟩ := hv |
| 99 | exact ⟨s∪q,(h.enlarge Finset.subset_union_left).pair (hv.enlarge Finset.subset_union_right)⟩ |
| 100 | |
| 101 | lemma two (h : Small G f) (hv : Small G v) (L : E → K → B) (ht : ContDiff ℝ ω (uncurry L)) : |
| 102 | Small G fun U => L (f U) (v U) := (h.pair hv).comp ht |
| 103 | |
| 104 | lemma linear (h : Small G f) (L : E →L[ℝ] B) : Small G fun U => L (f U) := h.comp L.contDiff |
| 105 | |
| 106 | lemma add (h : Small G f) (hh : Small G g) : Small G fun U => f U+g U := |
| 107 | two h hh (fun x y => x+y) (contDiff_fst.add contDiff_snd) |
| 108 | lemma sub (h : Small G f) (hh : Small G g) : Small G fun U => f U-g U := |
| 109 | two h hh (fun x y => x-y) (contDiff_fst.sub contDiff_snd) |
| 110 | |
| 111 | protected lemma mul {A : Type*} [NormedRing A] [NormedAlgebra ℝ A] {Y Z : CoverConfig G → A} |
| 112 | (h : Small G Y) (hh : Small G Z) : Small G fun U => Y U * Z U := |
| 113 | two h hh (fun x y => x*y) (contDiff_fst.mul contDiff_snd) |
| 114 | |
| 115 | lemma vector {I : Type*} [Fintype I] (f : I → CoverConfig G → E) (h : ∀ i, Small G (f i)) : |
| 116 | Small G fun U i => f i U := by |
| 117 | classical |
| 118 | choose s hs using h |
| 119 | exact ⟨_,Empirical.vector f fun i => (hs i).enlarge (show s i ⊆ Finset.univ.biUnion s from |
| 120 | fun x hx => Finset.mem_biUnion.mpr ⟨i,Finset.mem_univ i,hx⟩)⟩ |
| 121 | |
| 122 | lemma sum {I : Type*} (w : Finset I) (u : I → CoverConfig G → E) (h : ∀ i∈w, Small G (u i)) : |
| 123 | Small G fun U => ∑ i∈w,u i U := by |
| 124 | classical |
| 125 | induction w using Finset.induction_on with |
| 126 | | empty => simp; exact Small.constant _ |
| 127 | | insert a w ha ih => simp only [Finset.sum_insert ha]; exact (h a (by simp)).add (ih fun i hi => h i (by simp_all)) |
| 128 | |
| 129 | lemma matStar {U : CoverConfig G → G.Mat} (h : Small G U) : Small G fun y => star (U y) := |
| 130 | h.comp (L:=fun u => star u) (starL' ℝ (A:=G.Mat)).contDiff |
| 131 | |
| 132 | lemma path (a : Walk) (x : Cover) : Small G fun U : CoverConfig G => G.mat (travel U x a) := by |
| 133 | induction a generalizing x with |
| 134 | | nil => exact Small.constant _ |
| 135 | | cons l a ih => |
| 136 | simp only [travel,G.mat_mul]; apply Small.mul _ (ih _) |
| 137 | unfold Step.read; split |
| 138 | · simp only [G.mat_inv]; exact Small.matStar (Small.link _) |
| 139 | exact Small.link _ |
| 140 | |
| 141 | lemma curvature {T : CoverConfig G → G.El} (h : Small G fun U => G.mat (T U)) : |
| 142 | Small G fun U => G.curvature (T U) := by |
| 143 | simp only [Gauge.curvature,G.mat_inv] |
| 144 | exact h.comp (L:=fun z => G.projectColor.toContinuousLinearMap ((1/2:ℝ) • (z-star z))) |
| 145 | (G.projectColor.toContinuousLinearMap.contDiff.comp ((contDiff_const (c:=(1/2 : ℝ))).smul (contDiff_id.sub (starL' ℝ (A:=G.Mat)).contDiff))) |
| 146 | |
| 147 | lemma adjoint {T : CoverConfig G → G.El} {Y : CoverConfig G → G.Color} |
| 148 | (h : Small G fun U => G.mat (T U)) (hp : Small G Y) : Small G fun U => G.adjoint (T U) (Y U) := by |
| 149 | refine (h.pair hp).comp (L:=fun z => G.projectColor.toContinuousLinearMap |
| 150 | (z.1*G.colorMat.toContinuousLinearMap z.2*star z.1)) ?_ |
| 151 | refine G.projectColor.toContinuousLinearMap.contDiff.comp ?_ |
| 152 | exact (contDiff_fst.mul (G.colorMat.toContinuousLinearMap.contDiff.comp contDiff_snd)).mul ((starL' ℝ (A:=G.Mat)).contDiff.comp contDiff_fst) |
| 153 | |
| 154 | lemma slot (a : RG.Slot) : Small G a.eval := Small.adjoint (T:=fun U => travel U 0 a.walk) (Small.path ..) |
| 155 | (Small.curvature (T:=fun U => faceValue U (a.offset,a.plaq)) (Small.path ..)) |
| 156 | |
| 157 | lemma staple (ν : Axis) (x : Cover) (q : PlaqAxes) : Small G fun U => Calibration.staple U ν x q := by |
| 158 | have hf (x : Cover) : Small G fun U : CoverConfig G => G.mat (faceValue U (x,q)) := Small.path .. |
| 159 | have he (x : Cover) (l : Axis) : Small G fun U : CoverConfig G => G.curvature ((U (x,l))⁻¹*faceValue U (x,q)*U (x,l)) := by |
| 160 | apply Small.curvature; simp_rw [G.mat_mul,G.mat_inv]; exact (((Small.link _).matStar).mul (hf _)).mul (Small.link _) |
| 161 | simp_rw [Calibration.staple] |
| 162 | refine Small.add ?_ ?_ |
| 163 | all_goals split |
| 164 | · exact (Small.curvature (hf _)).sub (he _ _) |
| 165 | · exact Small.constant _ |
| 166 | · exact (he _ _).sub (Small.curvature (hf _)) |
| 167 | exact Small.constant _ |
| 168 | lemma gradient (x : Cover) (ν : Axis) : Small G fun U => Calibration.gradient U x ν := Small.sum _ _ fun i _ => Small.staple ν x i |
| 169 | lemma sample (x : Position) : Small G fun U => Calibration.sample U x := Small.adjoint (T:=fun U => travel U 0 (base x)) (Small.path ..) (Small.gradient ..) |
| 170 | |
| 171 | end Small |
| 172 | |
| 173 | variable (f) in |
| 174 | def left (e : Edge Cover) (c : G.Color) (U : CoverConfig G) := deriv (fun t => f (pushLink U (Pi.single e c) t)) 0 |
| 175 | |
| 176 | namespace Empirical |
| 177 | |
| 178 | private def speed (e : Edge Cover) (c : G.Color) (s : Finset Cover) (y : Scan G s) : Scan G s := fun i => |
| 179 | G.colorMat ((Pi.single e c : Edge Cover → G.Color) i.val) * y i |
| 180 | |
| 181 | private lemma instant (v : G.Color) (x : G.El) : HasDerivAt (fun t : ℝ => G.mat (G.lieExp (t • v) * x)) |
| 182 | (G.colorMat v * G.mat x) 0 := by |
| 183 | simp only [G.mat_mul,G.mat_lieExp,map_smul] |
| 184 | simpa using! (hasDerivAt_exp_smul_const (G.colorMat v) (0:ℝ)).mul_const (G.mat x) |
| 185 | |
| 186 | private lemma speed_exact (e : Edge Cover) (c : G.Color) (U : CoverConfig G) (s : Finset Cover) : |
| 187 | HasDerivAt (fun t => reel G s (pushLink U (Pi.single e c) t)) (speed e c s (reel G s U)) 0 := by |
| 188 | apply hasDerivAt_pi.mpr |
| 189 | intro i |
| 190 | exact instant (G:=G) _ _ |
| 191 | |
| 192 | @[simp] lemma at_nil (U : CoverConfig G) (D : Edge Cover → G.Color) : pushLink U D 0=U := by |
| 193 | funext i; apply G.mat_injective; simp [pushLink] |
| 194 | |
| 195 | private lemma formula {x : Scan G s → E} (e : Edge Cover) (c : G.Color) |
| 196 | (h : ContDiff ℝ ω x) (he : ∀ U, f U = x (reel G s U)) (U : CoverConfig G) : |
| 197 | HasDerivAt (fun t => f (pushLink U (Pi.single e c) t)) |
| 198 | (fderiv ℝ x (reel G s U) (speed e c s (reel G s U))) 0 := by |
| 199 | simp_rw [he] |
| 200 | exact ((h.differentiable (by simp) _).hasFDerivAt).comp_hasDerivAt_of_eq |
| 201 | 0 (speed_exact ..) (by rw [at_nil]) |
| 202 | |
| 203 | theorem authentic (h : Empirical s f) (U : CoverConfig G) (e : Edge Cover) (c : G.Color) : |
| 204 | HasDerivAt (fun t => f (pushLink U (Pi.single e c) t)) (left f e c U) 0 := by |
| 205 | obtain ⟨x,hx,h⟩ := h |
| 206 | have he := formula e c hx h U |
| 207 | rw [left,he.deriv]; exact he |
| 208 | |
| 209 | theorem linear (h : Empirical s f) (U : CoverConfig G) (e : Edge Cover) : |
| 210 | IsLinearMap ℝ (fun c => left f e c U) := by |
| 211 | obtain ⟨x,hx,h⟩ := h |
| 212 | have he (c : G.Color) : left f e c U = _ := (formula e c hx h U).deriv |
| 213 | simp_rw [he] |
| 214 | constructor |
| 215 | · intro a b |
| 216 | rw [← map_add]; apply congr_arg; funext i |
| 217 | change G.colorMat _ * _ = _ * _ + _ * _ |
| 218 | by_cases hi : i.val=e <;> simp [hi,add_mul] |
| 219 | intro a b |
| 220 | rw [← map_smul]; apply congr_arg; funext i |
| 221 | change G.colorMat _ * _ = a • (_ * _) |
| 222 | by_cases hi : i.val=e <;> simp [hi] |
| 223 | |
| 224 | theorem retains (h : Empirical s f) (e : Edge Cover) (c : G.Color) : Empirical s (left f e c) := by |
| 225 | obtain ⟨x,hx,h⟩ := h |
| 226 | refine ⟨_, (hx.fderiv_right (m:=ω) (by simp)).clm_apply (g:=speed e c s) ?_,fun U => (formula e c hx h U).deriv⟩ |
| 227 | apply contDiff_pi.mpr; intro i |
| 228 | exact contDiff_const.mul (contDiff_apply _ _ i) |
| 229 | end Empirical |
| 230 | |
| 231 | lemma Small.derivative (h : Small G f) (e : Edge Cover) (c : G.Color) : Small G (left f e c) := by |
| 232 | obtain ⟨s,hs⟩ := h; exact ⟨s,hs.retains e c⟩ |
| 233 | |
| 234 | end YM.ProjectorNext.Calibration |