This journal is in preparation. Submissions are open as a pilot and the editorial board is being formed. Articles marked Demonstration show the format only.
Journal of Machine-Verified MathematicsPeer-reviewed mathematics with machine-checked proofs, for the age of AI

E424/LowBand/L37.lean

All files · 177 lines · source at the verified commit

1module
2
3public import E424.LowBand.Defs
4public import E424.HighBand.L35
5public import E424.LowBand.L37Aux
6
7@[expose] public section
8
9/-!
10# Section 9 of the outline: L37
11
12`dq` is Lipschitz in `u` with constant `8 Q_y`. Substituting `x ↦ z - w`, `w = u' - u`, moves the
13shift onto `F̄_y`, which is `4 Q_y`-Lipschitz (`L35_bounds`). The two boundary strips of length `w`
14cost `2 · 2 · w` (both integrands are bounded by `2`), which `X ≥ 1` and `Q_y ≥ 1` absorb.
15-/
16
17set_option linter.style.header false
18open Finset MeasureTheory
19
20namespace E424
21
22set_option maxHeartbeats 800000 in
23/-- **Lemma 37**, `d` is Lipschitz with the small constant `8 Q_y`. -/
24theorem L37 (η τ : ℝ) (hη : 0 < η) (hη1 : η ≤ 1 / 1000) (hτ : 0 < τ) (hτ1 : τ ≤ η / 4) :
25 ∃ N0 : ℝ, ∀ W : Win, W.Adm η N0 →
26 ∀ u ∈ Set.Icc (ell W - 1) (ell W + Lt W τ + 1), ∀ u' ∈ Set.Icc (ell W - 1) (ell W + Lt W τ + 1),
27 |dq W τ u - dq W τ u'| ≤ 8 * Qs (Wy W).lo * |u - u'| := by
28 obtain ⟨N1, hN1⟩ := L35_bounds
29 refine ⟨Real.exp (max (12 / η) (2 * |Real.log (max N1 1)| + 1)), fun W hW => ?_⟩
30 intro u hu u' hu'
31 wlog huu : u ≤ u' generalizing u u'
32 · have h := this u' hu' u hu (le_of_not_ge huu)
33 rw [abs_sub_comm (dq W τ u), abs_sub_comm u]
34 exact h
35 set T := max (12 / η) (2 * |Real.log (max N1 1)| + 1) with hT
36 have hTa : 12 / η ≤ T := le_max_left _ _
37 have hTb : 2 * |Real.log (max N1 1)| + 1 ≤ T := le_max_right _ _
38 have hlo0 : 0 < W.lo := by linarith [hW.three_le]
39 have hlo1 : 1 ≤ W.lo := by linarith [hW.three_le]
40 have hLT : T ≤ Real.log W.lo := by
41 rw [← Real.log_exp T]
42 exact Real.log_le_log (Real.exp_pos T) hW.le_lo
43 have hL0 : 0 < Real.log W.lo := lt_of_lt_of_le (div_pos (by norm_num) hη) (hTa.trans hLT)
44 have hηL : 12 ≤ η * Real.log W.lo := by
45 have h := hTa.trans hLT
46 rwa [div_le_iff₀ hη, mul_comm] at h
47 have hlen : η * Real.log W.lo ≤ W.len := hW.le_len
48 have hLt : Lt W τ = τ * (0.4 * Real.log W.lo) := rfl
49 have hLt0 : 0 ≤ Lt W τ := by rw [hLt]; positivity
50 have hLt1 : Lt W τ ≤ 0.1 * (η * Real.log W.lo) := by rw [hLt]; nlinarith
51 have hXdef : Xlen W τ = W.len - 6 - 2 * Lt W τ := rfl
52 have hX1 : 1 ≤ Xlen W τ := by rw [hXdef]; linarith
53 have hXw : Lt W τ + 2 ≤ Xlen W τ := by rw [hXdef]; linarith
54 have hXpos : 0 < Xlen W τ := by linarith
55 -- the scale `lo' = lo / Y5 = lo^0.6`, the lower limit of `dq` is `log lo' + 3`
56 have hY5pos : 0 < Y5 W := Real.rpow_pos_of_pos hlo0 _
57 have hY5log : Real.log (Y5 W) = 0.4 * Real.log W.lo := by
58 unfold Y5; rw [Real.log_rpow hlo0]
59 have hlo'eq : (Wy W).lo = W.lo / Y5 W := rfl
60 have hlo'pos : 0 < (Wy W).lo := div_pos hlo0 hY5pos
61 have hlo'log : Real.log (Wy W).lo = 0.6 * Real.log W.lo := by
62 rw [hlo'eq, Real.log_div hlo0.ne' hY5pos.ne', hY5log]; ring
63 have hM1 : 1 ≤ max N1 1 := le_max_right _ _
64 have hMpos : 0 < max N1 1 := lt_of_lt_of_le one_pos hM1
65 have hlogM : Real.log (max N1 1) ≤ 0.6 * Real.log W.lo := by
66 have h1 := le_abs_self (Real.log (max N1 1))
67 have h2 : 2 * |Real.log (max N1 1)| + 1 ≤ Real.log W.lo := hTb.trans hLT
68 linarith
69 have hMlo' : max N1 1 ≤ (Wy W).lo :=
70 (Real.log_le_log_iff hMpos hlo'pos).1 (by rw [hlo'log]; exact hlogM)
71 have hMlo : max N1 1 ≤ W.lo :=
72 (Real.log_le_log_iff hMpos hlo0).1 (by linarith)
73 have hFn := hN1 W.lo ((le_max_left _ _).trans hMlo)
74 have hFy := hN1 (Wy W).lo ((le_max_left _ _).trans hMlo')
75 have hlo'1 : 1 ≤ (Wy W).lo := hM1.trans hMlo'
76 have hQ' : 1 ≤ Qs (Wy W).lo := Real.one_le_rpow hlo'1 (by norm_num)
77 have hQ'0 : 0 ≤ Qs (Wy W).lo := by linarith
78 have hup : ∀ lo : ℝ, 1 ≤ lo → lo ^ (-(0.4 : ℝ)) ≤ 1 := fun lo h =>
79 Real.rpow_le_one_of_one_le_of_nonpos h (by norm_num)
80 have hupn := hup W.lo hlo1
81 have hupy := hup (Wy W).lo hlo'1
82 have hFnB : ∀ x, Real.log W.lo + 1 ≤ x → 0 ≤ Fb (Qs W.lo) x ∧ Fb (Qs W.lo) x ≤ 2 := fun x hx =>
83 ⟨(hFn x hx).1, by linarith [(hFn x hx).2.1]⟩
84 have hFyB : ∀ x, Real.log (Wy W).lo + 1 ≤ x → 0 ≤ Fb (Qs (Wy W).lo) x ∧ Fb (Qs (Wy W).lo) x ≤ 2 :=
85 fun x hx => ⟨(hFy x hx).1, by linarith [(hFy x hx).2.1]⟩
86 have hFnL : ∀ x x', Real.log W.lo + 1 ≤ x → Real.log W.lo + 1 ≤ x' →
87 |Fb (Qs W.lo) x - Fb (Qs W.lo) x'| ≤ 4 * Qs W.lo * |x - x'| :=
88 fun x x' hx hx' => (hFn x hx).2.2 x' hx'
89 have hFyL : ∀ x x', Real.log (Wy W).lo + 1 ≤ x → Real.log (Wy W).lo + 1 ≤ x' →
90 |Fb (Qs (Wy W).lo) x - Fb (Qs (Wy W).lo) x'| ≤ 4 * Qs (Wy W).lo * |x - x'| :=
91 fun x x' hx hx' => (hFy x hx).2.2 x' hx'
92 -- the window limits of `dq`
93 unfold dq
94 set a := Real.log W.lo - ell W + 3 with ha
95 set b := Real.log W.hi - ell W - 3 - 2 * Lt W τ with hb
96 have hell : ell W = 0.4 * Real.log W.lo := rfl
97 have hab : b - a = Xlen W τ := by
98 rw [ha, hb, hXdef, Win.len, Real.log_div (lt_trans hlo0 hW.lo_lt).ne' hlo0.ne', hell]
99 ring
100 have hw0 : 0 ≤ u' - u := sub_nonneg.2 huu
101 have hwb : a + (u' - u) ≤ b := by
102 have := hu.1
103 have := hu'.2
104 linarith
105 -- arguments stay in the regions where `F̄_n` and `F̄_y` are bounded and Lipschitz
106 have hAr : ∀ z, a ≤ z → Real.log W.lo + 1 ≤ z + u := fun z hz => by
107 have := hu.1
108 linarith [hell, ha]
109 have hBr : ∀ z, a ≤ z → Real.log (Wy W).lo + 1 ≤ z := fun z hz => by
110 linarith [hlo'log, hell, ha]
111 -- the integral over `[a, b]` with `u' = u + w`, after `x ↦ z - w`: `F̄_y` is evaluated on `[a, b]`
112 set K : ℝ → ℝ := fun z => |Fb (Qs W.lo) (z + u) - Fb (Qs (Wy W).lo) (z - (u' - u))| with hK_def
113 set J : ℝ → ℝ := fun z => |Fb (Qs W.lo) (z + u) - Fb (Qs (Wy W).lo) z| with hJ_def
114 have hIu' : (∫ x in a..b, |Fb (Qs W.lo) (x + u') - Fb (Qs (Wy W).lo) x|)
115 = ∫ z in (a + (u' - u))..(b + (u' - u)), K z := by
116 rw [← intervalIntegral.integral_comp_add_right K (u' - u)]
117 apply intervalIntegral.integral_congr
118 intro x _
119 simp only [hK_def]
120 rw [show x + (u' - u) + u = x + u' by ring, show x + (u' - u) - (u' - u) = x by ring]
121 have hKc : ContinuousOn K (Set.Icc (a + (u' - u)) (b + (u' - u))) := by
122 refine continuousOn_of_lip (C := 4 * Qs W.lo + 4 * Qs (Wy W).lo) ?_
123 intro z hz z' hz'
124 simp only [hK_def]
125 have hA := hFnL (z + u) (z' + u) (hAr z (by linarith [hz.1])) (hAr z' (by linarith [hz'.1]))
126 have hB := hFyL (z - (u' - u)) (z' - (u' - u))
127 (hBr _ (by linarith [hz.1])) (hBr _ (by linarith [hz'.1]))
128 rw [show z + u - (z' + u) = z - z' by ring] at hA
129 rw [show z - (u' - u) - (z' - (u' - u)) = z - z' by ring] at hB
130 refine (abs_abs_sub_le hA hB).trans (le_of_eq ?_)
131 ring
132 have hJc : ContinuousOn J (Set.Icc a b) := by
133 refine continuousOn_of_lip (C := 4 * Qs W.lo + 4 * Qs (Wy W).lo) ?_
134 intro z hz z' hz'
135 simp only [hJ_def]
136 have hA := hFnL (z + u) (z' + u) (hAr z hz.1) (hAr z' hz'.1)
137 have hB := hFyL z z' (hBr z hz.1) (hBr z' hz'.1)
138 rw [show z + u - (z' + u) = z - z' by ring] at hA
139 refine (abs_abs_sub_le hA hB).trans (le_of_eq ?_)
140 ring
141 have hKJ : ∀ z ∈ Set.Icc (a + (u' - u)) b, |K z - J z| ≤ 4 * Qs (Wy W).lo * (u' - u) := by
142 intro z hz
143 simp only [hK_def, hJ_def]
144 have h1 := abs_abs_sub_le_self (A := Fb (Qs W.lo) (z + u))
145 (B := Fb (Qs (Wy W).lo) (z - (u' - u))) (C := Fb (Qs (Wy W).lo) z)
146 have h2 := hFyL (z - (u' - u)) z (hBr _ (by linarith [hz.1])) (hBr z (by linarith [hz.1]))
147 rw [show z - (u' - u) - z = -(u' - u) by ring, abs_neg, abs_of_nonneg hw0] at h2
148 exact h1.trans h2
149 have hKb : ∀ z ∈ Set.Icc b (b + (u' - u)), |K z| ≤ 2 := by
150 intro z hz
151 simp only [hK_def]
152 have hA := hFnB (z + u) (hAr z (by linarith [hz.1]))
153 have hB := hFyB (z - (u' - u)) (hBr _ (by linarith [hz.1]))
154 rw [abs_of_nonneg (abs_nonneg _), abs_le]
155 constructor <;> linarith [hA.1, hA.2, hB.1, hB.2]
156 have hJb : ∀ z ∈ Set.Icc a (a + (u' - u)), |J z| ≤ 2 := by
157 intro z hz
158 simp only [hJ_def]
159 have hA := hFnB (z + u) (hAr z hz.1)
160 have hB := hFyB z (hBr z hz.1)
161 rw [abs_of_nonneg (abs_nonneg _), abs_le]
162 constructor <;> linarith [hA.1, hA.2, hB.1, hB.2]
163 have hbound := shift_bound hw0 hwb (mul_nonneg (by linarith) hw0) hKc hJc hKJ hKb hJb
164 have key : |(∫ x in a..b, |Fb (Qs W.lo) (x + u) - Fb (Qs (Wy W).lo) x|) -
165 (∫ x in a..b, |Fb (Qs W.lo) (x + u') - Fb (Qs (Wy W).lo) x|)| ≤
166 4 * Qs (Wy W).lo * (u' - u) * (b - a) + 2 * 2 * (u' - u) := by
167 rw [hIu', abs_sub_comm]
168 exact hbound
169 rw [hab] at key
170 have habs : |u - u'| = u' - u := by rw [abs_sub_comm]; exact abs_of_nonneg hw0
171 have hQX : 1 ≤ Qs (Wy W).lo * Xlen W τ := by nlinarith
172 have hw_le : u' - u ≤ (u' - u) * (Qs (Wy W).lo * Xlen W τ) := le_mul_of_one_le_right hw0 hQX
173 rw [← sub_div, abs_div, abs_of_pos hXpos, div_le_iff₀ hXpos, habs]
174 nlinarith [key, hw_le]
175
176end E424
177