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

All files · 193 lines · source at the verified commit

1module
2
3public import E424.Rigidity.L25Aux
4
5@[expose] public section
6
7/-!
8# Section 5: Lemma 25, one bootstrap step
9-/
10
11set_option linter.style.header false
12open Finset
13
14namespace E424
15
16set_option maxHeartbeats 1000000 in
17/-- **Lemma 25**, one step of the bootstrap: `y` bounds all `D_W h`, `h ≤ 54 J^6`, and `μ_W(G1)`. -/
18theorem L25_step (K η : ℝ) (hη : 0 < η) : ∃ C > 0, ∃ N0 : ℝ, ∀ W J T x, Setup K η N0 W J T x →
19 ∀ y : ℝ, (∀ h ≤ 54 * J ^ 6, W.D h ≤ y) → W.mu G1 ≤ y →
20 ∀ ρ : ℕ, ρ = 53 ∨ ρ = 23 → ∀ a < 54,
21 Dl W (T ρ) a ≤ C * ((J : ℝ) ^ (-(2 : ℝ)) + (J : ℝ) ^ (-(1 / 2) : ℝ) * y ^ (3 / 4 : ℝ) + W.edge) := by
22 set a : ℝ := 54 * K ^ 6 * (K ^ 2 + 1) ^ 4 + 1 with ha
23 have ha1 : 1 ≤ a := by
24 have : 0 ≤ 54 * K ^ 6 * (K ^ 2 + 1) ^ 4 := by positivity
25 linarith
26 obtain ⟨N1, h1⟩ := tiny_le η hη a 10
27 obtain ⟨N2, h2⟩ := lo_rpow_le η 1 2 one_pos
28 refine ⟨4 * (|K| * (|K| + 1)) + |K| + |K| * (|K| + 2) + |K| ^ 2 + 1, by positivity, max N1 N2,
29 fun W J T x hS y hD hG ρ hρ r hr => ?_⟩
30 have hA := hS.adm
31 have hL := hA.len_pos hη
32 have hlo := hA.lo_pos
33 have hl := hA.one_lt_log
34 have hR := hS.rig ρ hρ
35 have hM := hR.ms_pos hS.three_le
36 have hK := hR.K_pos hS.three_le
37 have hJ0 : (0 : ℝ) < J := by have := hS.three_le; positivity
38 have hJ1 : (1 : ℝ) ≤ J := by have := hS.three_le; exact_mod_cast (by omega : 1 ≤ J)
39 have hy : 0 ≤ y := (D_nonneg hη hA 0).trans (hD 0 (by positivity))
40 have hq := h1 W (hA.mono (le_max_left _ _))
41 have hq2 := h2 W (hA.mono (le_max_right _ _))
42 rw [abs_of_pos hK]
43 set q := W.lo ^ (-(0.01 : ℝ)) with hqdef
44 have hq0 : 0 < q := Real.rpow_pos_of_pos hlo _
45 set l := Real.log W.lo with hldef
46 set E := Real.exp (Real.sqrt l) with hE
47 have hE1 : 1 ≤ E := Real.one_le_exp (Real.sqrt_nonneg _)
48 set e := 4 / (W.lo * W.len) with he
49 have he0 : 0 < e := by positivity
50 have hJl : (J : ℝ) ≤ K * l := hS.J_le.trans (by
51 gcongr; exact Real.log_le_self (by linarith))
52 have hcard : ((T ρ).card : ℝ) ≤ E := card_le_of_le (by positivity) fun s hs =>
53 ⟨by have := (hR.mem s hs).2.1; omega, (hR.mem s hs).2.2⟩
54 set M := ms (T ρ) with hMdef
55 set b : ℝ := M + (T ρ).card with hb
56 have hb0 : 0 ≤ b := by positivity
57 have hbB : b ≤ (K ^ 2 + 1) * l * E := by
58 have e1 : M ≤ K * (K * l) := hR.ms_le.trans (by gcongr)
59 have e2 : K * (K * l) ≤ K ^ 2 * l * E := by
60 calc K * (K * l) = K ^ 2 * l * 1 := by ring
61 _ ≤ _ := by gcongr
62 have e3 : 1 * E ≤ l * E := by gcongr
63 calc b ≤ K ^ 2 * l * E + l * E := by rw [hb]; linarith
64 _ = _ := by ring
65 have hBig1 : 1 ≤ (K ^ 2 + 1) * l * E := by
66 have : 1 ≤ K ^ 2 + 1 := by nlinarith
67 have : 1 ≤ (K ^ 2 + 1) * l := by nlinarith
68 nlinarith
69 have hH6 : ((J ^ 6 : ℕ) : ℝ) ≤ K ^ 6 * l ^ 6 := by
70 push_cast
71 calc (J : ℝ) ^ 6 ≤ (K * l) ^ 6 := by gcongr
72 _ = _ := by ring
73 have hmain : ∀ u : ℝ, 0 ≤ u → u ≤ ((K ^ 2 + 1) * l * E) ^ 4 → 54 * ((J ^ 6 : ℕ) : ℝ) * u * e ≤ q := by
74 intro u hu0 hu
75 refine le_trans ?_ hq
76 calc 54 * ((J ^ 6 : ℕ) : ℝ) * u * e ≤ 54 * (K ^ 6 * l ^ 6) * ((K ^ 2 + 1) * l * E) ^ 4 * e := by
77 gcongr
78 _ = (54 * K ^ 6 * (K ^ 2 + 1) ^ 4) * l ^ 10 * E ^ 4 * e := by ring
79 _ ≤ a * l ^ 10 * E ^ 4 * e := by gcongr; linarith
80 have t1 := hmain (b ^ 4) (by positivity) (by gcongr)
81 have t2 := hmain b hb0 (hbB.trans (le_self_pow₀ hBig1 (by norm_num)))
82 have heq : e ≤ q := by
83 refine le_trans ?_ hq
84 calc e = 1 * 1 ^ 10 * 1 ^ 4 * e := by ring
85 _ ≤ a * l ^ 10 * E ^ 4 * e := by gcongr
86 -- `q ≤ 1/l² ≤ 1/l ≤ edge²`
87 have hed := edge_pos hA
88 have hed1 := edge_le_one hA
89 have hil := inv_log_le_edge hA
90 have hil' : 1 / l ≤ W.edge := hil.trans (by
91 rw [sq]; exact mul_le_of_le_one_left hed.le hed1)
92 have hqil : l * q ≤ 1 / l := by
93 rw [one_mul] at hq2
94 calc l * q ≤ l * (1 / l ^ 2) := by gcongr
95 _ = 1 / l := by field_simp
96 have hql : q ≤ 1 / l := (le_mul_of_one_le_left hq0.le hl.le).trans hqil
97 have hq1 : q ≤ 1 := by linarith
98 have hcore := shift_core hη hA (T ρ) (H := J ^ 6) (Nat.one_le_pow _ _ (by have := hS.three_le; omega))
99 (fun n => ind (n % 54 = r)) (fun _ => ind_nonneg _) (fun _ => ind_le_one _)
100 (fun n i => by simp only [Nat.add_mul_mod_self_left]) (y := y) (t := (J : ℝ) ^ 2) (by positivity) he
101 (fun i hi => hD _ (by have := (mem_Icc.mp hi).2; gcongr)) hG hR.m4
102 (hR.m2 (J ^ 6) (Nat.one_le_pow _ _ (by have := hS.three_le; omega)))
103 -- simplify the three terms
104 have hV : (K * (J : ℝ) ^ 2 + 54 * ((J ^ 6 : ℕ) : ℝ) * b ^ 4 * e) ^ (1 / 4 : ℝ) ≤
105 (K + 1) * (J : ℝ) ^ (1 / 2 : ℝ) := by
106 have e1 : K * (J : ℝ) ^ 2 + 54 * ((J ^ 6 : ℕ) : ℝ) * b ^ 4 * e ≤ (K + 1) * (J : ℝ) ^ 2 := by
107 have : 1 ≤ (J : ℝ) ^ 2 := one_le_pow₀ hJ1
108 linarith
109 refine (Real.rpow_le_rpow (by positivity) e1 (by norm_num)).trans ?_
110 rw [Real.mul_rpow (by positivity) (by positivity), ← Real.rpow_natCast, ← Real.rpow_mul hJ0.le]
111 norm_num
112 gcongr
113 calc (K + 1) ^ (1 / 4 : ℝ) ≤ (K + 1) ^ (1 : ℝ) :=
114 Real.rpow_le_rpow_of_exponent_le (by linarith) (by norm_num)
115 _ = K + 1 := Real.rpow_one _
116 have hy34 : (y + e) ^ (3 / 4 : ℝ) ≤ y ^ (3 / 4 : ℝ) + W.edge := by
117 refine (rpow34_add hy he0.le).trans ?_
118 have := rpow34_le_edge hA he0.le zero_le_one (by rw [one_mul]; exact heq.trans hql)
119 rw [Real.one_rpow, one_mul] at this
120 linarith
121 have hy340 : 0 ≤ y ^ (3 / 4 : ℝ) := by positivity
122 set Y := y ^ (3 / 4 : ℝ) with hY
123 set R := (J : ℝ) ^ (-(1 / 2) : ℝ) with hRdef
124 have hR0 : 0 < R := Real.rpow_pos_of_pos hJ0 _
125 have hR1 : R ≤ 1 := Real.rpow_le_one_of_one_le_of_nonpos hJ1 (by norm_num)
126 have hJR : (J : ℝ) ^ (1 / 2 : ℝ) = R * J := by
127 rw [hRdef]; nth_rewrite 3 [← Real.rpow_one (J : ℝ)]
128 rw [← Real.rpow_add hJ0]; norm_num
129 have hP : (J : ℝ) ^ (-(2 : ℝ)) = 1 / (J : ℝ) ^ 2 := by
130 rw [Real.rpow_neg hJ0.le, one_div]; norm_num
131 rw [hP]
132 set P := 1 / (J : ℝ) ^ 2 with hPdef
133 have hP0 : 0 < P := by positivity
134 have hP1 : P ≤ 1 := by rw [hPdef, div_le_one (by positivity)]; exact one_le_pow₀ hJ1
135 have c1 : 2 * ((y + e) ^ (3 / 4 : ℝ) * (K * (J : ℝ) ^ 2 + 54 * ((J ^ 6 : ℕ) : ℝ) * b ^ 4 * e) ^ (1 / 4 : ℝ)) ≤
136 2 * (K + 1) * (R * Y + W.edge) * J := by
137 calc _ ≤ 2 * ((Y + W.edge) * ((K + 1) * (J : ℝ) ^ (1 / 2 : ℝ))) := by gcongr
138 _ = 2 * (K + 1) * (R * Y + R * W.edge) * J := by rw [hJR]; ring
139 _ ≤ 2 * (K + 1) * (R * Y + 1 * W.edge) * J := by gcongr
140 _ = _ := by rw [one_mul]
141 have c2 : 54 * ((J ^ 6 : ℕ) : ℝ) * b * e ≤ W.edge * J := by
142 have : W.edge * 1 ≤ W.edge * J := by gcongr
143 linarith
144 have c3 : (J : ℝ) ^ 2 * (K * J / ((J ^ 6 : ℕ) : ℝ) + q) + (1 + e) / (J : ℝ) ^ 2 ≤
145 ((K + 2) * P + K * W.edge) * J := by
146 have d1 : (J : ℝ) ^ 2 * (K * J / ((J ^ 6 : ℕ) : ℝ)) ≤ K * P * J := by
147 have : (J : ℝ) ^ 2 * (K * J / ((J ^ 6 : ℕ) : ℝ)) = K * P * (1 / J) := by
148 rw [hPdef]; push_cast; field_simp
149 rw [this]
150 gcongr
151 rw [div_le_iff₀ hJ0]; nlinarith
152 have d2 : (J : ℝ) ^ 2 * q ≤ K * W.edge * J := by
153 calc (J : ℝ) ^ 2 * q = J * q * J := by ring
154 _ ≤ (K * l) * q * J := by gcongr
155 _ = K * (l * q) * J := by ring
156 _ ≤ K * W.edge * J := by gcongr; linarith
157 have d3 : (1 + e) / (J : ℝ) ^ 2 ≤ 2 * P * J := by
158 calc (1 + e) / (J : ℝ) ^ 2 = (1 + e) * P := by rw [hPdef]; ring
159 _ ≤ 2 * P := by gcongr; linarith
160 _ ≤ 2 * P * J := le_mul_of_one_le_right (by positivity) hJ1
161 linarith
162 unfold Dl
163 rw [div_le_iff₀ hM]
164 refine hcore.trans ((add_le_add (add_le_add c1 c2) c3).trans ?_)
165 have hJM := hR.le_ms
166 have hed0 := hed.le
167 set D := W.edge with hDdef
168 have hRY : 0 ≤ R * Y := by positivity
169 calc 2 * (K + 1) * (R * Y + D) * J + D * J + ((K + 2) * P + K * D) * J
170 = (2 * (K + 1) * (R * Y + D) + D + ((K + 2) * P + K * D)) * J := by ring
171 _ ≤ (2 * (K + 1) * (R * Y + D) + D + ((K + 2) * P + K * D)) * (K * M) := by gcongr
172 _ = (K * (2 * (K + 1) * (R * Y + D) + D + ((K + 2) * P + K * D))) * M := by ring
173 _ ≤ _ := by
174 refine mul_le_mul_of_nonneg_right ?_ hM.le
175 set C := 4 * (K * (K + 1)) + K + K * (K + 2) + K ^ 2 + 1 with hC
176 have hCe : C = 6 * K ^ 2 + 7 * K + 1 := by rw [hC]; ring
177 have hKK : 0 ≤ K ^ 2 := sq_nonneg K
178 have f1 : K * (2 * (K + 1)) ≤ C := by
179 have : K * (2 * (K + 1)) = 2 * K ^ 2 + 2 * K := by ring
180 linarith
181 have f2 : K * (K + 2) ≤ C := by
182 have : K * (K + 2) = K ^ 2 + 2 * K := by ring
183 linarith
184 have f3 : K * (2 * (K + 1)) + K + K * K ≤ C := by
185 have : K * (2 * (K + 1)) + K + K * K = 3 * K ^ 2 + 3 * K := by ring
186 linarith
187 have g1 := mul_le_mul_of_nonneg_right f1 hRY
188 have g2 := mul_le_mul_of_nonneg_right f2 hP0.le
189 have g3 := mul_le_mul_of_nonneg_right f3 hed0
190 linarith
191
192end E424
193