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/MacroRigidity/Basic.lean

All files · 158 lines · source at the verified commit

1module
2
3public import E424.PropD
4
5@[expose] public section
6
7/-!
8# Section 6: extremal windows (`β*`, Lemma 26, cutting), all proved
9-/
10
11set_option linter.style.header false
12open Finset
13
14namespace E424
15
16/-- Cutting lemma: if `W.sum g ≤ c W.len` for all windows of ratio in `[η, tη]`, then for all windows of
17ratio at least `η`. Pieces of length exactly `η log lo` are cut off from the left. -/
18theorem cut_windows {η t c N : ℝ} (hη : 0 < η) (hη1 : η ≤ 1 / 1000) (ht : 21 / 10 ≤ t) (g : ℕ → ℝ)
19 (H : ∀ W : Win, 3 ≤ W.lo → W.lo < W.hi → N ≤ W.lo → η * Real.log W.lo ≤ W.len →
20 W.len ≤ t * η * Real.log W.lo → W.sum g ≤ c * W.len) :
21 ∀ W : Win, 3 ≤ W.lo → W.lo < W.hi → N ≤ W.lo → η * Real.log W.lo ≤ W.len →
22 W.sum g ≤ c * W.len := by
23 have key : ∀ n : ℕ, ∀ W : Win, W.len ≤ n * η → 3 ≤ W.lo → W.lo < W.hi → N ≤ W.lo →
24 η * Real.log W.lo ≤ W.len → W.sum g ≤ c * W.len := by
25 intro n
26 induction n with
27 | zero =>
28 intro W hn h3 hlt _ hl
29 exfalso
30 have hl1 : 1 < Real.log W.lo := by
31 rw [Real.lt_log_iff_exp_lt (by linarith)]; linarith [Real.exp_one_lt_d9]
32 have : W.len ≤ 0 := by simpa using hn
33 nlinarith
34 | succ n ih =>
35 intro W hn h3 hlt hN hl
36 by_cases hsmall : W.len ≤ t * η * Real.log W.lo
37 · exact H W h3 hlt hN hl hsmall
38 · rw [not_le] at hsmall
39 have hlo : 0 < W.lo := by linarith
40 have hl1 : 1 < Real.log W.lo := by
41 rw [Real.lt_log_iff_exp_lt hlo]; linarith [Real.exp_one_lt_d9]
42 set ℓ := η * Real.log W.lo with hℓ
43 have hℓ0 : 0 < ℓ := by positivity
44 set m := W.lo * Real.exp ℓ with hm
45 have hm0 : 0 < m := by positivity
46 have hlm : W.lo < m := by
47 have := Real.add_one_lt_exp hℓ0.ne'
48 rw [hm]; nlinarith
49 have hlogm : Real.log m = Real.log W.lo + ℓ := by
50 rw [hm, Real.log_mul hlo.ne' (Real.exp_pos _).ne', Real.log_exp]
51 have hlen : W.len = Real.log W.hi - Real.log W.lo := Real.log_div (by linarith) hlo.ne'
52 have hmhi : m < W.hi := by
53 rw [← Real.log_lt_log_iff hm0 (by linarith), hlogm]
54 have : ℓ < W.len := by
55 refine lt_of_le_of_lt ?_ hsmall
56 rw [hℓ, mul_assoc]; nlinarith
57 linarith
58 have h1len : (Win.mk W.lo m).len = ℓ := by
59 simp only [Win.len]
60 rw [Real.log_div hm0.ne' hlo.ne', hlogm]; ring
61 have h2len : (Win.mk m W.hi).len = W.len - ℓ := by
62 simp only [Win.len]
63 rw [Real.log_div (by linarith) hm0.ne', Real.log_div (by linarith) hlo.ne', hlogm]; ring
64 have hA := H ⟨W.lo, m⟩ h3 hlm hN h1len.ge (by
65 rw [h1len, hℓ]; change _ ≤ t * η * Real.log W.lo; nlinarith)
66 have hB := ih ⟨m, W.hi⟩ (by
67 rw [h2len]; push_cast at hn
68 have : η ≤ ℓ := by rw [hℓ]; nlinarith
69 linarith) (by change 3 ≤ m; linarith) hmhi (by change N ≤ m; linarith) (by
70 rw [h2len]; change η * Real.log m ≤ _
71 rw [hlogm]
72 have e1 : t * η * Real.log W.lo = t * ℓ := by rw [hℓ]; ring
73 rw [e1] at hsmall
74 have e2 : η * (Real.log W.lo + ℓ) = ℓ + η * ℓ := by rw [hℓ]; ring
75 rw [e2]; nlinarith)
76 have hsum := Win.sum_concat (g := g) hlm.le hmhi.le
77 have : W.sum g = (Win.mk W.lo m).sum g + (Win.mk m W.hi).sum g := by rw [hsum]
78 rw [this]
79 rw [h1len] at hA
80 rw [h2len] at hB
81 nlinarith
82 intro W h3 hlt hN hl
83 obtain ⟨n, hn⟩ := exists_nat_ge (W.len / η)
84 exact key n W (by rw [div_le_iff₀ hη] at hn; linarith) h3 hlt hN hl
85
86/-- The window `(lo, lo^{1+η}]`. -/
87theorem exists_adm {η : ℝ} (hη : 0 < η) (N : ℝ) : ∃ W : Win, W.Adm η N := by
88 set lo := max 3 N with hlo
89 have h3 : 3 ≤ lo := le_max_left _ _
90 have hl0 : 0 < lo := by linarith
91 have hl : 0 < Real.log lo := Real.log_pos (by linarith)
92 have hlen : (Win.mk lo (lo * Real.exp (η * Real.log lo))).len = η * Real.log lo := by
93 simp only [Win.len]
94 rw [mul_div_cancel_left₀ _ hl0.ne', Real.log_exp]
95 refine ⟨⟨lo, lo * Real.exp (η * Real.log lo)⟩, h3, ?_, le_max_right _ _, hlen.ge, ?_⟩
96 · have := Real.add_one_lt_exp (show η * Real.log lo ≠ 0 by positivity)
97 change lo < lo * _
98 have : 0 < η * Real.log lo := by positivity
99 nlinarith
100 · rw [hlen]; change _ ≤ 8 * η * Real.log lo
101 have : 0 < η * Real.log lo := by positivity
102 linarith
103
104/-- **β\*** (v2, section 6): upper and lower characterisation of the limsup. -/
105theorem exists_beta (η : ℝ) (hη : 0 < η) : ∃ β : ℝ, 0 ≤ β ∧
106 (∀ ε > 0, ∃ N : ℝ, ∀ W : Win, W.Adm η N → W.E F ≤ β + ε) ∧
107 (∀ ε > 0, ∀ N : ℝ, ∃ W : Win, W.Adm η N ∧ β - ε ≤ W.E F) := by
108 set V : ℕ → Set ℝ := fun N => {v | ∃ W : Win, W.Adm η N ∧ W.E F = v} with hV
109 have hne : ∀ N, (V N).Nonempty := fun N => by
110 obtain ⟨W, hW⟩ := exists_adm hη (N : ℝ); exact ⟨_, W, hW, rfl⟩
111 have h0 : ∀ N, ∀ v ∈ V N, 0 ≤ v := by
112 rintro N v ⟨W, hW, rfl⟩
113 exact Win.E_nonneg (hW.len_pos hη).le fun n _ => F_nonneg n
114 have hbd : ∀ N, BddAbove (V N) := fun N => by
115 refine ⟨1 * (1 + 1 / (η * 3)), ?_⟩
116 rintro v ⟨W, hW, rfl⟩
117 refine (E_le_const hη hW zero_le_one fun n _ => F_le_one n).trans ?_
118 have h1 := hW.three_le
119 have h2 := hW.one_lt_log
120 have h3 := hW.le_len
121 gcongr
122 all_goals nlinarith
123 have hs0 : ∀ N, 0 ≤ sSup (V N) := fun N => by
124 obtain ⟨v, hv⟩ := hne N
125 exact (h0 N v hv).trans (le_csSup (hbd N) hv)
126 have hbb : BddBelow (Set.range fun N => sSup (V N)) := ⟨0, by rintro _ ⟨N, rfl⟩; exact hs0 N⟩
127 refine ⟨⨅ N, sSup (V N), le_ciInf hs0, fun ε hε => ?_, fun ε hε N => ?_⟩
128 · obtain ⟨N, hN⟩ := exists_lt_of_ciInf_lt (show (⨅ N, sSup (V N)) < (⨅ N, sSup (V N)) + ε by linarith)
129 exact ⟨N, fun W hW => (le_csSup (hbd N) ⟨W, hW, rfl⟩).trans hN.le⟩
130 · obtain ⟨n, hn⟩ := exists_nat_ge N
131 have h1 : (⨅ N, sSup (V N)) - ε < sSup (V n) := by
132 have := ciInf_le hbb n
133 linarith
134 obtain ⟨v, ⟨W, hW, rfl⟩, hv⟩ := exists_lt_of_lt_csSup (hne n) h1
135 exact ⟨W, hW.mono hn, hv.le⟩
136
137/-- **Lemma 26**, choice of `W`, with ratio at most `2.1 η` (v2's `2η` is not attainable). -/
138theorem L26 (η : ℝ) (hη : 0 < η) (hη1 : η ≤ 1 / 1000) (β : ℝ)
139 (hβ : ∀ ε > 0, ∀ N : ℝ, ∃ W : Win, W.Adm η N ∧ β - ε ≤ W.E F) (ε : ℝ) (hε : 0 < ε) (N : ℝ) :
140 ∃ W : Win, W.Adm η N ∧ W.len ≤ 21 / 10 * η * Real.log W.lo ∧ β - ε ≤ W.E F := by
141 by_contra hcon
142 push Not at hcon
143 obtain ⟨W, hW, hWE⟩ := hβ (ε / 2) (by positivity) N
144 have := cut_windows hη hη1 le_rfl F (c := β - ε) (N := N) (fun W' h3 hlt hN hl hu => by
145 have hl1 : 0 < η * Real.log W'.lo := mul_pos hη (Real.log_pos (by linarith))
146 have hA : W'.Adm η N := ⟨h3, hlt, hN, hl, by linarith⟩
147 have := hcon W' hA hu
148 rw [Win.sum_eq_E_mul (hA.len_pos hη)]
149 exact mul_le_mul_of_nonneg_right this.le (hA.len_pos hη).le) W hW.three_le hW.lo_lt hW.le_lo hW.le_len
150 rw [Win.sum_eq_E_mul (hW.len_pos hη)] at this
151 have := le_of_mul_le_mul_right this (hW.len_pos hη)
152 linarith
153
154/-- Extremality at level `N`: `E_W F ≤ β + ε` for all windows of `𝓦(N)`. -/
155def Ext (η β ε Nε : ℝ) : Prop := ∀ W : Win, W.Adm η Nε → W.E F ≤ β + ε
156
157end E424
158