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/L38Aux.lean

All files · 110 lines · source at the verified commit

1module
2
3public import E424.LowBand.Defs
4
5@[expose] public section
6
7/-!
8# Lemma 38: helpers
9
10`exp_facts`: elementary exponential bounds for small `lam`.
11`card_mul_le_volume`: `#H` disjoint cells of length `lam` inside a compact `U` give `#H * lam ≤ volume U`.
12`Xlen_nonneg`, `dq_nonneg`: `Xlen ≥ 0` makes `dq` nonnegative.
13`Y5_eq_rpow`, `Qs_Wy`: `W.lo = Y5^(5/2)` and `Qs (Wy W).lo = Y5^0.885`, with `Y5 = lo^0.4`.
14-/
15
16set_option linter.style.header false
17open Finset MeasureTheory
18
19namespace E424
20
21lemma exp_facts {lam : ℝ} (h0 : 0 ≤ lam) (h1 : lam ≤ 1 / 2) :
22 2 * lam ≤ Real.exp (2 * lam) - 1 ∧ Real.exp (2 * lam) - 1 ≤ 4 * lam ∧
23 1 / 2 ≤ Real.exp (-lam) := by
24 have hlo := Real.add_one_le_exp (2 * lam)
25 have hup := Real.abs_exp_sub_one_sub_id_le (x := 2 * lam)
26 (by rw [abs_of_nonneg (by linarith)]; linarith)
27 have hneg := Real.add_one_le_exp (-lam)
28 refine ⟨by linarith, ?_, by linarith⟩
29 have := (abs_le.1 hup).2
30 nlinarith [mul_nonneg h0 (sub_nonneg.2 h1)]
31
32/-- `#H` cells `[ell + k lam, ell + (k+1) lam)` (`k ∈ H`) inside a compact `U` have total length
33`#H * lam ≤ volume U`. -/
34lemma card_mul_le_volume {U : Set ℝ} (hU : IsCompact U) {ell lam : ℝ} (hlam : 0 < lam)
35 {H : Finset ℕ} (hsub : ∀ k ∈ H, Set.Ico (ell + k * lam) (ell + (k + 1) * lam) ⊆ U) :
36 (H.card : ℝ) * lam ≤ (volume U).toReal := by
37 have key : ∀ a b : ℕ, a < b →
38 Disjoint (Set.Ico (ell + a * lam) (ell + (a + 1) * lam))
39 (Set.Ico (ell + b * lam) (ell + (b + 1) * lam)) := by
40 intro a b hab
41 rw [Set.disjoint_left]
42 intro u hu hu'
43 have h1 : ((a : ℝ) + 1) ≤ b := by exact_mod_cast hab
44 have h2 : ((a : ℝ) + 1) * lam ≤ b * lam := mul_le_mul_of_nonneg_right h1 hlam.le
45 have := hu.2
46 have := hu'.1
47 linarith
48 have hdisj : (H : Set ℕ).PairwiseDisjoint
49 (fun k : ℕ => Set.Ico (ell + k * lam) (ell + (k + 1) * lam)) := by
50 intro a _ b _ hne
51 rcases lt_or_gt_of_ne hne with h | h
52 · exact key a b h
53 · exact (key b a h).symm
54 have hcell : ∀ k : ℕ, (volume (Set.Ico (ell + k * lam) (ell + (k + 1) * lam))).toReal = lam := by
55 intro k
56 have e : (ell + ((k : ℝ) + 1) * lam) - (ell + k * lam) = lam := by ring
57 rw [Real.volume_Ico, e, ENNReal.toReal_ofReal hlam.le]
58 have hunion : (volume (⋃ k ∈ H, Set.Ico (ell + k * lam) (ell + (k + 1) * lam))).toReal
59 = (H.card : ℝ) * lam := by
60 rw [measure_biUnion_finset hdisj (fun k _ => measurableSet_Ico),
61 ENNReal.toReal_sum (fun k _ => by rw [Real.volume_Ico]; exact ENNReal.ofReal_ne_top),
62 Finset.sum_congr rfl (fun k _ => hcell k), Finset.sum_const, nsmul_eq_mul]
63 have hle : volume (⋃ k ∈ H, Set.Ico (ell + k * lam) (ell + (k + 1) * lam)) ≤ volume U :=
64 measure_mono (Set.iUnion₂_subset fun k hk => hsub k hk)
65 rw [← hunion]
66 exact ENNReal.toReal_mono hU.measure_lt_top.ne hle
67
68/-- `Xlen ≥ 0` when `log lo ≥ 8/η`, since `Lt ≤ η log lo / 10`. -/
69lemma Xlen_nonneg {W : Win} {η τ N : ℝ} (hW : W.Adm η N) (hη : 0 < η)
70 (hτη : τ ≤ η / 4) (hlog : 8 / η ≤ Real.log W.lo) : 0 ≤ Xlen W τ := by
71 have hL : 0 ≤ Real.log W.lo := le_trans (by positivity) hlog
72 have h8 : 8 ≤ η * Real.log W.lo := by
73 rw [div_le_iff₀ hη] at hlog
74 linarith
75 have hm : τ * (0.4 * Real.log W.lo) ≤ η / 4 * (0.4 * Real.log W.lo) :=
76 mul_le_mul_of_nonneg_right hτη (by positivity)
77 have hle := hW.le_len
78 unfold Xlen Lt ell
79 nlinarith
80
81/-- `dq` is nonnegative when `Xlen ≥ 0`. -/
82lemma dq_nonneg {W : Win} {τ : ℝ} (hX : 0 ≤ Xlen W τ) (hlo : 0 < W.lo) (hhi : 0 < W.hi)
83 (u : ℝ) : 0 ≤ dq W τ u := by
84 unfold dq
85 refine div_nonneg (intervalIntegral.integral_nonneg ?_ (fun x _ => abs_nonneg _)) hX
86 have hlen : W.len = Real.log W.hi - Real.log W.lo := Real.log_div hhi.ne' hlo.ne'
87 unfold Xlen at hX
88 linarith
89
90/-- `W.lo = Y5^(5/2)`, since `Y5 = lo^(2/5)`. -/
91lemma lo_eq_Y5_rpow {W : Win} (hlo : 0 < W.lo) : W.lo = Y5 W ^ (5 / 2 : ℝ) := by
92 unfold Y5
93 rw [← Real.rpow_mul hlo.le]
94 norm_num
95
96/-- `Qs (Wy W).lo = Y5^0.885`: `W.lo / Y5 = Y5^(3/2)` and `Qs` raises it to `0.59`. -/
97lemma Qs_Wy {W : Win} (hlo : 0 < W.lo) : Qs (Wy W).lo = Y5 W ^ (0.885 : ℝ) := by
98 have hY : 0 < Y5 W := by unfold Y5; positivity
99 have h1 : (Wy W).lo = Y5 W ^ (3 / 2 : ℝ) := by
100 show W.lo / Y5 W = _
101 have e : Y5 W ^ (5 / 2 : ℝ) = Y5 W ^ (3 / 2 : ℝ) * Y5 W := by
102 rw [← Real.rpow_add_one hY.ne']
103 norm_num
104 rw [div_eq_iff hY.ne', lo_eq_Y5_rpow hlo, e]
105 unfold Qs
106 rw [h1, ← Real.rpow_mul hY.le]
107 norm_num
108
109end E424
110