Buckets:
| import Mathlib | |
| namespace OAI | |
| open Asymptotics Filter | |
| open scoped Topology | |
| namespace CylinderCovering.RationalPadding | |
| theorem rpow_littleO_at_zero {p q : β} (hpq : p < q) : | |
| (fun x : β => x ^ q) =o[π[>] 0] (fun x => x ^ p) := by | |
| apply (isLittleO_iff_tendsto' ?_).2 | |
| Β· have hlim : Tendsto (fun x : β => x ^ (q - p)) (π 0) (π ((0 : β) ^ (q - p))) := | |
| (Real.continuous_rpow_const (sub_nonneg.mpr hpq.le)).continuousAt.tendsto | |
| have hzero : (0 : β) ^ (q - p) = 0 := Real.zero_rpow (sub_pos.mpr hpq).ne' | |
| rw [hzero] at hlim | |
| apply (hlim.mono_left nhdsWithin_le_nhds).congr' | |
| filter_upwards [self_mem_nhdsWithin] with x hx | |
| exact Real.rpow_sub hx q p | |
| Β· filter_upwards [self_mem_nhdsWithin] with x hx | |
| exact fun h => False.elim ((Real.rpow_pos_of_pos hx p).ne' h) | |
| theorem vanishing_padding_rates : | |
| (fun x : β => x ^ (5 / 2 : β)) =o[π[>] 0] (fun x => x ^ (2 : β)) β§ | |
| (fun x : β => x ^ (3 : β)) =o[π[>] 0] (fun x => x ^ (5 / 2 : β)) := by | |
| constructor | |
| Β· simpa only [Real.rpow_two] using rpow_littleO_at_zero (p := 2) (q := 5 / 2) (by norm_num) | |
| Β· simpa only [show (3 : β) = (3 : β) by norm_num, Real.rpow_natCast] using | |
| rpow_littleO_at_zero (p := 5 / 2) (q := 3) (by norm_num) | |
| theorem eventually_cost_lt_of_littleO {C : β β β} {A Ξ : β} (hΞ : 0 < Ξ) | |
| (hrem : (fun x => C x - (A - Ξ * x ^ 2)) =o[π[>] 0] (fun x => x ^ (2 : β))) : | |
| βαΆ x : β in π[>] 0, C x < A := by | |
| filter_upwards [self_mem_nhdsWithin, hrem.bound (show 0 < Ξ / 2 by positivity)] with x hx hr | |
| rw [Real.norm_eq_abs, Real.norm_eq_abs, abs_of_nonneg (sq_nonneg x)] at hr | |
| have hb := (abs_le.mp hr).2 | |
| have hp : 0 < Ξ * x ^ 2 := mul_pos hΞ (sq_pos_of_pos hx) | |
| nlinarith | |
| theorem eventually_cost_lt_of_fourth_order {C : β β β} {A Ξ : β} (hΞ : 0 < Ξ) | |
| (hrem : (fun x => C x - (A - Ξ * x ^ 2)) =O[π[>] 0] (fun x => x ^ (4 : β))) : | |
| βαΆ x : β in π[>] 0, C x < A := by | |
| apply eventually_cost_lt_of_littleO hΞ | |
| exact hrem.trans_isLittleO ((isLittleO_pow_pow (π := β) (show 2 < 4 by norm_num)).mono nhdsWithin_le_nhds) | |
| theorem eventually_cost_lt_vanishing_padding {C q : β β β} {A Ξ : β} | |
| (hΞ : 0 < Ξ) (hq : q =o[π[>] 0] (fun x => x ^ (2 : β))) | |
| (hrem : (fun x => C x - (A - Ξ * x ^ 2 + q x / 2)) =O[π[>] 0] | |
| (fun x => x ^ (4 : β))) : | |
| βαΆ x : β in π[>] 0, C x < A := by | |
| apply eventually_cost_lt_of_littleO hΞ | |
| have hr := hrem.trans_isLittleO | |
| ((isLittleO_pow_pow (π := β) (show 2 < 4 by norm_num)).mono nhdsWithin_le_nhds) | |
| have hsum := hr.add (hq.const_mul_left (1 / 2 : β)) | |
| have heq : (fun x => C x - (A - Ξ * x ^ 2 + q x / 2) + (1 / 2 : β) * q x) = | |
| (fun x => C x - (A - Ξ * x ^ 2)) := by funext x; ring | |
| rw [heq] at hsum | |
| exact hsum | |
| theorem quadratic_padding_rates {Ξ· : β} (hΞ· : 0 < Ξ·) : | |
| (fun x : β => Ξ· * x ^ (2 : β)) =O[π[>] 0] (fun x => x ^ (2 : β)) β§ | |
| (fun x : β => x ^ (3 : β)) =o[π[>] 0] (fun x => Ξ· * x ^ (2 : β)) := by | |
| refine β¨(isBigO_refl (fun x : β => x ^ (2 : β)) _).const_mul_left Ξ·, ?_β© | |
| exact Asymptotics.IsLittleO.const_mul_right hΞ·.ne' | |
| ((isLittleO_pow_pow (π := β) (show 2 < 3 by norm_num)).mono nhdsWithin_le_nhds) | |
| theorem eventually_cost_lt_quadratic_padding {C : β β β} {A Ξ Ξ· : β} | |
| (hgap : Ξ· / 2 < Ξ) | |
| (hrem : (fun x => C x - (A - Ξ * x ^ 2 + Ξ· * x ^ 2 / 2)) =O[π[>] 0] | |
| (fun x => x ^ (4 : β))) : | |
| βαΆ x : β in π[>] 0, C x < A := by | |
| apply eventually_cost_lt_of_fourth_order (sub_pos.mpr hgap) | |
| exact hrem.congr_left (fun x => by ring) | |
| theorem eventually_cost_lt_five_halves {C : β β β} {A Ξ : β} | |
| (hgap : 0 < Ξ) | |
| (hrem : (fun x => C x - (A - Ξ * x ^ 2 + x ^ (5 / 2 : β) / 2)) =O[π[>] 0] | |
| (fun x => x ^ (4 : β))) : | |
| βαΆ x : β in π[>] 0, C x < A := | |
| eventually_cost_lt_vanishing_padding hgap vanishing_padding_rates.1 hrem | |
| theorem exists_eventual_quadratic_control {q : β β β} | |
| (hq0 : βαΆ x : β in π[>] 0, 0 β€ q x) | |
| (hq : q =O[π[>] 0] (fun x => x ^ (2 : β))) : | |
| β Q : β, 0 < Q β§ βαΆ x : β in π[>] 0, | |
| 0 β€ q x β§ q x β€ Q * x ^ 2 β§ x ^ 2 β€ 1 β§ x ^ 2 + q x β€ 1 / 4 := by | |
| obtain β¨Q, hQ, hbβ© := hq.exists_pos | |
| refine β¨Q, hQ, ?_β© | |
| have ht : Tendsto (fun x : β => x ^ (2 : β)) (π[>] 0) (π 0) := by | |
| simpa using ((continuous_pow 2).tendsto (0 : β)).mono_left nhdsWithin_le_nhds | |
| have hΞ΄ : Tendsto (fun x : β => (1 + Q) * x ^ 2) (π[>] 0) (π 0) := by | |
| simpa using ht.const_mul (1 + Q) | |
| filter_upwards [hq0, hb.bound, ht.eventually (gt_mem_nhds (show (0 : β) < 1 by norm_num)), | |
| hΞ΄.eventually (gt_mem_nhds (show (0 : β) < 1 / 4 by norm_num))] with x hx0 hxb hx1 hxΞ΄ | |
| simp only [Real.norm_eq_abs, abs_of_nonneg hx0, abs_of_nonneg (sq_nonneg x)] at hxb | |
| exact β¨hx0, hxb, hx1.le, by nlinarithβ© | |
| end CylinderCovering.RationalPadding | |
| end OAI | |
Xet Storage Details
- Size:
- 5.01 kB
- Xet hash:
- 0adffd0112291303a4c619734f72fc327944a09d4d5165e3e583528b7f1b22bf
Β·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.