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/HighBand/L32.lean

All files · 299 lines · source at the verified commit

1module
2
3public import E424.HighBand.L32Aux2
4
5@[expose] public section
6
7/-!
8# Section 8 of the outline: L32
9-/
10
11set_option linter.style.header false
12open Finset MeasureTheory
13
14namespace E424
15
16/-- `g((y-j)/Y) g((y-j')/Y) (y-j)^{-1-it} (y-j')^{-1+it'}` summed over `y`, times `Y`. -/
17noncomputable def gram (Y : ℝ) (j j' : ℕ) (t t' : ℝ) : ℂ :=
18 (Y : ℂ) * ∑ y ∈ Icc 1 ⌊5 * Y⌋₊,
19 ((gw (((y : ℝ) - j) / Y) * gw (((y : ℝ) - j') / Y) / (((y : ℝ) - j) * ((y : ℝ) - j')) : ℝ) : ℂ) *
20 Complex.exp (((t' * Real.log ((y : ℝ) - j') - t * Real.log ((y : ℝ) - j) : ℝ) : ℂ) * Complex.I)
21
22/-- The Gram sum is a Riemann sum of `HH`, up to a unimodular constant. -/
23theorem gram_eq {Y : ℝ} (hY : 0 < Y) (j j' : ℕ) (t t' : ℝ) :
24 gram Y j j' t t' = Complex.exp ((((t' - t) * Real.log Y : ℝ) : ℂ) * Complex.I) *
25 ((Y : ℂ)⁻¹ * ∑ y ∈ Icc 1 ⌊5 * Y⌋₊, HH (((j : ℝ) - j') / Y) t t' (((y : ℝ) - j') / Y)) := by
26 rw [gram, mul_sum, mul_sum, mul_sum]
27 refine sum_congr rfl fun y _ => ?_
28 have hv : ((y : ℝ) - j') / Y - ((j : ℝ) - j') / Y = ((y : ℝ) - j) / Y := by ring
29 rw [HH, hv]
30 have hYc : (Y : ℂ) ≠ 0 := by exact_mod_cast hY.ne'
31 by_cases h1 : ((y : ℝ) - j) / Y ≤ 1
32 · simp [gw_eq_zero (Or.inl h1), qw_eq_zero (Or.inl h1)]
33 by_cases h2 : ((y : ℝ) - j') / Y ≤ 1
34 · simp [gw_eq_zero (Or.inl h2), qw_eq_zero (Or.inl h2)]
35 rw [not_le, lt_div_iff₀ hY] at h1 h2
36 have p1 : 0 < (y : ℝ) - j := by linarith
37 have p2 : 0 < (y : ℝ) - j' := by linarith
38 rw [Real.log_div p1.ne' hY.ne', Real.log_div p2.ne' hY.ne', qw, qw]
39 have e1 : (gw (((y : ℝ) - j) / Y) * gw (((y : ℝ) - j') / Y) / (((y : ℝ) - j) * ((y : ℝ) - j')) : ℝ) =
40 Y⁻¹ * Y⁻¹ * (gw (((y : ℝ) - j) / Y) / (((y : ℝ) - j) / Y) *
41 (gw (((y : ℝ) - j') / Y) / (((y : ℝ) - j') / Y))) := by
42 field_simp
43 have e2 : (((t' * Real.log ((y : ℝ) - j') - t * Real.log ((y : ℝ) - j) : ℝ) : ℂ) * Complex.I) =
44 (((t' - t) * Real.log Y : ℝ) : ℂ) * Complex.I +
45 ((t' * (Real.log ((y : ℝ) - j') - Real.log Y) - t * (Real.log ((y : ℝ) - j) - Real.log Y) : ℝ) : ℂ)
46 * Complex.I := by
47 push_cast; ring
48 rw [e1, e2, Complex.exp_add]
49 generalize gw (((y : ℝ) - j) / Y) / (((y : ℝ) - j) / Y) *
50 (gw (((y : ℝ) - j') / Y) / (((y : ℝ) - j') / Y)) = g
51 push_cast
52 field_simp
53
54theorem gram_norm {Y : ℝ} (hY : 0 < Y) (j j' : ℕ) (t t' : ℝ) :
55 ‖gram Y j j' t t'‖ = ‖(Y : ℂ)⁻¹ *
56 ∑ y ∈ Icc 1 ⌊5 * Y⌋₊, HH (((j : ℝ) - j') / Y) t t' (((y : ℝ) - j') / Y)‖ := by
57 rw [gram_eq hY, norm_mul, Complex.norm_exp_ofReal_mul_I, one_mul]
58
59theorem gram_symm (Y : ℝ) (j j' : ℕ) (t t' : ℝ) :
60 ‖gram Y j j' t t'‖ = ‖gram Y j' j t' t‖ := by
61 rw [← Complex.norm_conj, gram, gram, map_mul, map_sum, Complex.conj_ofReal]
62 congr 2
63 refine sum_congr rfl fun y _ => ?_
64 rw [map_mul, Complex.conj_ofReal, ← Complex.exp_conj, map_mul, Complex.conj_ofReal, Complex.conj_I]
65 congr 1
66 · push_cast; ring
67 · congr 1; push_cast; ring
68
69theorem gram_tsum {Y : ℝ} (hY : 0 < Y) {j' : ℕ} (hj : (j' : ℝ) ≤ Y) (κ t t' : ℝ) :
70 ∑ y ∈ Icc 1 ⌊5 * Y⌋₊, HH κ t t' (((y : ℝ) - j') / Y) =
71 ∑' n : ℤ, HH κ t t' (((n : ℝ) - j') / Y) := by
72 rw [tsum_eq_sum (s := (Icc 1 ⌊5 * Y⌋₊).map Nat.castEmbedding), sum_map]
73 · simp
74 · intro n hn
75 by_contra hc
76 have h1 : 1 < ((n : ℝ) - j') / Y := by
77 by_contra h; exact hc (HH_eq_zero (Or.inl (not_lt.1 h)))
78 have h2 : ((n : ℝ) - j') / Y < 4 := by
79 by_contra h; exact hc (HH_eq_zero (Or.inr (not_lt.1 h)))
80 rw [lt_div_iff₀ hY] at h1
81 rw [div_lt_iff₀ hY] at h2
82 have hj0 : (0 : ℝ) ≤ j' := Nat.cast_nonneg _
83 have hn0 : 0 < n := by
84 have : (0 : ℝ) < n := by linarith
85 exact_mod_cast this
86 obtain ⟨m, rfl⟩ := Int.eq_ofNat_of_zero_le hn0.le
87 refine hn (mem_map.2 ⟨m, mem_Icc.2 ⟨by omega, Nat.le_floor ?_⟩, rfl⟩)
88 simp only [Int.cast_natCast] at h2
89 linarith
90
91theorem gram_Ioc {Y : ℝ} (hY : 0 < Y) (j' : ℕ) (κ t t' : ℝ) :
92 ∑ y ∈ Icc 1 ⌊5 * Y⌋₊, HH κ t t' (((y : ℝ) - j') / Y) =
93 ∑ y ∈ Ioc ⌊Y⌋₊ ⌊5 * Y⌋₊, HH κ t t' (((y : ℝ) - j') / Y) := by
94 symm
95 refine sum_subset (fun y hy => ?_) fun y hy hy' => ?_
96 · rw [mem_Ioc] at hy; rw [mem_Icc]; omega
97 · rw [mem_Icc] at hy
98 rw [mem_Ioc, not_and_or] at hy'
99 have h : y ≤ ⌊Y⌋₊ := by omega
100 have h := (Nat.le_floor_iff hY.le).1 h
101 refine HH_eq_zero (Or.inl ?_)
102 rw [div_le_one hY]
103 linarith [(Nat.cast_nonneg j' : (0 : ℝ) ≤ j')]
104
105theorem L32_large_Y : ∃ Y0 : ℝ, ∀ Y ≥ Y0, 2 ≤ Y ∧ 2 ≤ Y ^ (0.14 : ℝ) ∧
106 800 * Real.log Y ≤ Y ^ (0.04 : ℝ) := by
107 have h1 := (isLittleO_log_rpow_atTop (show (0 : ℝ) < 0.04 by norm_num)).bound
108 (show (0 : ℝ) < 1 / 800 by norm_num)
109 have h2 := (tendsto_rpow_atTop (show (0 : ℝ) < 0.14 by norm_num)).eventually_ge_atTop 2
110 obtain ⟨Y0, h⟩ := Filter.eventually_atTop.1
111 ((h1.and h2).and (Filter.eventually_ge_atTop (2 : ℝ)))
112 refine ⟨Y0, fun Y hY => ?_⟩
113 obtain ⟨⟨a, b⟩, c⟩ := h Y hY
114 refine ⟨c, b, ?_⟩
115 rw [Real.norm_eq_abs, Real.norm_eq_abs, abs_of_nonneg (Real.log_nonneg (by linarith)),
116 abs_of_nonneg (by positivity)] at a
117 linarith
118
119/-- The facts about the parameters used in all cases. -/
120theorem L32_kappa_bounds {Y : ℝ} (hY2 : 2 ≤ Y) (hlog : 800 * Real.log Y ≤ Y ^ (0.04 : ℝ))
121 {j j' : ℕ} {t : ℝ} (hj : (j : ℝ) ≤ Real.log Y) (hj' : (j' : ℝ) ≤ Real.log Y)
122 (ht : |t| ≤ Y ^ (1.86 : ℝ)) :
123 |((j : ℝ) - j') / Y| ≤ 1 / 4 ∧ 800 * |t * (((j : ℝ) - j') / Y)| ≤ Y ^ (0.9 : ℝ) ∧
124 (j' : ℝ) ≤ Y / 4 := by
125 have hY0 : 0 < Y := by linarith
126 have hY4 : Y ^ (0.04 : ℝ) ≤ Y := by
127 conv_rhs => rw [← Real.rpow_one Y]
128 exact Real.rpow_le_rpow_of_exponent_le (by linarith) (by norm_num)
129 have hl0 : 0 ≤ Real.log Y := Real.log_nonneg (by linarith)
130 have hd : |(j : ℝ) - j'| ≤ Real.log Y := by
131 rw [abs_le]; constructor <;> linarith [(Nat.cast_nonneg j : (0 : ℝ) ≤ j), (Nat.cast_nonneg j' : (0 : ℝ) ≤ j')]
132 refine ⟨?_, ?_, by linarith⟩
133 · rw [abs_div, abs_of_pos hY0, div_le_iff₀ hY0]; linarith
134 · rw [abs_mul, abs_div, abs_of_pos hY0]
135 calc 800 * (|t| * (|(j : ℝ) - j'| / Y)) ≤ 800 * (Y ^ (1.86 : ℝ) * (Real.log Y / Y)) := by gcongr
136 _ = Y ^ (1.86 : ℝ) / Y * (800 * Real.log Y) := by ring
137 _ ≤ Y ^ (1.86 : ℝ) / Y * Y ^ (0.04 : ℝ) := by gcongr
138 _ = Y ^ (0.9 : ℝ) := by
139 rw [← Real.rpow_sub_one hY0.ne', ← Real.rpow_add hY0]; norm_num
140
141/-- Small difference: the sum is the integral. -/
142theorem L32_small_diff : ∃ C > 0, ∀ Y : ℝ, 2 ≤ Y → 800 * Real.log Y ≤ Y ^ (0.04 : ℝ) →
143 ∀ (j j' : ℕ) (t t' : ℝ), (j : ℝ) ≤ Real.log Y → (j' : ℝ) ≤ Real.log Y → |t| ≤ Y ^ (1.86 : ℝ) →
144 |t' - t| ≤ Y ^ (0.9 : ℝ) →
145 ‖gram Y j j' t t'‖ ≤ ‖∫ v, HH (((j : ℝ) - j') / Y) t t' v‖ + C * Y ^ (-(0.015 : ℝ)) := by
146 obtain ⟨C, hC, h⟩ := HH_riemann
147 refine ⟨9 * C, by positivity, fun Y hY2 hlog j j' t t' hj hj' ht hu => ?_⟩
148 have hY0 : 0 < Y := by linarith
149 obtain ⟨k1, k2, k3⟩ := L32_kappa_bounds hY2 hlog hj hj' ht
150 have hb := h _ t t' Y j' k1 hY0
151 rw [gram_norm hY0, gram_tsum hY0 (by linarith)]
152 set κ := ((j : ℝ) - j') / Y
153 set P := Y ^ (0.9 : ℝ) with hP
154 have hP1 : 1 ≤ P := Real.one_le_rpow (by linarith) (by norm_num)
155 have e : (Y ^ 2)⁻¹ * P ^ 2 = Y ^ (-(0.2 : ℝ)) := by
156 rw [hP, ← Real.rpow_natCast Y 2, ← Real.rpow_neg hY0.le, ← Real.rpow_natCast (Y ^ (0.9 : ℝ)) 2,
157 ← Real.rpow_mul hY0.le, ← Real.rpow_add hY0]
158 norm_num
159 have e2 : Y ^ (-(0.2 : ℝ)) ≤ Y ^ (-(0.015 : ℝ)) :=
160 Real.rpow_le_rpow_of_exponent_le (by linarith) (by norm_num)
161 have hb2 : C * (Y ^ 2)⁻¹ * (1 + |t' - t| + |t * κ|) ^ 2 ≤ 9 * C * Y ^ (-(0.015 : ℝ)) := by
162 calc _ ≤ C * (Y ^ 2)⁻¹ * (P + P + P) ^ 2 := by
163 gcongr
164 linarith [abs_nonneg (t * κ)]
165 _ = 9 * C * ((Y ^ 2)⁻¹ * P ^ 2) := by ring
166 _ ≤ _ := by rw [e]; gcongr
167 linarith [norm_le_norm_add_norm_sub' ((Y : ℂ)⁻¹ * ∑' n : ℤ, HH κ t t' (((n : ℝ) - j') / Y))
168 (∫ v, HH κ t t' v)]
169
170/-- Off-diagonal, small difference, after choosing the sign. -/
171theorem L32_off_diag : ∃ C > 0, ∀ Y : ℝ, 2 ≤ Y → 800 * Real.log Y ≤ Y ^ (0.04 : ℝ) →
172 ∀ (j j' : ℕ) (t t' : ℝ), (j : ℝ) ≤ Real.log Y → (j' : ℝ) ≤ Real.log Y →
173 Y ^ (1.03 : ℝ) ≤ |t| → |t| ≤ Y ^ (1.86 : ℝ) → |t' - t| ≤ Y ^ (0.9 : ℝ) →
174 0 < t * ((j : ℝ) - j') → ‖gram Y j j' t t'‖ ≤ C * Y ^ (-(0.015 : ℝ)) := by
175 obtain ⟨C1, hC1, h1⟩ := L32_small_diff
176 obtain ⟨C2, hC2, h2⟩ := L32_caseB
177 refine ⟨C1 + C2, by positivity, fun Y hY2 hlog j j' t t' hj hj' ht0 ht hu hpos => ?_⟩
178 have hY0 : 0 < Y := by linarith
179 obtain ⟨k1, k2, k3⟩ := L32_kappa_bounds hY2 hlog hj hj' ht
180 have hp : t * (((j : ℝ) - j') / Y) = t * ((j : ℝ) - j') / Y := by ring
181 have hpos' : 0 < t * (((j : ℝ) - j') / Y) := by rw [hp]; positivity
182 have hb := h2 _ t t' k1 hpos'
183 have hk : (1 : ℝ) ≤ |(j : ℝ) - j'| := by
184 have hne : (j : ℤ) - j' ≠ 0 := by
185 intro h0
186 have : (j : ℝ) - j' = 0 := by exact_mod_cast h0
187 rw [this, mul_zero] at hpos; exact lt_irrefl _ hpos
188 have := Int.one_le_abs hne
189 exact_mod_cast this
190 have hge : Y ^ (0.015 : ℝ) ≤ Real.sqrt (t * (((j : ℝ) - j') / Y)) := by
191 refine Real.le_sqrt_of_sq_le ?_
192 rw [← Real.rpow_natCast, ← Real.rpow_mul hY0.le, hp, ← abs_of_pos hpos, abs_mul, le_div_iff₀ hY0,
193 ← Real.rpow_add_one hY0.ne']
194 calc _ = Y ^ (1.03 : ℝ) := by norm_num
195 _ ≤ |t| * 1 := by rw [mul_one]; exact ht0
196 _ ≤ _ := by gcongr
197 have hb2 : C2 / Real.sqrt (t * (((j : ℝ) - j') / Y)) ≤ C2 * Y ^ (-(0.015 : ℝ)) := by
198 rw [Real.rpow_neg hY0.le, ← div_eq_mul_inv]
199 gcongr
200 linarith [h1 Y hY2 hlog j j' t t' hj hj' ht hu]
201
202/-- Large difference, after choosing the sign. -/
203theorem L32_large_diff : ∃ C > 0, ∀ Y : ℝ, 2 ≤ Y → 2 ≤ Y ^ (0.14 : ℝ) →
204 800 * Real.log Y ≤ Y ^ (0.04 : ℝ) →
205 ∀ (j j' : ℕ) (t t' : ℝ), (j : ℝ) ≤ Real.log Y → (j' : ℝ) ≤ Real.log Y →
206 |t| ≤ Y ^ (1.86 : ℝ) → |t'| ≤ Y ^ (1.86 : ℝ) → Y ^ (0.9 : ℝ) < t - t' →
207 ‖gram Y j j' t t'‖ ≤ C * Y ^ (-(0.015 : ℝ)) := by
208 obtain ⟨C, hC, h⟩ := L32_caseC
209 refine ⟨3 * C, by positivity, fun Y hY2 h14 hlog j j' t t' hj hj' ht ht' hu => ?_⟩
210 have hY0 : 0 < Y := by linarith
211 have hY1 : 1 ≤ Y := by linarith
212 obtain ⟨k1, k2, k3⟩ := L32_kappa_bounds hY2 hlog hj hj' ht
213 have hP0 : 0 < Y ^ (0.9 : ℝ) := by positivity
214 have hle : t - t' ≤ 2 * Y ^ (1.86 : ℝ) := by linarith [(abs_le.1 ht).2, (abs_le.1 ht').1]
215 have h2 : 2 * Y ^ (1.86 : ℝ) ≤ Y ^ 2 := by
216 calc 2 * Y ^ (1.86 : ℝ) ≤ Y ^ (0.14 : ℝ) * Y ^ (1.86 : ℝ) := by gcongr
217 _ = Y ^ 2 := by rw [← Real.rpow_add hY0, ← Real.rpow_natCast]; norm_num
218 have hb := h _ t t' Y j' k1 hY1 (Nat.cast_nonneg _) k3 (by linarith) (by linarith) (by linarith)
219 rw [gram_norm hY0, gram_Ioc hY0, norm_mul, norm_inv, Complex.norm_real, Real.norm_eq_abs,
220 abs_of_pos hY0]
221 have s1 : Real.sqrt (t - t') ≤ 2 * Y ^ (0.93 : ℝ) := by
222 rw [Real.sqrt_le_left (by positivity), mul_pow, ← Real.rpow_natCast (Y ^ (0.93 : ℝ)),
223 ← Real.rpow_mul hY0.le]
224 norm_num at hle ⊢
225 linarith [Real.rpow_nonneg hY0.le (93 / 50 : ℝ)]
226 have s2 : Y ^ (0.45 : ℝ) ≤ Real.sqrt (t - t') := by
227 refine Real.le_sqrt_of_sq_le ?_
228 rw [← Real.rpow_natCast, ← Real.rpow_mul hY0.le]
229 norm_num at hu ⊢
230 linarith
231 have m1 : Y⁻¹ * Y ^ (0.93 : ℝ) ≤ Y ^ (-(0.015 : ℝ)) := by
232 rw [← Real.rpow_neg_one, ← Real.rpow_add hY0]
233 exact Real.rpow_le_rpow_of_exponent_le hY1 (by norm_num)
234 have m2 : Y⁻¹ * (Y / Y ^ (0.45 : ℝ)) ≤ Y ^ (-(0.015 : ℝ)) := by
235 rw [← mul_div_assoc, inv_mul_cancel₀ hY0.ne', one_div, ← Real.rpow_neg hY0.le]
236 exact Real.rpow_le_rpow_of_exponent_le hY1 (by norm_num)
237 calc _ ≤ Y⁻¹ * (C * (2 * Y ^ (0.93 : ℝ) + Y / Y ^ (0.45 : ℝ))) := by
238 refine mul_le_mul_of_nonneg_left (hb.trans ?_) (by positivity)
239 gcongr
240 _ = C * (2 * (Y⁻¹ * Y ^ (0.93 : ℝ)) + Y⁻¹ * (Y / Y ^ (0.45 : ℝ))) := by ring
241 _ ≤ C * (2 * Y ^ (-(0.015 : ℝ)) + Y ^ (-(0.015 : ℝ))) := by gcongr
242 _ = _ := by ring
243
244/-- **Lemma 32** (Gram bound), the three cases of the outline merged. -/
245theorem L32 : ∃ C > 0, ∃ Y0 : ℝ, ∀ Y ≥ Y0, ∀ (j j' : ℕ) (t t' : ℝ),
246 (j : ℝ) ≤ Real.log Y → (j' : ℝ) ≤ Real.log Y →
247 Y ^ (1.03 : ℝ) ≤ |t| → |t| ≤ Y ^ (1.86 : ℝ) → Y ^ (1.03 : ℝ) ≤ |t'| → |t'| ≤ Y ^ (1.86 : ℝ) →
248 ‖gram Y j j' t t'‖ ≤ (if j = j' then C / (1 + |t' - t|) ^ 2 else 0) + C * Y ^ (-(0.015 : ℝ)) := by
249 obtain ⟨Y0, hY0⟩ := L32_large_Y
250 obtain ⟨C1, hC1, h1⟩ := L32_small_diff
251 obtain ⟨CA, hCA, hA⟩ := L32_caseA
252 obtain ⟨CB, hCB, hB⟩ := L32_off_diag
253 obtain ⟨CC, hCC, hC⟩ := L32_large_diff
254 refine ⟨C1 + CA + CB + CC, by positivity, Y0, fun Y hY j j' t t' hj hj' ht0 ht ht0' ht' => ?_⟩
255 obtain ⟨hY2, h14, hlog⟩ := hY0 Y hY
256 have hYpos : 0 < Y := by linarith
257 set ε := Y ^ (-(0.015 : ℝ))
258 have hε : 0 < ε := by positivity
259 have hcard : ∀ D, D ≤ C1 + CA + CB + CC → ‖gram Y j j' t t'‖ ≤ D * ε →
260 ‖gram Y j j' t t'‖ ≤ (if j = j' then (C1 + CA + CB + CC) / (1 + |t' - t|) ^ 2 else 0) +
261 (C1 + CA + CB + CC) * ε := fun D hD h => by
262 have : (0 : ℝ) ≤ if j = j' then (C1 + CA + CB + CC) / (1 + |t' - t|) ^ 2 else 0 := by
263 split_ifs <;> positivity
264 nlinarith
265 rcases le_or_gt |t' - t| (Y ^ (0.9 : ℝ)) with hu | hu
266 · by_cases hjj : j = j'
267 · subst hjj
268 have a := h1 Y hY2 hlog j j t t' hj hj ht hu
269 rw [sub_self, zero_div] at a
270 rw [if_pos rfl]
271 have b : CA / (1 + |t' - t|) ^ 2 ≤ (C1 + CA + CB + CC) / (1 + |t' - t|) ^ 2 := by
272 gcongr; linarith
273 have c : C1 * ε ≤ (C1 + CA + CB + CC) * ε := by gcongr; linarith
274 exact (a.trans (add_le_add ((hA t t').trans b) c))
275 · refine hcard CB (by linarith) ?_
276 have hlt : Y ^ (0.9 : ℝ) < Y ^ (1.03 : ℝ) :=
277 Real.rpow_lt_rpow_of_exponent_lt (by linarith) (by norm_num)
278 have hsq : (t' - t) ^ 2 < t ^ 2 := sq_lt_sq.2 (by linarith)
279 have htt : 0 < t * t' := by nlinarith [sq_nonneg t']
280 have ht00 : t ≠ 0 := fun h => by simp [h] at htt
281 have hjne : (j : ℝ) - j' ≠ 0 := sub_ne_zero.2 (by exact_mod_cast hjj)
282 rcases lt_or_gt_of_ne (mul_ne_zero ht00 hjne) with hneg | hpos
283 · rw [gram_symm]
284 refine hB Y hY2 hlog j' j t' t hj' hj ht0' ht' (by rwa [abs_sub_comm]) ?_
285 by_contra hcon
286 have hcon := not_lt.1 hcon
287 have e : (t * t') * ((j : ℝ) - j') ^ 2 = (t * ((j : ℝ) - j')) * (t' * ((j : ℝ) - j')) := by
288 ring
289 have p : 0 < (t * t') * ((j : ℝ) - j') ^ 2 := by positivity
290 nlinarith
291 · exact hB Y hY2 hlog j j' t t' hj hj' ht0 ht hu hpos
292 · refine hcard CC (by linarith) ?_
293 rcases lt_abs.1 hu with h | h
294 · rw [gram_symm]
295 exact hC Y hY2 h14 hlog j' j t' t hj' hj ht' ht h
296 · exact hC Y hY2 h14 hlog j j' t t' hj hj' ht ht' (by linarith)
297
298end E424
299