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.Extra.WEAK_SCALING_ACTLAW.Adjust |
| 2 | import YM.Next.BOUNDARY.Unit |
| 3 | |
| 4 | /-! |
| 5 | # One adjusted comparison family through all finite point jets on a window |
| 6 | |
| 7 | For the lift from sampled to actual continuous convergence through coordinate |
| 8 | projection ties, pay a *successor* weak estimate and r*deriv convergence |
| 9 | there. For j-th norm jets pay all required descendants through j+1 at the |
| 10 | same stations. No tie displacement lower bound assumed for Scaling.jets. |
| 11 | -/ |
| 12 | set_option maxHeartbeats 500000 |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.Extra.WeakScaling |
| 16 | open Function Filter Set Table Ward Climb Spec |
| 17 | open scoped Topology ContDiff |
| 18 | variable {G : Gauge} {C : Family G} {S : Table C.book} {D n : ℕ} |
| 19 | |
| 20 | abbrev MatrixTest (C : Family G) (d : Caps n) := MultilinearMap ℂ (fun i => (Free C).Field (d i)) ℂ |
| 21 | |
| 22 | def matrixRead (A : Maps S) (k : ℕ) (d : Caps n) (x : Points n) : MatrixTest C d := |
| 23 | (S.classMoment S d x).compLinearMap (fun i => A k (d i)) |
| 24 | |
| 25 | abbrev forgetting (X : ℕ → ∀ d, YM.Spin.change S d) : Maps S := fun k d => (X k d).toLinearMap |
| 26 | |
| 27 | /-- Preserve value tests or bounds (multiply by an arbitrary fixed real |
| 28 | station-dependent factor) along moving points through the adjustment. -/ |
| 29 | lemma revised (U : Maps S) {r : ℕ → ℝ} (X A : ℕ → ∀ d, YM.Spin.change S d) |
| 30 | (he : ∀ᶠ k in atTop, ∀ d ≤ D, ∀ v, A k d v = U k d v) |
| 31 | (hr : ∀ d ≤ D, ∀ v, Tendsto (fun k => (A k d).symm (X k d v)) atTop (𝓝 v)) |
| 32 | {s : ℕ → ℕ} (hs : Tendsto s atTop atTop) {x : ℕ → Points n} (d : Caps n) (hd : ∀ i, d i ≤ D) |
| 33 | (t : ℕ → ℝ) (F : MatrixTest C d) |
| 34 | (h : ∀ v, Tendsto (fun i => t i • matrixRead U (s i) d (r (s i) • x i) v) atTop (𝓝 (F v))) (v) : |
| 35 | Tendsto (fun i => t i • matrixRead (forgetting X) (s i) d (r (s i) • x i) v) atTop (𝓝 (F v)) := by |
| 36 | let a (i : ℕ) (j : Fin n) := (A (s i) (d j)).symm (X (s i) (d j) (v j)) |
| 37 | apply (multi_fitted (fun i => t i • matrixRead U (s i) d (r (s i) • x i)) F h (u:=a) |
| 38 | (fun i => (hr _ (hd i) _).comp hs)).congr' |
| 39 | filter_upwards [hs.eventually he] with i hi |
| 40 | change t i • matrixRead _ _ _ _ _ = _ |
| 41 | apply congrArg (HSMul.hSMul (t i) : ℂ → ℂ) |
| 42 | apply congrArg ((S.classMoment S d _) : _ → ℂ) |
| 43 | funext j |
| 44 | exact (hi _ (hd j) (a i j)).symm.trans (LinearEquiv.apply_symm_apply ..) |
| 45 | |
| 46 | structure Curve (V : DiffPlan S) (W : DiffPlan (Free C)) (h : S.RealSpin) (H : (Free C).RealSpin) |
| 47 | (M D : ℕ) (Q : ℝ) where |
| 48 | r : ℕ → ℝ |
| 49 | pos k : 0 < r k |
| 50 | shrinks : Tendsto r atTop (𝓝 0) |
| 51 | delta : ℕ → ℝ |
| 52 | positive k : 0 < delta k |
| 53 | fine : Tendsto delta atTop (𝓝 0) |
| 54 | X : ℕ → ∀ d, YM.Spin.change S d |
| 55 | graded : ∀ᶠ k in atTop, Graded V W h H (X k) D |
| 56 | deriv d : d < D → ∀ a v, Tendsto (fun k => (X k (d+1)).symm (r k • V.deriv d a (X k d v))) atTop (𝓝 (W.deriv d a v)) |
| 57 | sampled n : n ≤ M → ∀ v : Fin n → (Free C).Tag, capped D v → Sampled (apart Q n) delta (readMap (forgetting X) r v) (disc v) |
| 58 | growth n : n ≤ M → ∀ v : Fin n → (Free C).Tag, capped D v → Follows (apart Q n) (fun k x => delta k • readMap (forgetting X) r v k x) 0 |
| 59 | |
| 60 | lemma trace_curve {f : Extraction.Order} (s : Seed C f S) {H : (Free C).Hierarchy} {M N E : ℕ} {Q : ℝ} |
| 61 | (b : Survey S s.kernel.spin H.spin M E Q) |
| 62 | (hF : ∀ d, Nonempty (YM.Spin.change S d)) (hM : N ≤ M) (hD : D ≤ E) (hw : ∀ d ≤ D, Equipped H d M E Q) |
| 63 | {V : DiffPlan S} {W : DiffPlan (Free C)} |
| 64 | (hi : V.Inclusions S) (hi' : W.Inclusions (Free C)) (hp : V.Derivatives S) (hp' : W.Derivatives (Free C)) |
| 65 | (hv : V.Orientation s.kernel.spin) (hv' : W.Orientation H.spin) : |
| 66 | Nonempty (Curve V W s.kernel.spin H.spin N D Q) := by |
| 67 | obtain ⟨X,hX,hp,he,hr⟩ := repaired s (H:=H) b hF hD hw hi hi' hp hp' hv hv' |
| 68 | refine ⟨b.r,b.pos,b.shrinks,b.delta,b.positive,b.fine,X,hX,hp,fun n hn v hv => ?_,fun n hn v hv => ?_⟩ |
| 69 | · intro σ hσ x hx u hu hU |
| 70 | let d := fun i => (v i).1 |
| 71 | have h := revised b.U X _ he hr hσ (x:=fun i => Extraction.tag (b.delta (σ i)) (u i)) d hv |
| 72 | (fun _ => 1) ((Free C).classMoment (Free C) d x) (r:=b.r) |
| 73 | have hh (w : ∀ i, (Free C).Field (d i)) := b.sampled n (hn.trans hM) (fun i => ⟨d i,w i⟩) (fun i => (hv i).trans hD) σ hσ x hx u hu hU |
| 74 | exact (h (fun w => by simpa only [one_smul] using! hh w) (fun i => (v i).2)).congr' |
| 75 | (Eventually.of_forall fun _ => one_smul ℝ _) |
| 76 | intro σ hσ x hx u hu |
| 77 | let d := fun i => (v i).1 |
| 78 | exact revised b.U X _ he hr hσ d hv (b.delta ∘ σ) 0 |
| 79 | (fun w => b.growth n (hn.trans hM) (fun i => ⟨d i,w i⟩) (fun i => (hv i).trans hD) σ hσ x hx u hu) _ |
| 80 | |
| 81 | /-- In tests involving successive derivatives in possibly different slots, |
| 82 | keep caps fixed while the coefficients may vary in the weak basis. -/ |
| 83 | def Slot {L : Register G} {T : Table L} (d : ℕ) (w : ℕ → T.Tag) (v : T.Tag) := |
| 84 | ∃ e ≤ d, ∃ (b : ℕ → T.Field e) (y : T.Field e), Tendsto b atTop (𝓝 y) ∧ v = ⟨e,y⟩ ∧ ∀ i, w i = ⟨e,b i⟩ |
| 85 | |
| 86 | lemma Slot.weaken {d e : ℕ} {L : Register G} {T : Table L} (h : d ≤ e) {w : ℕ → T.Tag} {v : T.Tag} |
| 87 | (hw : Slot d w v) : Slot e w v := by |
| 88 | obtain ⟨l,hl,hh⟩ := hw; exact ⟨l,hl.trans h,hh⟩ |
| 89 | lemma Slot.const {d : ℕ} {L : Register G} {T : Table L} (v : T.Tag) (h : v.1 ≤ d) : |
| 90 | Slot d (fun _ => v) v := ⟨v.1,h,_,_,tendsto_const_nhds,rfl,fun _ => rfl⟩ |
| 91 | |
| 92 | lemma varying (U : Maps S) {s : ℕ → ℕ} {x : ℕ → Points n} {r t : ℕ → ℝ} (f : ∀ d : Caps n, MatrixTest C d) |
| 93 | (h : ∀ d : Caps n, (∀ i, d i ≤ D) → ∀ v, Tendsto (fun i => t i • matrixRead U (s i) d (r (s i) • x i) v) atTop (𝓝 (f d v))) |
| 94 | {w : ℕ → Fin n → (Free C).Tag} {v : Fin n → (Free C).Tag} (hw : ∀ j, Slot D (fun i => w i j) (v j)) : |
| 95 | Tendsto (fun i => t i • readMap U r (w i) (s i) (x i)) atTop (𝓝 (f (fun j => (v j).1) (fun j => (v j).2))) := by |
| 96 | choose d hd b y hy hv hW using hw |
| 97 | rw [funext hv,show w = fun i j => ⟨d j,b j i⟩ from funext fun i => funext fun j => hW j i] |
| 98 | exact multi_fitted (fun i => t i • matrixRead U (s i) d (r (s i) • x i)) (f d) (h d hd) hy |
| 99 | |
| 100 | variable {V : DiffPlan S} {W : DiffPlan (Free C)} {M d : ℕ} {h : S.RealSpin} {H : (Free C).RealSpin} {Q : ℝ} |
| 101 | namespace Curve |
| 102 | variable (b : Curve V W h H M D Q) |
| 103 | |
| 104 | def shift (k : ℕ) (a : Axis) (v : (Free C).Tag) : (Free C).Tag := |
| 105 | ⟨v.1+1,(b.X k (v.1+1)).symm (b.r k • V.deriv v.1 a (b.X k v.1 v.2))⟩ |
| 106 | |
| 107 | def read (b : Curve V W h H M D Q) (w : Fin n → (Free C).Tag) := readMap (forgetting b.X) b.r w |
| 108 | |
| 109 | lemma delay (hV : d < D) (a : Axis) {w : ℕ → (Free C).Tag} {v : (Free C).Tag} {σ : ℕ → ℕ} (hs : Tendsto σ atTop atTop) |
| 110 | (hw : Slot d w v) : Slot (d+1) (fun i => b.shift (σ i) a (w i)) (Ward.rise W a v) := by |
| 111 | obtain ⟨e,he,z,y,hz,rfl,hE⟩ := hw |
| 112 | simp_rw [hE] |
| 113 | let X (k) := (b.X k (e+1)).symm.toLinearMap.comp ((b.r k • (V.deriv e a)).comp (b.X k e).toLinearMap) |
| 114 | have ht := Dash.fit_plane X (W.deriv e a) (b.deriv e (he.trans_lt hV) a) |
| 115 | exact ⟨e+1,Nat.succ_le_succ he, _,_,Dash.arcing (ht.comp hs) hz,rfl,fun i => rfl⟩ |
| 116 | |
| 117 | lemma shuffle (hV : d < D) {w : ℕ → Fin n → (Free C).Tag} {v : Fin n → (Free C).Tag} {σ : ℕ → ℕ} (hs : Tendsto σ atTop atTop) |
| 118 | (hw : ∀ j, Slot d (fun i => w i j) (v j)) (a : Axis) (i j : Fin n) : |
| 119 | Slot (d+1) (fun k => update (w k) i (b.shift (σ k) a (w k i)) j) (update v i (Ward.rise W a (v i)) j) := by |
| 120 | by_cases h : j=i |
| 121 | · subst j; simpa only [update_self] using b.delay hV a hs (hw i) |
| 122 | simpa only [Function.update_of_ne h] using (hw j).weaken d.le_succ |
| 123 | |
| 124 | lemma gradient (hS : S.Hierarchy) (hV : V.Derivatives S) (w : Fin n → (Free C).Tag) (k : ℕ) (i : Fin n) (a : Axis) |
| 125 | {x : Points n} (hx : x∈conf n) : Analysis.D (Points.direction i a) (b.read w k) x = b.read (update w i (b.shift k a (w i))) k x := by |
| 126 | let F := routed (forgetting b.X) k |
| 127 | let y := b.r k • x |
| 128 | have he := Work.A04.scale_conf _ (b.pos k) hx |
| 129 | change Points.gradient i a (fun y => disc (F ∘ w) (b.r k • y)) x = disc (F ∘ update w i (b.shift k a (w i))) y |
| 130 | rw [Work.A04.gradient_scaled _ _ _ ((cont_disc hS _ he).differentiableAt (by simp))] |
| 131 | change b.r k • Analysis.D _ (disc _) y = _ |
| 132 | rw [Ward.fromD _ hS hV he,Function.comp_update] |
| 133 | let u := V.deriv _ a (b.X k _ (w i).2) |
| 134 | have h₁ : F (b.shift k a (w i)) = ⟨(w i).1+1,b.r k • u⟩ := by |
| 135 | simp [F,routed,shift,u] |
| 136 | rw [h₁,← Ward.takes, ← Ward.takes] |
| 137 | exact (((here (F ∘ w) y i ((w i).1+1)).restrictScalars ℝ).map_smul (b.r k) u).symm |
| 138 | |
| 139 | lemma read_limit (hS : S.Hierarchy) (hV : V.Derivatives S) (hQ : 0 < Q) (hn : n ≤ M) (w : Fin n → (Free C).Tag) |
| 140 | (hw : capped d w) (hd : d < D) : Follows (apart Q n) (b.read w) (disc w) := by |
| 141 | apply interpolate (apart_open Q n) b.positive b.fine |
| 142 | (fun k x hx => (readMap_smooth hS (b.pos k) (apart_conf hQ hx)).differentiableAt (by simp)) |
| 143 | (b.sampled n hn w (hw · |>.trans hd.le)) |
| 144 | intro ⟨j,a⟩ s hs x hx z hz |
| 145 | have he := varying (forgetting b.X) (fun _ : Caps n => (0 : MatrixTest C _)) |
| 146 | (fun e (he : ∀ i, e i ≤ d+1) v => b.growth n hn (fun i => ⟨e i,v i⟩) (fun i => (he i).trans hd) s hs x hx z hz) |
| 147 | (b.shuffle hd (v:=w) hs (fun i => Slot.const (w i) (hw i)) a j) |
| 148 | apply he.congr' |
| 149 | filter_upwards [hz.eventually ((apart_open Q n).mem_nhds hx)] with i hi |
| 150 | change _ = _ • Analysis.D _ (b.read w _) _; rw [b.gradient hS hV w _ j a (apart_conf hQ hi)]; rfl |
| 151 | |
| 152 | lemma mixture (hS : S.Hierarchy) (hV : V.Derivatives S) (hQ : 0 < Q) (hn : n ≤ M) |
| 153 | {w : ℕ → Fin n → (Free C).Tag} {v : Fin n → (Free C).Tag} (hw : ∀ j, Slot d (fun i => w i j) (v j)) (hd : d < D) |
| 154 | {s : ℕ → ℕ} (hs : Tendsto s atTop atTop) {x : Points n} (hx : x ∈ apart Q n) {z} (hz : Tendsto z atTop (𝓝 x)) : |
| 155 | Tendsto (fun i => b.read (w i) (s i) (z i)) atTop (𝓝 (disc v x)) := by |
| 156 | have he (e : Caps n) (he : ∀ i, e i ≤ d) (v : (i : Fin n) → (Free C).Field (e i)) := |
| 157 | b.read_limit hS hV hQ hn (fun i => ⟨e i,v i⟩) he hd s hs x hx z hz |
| 158 | have ht := varying (forgetting b.X) (r:=b.r) (x:=z) (s:=s) (t:=fun _ => 1) (fun d => (Free C).classMoment (Free C) d x) |
| 159 | (fun e he' v => by simpa only [one_smul] using! he e he' v) hw |
| 160 | simpa only [one_smul] using! ht |
| 161 | |
| 162 | lemma all_orders (hS : S.Hierarchy) (hV : V.Derivatives S) (hH : (Free C).Hierarchy) (hW : W.Derivatives (Free C)) (hQ : 0 < Q) |
| 163 | (hn : n ≤ M) {w : ℕ → Fin n → (Free C).Tag} {v : Fin n → (Free C).Tag} (hw : ∀ j, Slot d (fun i => w i j) (v j)) |
| 164 | (m : ℕ) (hd : d + m < D) {s : ℕ → ℕ} (hs : Tendsto s atTop atTop) {x : Points n} (hx : x ∈ apart Q n) |
| 165 | {z} (hz : Tendsto z atTop (𝓝 x)) : |
| 166 | Tendsto (fun i => iteratedFDeriv ℝ m (b.read (w i) (s i)) (z i)) atTop (𝓝 (iteratedFDeriv ℝ m (disc v) x)) := by |
| 167 | have hx' := apart_conf hQ hx |
| 168 | induction m generalizing w v d with |
| 169 | | zero => |
| 170 | apply norm_fit_jet; intro u |
| 171 | simpa only [iteratedFDeriv_zero_apply] using! b.mixture hS hV hQ hn hw hd hs hx hz |
| 172 | | succ m ih => |
| 173 | apply norm_fit_jet; intro u |
| 174 | let dirs (p : Fin (m+1)) := Points.direction (u p).1 (u p).2 |
| 175 | let i := (u 0).1 |
| 176 | let a := (u 0).2 |
| 177 | let w' k := update (w k) i (b.shift (s k) a (w k i)) |
| 178 | let v' := update v i (Ward.rise W a (v i)) |
| 179 | have pivot (F G : Points n → ℂ) (y) (hc : ContDiffAt ℝ ∞ F y) (he : Analysis.D (Points.direction i a) F =ᶠ[𝓝 y] G) : |
| 180 | iteratedFDeriv ℝ (m+1) F y dirs = iteratedFDeriv ℝ m G y (Fin.tail dirs) := by |
| 181 | nth_rw 1 [← Fin.cons_self_tail dirs, Analysis.cons_inner (hc.of_le (WithTop.coe_le_coe.mpr le_top))] |
| 182 | change iteratedFDeriv ℝ m (Analysis.D (Points.direction i a) F) y _ = _ |
| 183 | rw [(he.iteratedFDeriv ℝ m).eq_of_nhds] |
| 184 | have nhds' (x : Points n) (hx : x ∈ conf n) : ∀ᶠ y in 𝓝 x, y∈conf n := (conf_open n).mem_nhds hx |
| 185 | change Tendsto _ _ (𝓝 (iteratedFDeriv ℝ (m+1) (disc v) x dirs)) |
| 186 | rw [pivot (disc v) (disc v') x (cont_disc hH _ hx') ((nhds' _ hx').mono fun _ h => Ward.fromD W hH hW h ..)] |
| 187 | have he := ih (w:=w') (v:=v') (b.shuffle (by omega : d < D) hs hw a i) (by omega) |
| 188 | apply (((ContinuousMultilinearMap.apply ℝ _ ℂ (Fin.tail dirs)).continuous.tendsto _).comp he).congr' |
| 189 | filter_upwards [hz.eventually ((conf_open _).mem_nhds hx')] with k hk |
| 190 | exact (pivot _ (b.read (w' k) (s k)) _ (readMap_smooth hS (b.pos _) hk) |
| 191 | ((nhds' _ hk).mono fun _ h => b.gradient hS hV (w k) (s k) i a h)).symm |
| 192 | |
| 193 | lemma tested (hS : S.Hierarchy) (hV : V.Derivatives S) (hH : (Free C).Hierarchy) (hW : W.Derivatives (Free C)) |
| 194 | {R : ℝ} (hr : 1 ≤ R) (hQ : R < Q) (hn : n ≤ M) (v : Fin n → (Free C).Tag) (hv : capped d v) (m : ℕ) (hd : d + m < D) |
| 195 | (ε : ℝ) (hε : 0 < ε) : ∀ᶠ k in atTop, ∀ x ∈ Scaling.window R n, |
| 196 | ‖iteratedFDeriv ℝ m (b.read v k) x - iteratedFDeriv ℝ m (disc v) x‖ ≤ ε := by |
| 197 | have he : Follows (apart Q n) (fun k => iteratedFDeriv ℝ m (b.read v k)) (iteratedFDeriv ℝ m (disc v)) := |
| 198 | fun s hs x hx z hz => b.all_orders (s:=s) (x:=x) (z:=z) (w:=fun _ => v) (v:=v) hS hV hH hW (by linarith) hn (fun j => Slot.const _ (hv j)) m hd hs hx hz |
| 199 | have hx := (window_inside hr hQ (n:=n)).trans (apart_conf (by linarith)) |
| 200 | exact he.onCompact (compact_window ..) (window_inside hr hQ) (fun x h => |
| 201 | ((cont_disc hH _ (hx h)).continuousAt_iteratedFDeriv (WithTop.coe_le_coe.mpr le_top)).continuousWithinAt) hε |
| 202 | end Curve |
| 203 | end YM.Extra.WeakScaling |