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.WARD_BIN.Supported |
| 2 | import YM.Next.WARD_BIN.Taper |
| 3 | import YM.Work.G05 |
| 4 | |
| 5 | |
| 6 | /-! |
| 7 | # The leading block of the equation family |
| 8 | |
| 9 | Use the alternative construction by `sample`: constrain a radial complement by |
| 10 | *linear combinations* of lattice Euler samples; multiply via finite multilinearity. |
| 11 | Enough to be triangular in the same **factor** block. We don't claim the stronger |
| 12 | leading engineering statement for these nonlinear stencils. This suffices because |
| 13 | the actual precision uses `frame.scaled`, paying factor degree. |
| 14 | -/ |
| 15 | set_option autoImplicit false |
| 16 | noncomputable section |
| 17 | namespace YM.WardBin |
| 18 | open Function Set Filter MeasureTheory Wilson Lattice RG Source Source.Drops Labels Work.G05 Bid Maxwell |
| 19 | open scoped Topology ContDiff Matrix.Norms.Frobenius BigOperators |
| 20 | variable {G : Gauge} {d l n m : ℕ} {H : Hol G} |
| 21 | |
| 22 | namespace Rays |
| 23 | variable (R : Rays G d H) |
| 24 | |
| 25 | /-- Two first variations: `predict` need not preserve degree, but knows through |
| 26 | any slot exact response on all *lower* degree+same degree inputs. -/ |
| 27 | def predict : Snap G d →L[ℝ] Snap G d := R.lifts.comp (ContinuousLinearMap.pi (fun e => linearSample H e.val)) |
| 28 | |
| 29 | private lemma rayDiff {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] (v : F) : |
| 30 | HasDerivAt (fun t : ℝ => t • v) v 0 := by simpa using! (hasDerivAt_id' (0:ℝ)).smul_const v |
| 31 | |
| 32 | private lemma radial_limit {E F Z : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 33 | [NormedAddCommGroup F] [NormedSpace ℝ F] [NormedAddCommGroup Z] [NormedSpace ℝ Z] |
| 34 | (A : E) (P : E → F) (T : E →L[ℝ] F) (X : F →L[ℝ] Z) (hX) (ht : HasFDerivAt P T 0) (h : P 0=0) |
| 35 | (hp : X (T A) = hX) : Tendsto (fun t : ℝ => t⁻¹ • X (P (t • A))) (𝓝[>] (0:ℝ)) (𝓝 hX) := by |
| 36 | have he := X.hasFDerivAt.comp_hasDerivAt 0 (ht.comp_hasDerivAt_of_eq 0 (rayDiff A) (by simp)) |
| 37 | exact value_scale (f:=fun t : ℝ => X (P (t • A))) (he.congr_deriv hp) (by rw [zero_smul,h,map_zero]) |
| 38 | |
| 39 | lemma guess_limit (A : Snap G d) : |
| 40 | Tendsto (fun t : ℝ => t⁻¹ • R.guess (curve H (t • A))) (𝓝[>] (0:ℝ)) (𝓝 A) := by |
| 41 | let P := bring H d R.slots |
| 42 | have he : AnalyticAt ℝ P 0 := AnalyticAt.pi fun i => R.point (R.slots i) |
| 43 | change Tendsto (fun t : ℝ => t⁻¹ • R.read (P (t • A))) _ _ |
| 44 | exact radial_limit A P (fderiv ℝ P 0) R.read.toContinuousLinearMap A |
| 45 | he.differentiableAt.hasFDerivAt (funext fun i => (takes_zero H d (R.slots i))) (R.back A) |
| 46 | |
| 47 | lemma predict_limit (A : Snap G d) : |
| 48 | Tendsto (fun t : ℝ => t⁻¹ • R.gap (curve H (t • A))) (𝓝[>] (0:ℝ)) (𝓝 (R.predict A)) := by |
| 49 | let B : Snap G d → (e : R.edg) → G.Color := fun J e => sample e.val (curve H J) |
| 50 | let Y := ContinuousLinearMap.pi (fun e : R.edg => linearSample H (d:=d) e.val) |
| 51 | have hd : HasFDerivAt B Y 0 := hasFDerivAt_pi'.mpr fun i => by |
| 52 | let f := fun x : Snap G d => sample i.val (curve H x) |
| 53 | have he : HasFDerivAt f (linearSample H i.val) 0 := (sample_germ H d i.val).differentiableAt.hasFDerivAt |
| 54 | rw [show (ContinuousLinearMap.proj i).comp Y = linearSample H i.val by ext1; rfl]; exact he |
| 55 | refine radial_limit A B Y R.lifts (R.predict A) hd ?_ rfl |
| 56 | funext i |
| 57 | simp only [B,curve_zero,sample,euler,wheel,Pressure.one,G.curvature_unit, |
| 58 | add_zero,Finset.sum_const_zero, map_zero]; rfl |
| 59 | |
| 60 | variable (M : Tensor.T (Snap G d) ℂ (l+1)) |
| 61 | |
| 62 | lemma slot_leading (A : Snap G d) : Tensor.diagonal (Tensor.coeff ((R.force M) ∘ curve (d:=d) H) (l+1) 0) A = |
| 63 | Tensor.diagonal M A - Tensor.diagonal M (A-R.predict A) := by |
| 64 | obtain ⟨S,hS⟩:=R.fitsAt_support |
| 65 | let F := R.force M ∘ curve (d:=d) H |
| 66 | have hf : ContDiffAt ℝ ((l+1:ℕ):WithTop ℕ∞) F 0 := |
| 67 | ((R.force_affordable hS M).smooth_poly H d).of_le (WithTop.coe_le_coe.mpr le_top) |
| 68 | rw [← leading_tensor A (R.force M ∘ curve H) hf] |
| 69 | have hx : ContDiffAt ℝ ((l+1:ℕ):WithTop ℕ∞) (fun t : ℝ => t • A) 0 := by simpa using (monoSmooth A 1 _|>.contDiffAt (x:=0)) |
| 70 | apply leading_of_lim ((show ContDiffAt ℝ (↑(l+1:ℕ) : WithTop ℕ∞) F ((0:ℝ) • A) by rw [zero_smul]; exact hf).comp 0 hx) |
| 71 | have ha := R.guess_limit A |
| 72 | have h := (Tensor.diag_smooth M ∞).continuous |
| 73 | apply (((h.tendsto A).comp ha).sub |
| 74 | ((h.tendsto (A-R.predict A)).comp (ha.sub (R.predict_limit A)))).congr' |
| 75 | refine Eventually.of_forall fun t => ?_ |
| 76 | change Tensor.diagonal M (t⁻¹ • _) - Tensor.diagonal M (t⁻¹ • _ - t⁻¹ • _) = _ |
| 77 | have he {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] (u v : E) (M : Tensor.T E ℂ (l+1)) : |
| 78 | Tensor.diagonal M (t⁻¹ • u) - Tensor.diagonal M (t⁻¹ • u - t⁻¹ • v) = |
| 79 | (t^(l+1))⁻¹ • (Tensor.diagonal M u-Tensor.diagonal M (u-v)) := by rw [← smul_sub,Tensor.homogeneous, Tensor.homogeneous M _ t⁻¹,inv_pow,← smul_sub] |
| 80 | exact he (R.guess (curve H (t • A))) _ M |
| 81 | |
| 82 | set_option maxHeartbeats 400000 in |
| 83 | /-- Split the weighted projection of `predict` on a scaled input so we can take |
| 84 | `+0` radial limit without treating an unbounded divided input as convergent. -/ |
| 85 | theorem predict_scale (A : Snap G d) : ∃ f : ℝ → Snap G d, |
| 86 | Tendsto f (𝓝[>] (0:ℝ)) (𝓝 (R.origin A : Snap G d)) ∧ |
| 87 | ∀ t, engineered t (f t) = engineered t A-R.predict (engineered t A) := by |
| 88 | let I := Fin (d-1) |
| 89 | let v (i : I) : Snap G d := Pi.single i (A i) |
| 90 | let F t (i : Fin (d-1)) := A i - |
| 91 | ∑ j : I, (t:ℝ)^(j.val-i.val) • R.predict (v j) i |
| 92 | have hg (j i : I) (hj : j.val < i.val) : R.predict (v j) i = 0 := by |
| 93 | have hV : v j∈through G d i.val := fun k hk => Pi.single_eq_of_ne (show k≠ j by intro h; rw [h] at hk; omega) _ |
| 94 | rw [show R.predict (v j) i=_ from R.triangular _ i hV, show v j i = 0 from Pi.single_eq_of_ne (fun H => hj.ne' (congr_arg Fin.val H)) _,map_zero] |
| 95 | have ht (i : I) : R.predict (v i) i=R.T i (A i) := by |
| 96 | have hV : v i∈through G d i.val := fun k hk => Pi.single_eq_of_ne (show k≠i by intro h; rw [h] at hk; omega) _ |
| 97 | rw [show R.predict (v i) i=_ from R.triangular (v i) i hV]; simp [v] |
| 98 | have he (t : ℝ) : (∑ j : I, t^(j.val+2) • v j) = engineered t A := by |
| 99 | funext i; rw [Finset.sum_apply, Finset.sum_eq_single i] |
| 100 | · simp only [Pi.smul_apply, v,Pi.single_eq_same]; rfl |
| 101 | · intro j _ hj; simp only [v,Pi.smul_apply,Pi.single_eq_of_ne hj.symm, smul_zero] |
| 102 | simp |
| 103 | refine ⟨F,tendsto_pi_nhds.mpr (fun i => ?_),fun t => ?_⟩ |
| 104 | · have H0 : F 0 i= R.origin A i := by |
| 105 | unfold F; rw [Finset.sum_eq_single i] |
| 106 | · rw [Nat.sub_self,pow_zero,one_smul,ht]; rfl |
| 107 | · intro j _ hj |
| 108 | rcases lt_or_gt_of_ne (show j.val≠i.val from Fin.val_ne_of_ne hj) with h|h |
| 109 | · rw [hg _ i h,smul_zero] |
| 110 | rw [zero_pow (Nat.sub_ne_zero_of_lt h),zero_smul] |
| 111 | simp |
| 112 | have hf : Continuous (fun t => F t i) := continuous_const.sub |
| 113 | (continuous_finsetSum _ fun j _ => (monoSmooth (R.predict (v j) i) (j.val-i.val) 1).continuous) |
| 114 | rw [← H0]; exact (hf.tendsto (0:ℝ)).mono_left nhdsWithin_le_nhds |
| 115 | funext i; rw [Pi.sub_apply,engineered_at]; unfold F; rw [smul_sub,engineered_at, sub_right_inj, ← he, map_sum,Finset.sum_apply,Finset.smul_sum] |
| 116 | refine Finset.sum_congr rfl fun j _ => ?_ |
| 117 | rw [map_smul,Pi.smul_apply] |
| 118 | rcases lt_or_ge j.val i.val with hv|hv |
| 119 | · rw [hg _ i hv,smul_zero,smul_zero,smul_zero] |
| 120 | rw [smul_smul,← pow_add, show i.val+2+(j.val-i.val) = j.val+2 by omega] |
| 121 | |
| 122 | lemma residual_shell (A : Snap G d) : ∃ X : TaylorTower G, expand d (R.origin A) = fun i => gaugeJet (X i) := by |
| 123 | classical |
| 124 | let B := R.origin A |
| 125 | have he (i : Fin (d-1)) : takeCurl (B i) ∈ onShell G.Color i.val := R.constrained i (A i) |
| 126 | refine ⟨fun j => if h : j < d-1 then (⟨takeCurl (B ⟨j,h⟩),he _⟩ : Shell G j) else 0, ?_⟩ |
| 127 | funext i; by_cases h : i < d-1 |
| 128 | · simp only [dif_pos h,expand]; exact (potential_recover (B ⟨i,h⟩)).symm |
| 129 | simp only [expand,dif_neg h,map_zero] |
| 130 | end Rays |
| 131 | |
| 132 | |
| 133 | abbrev evaluateLabel (p : Label G d) (J : Snap G d) := Labels.read (expand d J) p.val |
| 134 | |
| 135 | lemma eval_eng (p : Label G d) (J : Snap G d) (t : ℝ) (hp : p∈Grade (n,l)) : |
| 136 | evaluateLabel p (engineered t J) = t^n • evaluateLabel p J := by unfold evaluateLabel; rw [← expand_jet, scaled_grade t _ _ hp] |
| 137 | |
| 138 | /-- Correspondence to a real multilinear form (with complex output). -/ |
| 139 | def toTensor (l : ℕ) (p : Label G d) := Tensor.coeff (evaluateLabel p) l 0 |
| 140 | |
| 141 | lemma eval_diag {p : Label G d} (hp : p∈Grade (n,l)) (J : Snap G d) : Tensor.diagonal (toTensor l p) J = evaluateLabel p J := by |
| 142 | have he (t : ℝ) : evaluateLabel p (t • J) = t^l • evaluateLabel p J := by |
| 143 | unfold evaluateLabel; rw [expand_smul,multiplied_grade t _ _ hp] |
| 144 | unfold toTensor; rw [← leading_tensor, funext he, lead_monomial, if_pos rfl] |
| 145 | exact (snap_read_smooth d p.val _).contDiffAt |
| 146 | |
| 147 | def CastL (u : G.El) : Snap G d→L[ℝ] Snap G d where |
| 148 | toFun := Cast u |
| 149 | cont := Cast_cont |
| 150 | map_add' a b := funext fun i => map_add _ (a i) (b i) |
| 151 | map_smul' t a := funext fun i => map_smul _ t (a i) |
| 152 | |
| 153 | private lemma invariant_sym {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 154 | (T : Tensor.T E ℂ n) (L : E →L[ℝ] E) (hs : Tensor.Sym T) |
| 155 | (h : ∀ v, Tensor.diagonal T (L v)=Tensor.diagonal T v) (a) : T (fun i => L (a i)) = T a := by |
| 156 | let Q := T.compContinuousLinearMap fun _ => L |
| 157 | have ht : Q = T := Tensor.ext_diag Q T (fun v s => hs (fun i => L (v i)) s) hs (funext h) |
| 158 | exact DFunLike.congr_fun ht a |
| 159 | |
| 160 | lemma tensor_eqv {p : Label G d} (hp : p∈Grade (n,l+1)) : Rays.covariantTensor (toTensor (l+1) p) := by |
| 161 | intro u a |
| 162 | let T := toTensor (l+1) p |
| 163 | have hs : Tensor.Sym T := Tensor.coeff_symm ((snap_read_smooth d p.val _).contDiffAt) |
| 164 | apply invariant_sym T (CastL u) hs _ a |
| 165 | intro v; change Tensor.diagonal T (Cast u v) = Tensor.diagonal T v; unfold T |
| 166 | rw [eval_diag hp,eval_diag hp]; unfold evaluateLabel; rw [expand_color] |
| 167 | exact p.property.2 .. |
| 168 | |
| 169 | namespace Rays |
| 170 | |
| 171 | variable (R : Rays G d H) {p : Label G d} (hp : p∈Grade (n,l+1)) (hx : p∈equationIdeal G d) |
| 172 | |
| 173 | include hp hx |
| 174 | |
| 175 | lemma engineering_jet (A : Jet G) (ha : m≤n) : |
| 176 | leading m (fun t : ℝ => Tensor.diagonal |
| 177 | (Tensor.coeff (R.force (toTensor (l+1) p) ∘ curve (d:=d) H) (l+1) 0) |
| 178 | (engineered t (trunk d A))) = if m=n then Labels.read A p.val else 0 := by |
| 179 | let K := Tensor.coeff (R.force (toTensor (l+1) p) ∘ curve (d:=d) H) (l+1) 0 |
| 180 | let B := trunk d A |
| 181 | let q (t : ℝ) := Tensor.diagonal K (engineered t B) |
| 182 | have hs : Tendsto (fun t : ℝ => (t^n)⁻¹ • q t) (𝓝[>] 0) (𝓝 (Labels.read A p.val)) := by |
| 183 | obtain ⟨g,hg,hB⟩ := R.predict_scale B |
| 184 | have ht : Tendsto (fun t => evaluateLabel p (g t)) (𝓝[>] 0) (𝓝 (evaluateLabel p (R.origin B))) := |
| 185 | ((snap_read_smooth d p.val ∞).continuous.tendsto _).comp hg |
| 186 | have hu : evaluateLabel p (R.origin B) = 0 := by |
| 187 | unfold evaluateLabel; obtain ⟨X,hX⟩ := R.residual_shell B; rw [hX]; exact ideal_meaning.mp hx X |
| 188 | have he := (tendsto_const_nhds (x:= Labels.read A p.val)).sub ht |
| 189 | rw [hu,sub_zero] at he |
| 190 | apply he.congr' |
| 191 | filter_upwards [self_mem_nhdsWithin (s:=Ioi (0:ℝ))] with t ht |
| 192 | have hv : 0<t:=ht |
| 193 | unfold q K; rw [R.slot_leading,← hB,eval_diag hp,eval_diag hp,eval_eng _ B _ hp, eval_eng _ _ _ hp] |
| 194 | rw [← smul_sub,inv_smul_smul₀ (pow_ne_zero n hv.ne')]; exact congrArg (fun c : ℂ => c-_) (racts p A).symm |
| 195 | have h (n : ℕ) : ContDiffAt ℝ (n:WithTop ℕ∞) q 0 := |
| 196 | (Tensor.diag_smooth K (n:WithTop ℕ∞)).comp_contDiffAt _ (eng_cont B _|>.contDiffAt) |
| 197 | change leading m q= _; rcases eq_or_lt_of_le ha with ha|ha |
| 198 | · rw [ha, if_pos rfl]; exact leading_of_lim (h n) _ hs |
| 199 | · rw [if_neg ha.ne]; exact leading_of_lim (h m) 0 (falls ha hs) |
| 200 | |
| 201 | /-- The factor-`l+1` part has the chosen equation label precisely in |
| 202 | engineering degree n and none below. Use with `Taper.crownAt_below`. |
| 203 | No rank or epsilon conjecture involved. -/ |
| 204 | theorem computes {S} (Y : R.FitsAt S) (t : n≤d) (ht : m ≤ n) : |
| 205 | let T := toTensor (l+1) p |
| 206 | let Q := R.force_affordable Y T |
| 207 | crownAt H Q (R.force_gauge T (tensor_eqv hp)) d (l+1) m = if m=n then p else 0 := by |
| 208 | intro T Q; apply Subtype.ext |
| 209 | apply eval_ext; intro A |
| 210 | rw [crownAt_ok _ _ _ _ (ht.trans t),crown, ← tile_reads, R.engineering_jet hp hx _ ht] |
| 211 | split_ifs with hi |
| 212 | · rfl |
| 213 | exact (map_zero _).symm |
| 214 | |
| 215 | end Rays |
| 216 | end YM.WardBin |