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