File size: 2,695 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
import OAI.MathematicalPhysics.DefocusingNLS.Profile.ProfileNormalizedBounds

namespace OAI

/-! The zero-tail quotient has the certified linear approximation. -/

namespace DefocusingNLS.ProfileCertificate

private theorem ratio_error (d b l : β„‚) (Ξ· Ο‡ S : ℝ)
    (hΞ· : 0 ≀ Ξ·) (hΟ‡ : 0 ≀ Ο‡) (hΟ‡1 : Ο‡ < 1) (hS : 0 ≀ S)
    (hd : β€–d-lβ€– ≀ Ξ·) (hb : β€–b-1β€– ≀ Ο‡) (hl : β€–lβ€– ≀ S) :
    β€–d/b-lβ€– ≀ (Ξ·+S*Ο‡)/(1-Ο‡) := by
  have hnorm : 1-Ο‡ ≀ β€–bβ€– := by
    have hn := norm_sub_norm_le (1 : β„‚) b
    rw [norm_one, norm_sub_rev] at hn
    linarith
  have hden : 0 < 1-χ := sub_pos.mpr hχ1
  have hb0 : b β‰  0 := norm_pos_iff.mp (hden.trans_le hnorm)
  have he : d/b-l = (d-l+l*(1-b))/b := by field_simp [hb0]; ring
  rw [he, norm_div]
  have hnum : β€–d-l+l*(1-b)β€– ≀ Ξ·+S*Ο‡ := by
    apply (norm_add_le _ _).trans
    rw [norm_mul, norm_sub_rev (1 : β„‚) b]
    exact add_le_add hd (mul_le_mul hl hb (norm_nonneg _) hS)
  exact (div_le_div_of_nonneg_right hnum (norm_nonneg _)).trans
    (div_le_div_of_nonneg_left (by positivity) hden hnorm)

theorem normalized_first_denominator_lower (b z : ℝ)
    (hb : |b| ≀ (radius : ℝ)) (hz : |z| ≀ (radius : ℝ)) :
    1-(changeBound : ℝ) ≀ β€–normalizedProfile b z 0 1β€– := by
  have h := normalizedProfile_variation b z hb hz 0 1
  rw [centralNormalized_zero_one] at h
  have hn := norm_sub_norm_le (1 : β„‚) (normalizedProfile b z 0 1)
  rw [norm_one, norm_sub_rev] at hn
  linarith

theorem normalized_first_entry_ne_zero (b z : ℝ)
    (hb : |b| ≀ (radius : ℝ)) (hz : |z| ≀ (radius : ℝ)) :
    normalizedProfile b z 0 1 β‰  0 := by
  apply norm_pos_iff.mp
  have hΟ‡ : (changeBound : ℝ) < 1 := by norm_num [changeBound, radius]
  linarith [normalized_first_denominator_lower b z hb hz]

theorem normalized_zero_tail_error (b z : ℝ)
    (hb : |b| ≀ (radius : ℝ)) (hz : |z| ≀ (radius : ℝ)) :
    β€–normalizedProfile b z 1 1/normalizedProfile b z 0 1-
      ((b : β„‚)*centralX+(z : β„‚)*centralY)β€– ≀ (jetError : ℝ) := by
  have h := ratio_error (normalizedProfile b z 1 1) (normalizedProfile b z 0 1)
    ((b : β„‚)*centralX+(z : β„‚)*centralY)
    ((1/1000000000000 : ℝ)+50000*(radius : ℝ)^2) (changeBound : ℝ)
    ((283/1000 : ℝ)*(radius : ℝ))
    (by positivity) (by norm_num [changeBound, radius]) (by norm_num [changeBound, radius])
    (by norm_num [radius]) (normalizedProfile_last_remainder b z hb hz).le
    (by simpa only [centralNormalized_zero_one] using (normalizedProfile_variation b z hb hz 0 1).le)
    (free_linear_size b z hb hz)
  convert! h using 1
  unfold jetError
  push_cast
  ring

end DefocusingNLS.ProfileCertificate

end OAI