cfahlgren1/math / lean /OAI /NumberTheory /PrimeGaps /PrincipalGrowth.lean
cfahlgren1's picture
download
raw
19.6 kB
import OAI.NumberTheory.PrimeGaps.ZeroFreeBounds
namespace OAI
namespace LargePrimeGaps
open Complex Filter Topology
lemma zetaRegular_bounds {ε : ℝ} (hε : 0 < ε) (hε1 : ε ≤ 1/2) :
∃ K : ℝ, 1 ≤ K ∧ ∀ s : ℂ, 1-ε/2 ≤ s.re →
‖zetaRegular s‖ ≤ K*(‖s‖+2)^(2*ε) ∧
‖deriv zetaRegular s‖ ≤ K*(‖s‖+2)^(2*ε) := by
obtain ⟨K₀,hK₀,h₀⟩ := regularSeries_norm_small_power hε hε1
obtain ⟨K₁,hK₁,h₁⟩ := regularSeries_deriv_norm_small_power hε hε1
let K := 1+(K₀+K₁)*2^(2*ε)
have hK : 1 ≤ K := by dsimp [K]; linarith [show 0 < (K₀+K₁)*2^(2*ε) by positivity]
refine ⟨K,hK,?_⟩
intro s hs
have hb₀ := h₀ _ 1 1 (positiveCoefficients_zero _) (positiveCoefficients_norm_le (by simp))
(by simp) zero_le_one (fun t ht => discrepancy_constant_bound ht) s (by linarith)
have hb₁ := h₁ _ 1 1 (positiveCoefficients_zero _) (positiveCoefficients_norm_le (by simp))
(by simp) zero_le_one (fun t ht => discrepancy_constant_bound ht) s hs
change ‖zetaRegular s‖ ≤ _ at hb₀
change ‖deriv zetaRegular s‖ ≤ _ at hb₁
norm_num only [one_add_one_eq_two] at hb₀ hb₁
rw [Real.mul_rpow (by norm_num) (by positivity)] at hb₀ hb₁
constructor
· apply hb₀.trans
have hc : K₀*2^(2*ε) ≤ K := by dsimp [K]; nlinarith [Real.rpow_pos_of_pos (by norm_num : (0:ℝ)<2) (2*ε)]
calc
_ = (K₀*2^(2*ε))*(‖s‖+2)^(2*ε) := by ring
_ ≤ _ := mul_le_mul_of_nonneg_right hc (by positivity)
· apply hb₁.trans
have hc : K₁*2^(2*ε) ≤ K := by dsimp [K]; nlinarith [Real.rpow_pos_of_pos (by norm_num : (0:ℝ)<2) (2*ε)]
calc
_ = (K₁*2^(2*ε))*(‖s‖+2)^(2*ε) := by ring
_ ≤ _ := mul_le_mul_of_nonneg_right hc (by positivity)
lemma zeta_deriv_eq_regular {s : ℂ} (hs : 0 < s.re) (hs1 : s≠1) :
deriv riemannZeta s = deriv zetaRegular s-1/(s-1)^2 := by
have he : riemannZeta =ᶠ[𝓝 s] fun z => zetaRegular z+1/(z-1) := by
filter_upwards [(continuous_re.tendsto s).eventually (lt_mem_nhds hs),
eventually_ne_nhds hs1] with z hz hz1
rw [zetaRegular_eq hz hz1,sub_add_cancel]
rw [he.deriv_eq]
have hd := (hasDerivAt_const s (1:ℂ)).div ((hasDerivAt_id s).sub_const 1) (sub_ne_zero.mpr hs1)
have hh := (zetaRegular_differentiableAt hs).hasDerivAt.add hd
simpa only [Pi.add_def, Pi.div_def, id_eq, zero_mul, one_mul, zero_sub, neg_div, sub_eq_add_neg, zero_add] using hh.deriv
lemma horizontal_growth_lipschitz {f : ℂ → ℂ} {t D : ℝ}
(hf : ∀ s : ℂ, 1 ≤ s.re → s.im=t → DifferentiableAt ℂ f s)
(hb : ∀ s : ℂ, 1 ≤ s.re → s.im=t → ‖s‖+2 ≤ 4*(|t|+2) → ‖deriv f s‖ ≤ D)
{z w : ℂ} (hz : 1 ≤ z.re) (hw : 1 ≤ w.re) (hzt : z.im=t) (hwt : w.im=t)
(hzn : ‖z‖+2 ≤ 4*(|t|+2)) (hwn : ‖w‖+2 ≤ 4*(|t|+2)) :
‖f z-f w‖ ≤ D*‖z-w‖ := by
let S := ({s : ℂ | 1 ≤ s.re} ∩ {s : ℂ | s.im=t}) ∩ Metric.closedBall 0 (4*(|t|+2)-2)
have hi : Convex ℝ {s : ℂ | s.im=t} := convex_hyperplane (.mk Complex.add_im Complex.smul_im) t
have hS : Convex ℝ S := ((convex_halfSpace_re_ge 1).inter hi).inter (convex_closedBall 0 _)
apply Convex.norm_image_sub_le_of_norm_deriv_le (s:=S) (fun z hz => hf z hz.1.1 hz.1.2) ?_ hS
⟨⟨hw,hwt⟩,by simp [Metric.mem_closedBall,dist_zero_right]; linarith⟩
⟨⟨hz,hzt⟩,by simp [Metric.mem_closedBall,dist_zero_right]; linarith⟩
intro s hs
exact hb s hs.1.1 hs.1.2 (by have := hs.2; simp only [Metric.mem_closedBall,dist_zero_right] at this; linarith)
lemma zeta_high_line_bounds {ε : ℝ} (hε : 0 < ε) (hε1 : ε ≤ 1/2) :
∃ K : ℝ, 1 ≤ K ∧ ∀ t : ℝ, 1 ≤ |t| →
(∀ ψ : DirichletCharacter ℂ 1, ∀ s : ℂ, 1 ≤ s.re → ‖s‖+2 ≤ 4*(|t|+2) →
‖characterRegular ψ s‖ ≤ K*(|t|+2)^(2*ε)) ∧
(∀ s : ℂ, 1 ≤ s.re → s.im=t → ‖s‖+2 ≤ 4*(|t|+2) →
‖deriv riemannZeta s‖ ≤ K*(|t|+2)^(2*ε)) := by
obtain ⟨K₀,hK₀,h₀⟩ := character_line_bounds hε hε1
obtain ⟨K₁,hK₁,h₁⟩ := zetaRegular_bounds hε hε1
let K := K₀*3^(2*ε)+K₁*4^(2*ε)+1
have hK₀' : 0 < K₀ := by linarith
have hK₁' : 0 < K₁ := by linarith
have hK : 1 ≤ K := by dsimp [K]; linarith [show 0 < K₀*3^(2*ε) by positivity, show 0 < K₁*4^(2*ε) by positivity]
refine ⟨K,hK,?_⟩
intro t ht
have hP : 1 ≤ (|t|+2)^(2*ε) := Real.one_le_rpow (by linarith [abs_nonneg t]) (by positivity)
constructor
· intro ψ s hs hn
have hb := (h₀ 1 ψ t).1 s hs hn
norm_num only [Nat.cast_one,show (1:ℝ)+2=3 by norm_num] at hb
rw [Real.mul_rpow (by norm_num) (by positivity)] at hb
apply hb.trans
have hc : K₀*3^(2*ε) ≤ K := by dsimp [K]; linarith [show 0 < K₁*4^(2*ε) by positivity]
convert mul_le_mul_of_nonneg_right hc (by positivity : 0 ≤ (|t|+2)^(2*ε)) using 1
ring
· intro s hs him hn
have hs1 : s≠1 := by intro h; simp [h] at him; rw [←him] at ht; norm_num at ht
have hd := (h₁ s (by linarith)).2
have hden : 1 ≤ ‖s-1‖ := by
have h := Complex.abs_im_le_norm (s-1)
simp only [Complex.sub_im,Complex.one_im,sub_zero,him] at h
exact ht.trans h
have hfrac : ‖(1:ℂ)/(s-1)^2‖ ≤ 1 := by
simp only [norm_div,norm_one,norm_pow]
exact div_le_one_of_le₀ (one_le_pow₀ hden) (by positivity)
rw [zeta_deriv_eq_regular (by linarith) hs1]
apply (norm_sub_le _ _).trans
have hnorm := Real.rpow_le_rpow (by positivity : 0 ≤ ‖s‖+2) hn (by positivity : 0 ≤ 2*ε)
rw [Real.mul_rpow (by norm_num) (by positivity)] at hnorm
have hc : K₁*4^(2*ε)+1 ≤ K := by dsimp [K]; linarith [show 0 < K₀*3^(2*ε) by positivity]
calc
_ ≤ K₁*(‖s‖+2)^(2*ε)+1 := add_le_add hd hfrac
_ ≤ (K₁*4^(2*ε))*(|t|+2)^(2*ε)+(|t|+2)^(2*ε) := by nlinarith
_ = (K₁*4^(2*ε)+1)*(|t|+2)^(2*ε) := by ring
_ ≤ _ := mul_le_mul_of_nonneg_right hc (by positivity)
lemma zeta_high_line_lower_aux {t K P : ℝ} (ht : 1 ≤ |t|) (hK : 1 ≤ K) (hP : 1 ≤ P)
(hr : ∀ ψ : DirichletCharacter ℂ 1, ∀ s : ℂ, 1 ≤ s.re → ‖s‖+2 ≤ 4*(|t|+2) →
‖characterRegular ψ s‖ ≤ K*P)
(hd : ∀ s : ℂ, 1 ≤ s.re → s.im=t → ‖s‖+2 ≤ 4*(|t|+2) → ‖deriv riemannZeta s‖ ≤ K*P) :
(1/(512*K^7))/P^7 ≤ ‖riemannZeta (1+I*t)‖ := by
have hK0 : 0 < K := by linarith
have hP0 : 0 < P := by linarith
have hKP : 1 ≤ K*P := one_le_mul_of_one_le_of_one_le hK hP
have hh : 1/(256*(K*P)^6*(2*K*P)) ≤ ‖riemannZeta (1+I*t)‖ := by
apply three_four_one_lower (norm_nonneg _) hKP (by linarith)
intro δ hδ hδ1
have hn0 : ‖(1:ℂ)+I*t‖+2 ≤ 4*(|t|+2) := by
simpa using line_sample_norm (t:=t) (u:=t) (δ:=0) le_rfl zero_le_one (by linarith [abs_nonneg t])
have hnδ := line_sample_norm hδ.le hδ1 (t:=t) (u:=t) (by linarith [abs_nonneg t])
have hL0 : ‖DirichletCharacter.LFunctionTrivChar 1 (1+δ)‖ ≤ 2*(K*P)/δ := by
have hn : ‖(1:ℂ)+δ‖+2 ≤ 4*(|t|+2) := by
simpa using line_sample_norm hδ.le hδ1 (t:=t) (u:=0) (by simp)
have hreg := hr 1 (1+δ) (by simp; linarith) hn
have hp := LFunction_norm_le_regular_add_pole (1:DirichletCharacter ℂ 1)
(s:=1+δ) (by simp; linarith)
have hden : ‖(1:ℂ)+δ-1‖=δ := by simp [Complex.norm_real,Real.norm_eq_abs,abs_of_pos hδ]
rw [hden] at hp
change ‖DirichletCharacter.LFunction (1:DirichletCharacter ℂ 1) (1+δ)‖ ≤ _
apply (hp.trans (add_le_add hreg le_rfl)).trans
apply (le_div_iff₀ hδ).mpr
have hd := mul_le_of_le_one_right (by positivity : 0 ≤ K*P) hδ1
field_simp
nlinarith
have hL1 : ‖riemannZeta (1+δ+I*t)‖ ≤ ‖riemannZeta (1+I*t)‖+(K*P)*δ := by
have hf (s : ℂ) (_hs : 1 ≤ s.re) (him : s.im=t) : DifferentiableAt ℂ riemannZeta s := by
apply differentiableAt_riemannZeta
intro hs
simp [hs] at him
rw [←him] at ht
norm_num at ht
have hl := horizontal_growth_lipschitz hf hd (z:=1+δ+I*t) (w:=1+I*t)
(by simp; linarith) (by simp) (by simp) (by simp) hnδ hn0
have hden : ‖(1:ℂ)+δ+I*t-(1+I*t)‖=δ := by
rw [show (1:ℂ)+δ+I*t-(1+I*t)=(δ:ℂ) by ring,Complex.norm_real,Real.norm_eq_abs,abs_of_pos hδ]
rw [hden] at hl
have hh := norm_add_le (riemannZeta (1+δ+I*t)-riemannZeta (1+I*t)) (riemannZeta (1+I*t))
rw [sub_add_cancel] at hh
linarith
have hL2 : ‖riemannZeta (1+δ+2*I*t)‖ ≤ 2*K*P := by
have hn : ‖(1:ℂ)+δ+2*I*t‖+2 ≤ 4*(|t|+2) := by
simpa only [show I*((2*t:ℝ):ℂ)=2*I*t by push_cast; ring] using
line_sample_norm hδ.le hδ1 (t:=t) (u:=2*t) (by rw [abs_mul]; norm_num)
have hp := LFunction_norm_le_regular_add_pole (1:DirichletCharacter ℂ 1)
(s:=1+δ+2*I*t) (by simp; linarith)
rw [DirichletCharacter.LFunction_modOne_eq] at hp
have hreg := hr 1 (1+δ+2*I*t) (by simp; linarith) hn
have hden : 1 ≤ ‖(1:ℂ)+δ+2*I*t-1‖ := by
have hb := Complex.abs_im_le_norm ((1:ℂ)+δ+2*I*t-1)
simp [abs_mul] at hb
linarith
have hfrac : 1/‖(1:ℂ)+δ+2*I*t-1‖ ≤ 1 := div_le_one_of_le₀ hden (norm_nonneg _)
linarith
have hprod := (1:DirichletCharacter ℂ 1).norm_LFunction_product_ge_one hδ t
simp only [one_pow,DirichletCharacter.LFunction_modOne_eq,norm_mul,norm_pow] at hprod
have hL0' : ‖riemannZeta (1+δ)‖ ≤ 2*(K*P)/δ := by
simpa only [DirichletCharacter.LFunctionTrivChar,DirichletCharacter.LFunction_modOne_eq] using hL0
exact hprod.trans (by gcongr)
convert hh using 1
field_simp
ring
lemma zeta_high_line_lower {ε : ℝ} (hε : 0 < ε) (hε1 : ε ≤ 1) :
∃ c : ℝ, 0 < c ∧ ∀ t : ℝ, 1 ≤ |t| →
c*(|t|+2)^(-ε) ≤ ‖riemannZeta (1+I*t)‖ := by
obtain ⟨K,hK,hg⟩ := zeta_high_line_bounds (by linarith : 0 < ε/14) (by linarith : ε/14 ≤ 1/2)
have hK0 : 0 < K := by linarith
refine ⟨1/(512*K^7),by positivity,?_⟩
intro t ht
let P : ℝ := (|t|+2)^(ε/7)
have hP : 1 ≤ P := Real.one_le_rpow (by linarith [abs_nonneg t]) (by positivity)
have he : 2*(ε/14)=ε/7 := by ring
have hh := zeta_high_line_lower_aux ht hK hP
(fun ψ s hs hn => by simpa only [he] using (hg t ht).1 ψ s hs hn)
(fun s hs him hn => by simpa only [he] using (hg t ht).2 s hs him hn)
have hP7 : P^7=(|t|+2)^ε := by
dsimp [P]
rw [←Real.rpow_mul_natCast (by positivity : 0 ≤ |t|+2)]
congr 1
norm_num
rw [hP7] at hh
simpa only [Real.rpow_neg (by positivity : 0 ≤ |t|+2),div_eq_mul_inv] using hh
lemma zeta_high_strip_lower_aux {t c K P δ : ℝ} (ht : 1 ≤ |t|) (hc : 0<c) (hK : 1≤K) (hP : 1≤P)
(hδ : 0≤δ) (hδ1 : δ≤1)
(hr : ∀ ψ : DirichletCharacter ℂ 1,∀ s : ℂ,1 ≤ s.re → ‖s‖+2≤4*(|t|+2) →
‖characterRegular ψ s‖≤K*P)
(hd : ∀ s : ℂ,1 ≤ s.re → s.im=t → ‖s‖+2≤4*(|t|+2) → ‖deriv riemannZeta s‖≤K*P)
(hl : c/P≤‖riemannZeta (1+I*t)‖) :
(c/(4*K^2))/P^3≤‖riemannZeta (1+δ+I*t)‖ := by
have hK0 : 0<K := by linarith
have hP0 : 0<P := by linarith
by_cases hnear : δ≤c/(2*K*P^2)
· have hn0 : ‖(1:ℂ)+I*t‖+2≤4*(|t|+2) := by
simpa using line_sample_norm (t:=t) (u:=t) (δ:=0) le_rfl zero_le_one (by linarith [abs_nonneg t])
have hnδ := line_sample_norm hδ hδ1 (t:=t) (u:=t) (by linarith [abs_nonneg t])
have hf (s : ℂ) (_hs : 1 ≤ s.re) (him : s.im=t) : DifferentiableAt ℂ riemannZeta s := by
apply differentiableAt_riemannZeta
intro hs
simp [hs] at him
rw [←him] at ht
norm_num at ht
have hdif := horizontal_growth_lipschitz hf hd
(z:=1+I*t) (w:=1+δ+I*t) (by simp) (by simp; linarith) (by simp) (by simp) hn0 hnδ
have hnorm : ‖(1:ℂ)+I*t-(1+δ+I*t)‖=δ := by
rw [show (1:ℂ)+I*t-(1+δ+I*t)=-(δ:ℂ) by ring,norm_neg,Complex.norm_real,Real.norm_eq_abs,abs_of_nonneg hδ]
rw [hnorm] at hdif
have hdb : ‖riemannZeta (1+I*t)-riemannZeta (1+δ+I*t)‖≤c/(2*P) := by
apply hdif.trans
calc
K*P*δ ≤ K*P*(c/(2*K*P^2)) := mul_le_mul_of_nonneg_left hnear (by positivity)
_ = _ := by field_simp
have htri := norm_add_le (riemannZeta (1+I*t)-riemannZeta (1+δ+I*t)) (riemannZeta (1+δ+I*t))
rw [sub_add_cancel] at htri
have hva : c/(2*P)≤‖riemannZeta (1+δ+I*t)‖ := by
have he : c/P=2*(c/(2*P)) := by ring
rw [he] at hl
linarith
apply le_trans ?_ hva
rw [div_div]
apply div_le_div_of_nonneg_left hc.le (by positivity)
have hP3 : P≤P^3 := by simpa using pow_le_pow_right₀ hP (show (1:ℕ)≤3 by norm_num)
have hK2 : 1≤K^2 := one_le_pow₀ hK
nlinarith [mul_le_mul_of_nonneg_left hP3 (show (0:ℝ)≤4*K^2 by positivity)]
· have hδ0 : 0<δ := (by positivity : 0<c/(2*K*P^2)).trans (lt_of_not_ge hnear)
have hInt := character_interior_lower (1:DirichletCharacter ℂ 1) hK hP hδ0 hδ1 hr
rw [DirichletCharacter.LFunction_modOne_eq] at hInt
apply le_trans ?_ hInt
calc
(c/(4*K^2))/P^3 = (c/(2*K*P^2))/(2*K*P) := by field_simp; norm_num
_ ≤ δ/(2*K*P) := div_le_div_of_nonneg_right (le_of_not_ge hnear) (by positivity)
lemma zeta_high_strip_lower {ε : ℝ} (hε : 0<ε) (hε1 : ε≤1) :
∃ c : ℝ,0<c ∧ ∀ σ t : ℝ, 1≤σ → σ≤2 → 1 ≤ |t| →
c*(|t|+2)^(-ε)≤‖riemannZeta (σ+I*t)‖ := by
obtain ⟨K,hK,hg⟩ := zeta_high_line_bounds (by linarith : 0<ε/6) (by linarith : ε/6≤1/2)
obtain ⟨c,hc,hl⟩ := zeta_high_line_lower (by linarith : 0<ε/3) (by linarith : ε/3≤1)
have hK0 : 0<K := by linarith
refine ⟨c/(4*K^2),by positivity,?_⟩
intro σ t hσ hσ2 ht
let X : ℝ := (|t|+2)
let P : ℝ := X^(ε/3)
have hX : 1≤X := by dsimp [X]; linarith [abs_nonneg t]
have hX0 : 0<X := by linarith
have hP : 1≤P := Real.one_le_rpow hX (by positivity)
have he : 2*(ε/6)=ε/3 := by ring
have hl' : c/P≤‖riemannZeta (1+I*t)‖ := by
have hh := hl t ht
change c*X^(-(ε/3))≤_ at hh
change c/X^(ε/3)≤_
simpa only [Real.rpow_neg hX0.le,div_eq_mul_inv] using hh
have hb := zeta_high_strip_lower_aux ht hc hK hP (δ:=σ-1) (by linarith) (by linarith)
(fun ψ s hs hn => by simpa only [he] using (hg t ht).1 ψ s hs hn)
(fun s hs him hn => by simpa only [he] using (hg t ht).2 s hs him hn) hl'
have hP3 : P^3=X^ε := by dsimp [P]; rw [←Real.rpow_mul_natCast hX0.le]; congr 1; norm_num
rw [hP3] at hb
have hs : (1:ℂ)+((σ-1:ℝ):ℂ)+I*t=(σ:ℂ)+I*t := by push_cast; ring
rw [hs] at hb
change (c/(4*K^2))*X^(-ε)≤_
simpa only [Real.rpow_neg hX0.le,div_eq_mul_inv] using hb
lemma principal_deriv_eq_regular {s : ℂ} (hs : 0 < s.re) :
deriv (poleRemovedL (1:DirichletCharacter ℂ 1)) s = zetaRegular s+(s-1)*deriv zetaRegular s := by
have he : poleRemovedL (1:DirichletCharacter ℂ 1) =ᶠ[𝓝 s] (fun z => (z-1)*zetaRegular z+1) := by
filter_upwards [(continuous_re.tendsto s).eventually (lt_mem_nhds hs)] with z hz
simpa only [poleRemovedL,ite_true] using poleRemovedZeta_eq hz
have hh := (((hasDerivAt_id s).sub_const 1).mul (zetaRegular_differentiableAt hs).hasDerivAt).add_const 1
rw [he.deriv_eq]
simpa only [id_eq,one_mul,Pi.mul_apply] using hh.deriv
lemma principal_deriv_growth {ε : ℝ} (hε : 0 < ε) (hε1 : ε ≤ 1) :
∃ K : ℝ, 0 < K ∧ ∀ s : ℂ, 1-ε/4 ≤ s.re →
‖deriv (poleRemovedL (1:DirichletCharacter ℂ 1)) s‖ ≤ K*(‖s‖+2)*(‖s‖+2)^ε := by
obtain ⟨K,hK,hb⟩ := zetaRegular_bounds (by linarith : 0 < ε/2) (by linarith : ε/2 ≤ 1/2)
have hK0 : 0 < K := by linarith
refine ⟨K,hK0,?_⟩
intro s hs
obtain ⟨hl,hd⟩ := hb s (by linarith)
rw [show 2*(ε/2)=ε by ring] at hl hd
rw [principal_deriv_eq_regular (by linarith)]
have hn : ‖s-1‖ ≤ ‖s‖+1 := by simpa using norm_sub_le s 1
calc
_ ≤ ‖zetaRegular s‖+‖s-1‖*‖deriv zetaRegular s‖ := by
apply (norm_add_le _ _).trans_eq
rw [norm_mul]
_ ≤ K*(‖s‖+2)^ε+(‖s‖+1)*(K*(‖s‖+2)^ε) := by gcongr
_ = _ := by ring
lemma principal_strip_lower {ε : ℝ} (hε : 0 < ε) (hε1 : ε ≤ 1) :
∃ c : ℝ, 0 < c ∧ ∀ σ t : ℝ, 1 ≤ σ → σ ≤ 2 →
c*(|t|+2)/((|t|+2)^ε) ≤ ‖poleRemovedL (1:DirichletCharacter ℂ 1) (σ+I*t)‖ := by
obtain ⟨c₀,hc₀,hl⟩ := zeta_high_strip_lower hε hε1
let F := poleRemovedL (1:DirichletCharacter ℂ 1)
let S : Set ℂ := (fun p : ℝ×ℝ => (p.1:ℂ)+I*p.2) '' (Set.Icc 1 2 ×ˢ Set.Icc (-1) 1)
have hS : IsCompact S := (isCompact_Icc.prod isCompact_Icc).image (by fun_prop)
have hmem (z : ℂ) : z∈S ↔ 1 ≤ z.re ∧ z.re ≤ 2 ∧ |z.im| ≤ 1 := by
constructor
· rintro ⟨⟨u,v⟩,⟨hu,hv⟩,rfl⟩
simpa [abs_le,and_assoc] using And.intro hu hv
· rintro ⟨h₁,h₂,h₃⟩
refine ⟨(z.re,z.im),⟨⟨h₁,h₂⟩,abs_le.mp h₃⟩,?_⟩
simpa only [mul_comm] using Complex.re_add_im z
have hc : ContinuousOn (fun z => (F z)⁻¹) S := by
intro z hz
exact (((poleRemovedL_differentiable 1).continuous.continuousAt).inv₀
(poleRemovedL_ne_zero 1 ((hmem z).mp hz).1)).continuousWithinAt
obtain ⟨M,hM⟩ := hS.exists_bound_of_continuousOn hc
let D := max M 1
have hD : 0 < D := lt_of_lt_of_le zero_lt_one (le_max_right _ _)
let c := min (c₀/3) (1/(3*D))
have hc : 0 < c := by dsimp [c]; positivity
refine ⟨c,hc,?_⟩
intro σ t hσ hσ2
let z : ℂ := (σ:ℂ)+I*t
have hz : 1 ≤ z.re := by simpa [z] using hσ
have hT : 1 ≤ |t|+2 := by linarith [abs_nonneg t]
have hP : 1 ≤ (|t|+2)^ε := Real.one_le_rpow hT hε.le
by_cases ht : 1 ≤ |t|
· have hz1 : z≠1 := by intro hh; have hi := congrArg Complex.im hh; simp [z] at hi; simp [hi] at ht; norm_num at ht
have he : F z=(z-1)*riemannZeta z := by
simp only [F,poleRemovedL,ite_true,DirichletCharacter.LFunctionTrivChar₁,Function.update_of_ne hz1,
DirichletCharacter.LFunctionTrivChar,DirichletCharacter.LFunction_modOne_eq]
have hnorm : (|t|+2)/3 ≤ ‖z-1‖ := by
have hi := Complex.abs_im_le_norm (z-1)
simp [z] at hi
linarith
have hlow := hl σ t hσ hσ2 ht
rw [Real.rpow_neg (by positivity : 0 ≤ |t|+2),←div_eq_mul_inv] at hlow
change c*(|t|+2)/( |t|+2)^ε ≤ ‖F z‖
rw [he,norm_mul]
calc
_ ≤ (c₀/3)*(|t|+2)/(|t|+2)^ε := div_le_div_of_nonneg_right
(mul_le_mul_of_nonneg_right (min_le_left _ _) (by positivity)) (by positivity)
_ = ((|t|+2)/3)*(c₀/(|t|+2)^ε) := by ring
_ ≤ _ := mul_le_mul hnorm hlow (by positivity) (norm_nonneg _)
· have ht1 : |t| ≤ 1 := le_of_not_ge ht
have hzS : z∈S := (hmem z).mpr ⟨hz,by simpa [z] using hσ2,by simpa [z] using ht1⟩
have hb := (hM z hzS).trans (le_max_left M 1)
have hn : 0 < ‖F z‖ := norm_pos_iff.mpr (poleRemovedL_ne_zero 1 hz)
rw [norm_inv,inv_eq_one_div] at hb
have hlow : 1/D ≤ ‖F z‖ := by
apply (div_le_iff₀ hD).mpr
have hh := (div_le_iff₀ hn).mp hb
nlinarith
change c*(|t|+2)/(|t|+2)^ε ≤ ‖F z‖
apply le_trans ?_ hlow
calc
_ ≤ c*(|t|+2) := div_le_self (by positivity) hP
_ ≤ (1/(3*D))*3 := mul_le_mul (min_le_right _ _) (by linarith) (by positivity) (by positivity)
_ = 1/D := by ring
end LargePrimeGaps
end OAI

Xet Storage Details

Size:
19.6 kB
·
Xet hash:
a5c42af741b1b687e1191f6311594d83625e0c08e6089ff6c2c5fb09478d7ae4

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.