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.Analysis |
| 2 | import YM.Extra.WEAK_SCALING_ACTLAW.Station |
| 3 | import YM.Work.A04 |
| 4 | import YM.Work.A15 |
| 5 | |
| 6 | /-! |
| 7 | # The finite weak comparisons transported to the same physical table |
| 8 | |
| 9 | This passes k-grid data and quantitative reflection-cell inputs on the |
| 10 | actual cutoff variables through the ordered limits. One centered cost |
| 11 | `A^n = o(1/(rescaled k-grid spacing))` pays both the derivative bound off |
| 12 | ties via `Difference.stepTotal` and the undifferentiated bound everywhere, |
| 13 | allowing later interpolation once **exact** derivative rows are fitted. |
| 14 | No rank/derivative convergence is yet used here. Only detector curves in a |
| 15 | fixed strictly coordinate-generic open subset are needed before derivative |
| 16 | row fitting (so don't need shrinking strip estimates). All strict window |
| 17 | parameters must be priced at the finite request. |
| 18 | -/ |
| 19 | set_option maxHeartbeats 1000000 |
| 20 | set_option autoImplicit false |
| 21 | noncomputable section |
| 22 | namespace YM.Extra.WeakScaling |
| 23 | open Set Function Filter Metric MeasureTheory Extraction Climb Ward Table |
| 24 | open scoped Topology ContDiff Matrix.Norms.Frobenius |
| 25 | variable {G : Gauge} {C : Family G} {S : Table C.book} {n : ℕ} {f : Order} |
| 26 | |
| 27 | def readMap (U : Maps S) (r : ℕ → ℝ) (v : Fin n → (Free C).Tag) (k : ℕ) (x : Points n) := |
| 28 | disc (routed U k ∘ v) (r k • x) |
| 29 | |
| 30 | lemma readMap_smooth (H : S.Hierarchy) {U : Maps S} {r : ℕ → ℝ} {v : Fin n → (Free C).Tag} {k : ℕ} |
| 31 | (h : 0 < r k) {x : Points n} (hx : x ∈ conf n) : ContDiffAt ℝ ∞ (readMap U r v k) x := |
| 32 | (cont_disc H _ (Work.A04.scale_conf _ h hx)).comp x (show ContDiffAt ℝ ∞ (fun x : Points n => r k • x) x by fun_prop) |
| 33 | |
| 34 | lemma points_approach (h : f.PointLimits C S) {u : ℕ → Fin n → Lattice.Cover} {x : Points n} (hx : x ∈ generic n) |
| 35 | (he : Tendsto (fun i => tag (C.S.a i) (u i)) atTop (𝓝 x)) (v : Fin n → C.book.Token) : |
| 36 | Tendsto (fun j : ℕ × ℕ => lifted C j.1 j.2 v (u j.1)) f.fuse (𝓝 (S.read x v)) := by |
| 37 | obtain ⟨P,hp,hv⟩ := h |
| 38 | apply Order.along (L := fun i j => lifted C i j v (u i)) (p := fun p => x∈Cyclic C.S p n) |
| 39 | refine ⟨?_,fun p => (P p).read x v,fun p h => f.evaluated C hp p n v x h (u ∘ f.mesh) (he.comp f.mesh.cofinal),?_⟩ |
| 40 | · filter_upwards [f.per.cofinal.eventually (room C.S isCompact_singleton)] with p hp |
| 41 | exact (no_wrap_tie C.S (hp (mem_singleton x))).mpr hx |
| 42 | refine Metric.tendsto_nhds.mpr fun ε hε => ?_ |
| 43 | filter_upwards [hv n {x} isCompact_singleton (singleton_subset_iff.mpr hx) v ε hε] with i hi |
| 44 | rw [dist_eq_norm]; exact hi _ (mem_singleton x) |
| 45 | |
| 46 | section gaps |
| 47 | variable {r Q : ℝ} {S' : Schedule} |
| 48 | |
| 49 | lemma cofin_fst (f : Order) : Tendsto (fun j : ℕ × ℕ => j.1) f.fuse atTop := by |
| 50 | intro s h |
| 51 | change f.late (fun N _ => N ∈ s); exact Eventually.of_forall fun _ => f.mesh.cofinal h |
| 52 | lemma cofin_snd (f : Order) : Tendsto (fun j : ℕ × ℕ => j.2) f.fuse atTop := by |
| 53 | intro s h |
| 54 | change f.late (fun _ p => p ∈ s) |
| 55 | exact (f.per.cofinal.eventually (p:=(· ∈ s)) h).mono fun _ h => Eventually.of_forall fun _ => h |
| 56 | |
| 57 | lemma off_late (S' : Schedule) (f : Order) {u : ℕ → Points n} {x : Points n} (hr : 0 < r) |
| 58 | (he : Tendsto u atTop (𝓝 (r • x))) {a : Axis} {s t : Fin n} (hx : Q⁻¹ < |x t a-x s a|) : |
| 59 | ∀ᶠ j : ℕ × ℕ in f.fuse, Gaps.off S' j.2 (Gaps.distances (u j.1) s t a) (r/Q) := by |
| 60 | have hh : r/Q < |Gaps.distances (r • x) s t a| := by |
| 61 | change r/Q < |r*x t a-r*x s a| |
| 62 | rw [← mul_sub, abs_mul,abs_of_pos hr,div_eq_mul_inv]; gcongr |
| 63 | let K := closedBall (r • x) 1 |
| 64 | have hi := he.eventually ((Gaps.ct s t a).abs.continuousAt.eventually (lt_mem_nhds hh)) |
| 65 | filter_upwards [(cofin_fst f).eventually hi,(cofin_snd f).eventually (Gaps.expand_equivalent S' (K:=K) (isCompact_closedBall _ _)), |
| 66 | (cofin_fst f).eventually (he.eventually (closedBall_mem_nhds _ one_pos))] with j hj hp hu l |
| 67 | exact hj.le.trans (hp (u j.1) hu s t a l) |
| 68 | |
| 69 | lemma approx_step (S' : Schedule) {t : ℝ} (h : 0 < t) : Tendsto (fun N => S'.a N * (⌊t/S'.a N⌋₊ : ℝ)) atTop (𝓝 t) := by |
| 70 | refine tendsto_iff_dist_tendsto_zero.mpr (squeeze_zero (fun _ => dist_nonneg) ?_ S'.shrinks) |
| 71 | intro i |
| 72 | have ht := S'.a_pos i |
| 73 | have hp := Nat.floor_le (by positivity : 0 ≤ t/S'.a i) |
| 74 | have hw := Nat.lt_floor_add_one (t/S'.a i) |
| 75 | rw [div_lt_iff₀ ht] at hw |
| 76 | rw [Real.dist_eq,abs_le] |
| 77 | rw [le_div_iff₀ ht] at hp |
| 78 | constructor <;> linarith |
| 79 | |
| 80 | lemma tag_advance (q : ℝ) (u : Fin n → Lattice.Cover) (i : Fin n) (a : Axis) (l : ℕ) : |
| 81 | tag q (Difference.advance u i a l) = tag q u + (q*l) • Points.direction i a := by |
| 82 | ext1 j; ext1 b |
| 83 | by_cases h : j=i |
| 84 | · subst j; by_cases he : b=a <;> simp [he,Difference.advance,tag,Points.direction]; ring |
| 85 | simp [Difference.advance,tag,h,Points.direction] |
| 86 | end gaps |
| 87 | |
| 88 | variable {b : Stations C} |
| 89 | namespace Retained |
| 90 | variable (Z : Retained b f) |
| 91 | |
| 92 | lemma approach (k : ℕ) (h : f.PointLimits C S) (hS : S.Hierarchy) |
| 93 | {v : Fin n → (Free C).Tag} {x : Points n} (hx : x∈generic n) {u : ℕ → Fin n → Lattice.Cover} |
| 94 | (he : Tendsto (fun i => tag (C.S.a i) (u i)) atTop (𝓝 (b.r k • x))) : |
| 95 | Tendsto (fun j : ℕ × ℕ => lifted C j.1 j.2 (b.name k j.1 j.2 ∘ v) (u j.1)) f.fuse |
| 96 | (𝓝 (readMap (Z.maps S) b.r v k x)) := by |
| 97 | have hp := smul_generic (b.positive k) hx |
| 98 | let z : Fin n → C.book.Token := fun i => ⟨(v i).1,Z.a k (v i).1 (v i).2⟩ |
| 99 | have hh : readMap (Z.maps S) b.r v k x = S.read _ z := |
| 100 | S.at_project S hS.laws.toSymmetric (fun _ => le_rfl) (generic_conf _ hp) z |
| 101 | rw [hh] |
| 102 | let d : Caps n := fun i => (v i).1 |
| 103 | have hc (i : Fin n) : Tendsto (fun j : ℕ × ℕ => b.coef k (v i).1 j.1 j.2 (v i).2) |
| 104 | f.fuse (𝓝 (Z.a k _ (v i).2)) := Dash.arcing (Z.tends k _) tendsto_const_nhds |
| 105 | have hh := multi_fitted (V:=fun i => C.book.Ref (d i)) (l:=f.fuse) (x:=fun i => Z.a k (d i) (v i).2) (u:=fun j i => b.coef k (v i).1 j.1 j.2 (v i).2) |
| 106 | (fun j : ℕ × ℕ => C.ensemble (N:=j.1) (p:=j.2) d (Lattice.wrap (C.side j.1 j.2) ∘ u j.1)) (S.value d (b.r k • x)) |
| 107 | (fun w => points_approach h hp he fun i => ⟨d i,w i⟩) hc |
| 108 | exact hh |
| 109 | |
| 110 | lemma grid_approach (k : ℕ) (h : f.PointLimits C S) (hS : S.Hierarchy) |
| 111 | (v : Fin n → (Free C).Tag) (u : Fin n → Lattice.Cover) (hx : b.rescaled k u∈generic n) : |
| 112 | Tendsto (fun j : ℕ × ℕ => b.cost k j.1 j.2 v u) f.fuse (𝓝 (readMap (Z.maps S) b.r v k (b.rescaled k u))) := by |
| 113 | have he : b.r k • b.rescaled k u = tag (C.S.a (b.grid k)) u := b.physical k u |
| 114 | have hp := he ▸ smul_generic (b.positive k) hx |
| 115 | let z : Fin n → C.book.Token := fun i => ⟨(v i).1,Z.a k (v i).1 (v i).2⟩ |
| 116 | rw [readMap,he,show disc (routed (Z.maps S) k ∘ v) _ = S.read _ z from |
| 117 | S.at_project S hS.laws.toSymmetric (fun _ => le_rfl) (generic_conf _ hp) z] |
| 118 | let d : Caps n := fun i => (v i).1 |
| 119 | have hc (i : Fin n) : Tendsto (fun j : ℕ × ℕ => b.coef k (v i).1 j.1 j.2 (v i).2) |
| 120 | f.fuse (𝓝 (Z.a k _ (v i).2)) := Dash.arcing (Z.tends k _) tendsto_const_nhds |
| 121 | have hh := multi_fitted (V:=fun i => C.book.Ref (d i)) (l:=f.fuse) (x:=fun i => Z.a k (d i) (v i).2) (u:=fun j i => b.coef k (v i).1 j.1 j.2 (v i).2) |
| 122 | (fun j => C.ensemble (N:=j.1) (p:=j.2) d (Cells.location C.S (b.grid k) j.1 j.2 ∘ u)) (S.value d (tag (C.S.a (b.grid k)) u)) |
| 123 | (fun w => Order.inPatch h (b.grid k) u hp fun i => ⟨d i,w i⟩) hc |
| 124 | exact hh |
| 125 | |
| 126 | lemma amount (k m j : ℕ) (Q : ℝ) (hQ : 0 < Q) (v : Fin n → (Free C).Tag) (s : Spec.Seed C f S) |
| 127 | (hm : m≤j) (hg : C.S.a m < b.r k/Q) (hroom : (n:ℝ)*(2*(3*C.S.a j)) < C.S.a m) (A : ℝ) |
| 128 | (h : f.late fun N p => ∀ i z, centeredBudget C (Extraction.Spin.token C.book (b.name k N p (v i)) z) A j N p) |
| 129 | {x : Points n} (hx : x ∈ apart Q n) : ‖readMap (Z.maps S) b.r v k x‖ ≤ A^n := by |
| 130 | let F := readMap (Z.maps S) b.r v k |
| 131 | have H y (hy : y ∈ apart Q n) (hw : y ∈ generic n) : ‖F y‖ ≤ A^n := by |
| 132 | let u := fun N => address (C.S.a N) (b.r k • y) |
| 133 | let P (w : ℕ × ℕ) := b.name k w.1 w.2 ∘ v |
| 134 | have ha := chosen (S:=C.S) (b.r k • y) |
| 135 | have hr : 0 < b.r k := b.positive k |
| 136 | apply le_of_tendsto (Z.approach k s.generic s.kernel hw ha (v:=v)).norm |
| 137 | have hf (i t : Fin n) : ∀ᶠ w : ℕ × ℕ in f.fuse, i≠t → ∃ a : Axis, |
| 138 | Gaps.off C.S w.2 (Gaps.distances (tag (C.S.a w.1) (u w.1)) i t a) (b.r k/Q) := by |
| 139 | by_cases he : i=t |
| 140 | · subst i; simp |
| 141 | obtain ⟨a,h⟩ := hy.2 i t he |
| 142 | exact (off_late C.S f hr ha h).mono fun w hw _ => ⟨a,hw⟩ |
| 143 | have H (i : Fin n) := (cofin_fst f).eventually (Around.fit (f:=Order.full) (C:=C) |
| 144 | (⟨(v i).1,0⟩ : C.book.Token) j) |
| 145 | have he := (cofin_fst f).eventually (eventually_ge_atTop j) |
| 146 | have hb : ∀ᶠ w : ℕ × ℕ in f.fuse, ∀ i z, centeredBudget C (Extraction.Spin.token C.book (P w i) z) A j w.1 w.2 := h |
| 147 | filter_upwards [eventually_all.mpr fun i => eventually_all.mpr (hf i),eventually_all.mpr H,he,hb] with w hw hF hJ hp |
| 148 | exact Around.fits_budget s.cutoff _ {tag (C.S.a w.1) (u w.1)} (b.r k/Q) |
| 149 | (fun _ hu => (mem_singleton_iff.mp hu).symm ▸ hw) A hg hm hroom ⟨hJ,fun i z => ⟨hp i z,by |
| 150 | rw [Around.Fit,Extraction.Spin.stay]; exact hF i w.2⟩⟩ _ rfl |
| 151 | have ht : ContinuousOn (fun z => ‖F z‖) (apart Q n) := fun y hy => |
| 152 | ((readMap_smooth s.kernel (b.positive k) (apart_conf hQ hy)).continuousAt.norm.continuousWithinAt) |
| 153 | have hop := apart_open Q n |
| 154 | suffices h : EqOn (fun z => min (A^n) ‖F z‖) (fun z => ‖F z‖) (apart Q n) by |
| 155 | exact (h hx).symm.trans_le (min_le_left ..) |
| 156 | apply Measure.eqOn_open_of_ae_eq (μ:=volume) _ hop (continuousOn_const.inf ht) ht |
| 157 | exact ((ae_restrict_iff' hop.measurableSet).mpr ((almostGeneric n).mono fun y hy hw => min_eq_right (H y hw hy))) |
| 158 | |
| 159 | lemma grad_bound (k j : ℕ) (Q : ℝ) (hQ : 0 < Q) (v : Fin n → (Free C).Tag) (s : Spec.Seed C f S) |
| 160 | (hj : C.S.a j < b.r k/(4*Q)) (A : ℝ) (hA : 0 ≤ A) |
| 161 | (h : f.late fun N p => ∀ i z, centeredBudget C (Extraction.Spin.token C.book (b.name k N p (v i)) z) A j N p) |
| 162 | {x : Points n} (hx : x ∈ clearance Q n) (l : Fin n) (a : Axis) : |
| 163 | ‖fderiv ℝ (readMap (Z.maps S) b.r v k) x (Points.direction l a)‖ ≤ A^n*(4*Q) := by |
| 164 | cases n with |
| 165 | | zero => exact Fin.elim0 l |
| 166 | | succ n => |
| 167 | let ρ := b.r k |
| 168 | have hρ : 0 < ρ := b.positive k |
| 169 | have h0 : 0 < ρ/(4*Q) := by positivity |
| 170 | have h1 : 0 < (4*Q)⁻¹ := by positivity |
| 171 | let F := readMap (Z.maps S) b.r v k |
| 172 | let d := Points.direction l a |
| 173 | let u := fun N => address (C.S.a N) (ρ • x) |
| 174 | have hu := chosen (S:=C.S) (ρ • x) |
| 175 | have hx' : x ∈ generic _ := clearance_generic hQ hx |
| 176 | have main (t : ℝ) (ht : 0 < t) (ht' : t < (4*Q)⁻¹) (hy : x + t • d ∈ generic _) : |
| 177 | ‖F (x+t • d) - F x‖ ≤ A^(n+1)/(ρ/(4*Q)) * (ρ*t) := by |
| 178 | let L := fun N => ⌊(ρ*t)/C.S.a N⌋₊ |
| 179 | have he : Tendsto (fun N => C.S.a N * (L N:ℝ)) atTop (𝓝 (ρ*t)) := approx_step _ (by positivity) |
| 180 | let W := fun N => Difference.advance (u N) l a (L N) |
| 181 | have hV : Tendsto (fun N => tag (C.S.a N) (W N)) atTop (𝓝 (ρ • (x + t • d))) := by |
| 182 | dsimp only [W] |
| 183 | simp_rw [tag_advance, smul_add,smul_smul]; exact hu.add (he.smul tendsto_const_nhds) |
| 184 | rw [← dist_eq_norm] |
| 185 | apply le_of_tendsto_of_tendsto ((Z.approach k s.generic s.kernel hy hV).dist (Z.approach k s.generic s.kernel hx' hu)) |
| 186 | ((tendsto_const_nhds (f:=f.fuse)).mul (he.comp (cofin_fst f))) |
| 187 | have hh := eventually_all.mpr fun i => eventually_all.mpr fun p => (eventually_all.mpr fun (hi : i≠p) => |
| 188 | eventually_all.mpr fun z => off_late C.S f hρ hu (hx.2 i p hi z)) |
| 189 | let P (w : ℕ × ℕ) := b.name k w.1 w.2 ∘ v |
| 190 | have hb : ∀ᶠ w in f.fuse, ∀ i z, centeredBudget C (Extraction.Spin.token C.book (P w i) z) A j w.1 w.2 := h |
| 191 | filter_upwards [hh,hb,(he.comp (cofin_fst f)).eventually (gt_mem_nhds (a := ρ/(4*Q)) |
| 192 | (by rw [div_eq_mul_inv]; exact mul_lt_mul_of_pos_left ht' hρ)),(cofin_fst f).eventually (eventually_ge_atTop j)] with w hw hz hL hJ |
| 193 | have H := Difference.stepTotal s.cutoff (P w) hA h0 {tag (C.S.a w.1) (u w.1)} _ _ _ hJ (by |
| 194 | rintro i z (rfl|⟨c,rfl⟩) |
| 195 | · simpa using hz i (1,false) |
| 196 | rw [← Register.token_adjoint, Extraction.Spin.swapC] |
| 197 | exact hz i (Signed.mirror c,true)) (by |
| 198 | rw [show 4*(ρ/(4*Q)) = ρ/Q by ring]; intro y (hy : y ∈ {_}); rw [mem_singleton_iff.mp hy]; exact hw) |
| 199 | hj l a (L w.1) (u w.1) rfl (by rw [Difference.extent _ _ _ _ _ (C.S.a_pos _)]; exact hL.le) |
| 200 | rw [Difference.extent _ _ _ _ _ (C.S.a_pos _)] at H |
| 201 | exact H |
| 202 | have hf : HasDerivAt (fun t : ℝ => F (x+t • d)) (fderiv ℝ F x d) 0 := by |
| 203 | have hi := (readMap_smooth s.kernel (U:=Z.maps S) (v:=v) hρ (generic_conf _ hx')).differentiableAt (by simp) |
| 204 | have hp : HasDerivAt (fun t : ℝ => x+t • d) d 0 := by |
| 205 | exact (show HasDerivAt ((fun _ : ℝ => x) + fun t : ℝ => t • d) d 0 by simpa only [one_smul,zero_add] using ((hasDerivAt_const (0:ℝ) x).add ((hasDerivAt_id' (0:ℝ)).smul_const d))) |
| 206 | exact (show HasFDerivAt F (fderiv ℝ F x) (x + (0:ℝ) • d) by simpa [F] using hi.hasFDerivAt).comp_hasDerivAt (f:=fun t : ℝ => x+t • d) (0:ℝ) hp |
| 207 | apply le_of_tendsto (x := 𝓝[>] (0:ℝ)) (hf.tendsto_slope_zero.norm.mono_left (nhdsWithin_mono _ (by simp))) |
| 208 | simp only [zero_add,zero_smul,add_zero] |
| 209 | have hc : Tendsto (fun t : ℝ => x+t • d) (𝓝[>] 0) (𝓝 x) := by |
| 210 | simpa using ((show Continuous (fun t : ℝ => x+t • d) by fun_prop).continuousWithinAt (s:=Ioi 0) (x:=0)).tendsto |
| 211 | filter_upwards [self_mem_nhdsWithin, hc.eventually ((genericOpen _).mem_nhds hx'), |
| 212 | mem_nhdsWithin_of_mem_nhds (gt_mem_nhds h1)] with t ht hy ht' |
| 213 | rw [norm_smul,Real.norm_eq_abs,abs_of_pos (inv_pos.mpr ht), ← div_eq_inv_mul,div_le_iff₀ ht] |
| 214 | apply (main _ ht ht' hy).trans_eq |
| 215 | field_simp |
| 216 | |
| 217 | variable {M D : ℕ} {Q : ℝ} {s : Spec.Seed C f S} {v : Fin n → (Free C).Tag} |
| 218 | |
| 219 | lemma on_grid (s : Spec.Seed C f S) (h : AlignedCosts b f M D Q) (hQ : 0 < Q) (hn : n ≤ M) (hv : capped D v) : |
| 220 | Sampled (apart Q n) b.delta (readMap (Z.maps S) b.r v) (disc v) := by |
| 221 | have hw := h _ hn v hv |
| 222 | intro a ha x hx u hu he |
| 223 | let z (i : ℕ) := b.rescaled (a i) (u i) |
| 224 | have hc : Tendsto (fun i => disc v (z i)) atTop (𝓝 (disc v x)) := |
| 225 | ((((Free C).class_smooth (Free C) (Maxwell.table_smooth _) v).continuousOn.continuousAt |
| 226 | ((conf_open _).mem_nhds (apart_conf hQ hx))).tendsto.comp hu) |
| 227 | refine hc.congr_dist (Metric.tendsto_nhds.mpr (fun ε hε => ?_)) |
| 228 | filter_upwards [ha.eventually (hw _ (half_pos hε)), hu.eventually ((apart_open Q n).mem_nhds hx),he] with i hi hy hU |
| 229 | rw [Real.dist_eq,sub_zero,abs_of_nonneg dist_nonneg,dist_comm] |
| 230 | apply lt_of_le_of_lt (le_of_tendsto ((Z.grid_approach (a i) s.generic s.kernel v (u i) hU).dist tendsto_const_nhds) ?_) |
| 231 | (half_lt_self hε) |
| 232 | simpa only [Order.fused,dist_eq_norm,z] using hi (u i) hy hU |
| 233 | |
| 234 | lemma growth (s : Spec.Seed C f S) (h : CenterCosts b f M D Q) (hQ : 0 < Q) (hn : n ≤ M) (hv : capped D v) : |
| 235 | Follows (apart Q n) (fun k x => b.delta k • readMap (Z.maps S) b.r v k x) 0 := by |
| 236 | obtain ⟨A,hA,hlim,H⟩ := h n hn v hv |
| 237 | intro a ha x hx z hz |
| 238 | change Tendsto _ _ (𝓝 0); rw [tendsto_zero_iff_norm_tendsto_zero] |
| 239 | refine squeeze_zero' (Eventually.of_forall (fun _ => norm_nonneg _)) ?_ (hlim.comp ha) |
| 240 | filter_upwards [hz.eventually ((apart_open _ _).mem_nhds hx), ha.eventually H] with i hi H |
| 241 | obtain ⟨m,j,hj,hg,hroom,-,hc⟩ := H |
| 242 | have he := Z.amount (a i) m j Q hQ v s hj hg hroom _ hc hi |
| 243 | have hp := b.positive (a i) |
| 244 | have hs := C.S.a_pos (b.grid (a i)) |
| 245 | simpa only [comp_apply,norm_smul,Real.norm_eq_abs, abs_of_pos (by positivity : 0 < b.delta (a i)),mul_comm] using! |
| 246 | mul_le_mul_of_nonneg_right he (by positivity : 0 ≤ b.delta (a i)) |
| 247 | |
| 248 | lemma on_clearance (s : Spec.Seed C f S) (h : CenterCosts b f M D Q) (h' : AlignedCosts b f M D Q) |
| 249 | (hQ : 0 < Q) (hn : n ≤ M) (hv : capped D v) : Follows (clearance Q n) (readMap (Z.maps S) b.r v) (disc v) := by |
| 250 | obtain ⟨A,hA,hlim,H⟩ := h n hn v hv |
| 251 | apply interpolate (clearance_open Q n) (h:=b.delta) (fun k => div_pos (C.S.a_pos _) (b.positive _)) b.fine |
| 252 | · exact fun k x hx => (readMap_smooth s.kernel (b.positive k) (generic_conf _ (clearance_generic hQ hx))).differentiableAt (by simp) |
| 253 | · exact fun a ha x hx => Z.on_grid s h' hQ hn hv a ha x (clearance_apart hx) |
| 254 | intro ⟨l,c⟩ a ha x hx z hz |
| 255 | change Tendsto _ _ (𝓝 0); rw [tendsto_zero_iff_norm_tendsto_zero] |
| 256 | have hi : Tendsto (fun i => (A (a i)^n*b.delta (a i))*(4*Q)) atTop (𝓝 0) := by |
| 257 | simpa [comp_def] using (hlim.comp ha).mul_const (4*Q) |
| 258 | refine squeeze_zero' (Eventually.of_forall (fun _ => norm_nonneg _)) ?_ hi |
| 259 | filter_upwards [hz.eventually ((clearance_open _ _).mem_nhds hx),ha.eventually H] with i h H |
| 260 | obtain ⟨m,j,-,-,-,hj,hc⟩ := H |
| 261 | have he := Z.grad_bound (a i) j Q hQ v s hj _ (hA _) hc h l c |
| 262 | rw [norm_smul,Real.norm_eq_abs,abs_of_pos (div_pos (C.S.a_pos _) (b.positive _))] |
| 263 | convert mul_le_mul_of_nonneg_left he (show 0 ≤ b.delta (a i) from (div_pos (C.S.a_pos _) (b.positive _)).le) using 1 |
| 264 | · rfl |
| 265 | ring |
| 266 | end Retained |
| 267 | end YM.Extra.WeakScaling |