File size: 3,664 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | import OAI.MeasureTheory.Falconer.Angular.AngularFarStationaryScale
import OAI.MeasureTheory.Falconer.Recursion.MinimalDescriptorLength
import OAI.MeasureTheory.Falconer.Estimates.PositiveDistanceWeight
namespace OAI
namespace PlanarFalconer
theorem high_shell_gap {sig : β} {N q a t : β} {v : β}
(hq : sig*(N:β) β€ (q:β)) (hw : a+100*q < t)
(hv : (t:β)-sig*N β€ v) : 99*sig*N β€ v-a := by
have hw' : (a:β)+100*(q:β) < (t:β) := by exact_mod_cast hw
linarith
theorem high_shell_stationary_slack {sig v Ξ : β} (hsig : 0 β€ sig)
(N L a t : β) (hL : 2*(L:β) β€ (t:β)-a)
(hgap : 99*sig*N β€ v-a) (hv : (t:β)-sig*N β€ v)
(hΞ : (2:β)^(v-a) β€ Ξ) :
((2:β)^N)^(90*sig) β€ Ξ β§
sourceSymbolScale N sig L^2/Ξ β€ ((2:β)^N)^(-90*sig) := by
have hn : 0 β€ (N:β)*sig := mul_nonneg (Nat.cast_nonneg _) hsig
have hΞpos : 0 < Ξ := (Real.rpow_pos_of_pos (by norm_num) _).trans_le hΞ
have hD : sourceSymbolScale N sig L β€ (2:β)^((v-a-90*(N:β)*sig)/2) := by
rw [sourceSymbolScale_dyadic]
apply max_le <;> apply Real.rpow_le_rpow_of_exponent_le (by norm_num : (1:β) β€ 2)
Β· nlinarith
Β· nlinarith
have hD2 : sourceSymbolScale N sig L^2 β€ (2:β)^(v-a)*((2:β)^N)^(-90*sig) := by
apply (pow_le_pow_leftβ (sourceSymbolScale_pos N sig L).le hD 2).trans_eq
rw [β Real.rpow_mul_natCast (by norm_num : (0:β) β€ 2),
β Real.rpow_natCast_mul (by norm_num : (0:β) β€ 2),
β Real.rpow_add (by norm_num : (0:β) < 2)]
congr 1
push_cast
ring
refine β¨?_,(div_le_iffβ hΞpos).mpr ?_β©
Β· apply le_trans _ hΞ
rw [β Real.rpow_natCast_mul (by norm_num : (0:β) β€ 2)]
apply Real.rpow_le_rpow_of_exponent_le (by norm_num : (1:β) β€ 2)
nlinarith
Β· exact hD2.trans (by simpa [mul_comm] using
mul_le_mul_of_nonneg_right hΞ (by positivity : 0 β€ ((2:β)^N)^(-90*sig)))
theorem high_shell_frequency {a v r d : β}
(hr : (2:β)^(v-1) β€ r) (hd : 96*(2:β)^(-a) β€ d) :
(2:β)^(v-a) β€ r*d := by
have hprod := mul_le_mul hr hd (by positivity : 0 β€ 96*(2:β)^(-a))
((Real.rpow_pos_of_pos (by norm_num) _).trans_le hr).le
have he : (2:β)^(v-1)*(96*(2:β)^(-a)) = 48*(2:β)^(v-a) := by
rw [Real.rpow_sub (by norm_num : (0:β) < 2),Real.rpow_one]
rw [show v-a = v+(-a) by ring,Real.rpow_add (by norm_num : (0:β) < 2)]
ring
rw [he] at hprod
linarith [Real.rpow_pos_of_pos (by norm_num : (0:β) < 2) (v-a)]
namespace PositiveDistanceData
theorem actual_high_shell_stationary_slack (d : PositiveDistanceData)
(hQ : 0 < d.Q.side) (hs : d.StronglySeparated) (hsig : 0 β€ d.sig)
(hq : d.sig*d.N β€ (d.q:β)) (hw : d.a+100*d.q < d.t)
{v r : β} (hv : (d.t:β)-d.sig*d.N β€ v) (hr : (2:β)^(v-1) β€ r)
{z : Plane Γ Plane} (hx : z.1 β (d.Q.descendant d.X).carrier)
(hy : z.2 β (d.Q.descendant d.Y).carrier) :
((2:β)^d.N)^(90*d.sig) β€ r*dist z.1 z.2 β§
sourceSymbolScale d.N d.sig ((d.t-d.a)/2)^2/(r*dist z.1 z.2) β€
((2:β)^d.N)^(-90*d.sig) := by
have hat : d.a β€ d.t := by omega
have hl : 2*(((d.t-d.a)/2:β):β) β€ (d.t:β)-d.a := by
have hh : 2*((d.t-d.a)/2) β€ d.t-d.a := by omega
have := (show (2:β)*(((d.t-d.a)/2:β):β) β€ ((d.t-d.a:β):β) by exact_mod_cast hh)
simpa [Nat.cast_sub hat] using this
have hd := (le_div_iffβ (by positivity)).mp (d.separated_distance_ratio hQ hs hx hy).1
exact high_shell_stationary_slack hsig d.N _ d.a d.t hl
(high_shell_gap hq hw hv) hv (high_shell_frequency hr hd)
end PositiveDistanceData
end PlanarFalconer
end OAI
|