File size: 3,109 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
import OAI.MeasureTheory.Falconer.Angular.AngularChart

namespace OAI

/-!
# The failed perpendicular test in an actual spherical chart

The normalized affine chart stays within twice its tangent displacement
of the cap center. Its coordinate derivative therefore inherits the
uniform lower bound proved for the tangential sphere field.
-/

namespace Falconer
variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E]

theorem norm_normalization_sub_le {w z : E} (hw : β€–wβ€– = 1) (hz : z β‰  0) :
    β€–β€–z‖⁻¹ β€’ z - wβ€– ≀ 2*β€–z-wβ€– := by
  have hzn : β€–zβ€– β‰  0 := norm_ne_zero_iff.mpr hz
  have he : β€–z‖⁻¹ β€’ z - w = (z-w) + (β€–z‖⁻¹-1) β€’ z := by module
  have hnorm : β€–(β€–z‖⁻¹-1) β€’ zβ€– = |β€–zβ€–-1| := by
    rw [norm_smul,Real.norm_eq_abs]
    calc
      _ = |(β€–z‖⁻¹-1)*β€–zβ€–| := by rw [abs_mul,abs_of_nonneg (norm_nonneg z)]
      _ = |1-β€–zβ€–| := by rw [sub_mul,inv_mul_cancelβ‚€ hzn,one_mul]
      _ = _ := abs_sub_comm _ _
  rw [he]
  calc
    _ ≀ β€–z-wβ€– + β€–(β€–z‖⁻¹-1) β€’ zβ€– := norm_add_le _ _
    _ = β€–z-wβ€– + |β€–zβ€–-1| := by rw [hnorm]
    _ ≀ β€–z-wβ€– + β€–z-wβ€– := by
      exact add_le_add le_rfl (by simpa only [hw] using abs_norm_sub_norm_le z w)
    _ = _ := by ring

theorem tangent_chart_nonzero {w h : E} (hw : β€–wβ€– = 1) (hh : inner ℝ w h = 0) :
    w+h β‰  0 := by
  intro he
  have hi := congrArg (inner ℝ w) he
  simp only [inner_add_right,real_inner_self_eq_norm_sq,hw,one_pow,hh,add_zero,
    inner_zero_right] at hi
  norm_num at hi

/-- A single coordinate direction works for every allowed point and
direction replacement in the discarded cell--cap term. -/
theorem perpendicular_failure_chart_nonstationary {wβ‚€ d : E}
    (hwβ‚€ : β€–wβ‚€β€– = 1) {Ο„ : ℝ} (hΟ„ : 0 < Ο„)
    (hbad : Ο„ < β€–perpendicularPart wβ‚€ dβ€–) :
    βˆƒ t : E, β€–tβ€– = 1 ∧ inner ℝ wβ‚€ t = 0 ∧
      βˆ€ (y v : E) (u : ℝ), inner ℝ wβ‚€ y = 0 β†’ β€–y+uβ€’tβ€– ≀ 1 β†’
        β€–v-dβ€– + 4*β€–y+uβ€’tβ€–*β€–dβ€– ≀ Ο„/2 β†’
        Ο„/4 ≀ |deriv (fun x => inner ℝ (normalizedLine (wβ‚€+y) t x) v) u| := by
  obtain ⟨t,ht,htan,hfield⟩ := perpendicular_failure_nonstationary hwβ‚€ hΟ„ hbad
  refine ⟨t,ht,htan,?_⟩
  intro y v u hy hsmall herr
  have hh : inner ℝ wβ‚€ (y+uβ€’t) = 0 := by
    simp only [inner_add_right,real_inner_smul_right,hy,htan,mul_zero,add_zero]
  have hne : (wβ‚€+y)+uβ€’t β‰  0 := by
    rw [add_assoc]
    exact tangent_chart_nonzero hwβ‚€ hh
  have hnorm : β€–(wβ‚€+y)+uβ€’tβ€– ≀ 2 := by
    rw [add_assoc]
    exact (norm_add_le _ _).trans (by rw [hwβ‚€]; linarith)
  have hnear : β€–normalizedLine (wβ‚€+y) t u - wβ‚€β€– ≀ 2*β€–y+uβ€’tβ€– := by
    have hp := norm_normalization_sub_le hwβ‚€ hne
    simpa only [normalizedLine,add_assoc,add_sub_cancel_left] using hp
  have hfield' := hfield (normalizedLine (wβ‚€+y) t u) v
    (normalizedLine_norm _ _ hne) (by
      have hm := mul_le_mul_of_nonneg_right hnear (norm_nonneg d)
      nlinarith)
  exact normalizedLine_phase_nonstationary _ _ _ hne hnorm hΟ„.le hfield'

end Falconer

end OAI