Download data/lean/OAI/Dynamics/SmoothObstruction/SmoothScales.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 29.3 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Dynamics/SmoothObstruction/SmoothScales.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Dynamics/SmoothObstruction/SmoothScales.lean
-
curl -L -o SmoothScales.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Dynamics/SmoothObstruction/SmoothScales.lean
29.3 kB
| import OAI.Dynamics.SmoothObstruction.ShortDerivative | |
| import OAI.Dynamics.SmoothObstruction.ExteriorPowers | |
| namespace OAI | |
| section | |
| open Filter Topology | |
| open scoped Real | |
| namespace SmoothObstruction.SmoothScales | |
| /-- The source floor forces the gapĆshort-time scale to infinity. This is | |
| `g L ā„ b^(3/4)n` for `g = sqrt b`, `L = ceil(b^(1/4)n)`. -/ | |
| lemma gap_scale_lower {b n : ā} (hn : 1ā¤n) (hb : n^(-1/10:ā)ā¤b) : | |
| n^(37/40:ā)ā¤b^(3/4:ā)*n := by | |
| have hnpos : 0<n := by linarith | |
| have hh := Real.rpow_le_rpow (Real.rpow_nonneg hnpos.le _) hb | |
| (show (0:ā)ā¤3/4 by norm_num) | |
| rw [āReal.rpow_mul hnpos.le] at hh | |
| calc | |
| n^(37/40:ā) = n^((-1/10:ā)*(3/4)+1) := by norm_num | |
| _ = n^((-1/10:ā)*(3/4))*n := by rw [Real.rpow_add hnpos,Real.rpow_one] | |
| _ ⤠b^(3/4:ā)*n := mul_le_mul_of_nonneg_right hh hnpos.le | |
| /-- All fixed exponential gauge losses are absorbed by the genuine spectral | |
| gapĆshort-time exponent. Neither the gap nor the rates need be bounded away | |
| from zero. -/ | |
| theorem gap_cost_absorption {α : Type*} {l : Filter α} {b n : α ā ā} | |
| (hbpos : āį¶ k in l,0<b k) (hb : Tendsto b l (š 0)) | |
| (hn : Tendsto n l atTop) | |
| (hfloor : āį¶ k in l,n k^(-1/10:ā)ā¤b k) | |
| (C : ā) {c : ā} (hc : 0<c) : | |
| Tendsto (fun k => Real.exp (C*b k*n k-c*b k^(3/4:ā)*n k)) l (š 0) := by | |
| have hn1 : āį¶ k in l,1ā¤n k := hn.eventually (eventually_ge_atTop 1) | |
| have hP : Tendsto (fun k => b k^(3/4:ā)*n k) l atTop := by | |
| apply tendsto_atTop_mono' l ?_ | |
| ((tendsto_rpow_atTop (show (0:ā)<37/40 by norm_num)).comp hn) | |
| filter_upwards [hn1,hfloor] with k hnk hbk | |
| exact gap_scale_lower hnk hbk | |
| have hquarter : Tendsto (fun k => b k^(1/4:ā)) l (š 0) := by | |
| have hh := ((Real.continuous_rpow_const (show (0:ā)ā¤1/4 by norm_num)).tendsto 0).comp hb | |
| simpa only [Function.comp_def,Real.zero_rpow (show (1/4:ā)ā 0 by norm_num)] using hh | |
| have hs : āį¶ k in l,C*b k^(1/4:ā)ā¤c/2 := by | |
| apply Tendsto.eventually_le_const (show (0:ā)<c/2 by linarith) | |
| simpa only [mul_zero] using hquarter.const_mul C | |
| have hzero := Real.tendsto_exp_neg_atTop_nhds_zero.comp | |
| (hP.const_mul_atTop (show 0<c/2 by linarith)) | |
| apply squeeze_zero' _ _ hzero | |
| Ā· exact Filter.Eventually.of_forall fun k => (Real.exp_pos _).le | |
| Ā· filter_upwards [hbpos,hn1,hs] with k hbk hnk hsk | |
| apply Real.exp_le_exp.mpr | |
| have hbseq : b k^(1/4:ā)*b k^(3/4:ā)=b k := by | |
| rw [āReal.rpow_add hbk] | |
| norm_num | |
| have hh := mul_le_mul_of_nonneg_right hsk | |
| (show 0ā¤b k^(3/4:ā)*n k from mul_nonneg (Real.rpow_nonneg hbk.le _) (by linarith)) | |
| have he : (C*b k^(1/4:ā))*(b k^(3/4:ā)*n k)=C*b k*n k := by | |
| calc | |
| _ = C*(b k^(1/4:ā)*b k^(3/4:ā))*n k := by ring | |
| _ = _ := by rw [hbseq] | |
| rw [he] at hh | |
| nlinarith | |
| end SmoothObstruction.SmoothScales | |
| namespace SmoothObstruction.SmoothScales | |
| open Filter Topology | |
| /-- Uniform exponentially small common-projector errors absorb every fixed | |
| gauge cost. This is the form needed by the finite leading-minor lower bound. -/ | |
| theorem weighted_gap_error {α : Type*} {l : Filter α} {b n Ī“ : α ā ā} | |
| (hbpos : āį¶ k in l,0<b k) (hb : Tendsto b l (š 0)) | |
| (hn : Tendsto n l atTop) (hfloor : āį¶ k in l,n k^(-1/10:ā)ā¤b k) | |
| {c A : ā} (hc : 0<c) (hA : 0ā¤A) (C : ā) | |
| (hĪ“ : āį¶ k in l,0ā¤Ī“ k ā§ Ī“ kā¤Real.exp (-c*b k^(3/4:ā)*n k)) : | |
| Tendsto (fun k => A*Real.exp (C*b k*n k)*Ī“ k) l (š 0) := by | |
| have hz := (gap_cost_absorption hbpos hb hn hfloor C hc).const_mul A | |
| simp only [mul_zero] at hz | |
| apply squeeze_zero' _ _ hz | |
| · filter_upwards [hΓ] with k hk | |
| exact mul_nonneg (mul_nonneg hA (Real.exp_pos _).le) hk.1 | |
| · filter_upwards [hΓ] with k hk | |
| calc | |
| _ ⤠A*Real.exp (C*b k*n k)*Real.exp (-c*b k^(3/4:ā)*n k) := | |
| mul_le_mul_of_nonneg_left hk.2 (mul_nonneg hA (Real.exp_pos _).le) | |
| _ = A*Real.exp (C*b k*n k-c*b k^(3/4:ā)*n k) := by | |
| rw [mul_assoc,āReal.exp_add] | |
| congr 2 | |
| ring | |
| end SmoothObstruction.SmoothScales | |
| namespace SmoothObstruction.SmoothScales | |
| open Filter Topology | |
| /-- The literal dimension/gauge cost in the common-fast leading-minor | |
| proof is eventually small. Its parameters are fixed before bins and frames | |
| are selected, and the good-frame error has the source gapĆshort-time scale. -/ | |
| theorem common_frame_budget {α : Type*} {l : Filter α} {b n Ī“ : α ā ā} | |
| (hbpos : āį¶ k in l,0<b k) (hb : Tendsto b l (š 0)) | |
| (hn : Tendsto n l atTop) (hfloor : āį¶ k in l,n k^(-1/10:ā)ā¤b k) | |
| {c F C N : ā} (hc : 0<c) (hF : 0ā¤F) (hN : 0ā¤N) | |
| (Kā : ā) (p : ā) | |
| (hĪ“ : āį¶ k in l,0ā¤Ī“ k ā§ Ī“ kā¤Real.exp (-c*b k^(3/4:ā)*n k)) : | |
| āį¶ k in l, | |
| (F*Ī“ k)*(1+((C*(Real.exp (Kā*b k*n k))^p)^2*(C*2^p))* | |
| (C*(C^2*(Real.exp (Kā*b k*n k))^(2*p)*N)))ā¤1/2 := by | |
| have hzā := weighted_gap_error hbpos hb hn hfloor hc hF 0 hĪ“ | |
| have hzā := weighted_gap_error hbpos hb hn hfloor hc | |
| (show 0ā¤F*C^6*2^p*N by positivity) ((4*p:ā)*Kā) hĪ“ | |
| have hz := hzā.add hzā | |
| simp only [add_zero] at hz | |
| have he (k : α) : | |
| (F*Ī“ k)*(1+((C*(Real.exp (Kā*b k*n k))^p)^2*(C*2^p))* | |
| (C*(C^2*(Real.exp (Kā*b k*n k))^(2*p)*N)))= | |
| F*Real.exp (0*b k*n k)*Ī“ k+ | |
| (F*C^6*2^p*N)*Real.exp (((4*p:ā):ā)*Kā*b k*n k)*Ī“ k := by | |
| have hexp : Real.exp (((4*p:ā):ā)*Kā*b k*n k)= | |
| (Real.exp (Kā*b k*n k))^(4*p) := by | |
| rw [āReal.exp_nat_mul] | |
| congr 1 | |
| ring | |
| rw [hexp] | |
| simp only [zero_mul,Real.exp_zero,mul_one,Nat.mul_comm 2 p,Nat.mul_comm 4 p,pow_mul] | |
| ring | |
| have hh : Tendsto (fun k => | |
| (F*Ī“ k)*(1+((C*(Real.exp (Kā*b k*n k))^p)^2*(C*2^p))* | |
| (C*(C^2*(Real.exp (Kā*b k*n k))^(2*p)*N)))) l (š 0) := by | |
| apply hz.congr | |
| intro k | |
| exact (he k).symm | |
| exact hh.eventually_le_const (by norm_num : (0:ā)<1/2) | |
| end SmoothObstruction.SmoothScales | |
| namespace SmoothObstruction.SmoothScales | |
| open Filter Topology | |
| /-- The full-time gap dominates the short-time gap scale and every fixed | |
| gauge cost. No uniform positive lower bound on the spectral gap is assumed. -/ | |
| theorem weighted_full_gap {α : Type*} {l : Filter α} {b n : α ā ā} | |
| (hbpos : āį¶ k in l,0<b k) (hb : Tendsto b l (š 0)) | |
| (hn : Tendsto n l atTop) (hfloor : āį¶ k in l,n k^(-1/10:ā)ā¤b k) | |
| {c A : ā} (hc : 0<c) (hA : 0ā¤A) (C : ā) : | |
| Tendsto (fun k => A*Real.exp (C*b k*n k)* | |
| Real.exp (-c*b k^(1/2:ā)*n k)) l (š 0) := by | |
| apply weighted_gap_error hbpos hb hn hfloor hc hA C | |
| have hb1 := hb.eventually_le_const (by norm_num : (0:ā)<1) | |
| have hn0 := hn.eventually (eventually_ge_atTop 0) | |
| filter_upwards [hbpos,hb1,hn0] with k hbk hb1k hnk | |
| refine āØ(Real.exp_pos _).le,Real.exp_le_exp.mpr ?_ā© | |
| have hh := Real.rpow_le_rpow_of_exponent_ge hbk hb1k | |
| (show (1/2:ā)ā¤3/4 by norm_num) | |
| have hp := mul_le_mul_of_nonneg_right hh hnk | |
| nlinarith | |
| /-- The literal finite-gauge Cramer bound tends to zero, uniformly over | |
| all common bins satisfying the same scalar data. Fixed constants account | |
| for the dimension, endpoint projections and unit wedge norms. -/ | |
| theorem common_graph_budget {α : Type*} {l : Filter α} {b n Ī“ : α ā ā} | |
| (hbpos : āį¶ k in l,0<b k) (hb : Tendsto b l (š 0)) | |
| (hn : Tendsto n l atTop) (hfloor : āį¶ k in l,n k^(-1/10:ā)ā¤b k) | |
| {c C N V W : ā} (hc : 0<c) (hN : 0ā¤N) | |
| (hV : 0ā¤V) (hW : 0ā¤W) (Kā : ā) (p : ā) | |
| (hĪ“ : āį¶ k in l,0ā¤Ī“ k ā§ Ī“ kā¤Real.exp (-c*b k^(3/4:ā)*n k)) : | |
| Tendsto (fun k => | |
| 2*((C*(Real.exp (Kā*b k*n k))^p)^2*(C*2^p))* | |
| ((C*(C*(Real.exp (Kā*b k*n k))^p)^2*N*V)* | |
| Real.exp (-2*b k^(1/2:ā)*n k)+ | |
| (C*(C^2*(Real.exp (Kā*b k*n k))^(2*p)*N))*W*Ī“ k)) l (š 0) := by | |
| have hzā := weighted_full_gap hbpos hb hn hfloor | |
| (by norm_num : (0:ā)<2) (show 0ā¤2*C^6*2^p*N*V by positivity) ((4*p:ā)*Kā) | |
| have hzā := weighted_gap_error hbpos hb hn hfloor hc | |
| (show 0ā¤2*C^6*2^p*N*W by positivity) ((4*p:ā)*Kā) hĪ“ | |
| have hz := hzā.add hzā | |
| simp only [add_zero] at hz | |
| apply hz.congr | |
| intro k | |
| have hexp : Real.exp (((4*p:ā):ā)*Kā*b k*n k)= | |
| (Real.exp (Kā*b k*n k))^(4*p) := by | |
| rw [āReal.exp_nat_mul] | |
| congr 1 | |
| ring | |
| rw [hexp] | |
| simp only [Nat.mul_comm 2 p,Nat.mul_comm 4 p,pow_mul] | |
| ring | |
| /-- Relative nonlinear errors preserve the vanishing Cramer bound. -/ | |
| theorem perturbed_graph_decay {α : Type*} {l : Filter α} {Īø ε : α ā ā} | |
| (hĪø : Tendsto Īø l (š 0)) (hε : Tendsto ε l (š 0)) : | |
| Tendsto (fun k => (Īø k+ε k)/(1-ε k)) l (š 0) := by | |
| have hh := (hθ.add hε).div (tendsto_const_nhds.sub hε) | |
| (by norm_num : (1:ā)-0ā 0) | |
| change Tendsto (fun k => (Īø k+ε k)/(1-ε k)) l (š ((0+0)/(1-0))) at hh | |
| norm_num at hh | |
| exact hh | |
| end SmoothObstruction.SmoothScales | |
| namespace SmoothObstruction.SmoothScales | |
| open Filter Topology | |
| /-- The manuscript's exact natural short length, including its ceiling. -/ | |
| lemma ceil_gap_lower {b n : ā} (hb : 0<b) : | |
| b^(3/4:ā)*nā¤Real.sqrt b*(Nat.ceil (b^(1/4:ā)*n):ā) := by | |
| calc | |
| _ = Real.sqrt b*(b^(1/4:ā)*n) := by | |
| rw [Real.sqrt_eq_rpow,āmul_assoc,āReal.rpow_add hb] | |
| norm_num | |
| _ ⤠_ := mul_le_mul_of_nonneg_left (Nat.le_ceil _) (Real.sqrt_nonneg _) | |
| lemma ceil_gap_error {b n c : ā} (hb : 0<b) (hc : 0ā¤c) : | |
| Real.exp (-c*Real.sqrt b*(Nat.ceil (b^(1/4:ā)*n):ā))⤠| |
| Real.exp (-c*b^(3/4:ā)*n) := by | |
| apply Real.exp_le_exp.mpr | |
| have hh := mul_le_mul_of_nonneg_left (ceil_gap_lower (n:=n) hb) hc | |
| nlinarith | |
| /-- Discharges the literal finite common-frame budget directly from the | |
| source's `g = sqrt b` and `L = ceil(b^(1/4)n)`, without dropping the rounding | |
| or imposing a positive gap floor. -/ | |
| theorem common_frame_budget_short {α : Type*} {l : Filter α} {b n Ī“ : α ā ā} | |
| (hbpos : āį¶ k in l,0<b k) (hb : Tendsto b l (š 0)) | |
| (hn : Tendsto n l atTop) (hfloor : āį¶ k in l,n k^(-1/10:ā)ā¤b k) | |
| {c F C N : ā} (hc : 0<c) (hF : 0ā¤F) (hN : 0ā¤N) (Kā : ā) (p : ā) | |
| (hĪ“ : āį¶ k in l,0ā¤Ī“ k ā§ Ī“ k⤠| |
| Real.exp (-c*Real.sqrt (b k)*(Nat.ceil (b k^(1/4:ā)*n k):ā))) : | |
| āį¶ k in l, | |
| (F*Ī“ k)*(1+((C*(Real.exp (Kā*b k*n k))^p)^2*(C*2^p))* | |
| (C*(C^2*(Real.exp (Kā*b k*n k))^(2*p)*N)))ā¤1/2 := by | |
| apply common_frame_budget hbpos hb hn hfloor hc hF hN Kā p | |
| filter_upwards [hbpos,hΓ] with k hbk hdk | |
| exact āØhdk.1,hdk.2.trans (ceil_gap_error hbk hc.le)ā© | |
| end SmoothObstruction.SmoothScales | |
| namespace SmoothObstruction.SmoothScales | |
| open Filter Topology | |
| /-- Uniformity over every possible common-bin rank, including empty groups. | |
| Constants may depend on the rank but are fixed before bins, points and times | |
| are chosen. Thus no hidden point-dependent large-scale threshold remains. -/ | |
| theorem uniform_common_frame_budget {α : Type*} {l : Filter α} {b n Ī“ : α ā ā} | |
| (hbpos : āį¶ k in l,0<b k) (hb : Tendsto b l (š 0)) | |
| (hn : Tendsto n l atTop) (hfloor : āį¶ k in l,n k^(-1/10:ā)ā¤b k) | |
| (d : ā) {c : ā} (hc : 0<c) | |
| (F C N Kā : Fin (d+1) ā ā) (hF : ā p,0ā¤F p) (hN : ā p,0ā¤N p) | |
| (hĪ“ : āį¶ k in l,0ā¤Ī“ k ā§ Ī“ k⤠| |
| Real.exp (-c*Real.sqrt (b k)*(Nat.ceil (b k^(1/4:ā)*n k):ā))) : | |
| āį¶ k in l,ā p : Fin (d+1), | |
| (F p*Ī“ k)*(1+((C p*(Real.exp (Kā p*b k*n k))^p.val)^2*(C p*2^p.val))* | |
| (C p*((C p)^2*(Real.exp (Kā p*b k*n k))^(2*p.val)*N p)))ā¤1/2 := by | |
| apply Filter.eventually_all.mpr | |
| intro p | |
| exact common_frame_budget_short hbpos hb hn hfloor hc (hF p) (hN p) (Kā p) p.val hĪ“ | |
| /-- The actual Cramer error is small for all ranks simultaneously. Fixed | |
| rank-dependent costs do not change the source's quantifier order. -/ | |
| theorem uniform_common_graph_budget {α : Type*} {l : Filter α} {b n Ī“ : α ā ā} | |
| (hbpos : āį¶ k in l,0<b k) (hb : Tendsto b l (š 0)) | |
| (hn : Tendsto n l atTop) (hfloor : āį¶ k in l,n k^(-1/10:ā)ā¤b k) | |
| (d : ā) {c : ā} (hc : 0<c) | |
| (C N V W Kā : Fin (d+1) ā ā) | |
| (hN : ā p,0ā¤N p) (hV : ā p,0ā¤V p) (hW : ā p,0ā¤W p) | |
| (hĪ“ : āį¶ k in l,0ā¤Ī“ k ā§ Ī“ k⤠| |
| Real.exp (-c*Real.sqrt (b k)*(Nat.ceil (b k^(1/4:ā)*n k):ā))) | |
| {ε : ā} (hε : 0<ε) : | |
| āį¶ k in l,ā p : Fin (d+1), | |
| 2*((C p*(Real.exp (Kā p*b k*n k))^p.val)^2*(C p*2^p.val))* | |
| ((C p*(C p*(Real.exp (Kā p*b k*n k))^p.val)^2*N p*V p)* | |
| Real.exp (-2*b k^(1/2:ā)*n k)+ | |
| (C p*((C p)^2*(Real.exp (Kā p*b k*n k))^(2*p.val)*N p))*W p*Ī“ k)ā¤Īµ := by | |
| apply Filter.eventually_all.mpr | |
| intro p | |
| apply (common_graph_budget hbpos hb hn hfloor hc (hN p) (hV p) (hW p) | |
| (Kā p) p.val ?_).eventually_le_const hε | |
| filter_upwards [hbpos,hΓ] with k hbk hdk | |
| exact āØhdk.1,hdk.2.trans (ceil_gap_error hbk hc.le)ā© | |
| end SmoothObstruction.SmoothScales | |
| namespace SmoothObstruction.ExteriorStability | |
| open RelativeProduct | |
| variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ā E] | |
| [FiniteDimensional ā E] | |
| /-- Exterior powers commute with the source's time-ordered product. -/ | |
| theorem exterior_segment (p : ā) (A : ā ā E āL[ā] E) (s n : ā) : | |
| exterior p (segment A s n) = segment (fun t => exterior p (A t)) s n := by | |
| induction n with | |
| | zero => simp | |
| | succ n ih => simp only [segment_succ, exterior_mul, ih] | |
| /-- Finite-product assertion of manuscript Lemma `lem:relative-exterior`, | |
| in the canonical exterior Euclidean operator norm. The one-step constant | |
| is uniform over all exterior degrees `p ⤠d`, all products and all lengths. | |
| The proof actually does not need `a ā„ 0`, `m ā„ 1`, or `K ā„ 1`; the source | |
| assumptions are retained in the final source-specialized statement. -/ | |
| theorem relative_exterior_core (d : ā) (K : ā) : | |
| ā C : ā, 0 ⤠C ā§ ā (p : ā), p ⤠d ā | |
| ā (A B : ā ā E āL[ā] E) (m : ā) (Ļ a ε : ā), | |
| 0 ⤠ε ā ε ⤠1 ā | |
| (ā t < m, āA tā ⤠K) ā | |
| (ā t < m, āB t - A tā ⤠ε) ā | |
| (ā s k : ā, s + k ⤠m ā | |
| āexterior p (segment A s k)ā ⤠Real.exp (Ļ * k + a)) ā | |
| āexterior p (segment B 0 m) - exterior p (segment A 0 m)ā ⤠| |
| Real.exp (Ļ * m + a) * ((1 + C * ε * Real.exp (a + |Ļ|)) ^ m - 1) := by | |
| obtain āØC, hCpos, hCā© := exists_uniform_exterior_lipschitz (E := E) d K | |
| refine āØC, hCpos, ?_ā© | |
| intro p hp A B m Ļ a ε hε hεā hA hBA hseg | |
| simp only [exterior_segment] | |
| apply norm_difference_le_exp (fun t => exterior p (A t)) | |
| (fun t => exterior p (B t)) 0 m Ļ a (C * ε) (mul_nonneg hCpos hε) | |
| Ā· intro t k _ htk | |
| simpa only [ā exterior_segment, Nat.zero_add] using hseg t k (by omega) | |
| Ā· intro t _ ht | |
| exact (hC p hp (A t) (B t) (hA t (by omega)) ((hBA t (by omega)).trans hεā)).trans | |
| (mul_le_mul_of_nonneg_left (hBA t (by omega)) hCpos) | |
| /-- Exact finite estimate in `lem:relative-exterior` for real `d`-dimensional | |
| Euclidean operators, hence real matrices in the Euclidean operator norm. -/ | |
| theorem relative_exterior (d : ā) (_hd : 1 ⤠d) (K : ā) (_hK : 1 ⤠K) : | |
| ā C : ā, 0 ⤠C ā§ ā (p : ā), p ⤠d ā | |
| ā (m : ā), 1 ⤠m ā | |
| ā (A B : ā ā EuclideanSpace ā (Fin d) āL[ā] EuclideanSpace ā (Fin d)) | |
| (Ļ a ε : ā), | |
| 0 ⤠a ā 0 ⤠ε ā ε ⤠1 ā | |
| (ā t < m, āA tā ⤠K) ā | |
| (ā t < m, āB t - A tā ⤠ε) ā | |
| (ā s k : ā, s + k ⤠m ā | |
| āexterior p (segment A s k)ā ⤠Real.exp (Ļ * k + a)) ā | |
| āexterior p (segment B 0 m) - exterior p (segment A 0 m)ā ⤠| |
| Real.exp (Ļ * m + a) * ((1 + C * ε * Real.exp (a + |Ļ|)) ^ m - 1) := by | |
| obtain āØC, hC, hcā© := relative_exterior_core (E := EuclideanSpace ā (Fin d)) d K | |
| refine āØC, hC, fun p hp m _ A B Ļ a ε _ hε hεā hA hBA hseg => ?_ā© | |
| exact hc p hp A B m Ļ a ε hε hεā hA hBA hseg | |
| end SmoothObstruction.ExteriorStability | |
| namespace SmoothObstruction.ExteriorStability | |
| variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ā E] | |
| [FiniteDimensional ā E] | |
| theorem exterior_zero (A : E āL[ā] E) : exterior 0 A = 1 := by | |
| apply ContinuousLinearMap.ext | |
| intro v | |
| apply (exteriorPower.zeroEquiv ā E).injective | |
| exact congrArg (fun f : (ā[ā]^0 E) āā[ā] ā => f v) | |
| (exteriorPower.zeroEquiv_naturality A.toLinearMap) | |
| theorem exterior_zero_difference (A B : E āL[ā] E) : | |
| exterior 0 B - exterior 0 A = 0 := by simp | |
| end SmoothObstruction.ExteriorStability | |
| namespace SmoothObstruction.SmoothScales | |
| /-- The spatial exponent in the manuscript, with its literal positive root. -/ | |
| noncomputable def B (b : ā) : ā := b ^ (1 / 8 : ā) | |
| lemma positive {b : ā} (hb : 0 < b) : 0 < B b := Real.rpow_pos_of_pos hb _ | |
| lemma ratio {b : ā} (hb : 0 < b) : b / B b = b ^ (7 / 8 : ā) := by | |
| calc | |
| b / B b = b ^ (1 : ā) / b ^ (1 / 8 : ā) := by simp [B] | |
| _ = b ^ ((1 : ā) - 1 / 8) := (Real.rpow_sub hb _ _).symm | |
| _ = b ^ (7 / 8 : ā) := by norm_num | |
| lemma root_sixteen {b : ā} (hb : 0 ⤠b) : (B b)^16 = b^2 := by | |
| rw [B, ā Real.rpow_natCast, ā Real.rpow_mul hb] | |
| norm_num | |
| lemma lower_bound {b n : ā} (hn : 1 ⤠n) (hb : n ^ (-1 / 10 : ā) ⤠b) : | |
| n ^ (79 / 80 : ā) ⤠B b * n := by | |
| have hnpos : 0 < n := by linarith | |
| have h := Real.rpow_le_rpow (Real.rpow_nonneg hnpos.le _) hb (show (0 : ā) ⤠1 / 8 by norm_num) | |
| rw [ā Real.rpow_mul hnpos.le] at h | |
| have h' := mul_le_mul_of_nonneg_right h hnpos.le | |
| calc | |
| n ^ (79 / 80 : ā) = n ^ ((-1 / 10 : ā) * (1 / 8)) * n := by | |
| calc | |
| n ^ (79 / 80 : ā) = n ^ ((-1 / 10 : ā) * (1 / 8) + 1) := by norm_num | |
| _ = n ^ ((-1 / 10 : ā) * (1 / 8)) * n := by rw [Real.rpow_add hnpos, Real.rpow_one] | |
| _ ⤠B b * n := h' | |
| lemma square_dominates {b n : ā} (hn : 1 ⤠n) (hb : n ^ (-1 / 10 : ā) ⤠b) : | |
| n ⤠(B b * n)^2 := by | |
| have hl := lower_bound hn hb | |
| have hpos : 0 ⤠n ^ (79 / 80 : ā) := Real.rpow_nonneg (by linarith) _ | |
| calc | |
| n = n ^ (1 : ā) := by simp | |
| _ ⤠n ^ ((79 / 80 : ā) * 2) := Real.rpow_le_rpow_of_exponent_le hn (by norm_num) | |
| _ = (n ^ (79 / 80 : ā))^2 := by rw [Real.rpow_mul (by linarith), Real.rpow_two] | |
| _ ⤠(B b * n)^2 := pow_le_pow_leftā hpos hl 2 | |
| lemma ratio_tendsto_zero {α : Type*} {l : Filter α} {b : α ā ā} | |
| (hbpos : āį¶ k in l, 0 < b k) (hb : Tendsto b l (š 0)) : | |
| Tendsto (fun k => b k / B (b k)) l (š 0) := by | |
| have h := ((Real.continuous_rpow_const (show (0 : ā) ⤠7 / 8 by norm_num)).tendsto 0).comp hb | |
| simp only [Real.zero_rpow (show (7 / 8 : ā) ā 0 by norm_num)] at h | |
| apply h.congr' | |
| filter_upwards [hbpos] with k hk | |
| exact (ratio hk).symm | |
| /-- Quantitative exponential decay used in the relative-minor transfer. It | |
| holds for every fixed real coefficient `C`, including all constants coming | |
| from the dimension, charts, and inverse basis bounds. -/ | |
| theorem decisive_decay {α : Type*} {l : Filter α} {b n : α ā ā} | |
| (hbpos : āį¶ k in l, 0 < b k) (hb : Tendsto b l (š 0)) | |
| (hn : Tendsto n l atTop) | |
| (hfloor : āį¶ k in l, n k ^ (-1 / 10 : ā) ⤠b k) (C : ā) : | |
| Tendsto (fun k => n k * Real.exp (-(3 / 2 : ā) * B (b k) * n k + C * b k * n k)) | |
| l (š 0) := by | |
| have hn1 : āį¶ k in l, 1 ⤠n k := hn.eventually (eventually_ge_atTop 1) | |
| have hsmall : āį¶ k in l, C * (b k / B (b k)) ⤠1 / 2 := by | |
| apply Tendsto.eventually_le_const (show (0 : ā) < 1 / 2 by norm_num) | |
| simpa using (ratio_tendsto_zero hbpos hb).const_mul C | |
| have hBn : Tendsto (fun k => B (b k) * n k) l atTop := by | |
| apply tendsto_atTop_mono' l ?_ ((tendsto_rpow_atTop (show (0 : ā) < 79 / 80 by norm_num)).comp hn) | |
| filter_upwards [hn1, hfloor] with k hk hbf | |
| exact lower_bound hk hbf | |
| have hzero := (Real.tendsto_pow_mul_exp_neg_atTop_nhds_zero 2).comp hBn | |
| apply squeeze_zero' _ _ hzero | |
| Ā· filter_upwards [hn1] with k hk | |
| exact mul_nonneg (by linarith) (Real.exp_pos _).le | |
| Ā· filter_upwards [hn1, hfloor, hbpos, hsmall] with k hnk hfk hbk hsk | |
| have hB := positive hbk | |
| have hCB : C * b k ⤠B (b k) / 2 := by | |
| have hh := (div_le_iffā hB).mp (show C * b k / B (b k) ⤠1 / 2 by simpa [mul_div_assoc] using hsk) | |
| linarith | |
| have hexp : -(3 / 2 : ā) * B (b k) * n k + C * b k * n k ⤠-(B (b k) * n k) := by | |
| have := mul_le_mul_of_nonneg_right hCB (show 0 ⤠n k by linarith) | |
| nlinarith | |
| exact mul_le_mul (square_dominates hnk hfk) (Real.exp_le_exp.mpr hexp) | |
| (Real.exp_pos _).le (sq_nonneg _) | |
| end SmoothObstruction.SmoothScales | |
| namespace SmoothObstruction.RelativeAsymptotics | |
| lemma exp_sub_one_le (x : ā) : Real.exp x - 1 ⤠x * Real.exp x := by | |
| have h := mul_le_mul_of_nonneg_right (Real.add_one_le_exp (-x)) (Real.exp_pos x).le | |
| rw [ā Real.exp_add, neg_add_cancel, Real.exp_zero] at h | |
| nlinarith | |
| lemma pow_one_add_sub_one_le (x : ā) (hx : 0 ⤠x) (n : ā) : | |
| (1 + x)^n - 1 ⤠n * x * Real.exp (n * x) := by | |
| have h : (1 + x)^n ⤠Real.exp (n * x) := by | |
| rw [Real.exp_nat_mul] | |
| apply pow_le_pow_leftā (by positivity) | |
| simpa [add_comm] using Real.add_one_le_exp x | |
| exact (sub_le_sub_right h 1).trans (exp_sub_one_le _) | |
| lemma normalized_estimate (x Ļ a c C ε : ā) (m : ā) (hC : 0 ⤠C) (hε : 0 ⤠ε) | |
| (hx : x ⤠Real.exp (Ļ * m + a) * ((1 + C * ε * Real.exp (a + |Ļ|)) ^ m - 1)) : | |
| x / Real.exp (Ļ * m - c) ⤠| |
| (C * m * ε * Real.exp (2 * a + c + |Ļ|)) * | |
| Real.exp (C * m * ε * Real.exp (a + |Ļ|)) := by | |
| have hnorm := mul_le_mul_of_nonneg_left | |
| (pow_one_add_sub_one_le (C * ε * Real.exp (a + |Ļ|)) (by positivity) m) | |
| (Real.exp_pos (Ļ * m + a)).le | |
| apply (div_le_div_of_nonneg_right (hx.trans hnorm) (Real.exp_pos _).le).trans | |
| apply le_of_eq | |
| have he : Real.exp (Ļ * m + a) = Real.exp (Ļ * m - c) * Real.exp (a + c) := by | |
| rw [ā Real.exp_add] | |
| congr 1 | |
| ring | |
| rw [he] | |
| have heā : Real.exp (a + c) * Real.exp (a + |Ļ|) = Real.exp (2 * a + c + |Ļ|) := by | |
| rw [ā Real.exp_add] | |
| congr 1 | |
| ring | |
| have heā : (m : ā) * (C * ε * Real.exp (a + |Ļ|)) = C * m * ε * Real.exp (a + |Ļ|) := by ring | |
| rw [heā] | |
| field_simp | |
| ring_nf at heā ⢠| |
| rw [ā heā] | |
| ring | |
| /-- The little-oh conclusion of the exterior-product lemma. The hypotheses on | |
| `x` are the proved finite estimate, not an asymptotic conclusion. This bound | |
| is uniform over all products and all exterior degrees covered by that estimate. -/ | |
| theorem uniform_relative_small {α : Type*} {l : Filter α} | |
| {b n x Ļ a ε : α ā ā} {m : α ā ā} | |
| (hbpos : āį¶ k in l, 0 < b k) (hb : Tendsto b l (š 0)) | |
| (hn : Tendsto n l atTop) | |
| (hfloor : āį¶ k in l, n k ^ (-1 / 10 : ā) ⤠b k) | |
| (C Cā Cā Cā Cā : ā) (hC : 0 ⤠C) (hCā : 0 ⤠Cā) | |
| (hCā : 0 ⤠Cā) | |
| (hdata : āį¶ k in l, | |
| 0 ⤠x k ā§ 0 ⤠a k ā§ 0 ⤠ε k ā§ (m k : ā) ⤠2 * n k ā§ | |
| a k ⤠Cā * b k * n k ā§ |Ļ k| ⤠Cā ā§ | |
| ε k ⤠Cā * Real.exp (-(3 / 2 : ā) * SmoothScales.B (b k) * n k) ā§ | |
| x k ⤠Real.exp (Ļ k * m k + a k) * | |
| ((1 + C * ε k * Real.exp (a k + |Ļ k|)) ^ m k - 1)) : | |
| Tendsto (fun k => x k / Real.exp (Ļ k * m k - Cā * b k * n k)) l (š 0) := by | |
| let U : α ā ā := fun k => C * m k * ε k * Real.exp (a k + |Ļ k|) | |
| let D : α ā ā := fun k => C * m k * ε k * Real.exp (2 * a k + Cā * b k * n k + |Ļ k|) | |
| let V : α ā ā := fun k => 2 * C * Cā * Real.exp Cā * | |
| (n k * Real.exp (-(3 / 2 : ā) * SmoothScales.B (b k) * n k + | |
| (2 * Cā + Cā) * b k * n k)) | |
| have hn1 : āį¶ k in l, 1 ⤠n k := hn.eventually (eventually_ge_atTop 1) | |
| have hV : Tendsto V l (š 0) := by | |
| simpa [V] using (SmoothScales.decisive_decay hbpos hb hn hfloor (2 * Cā + Cā)).const_mul | |
| (2 * C * Cā * Real.exp Cā) | |
| have hDnonneg : āį¶ k in l, 0 ⤠D k := by | |
| filter_upwards [hdata] with k hk | |
| dsimp [D] | |
| exact mul_nonneg (mul_nonneg (mul_nonneg hC (Nat.cast_nonneg _)) hk.2.2.1) (Real.exp_pos _).le | |
| have hDle : āį¶ k in l, D k ⤠V k := by | |
| filter_upwards [hdata, hn1] with k hk hnk | |
| rcases hk with āØ_, _, hε, hm, ha, hĻ, hεle, _ā© | |
| have hn0 : 0 ⤠n k := by linarith | |
| have hexp : 2 * a k + Cā * b k * n k + |Ļ k| ⤠| |
| (2 * Cā + Cā) * b k * n k + Cā := by nlinarith | |
| have hprod : C * m k * ε k ⤠C * (2 * n k) * | |
| (Cā * Real.exp (-(3 / 2 : ā) * SmoothScales.B (b k) * n k)) := by | |
| exact mul_le_mul (mul_le_mul_of_nonneg_left hm hC) hεle hε (by positivity) | |
| calc | |
| D k ⤠C * (2 * n k) * (Cā * Real.exp (-(3 / 2 : ā) * SmoothScales.B (b k) * n k)) * | |
| Real.exp ((2 * Cā + Cā) * b k * n k + Cā) := | |
| mul_le_mul hprod (Real.exp_le_exp.mpr hexp) (Real.exp_pos _).le (by positivity) | |
| _ = V k := by | |
| dsimp [V] | |
| rw [Real.exp_add ((2 * Cā + Cā) * b k * n k) Cā, | |
| Real.exp_add (-(3 / 2 : ā) * SmoothScales.B (b k) * n k)] | |
| ring | |
| have hD : Tendsto D l (š 0) := squeeze_zero' hDnonneg hDle hV | |
| have hUnonneg : āį¶ k in l, 0 ⤠U k := by | |
| filter_upwards [hdata] with k hk | |
| dsimp [U] | |
| exact mul_nonneg (mul_nonneg (mul_nonneg hC (Nat.cast_nonneg _)) hk.2.2.1) (Real.exp_pos _).le | |
| have hUle : āį¶ k in l, U k ⤠D k := by | |
| filter_upwards [hdata, hn1, hbpos] with k hk hnk hbk | |
| apply mul_le_mul_of_nonneg_left (Real.exp_le_exp.mpr ?_) (by | |
| exact mul_nonneg (mul_nonneg hC (Nat.cast_nonneg _)) hk.2.2.1) | |
| have hbc : 0 ⤠Cā * b k * n k := mul_nonneg (mul_nonneg hCā hbk.le) (by linarith) | |
| linarith [hk.2.1] | |
| have hU := squeeze_zero' hUnonneg hUle hD | |
| have hright : Tendsto (fun k => D k * Real.exp (U k)) l (š 0) := by | |
| simpa using hD.mul (Real.continuous_exp.tendsto 0 |>.comp hU) | |
| apply squeeze_zero' _ _ hright | |
| Ā· filter_upwards [hdata] with k hk | |
| exact div_nonneg hk.1 (Real.exp_pos _).le | |
| Ā· filter_upwards [hdata] with k hk | |
| exact normalized_estimate (x k) (Ļ k) (a k) (Cā * b k * n k) C (ε k) (m k) hC | |
| hk.2.2.1 hk.2.2.2.2.2.2.2 | |
| end SmoothObstruction.RelativeAsymptotics | |
| namespace SmoothObstruction.RelativeAsymptotics | |
| open Filter Topology | |
| /-- A single, choice-independent numerical envelope for all the relative | |
| exterior errors at a given dyadic scale. -/ | |
| noncomputable def envelope (C Cā Cā Cā Cā b n : ā) : ā := | |
| 2 * C * Cā * Real.exp Cā * | |
| (n * Real.exp (-(3 / 2 : ā) * SmoothScales.B b * n + | |
| (2 * Cā + Cā) * b * n)) | |
| lemma uniform_relative_bound (x Ļ a ε b n C Cā Cā Cā Cā : ā) (m : ā) | |
| (hb : 0 ⤠b) (hn : 0 ⤠n) (hC : 0 ⤠C) (hCā : 0 ⤠Cā) (hCā : 0 ⤠Cā) | |
| (ha0 : 0 ⤠a) (hε : 0 ⤠ε) (hm : (m : ā) ⤠2 * n) | |
| (ha : a ⤠Cā * b * n) (hĻ : |Ļ| ⤠Cā) | |
| (hεle : ε ⤠Cā * Real.exp (-(3 / 2 : ā) * SmoothScales.B b * n)) | |
| (hx : x ⤠Real.exp (Ļ * m + a) * | |
| ((1 + C * ε * Real.exp (a + |Ļ|)) ^ m - 1)) : | |
| x / Real.exp (Ļ * m - Cā * b * n) ⤠| |
| envelope C Cā Cā Cā Cā b n * Real.exp (envelope C Cā Cā Cā Cā b n) := by | |
| let U := C * m * ε * Real.exp (a + |Ļ|) | |
| let D := C * m * ε * Real.exp (2 * a + Cā * b * n + |Ļ|) | |
| have hD0 : 0 ⤠D := by dsimp [D]; positivity | |
| have hUD : U ⤠D := by | |
| apply mul_le_mul_of_nonneg_left (Real.exp_le_exp.mpr ?_) (by positivity) | |
| have : 0 ⤠Cā * b * n := by positivity | |
| linarith | |
| have hDV : D ⤠envelope C Cā Cā Cā Cā b n := by | |
| have hexp : 2 * a + Cā * b * n + |Ļ| ⤠| |
| (2 * Cā + Cā) * b * n + Cā := by nlinarith | |
| have hprod : C * m * ε ⤠C * (2 * n) * | |
| (Cā * Real.exp (-(3 / 2 : ā) * SmoothScales.B b * n)) := | |
| mul_le_mul (mul_le_mul_of_nonneg_left hm hC) hεle hε (by positivity) | |
| calc | |
| D ⤠C * (2 * n) * (Cā * Real.exp (-(3 / 2 : ā) * SmoothScales.B b * n)) * | |
| Real.exp ((2 * Cā + Cā) * b * n + Cā) := | |
| mul_le_mul hprod (Real.exp_le_exp.mpr hexp) (Real.exp_pos _).le (by positivity) | |
| _ = _ := by | |
| dsimp [envelope] | |
| rw [Real.exp_add ((2 * Cā + Cā) * b * n) Cā, | |
| Real.exp_add (-(3 / 2 : ā) * SmoothScales.B b * n)] | |
| ring | |
| exact (normalized_estimate x Ļ a (Cā*b*n) C ε m hC hε hx).trans | |
| (mul_le_mul hDV (Real.exp_le_exp.mpr (hUD.trans hDV)) (Real.exp_pos _).le (hD0.trans hDV)) | |
| lemma envelope_tendsto {α : Type*} {l : Filter α} {b n : α ā ā} | |
| (hbpos : āį¶ k in l, 0 < b k) (hb : Tendsto b l (š 0)) | |
| (hn : Tendsto n l atTop) | |
| (hfloor : āį¶ k in l, n k ^ (-1 / 10 : ā) ⤠b k) | |
| (C Cā Cā Cā Cā : ā) : | |
| Tendsto (fun k => envelope C Cā Cā Cā Cā (b k) (n k) * | |
| Real.exp (envelope C Cā Cā Cā Cā (b k) (n k))) l (š 0) := by | |
| have hV : Tendsto (fun k => envelope C Cā Cā Cā Cā (b k) (n k)) l (š 0) := by | |
| simpa [envelope] using | |
| (SmoothScales.decisive_decay hbpos hb hn hfloor (2 * Cā + Cā)).const_mul | |
| (2 * C * Cā * Real.exp Cā) | |
| simpa using hV.mul (Real.continuous_exp.tendsto 0 |>.comp hV) | |
| end SmoothObstruction.RelativeAsymptotics | |
| end | |
| end OAI | |