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/Rigidity/Rig.lean

All files · 198 lines · source at the verified commit

1module
2
3public import E424.Rigidity.L25Aux
4
5@[expose] public section
6
7/-!
8# Section 5: existence of the block families
9-/
10
11set_option linter.style.header false
12open Finset Filter
13
14namespace E424
15
16/-- The scales: for `t = log log lo` large, `J = ⌊t/20⌋` blocks fit below `exp √(log lo) = exp(e^{t/2})`. -/
17theorem scales_fit : ∃ t0 : ℝ, ∀ t ≥ t0, t ^ 3 * 200 ^ ⌊t / 20⌋₊ ≤ Real.exp (t / 2) := by
18 have h := tendsto_rpow_mul_exp_neg_mul_atTop_nhds_zero 3 (1 / 10) (by norm_num)
19 obtain ⟨t0, ht0⟩ := eventually_atTop.mp (h.eventually (gt_mem_nhds one_pos))
20 refine ⟨max t0 1, fun t ht => ?_⟩
21 have h1 := ht0 t ((le_max_left _ _).trans ht)
22 have ht1 : 1 ≤ t := (le_max_right _ _).trans ht
23 rw [show (3 : ℝ) = ((3 : ℕ) : ℝ) by norm_num, Real.rpow_natCast] at h1
24 have e0 : (200 : ℝ) ≤ Real.exp 8 := by
25 have h2 : (2 : ℝ) ≤ Real.exp 1 := by linarith [Real.exp_one_gt_d9]
26 calc (200 : ℝ) ≤ 2 ^ 8 := by norm_num
27 _ ≤ Real.exp 1 ^ 8 := by gcongr
28 _ = Real.exp 8 := by rw [← Real.exp_nat_mul]; norm_num
29 have e1 : (200 : ℝ) ^ ⌊t / 20⌋₊ ≤ Real.exp (2 * t / 5) := by
30 calc (200 : ℝ) ^ ⌊t / 20⌋₊ ≤ Real.exp 8 ^ ⌊t / 20⌋₊ := by gcongr
31 _ = Real.exp (⌊t / 20⌋₊ * 8) := by rw [← Real.exp_nat_mul]
32 _ ≤ _ := by
33 rw [Real.exp_le_exp]
34 have := Nat.floor_le (show 0 ≤ t / 20 by positivity)
35 linarith
36 have e2 : t ^ 3 ≤ Real.exp (t / 10) := by
37 have : t ^ 3 = t ^ 3 * Real.exp (-(1 / 10) * t) * Real.exp (t / 10) := by
38 rw [mul_assoc, ← Real.exp_add, show -(1 / 10) * t + t / 10 = 0 by ring, Real.exp_zero, mul_one]
39 rw [this]
40 exact mul_le_of_le_one_left (Real.exp_pos _).le h1.le
41 calc t ^ 3 * 200 ^ ⌊t / 20⌋₊ ≤ Real.exp (t / 10) * Real.exp (2 * t / 5) := by gcongr
42 _ = Real.exp (t / 2) := by rw [← Real.exp_add]; congr 1; ring
43
44/-- Mass of a union of blocks. -/
45theorem ms_blocks {J : ℕ} {z : ℕ → ℝ} {S : ℕ → Finset ℕ} (hz : ∀ j, 1 ≤ z j)
46 (hS : ∀ j < J, IsFam (z j) (S j)) (hzz : ∀ j, z j ^ 200 = z (j + 1)) :
47 ms ((range J).biUnion S) = ∑ j ∈ range J, ms (S j) := by
48 have hmono : Monotone z := monotone_nat_of_le_succ fun j => by
49 rw [← hzz]; exact le_self_pow₀ (hz j) (by norm_num)
50 have key : ∀ i j, i < j → i < J → j < J → Disjoint (S i) (S j) := by
51 intro i j hij hi hj
52 refine disjoint_left.mpr fun s hs hs' => ?_
53 have h1 := (hS i hi s hs).2.1
54 have h2 := (hS j hj s hs').1
55 rw [hzz] at h1
56 have h3 : z (i + 1) ≤ z j := hmono hij
57 linarith
58 unfold ms
59 rw [sum_biUnion]
60 intro i hi j hj hij
61 have hi := mem_range.mp hi
62 have hj := mem_range.mp hj
63 rcases lt_or_gt_of_ne hij with h | h
64 · exact key i j h hi hj
65 · exact (key j i h hj hi).symm
66
67set_option maxHeartbeats 1000000 in
68/-- Existence of the block families (from L11, L15, L16, L12; `z_1 = exp((log log lo)^3)`,
69`z_{j+1} = z_j^200`). `K` is absolute. -/
70theorem exists_rig : ∃ K ≥ (1 : ℝ), ∀ η : ℝ, 0 < η → ∃ N0 : ℝ, ∀ W : Win, W.Adm η N0 →
71 ∃ (J : ℕ) (T : ℕ → Finset ℕ), 3 ≤ J ∧ (J : ℝ) ≤ K * Real.log (Real.log W.lo) ∧
72 Real.log (Real.log W.lo) ≤ K * J ∧
73 ∀ ρ : ℕ, ρ = 53 ∨ ρ = 23 → RigHyp K W J ρ (T ρ) := by
74 obtain ⟨cS, hcS, z0, h11⟩ := L11
75 obtain ⟨Cm, hCm, hmass⟩ := L12_mass
76 obtain ⟨C15, hC15, h15⟩ := L15
77 obtain ⟨C16, hC16, h16⟩ := L16
78 obtain ⟨t0, hfit⟩ := scales_fit
79 set K : ℝ := 40 + 1 / cS + Cm + C15 + (C16 + 1) with hKdef
80 have hcS' : 0 < 1 / cS := by positivity
81 refine ⟨K, by linarith, fun η hη => ?_⟩
82 obtain ⟨N1, h1⟩ := tiny_le η hη 4 0
83 have hll : Tendsto (fun lo : ℝ => Real.log (Real.log lo)) atTop atTop :=
84 Real.tendsto_log_atTop.comp Real.tendsto_log_atTop
85 obtain ⟨N2, h2⟩ := eventually_atTop.mp (hll.eventually_ge_atTop (max (max t0 60) (|z0| + 3)))
86 refine ⟨max N1 N2, fun W hW => ?_⟩
87 have hL := hW.len_pos hη
88 have hlo := hW.lo_pos
89 have hl := hW.one_lt_log
90 have hq := h1 W (hW.mono (le_max_left _ _))
91 have ht := h2 W.lo ((le_max_right _ _).trans hW.le_lo)
92 set l := Real.log W.lo with hldef
93 set t := Real.log l with htdef
94 have ht0 : t0 ≤ t := (le_max_left _ _).trans ((le_max_left _ _).trans ht)
95 have ht60 : 60 ≤ t := (le_max_right _ _).trans ((le_max_left _ _).trans ht)
96 have htz : |z0| + 3 ≤ t := (le_max_right _ _).trans ht
97 set J := ⌊t / 20⌋₊ with hJ
98 have hJle : (J : ℝ) ≤ t / 20 := Nat.floor_le (by positivity)
99 have hJge : t / 20 < J + 1 := Nat.lt_floor_add_one _
100 have hJ3 : 3 ≤ J := Nat.le_floor (by push_cast; linarith)
101 have hJ0 : (0 : ℝ) < J := by positivity
102 have hfitt := hfit t ht0
103 have hsqrt : Real.exp (t / 2) = Real.sqrt l := by
104 rw [Real.sqrt_eq_rpow, Real.rpow_def_of_pos (by linarith), ← htdef]; congr 1; ring
105 set z : ℕ → ℝ := fun j => Real.exp (t ^ 3 * 200 ^ j) with hz
106 have hzz : ∀ j, z j ^ 200 = z (j + 1) := fun j => by
107 simp only [hz]; rw [← Real.exp_nat_mul]; congr 1; push_cast; ring
108 have hzt : ∀ j, t ≤ z j := fun j => by
109 have e1 : t ≤ t ^ 3 * 200 ^ j := by
110 have : t ≤ t ^ 3 := le_self_pow₀ (by linarith) (by norm_num)
111 have h3 : (1 : ℝ) ≤ 200 ^ j := one_le_pow₀ (by norm_num)
112 have : t ^ 3 * 1 ≤ t ^ 3 * 200 ^ j := by gcongr
113 linarith
114 have := Real.add_one_le_exp (t ^ 3 * 200 ^ j)
115 simp only [hz]; linarith
116 have hz1 : ∀ j, 1 ≤ z j := fun j => by linarith [hzt j]
117 have hex : ∀ ρ j : ℕ, ∃ S : Finset ℕ, (ρ = 53 ∨ ρ = 23) → BlockFam cS (z j) ρ S := fun ρ j => by
118 by_cases hρ : ρ = 53 ∨ ρ = 23
119 · obtain ⟨S, hS⟩ := h11 (z j) (by linarith [hzt j, le_abs_self z0]) ρ hρ
120 exact ⟨S, fun _ => hS⟩
121 · exact ⟨∅, fun h => absurd h hρ⟩
122 choose S hS using hex
123 refine ⟨J, fun ρ => (range J).biUnion (S ρ), hJ3, ?_, ?_, fun ρ hρ => ?_⟩
124 · have : 1 * t ≤ K * t := by gcongr; linarith
125 linarith
126 · have h40 : t ≤ 40 * J := by linarith
127 have : 40 * (J : ℝ) ≤ K * J := by gcongr; linarith
128 linarith
129 have hfam : ∀ j, IsFam (z j) (S ρ j) := fun j => (hS ρ j hρ).fam
130 set T := (range J).biUnion (S ρ) with hT
131 have hmsT : ms T = ∑ j ∈ range J, ms (S ρ j) := ms_blocks hz1 (fun j _ => hfam j) hzz
132 have hblocks : IsBlocks J T := ⟨z, S ρ, fun j _ => ⟨by linarith [hzt j], hfam j⟩,
133 fun j _ => (hzz j).le, hT⟩
134 have hmem : ∀ s ∈ T, s ∈ A ∧ s % 54 = ρ ∧ (s : ℝ) ≤ Real.exp (Real.sqrt l) := by
135 intro s hs
136 obtain ⟨j, hj, hsj⟩ := mem_biUnion.mp hs
137 have hj := mem_range.mp hj
138 obtain ⟨a1, a2, -⟩ := (hS ρ j hρ).mem s hsj
139 refine ⟨a1, a2, (hfam j s hsj).2.1.trans ?_⟩
140 rw [hzz]; simp only [hz]
141 rw [Real.exp_le_exp, ← hsqrt]
142 refine le_trans ?_ hfitt
143 have : (200 : ℝ) ^ (j + 1) ≤ 200 ^ J := pow_le_pow_right₀ (by norm_num) hj
144 gcongr
145 set E := Real.exp (Real.sqrt l) with hE
146 have hE1 : 1 ≤ E := Real.one_le_exp (Real.sqrt_nonneg _)
147 have hcard : (T.card : ℝ) ≤ E := card_le_of_le (by positivity) fun s hs =>
148 ⟨by have := (hmem s hs).2.1; omega, (hmem s hs).2.2⟩
149 have hlow1 : 1 ≤ W.lo := by linarith [hW.three_le]
150 have hq1 : W.lo ^ (-(0.01 : ℝ)) ≤ 1 := Real.rpow_le_one_of_one_le_of_nonpos hlow1 (by norm_num)
151 set q := W.lo ^ (-(0.01 : ℝ)) with hqdef
152 have hq' : 16 * E ^ 4 / (W.lo * W.len) ≤ q := by
153 refine le_trans (le_of_eq ?_) hq
154 ring
155 have hlohi := hW.lo_lt.le
156 refine ⟨hmem, ?_, ?_, ?_, fun H hH => ?_⟩
157 · have h3 : (J : ℝ) * cS ≤ ms T := by
158 rw [hmsT, ← nsmul_eq_mul, ← card_range J, ← sum_const, card_range]
159 exact sum_le_sum fun j _ => (hS ρ j hρ).mass
160 calc (J : ℝ) = 1 / cS * (J * cS) := by field_simp
161 _ ≤ 1 / cS * ms T := by gcongr
162 _ ≤ K * ms T := by
163 have := ms_nonneg T
164 gcongr; linarith
165 · have h3 : ms T ≤ J * Cm := by
166 rw [hmsT, ← nsmul_eq_mul, ← card_range J, ← sum_const, card_range]
167 exact sum_le_sum fun j _ => hmass (z j) (by linarith [hzt j]) _ (hfam j)
168 have : Cm * (J : ℝ) ≤ K * J := by gcongr; linarith
169 linarith
170 · have h3 := h16 J T hblocks W hlow1 hlohi
171 have e1 : W.E (fun n => (rc T n - ms T) ^ 4) ≤
172 C16 * (J : ℝ) ^ 2 + 16 * (T.card : ℝ) ^ 4 / (W.lo * W.len) := by
173 unfold Win.E
174 rw [div_le_iff₀ hL]
175 refine h3.trans (le_of_eq ?_)
176 field_simp
177 have e2 : 16 * (T.card : ℝ) ^ 4 / (W.lo * W.len) ≤ 16 * E ^ 4 / (W.lo * W.len) := by gcongr
178 have e3 : 1 ≤ (J : ℝ) ^ 2 := one_le_pow₀ (by exact_mod_cast (by omega : 1 ≤ J))
179 have e4 : (C16 + 1) * (J : ℝ) ^ 2 ≤ K * (J : ℝ) ^ 2 := by gcongr; linarith
180 linarith
181 · have h3 := h15 J T hblocks W hlow1 hlohi H hH 54 (Or.inr rfl)
182 have hH0 : (0 : ℝ) < H := by exact_mod_cast hH
183 have e1 : W.E (fun n => ((∑ i ∈ Icc 1 H, rc T (n + 54 * i)) / H - ms T) ^ 2) ≤
184 C15 * J / H + 4 * (T.card : ℝ) ^ 2 / (W.lo * W.len) := by
185 unfold Win.E
186 rw [div_le_iff₀ hL]
187 refine h3.trans (le_of_eq ?_)
188 field_simp
189 have e2 : 4 * (T.card : ℝ) ^ 2 / (W.lo * W.len) ≤ 16 * E ^ 4 / (W.lo * W.len) := by
190 have : (T.card : ℝ) ^ 2 ≤ E ^ 4 := by
191 calc (T.card : ℝ) ^ 2 ≤ E ^ 2 := by gcongr
192 _ ≤ E ^ 4 := pow_le_pow_right₀ hE1 (by norm_num)
193 gcongr; norm_num
194 have e3 : C15 * J / H ≤ K * J / H := by gcongr; linarith
195 linarith
196
197end E424
198