Skip to main content
AlexKontorovich/PrimeNumberTheoremAnd
Source indexedtheorem · leanprover/lean4:v4.32.0

GlobalBound

PrimeNumberTheoremAnd.StrongPNT · PrimeNumberTheoremAnd/StrongPNT.lean:1254 to 1318

Mathematical statement

Exact Lean statement

@[blueprint "GlobalBound"
  (title := "GlobalBound")
  (statement := /--
    For all $s\in\mathbb{C}$ with $|s|\leq 1$ and $t\in\mathbb{R}$ with $|t|\geq 2$, we have that
    $$|\zeta(s+3/2+it)|\leq 7+2\,|t|.$$
  -/)
  (proof := /--
    For the sake of clearer proof writing let $z=s+3/2+it$. Since $|s|\leq 1$ we know that
    $1/2\leq\mathfrak{R}z$; additionally, as $|t|\geq 2$, we know $1\leq|\mathfrak{I}z|$.
    So, $z\in S$. Thus, from Lemma \ref{ZetaAltFormula} we know that
    $$|\zeta(z)|\leq 1+\frac{1}{|z-1|}
      +|z|\cdot\left|\int_1^\infty\{x\}\,x^{-z}\,\frac{dx}{x}\right|$$
    by applying the triangle inequality. Now note that $|z-1|\geq 1$. Likewise,
    $$|z|\cdot\left|\int_1^\infty\{x\}\,x^{-z}\,\frac{dx}{x}\right|
      \leq|z|\int_1^\infty|\{x\}\,x^{-z-1}|\,dx
      \leq|z|\int_1^\infty x^{-\Re z-1}\,dx=\frac{|z|}{\Re z}\leq 2\,|z|.$$
    Thus we have that,
    $$|\zeta(s+3/2+it)|=|\zeta(z)|\leq 1+1+2\,|z|=2+2\,|s+3/2+it|
      \leq2+2\,|s|+3+2\,|it|\leq 7+2\,|t|.$$
  -/)]
theorem GlobalBound
    {s : ℂ} (hs : ‖s‖ ≤ 1) {t : ℝ} (ht : |t| ≥ 2) :
    ‖ζ (s + 3 / 2 + I * t)‖ ≤ 7 + 2 * |t|

Complete declaration

Lean source

Canonical source
Full Lean sourceLean 4
@[blueprint "GlobalBound"  (title := "GlobalBound")  (statement := /--    For all $s\in\mathbb{C}$ with $|s|\leq 1$ and $t\in\mathbb{R}$ with $|t|\geq 2$, we have that    $$|\zeta(s+3/2+it)|\leq 7+2\,|t|.$$  -/)  (proof := /--    For the sake of clearer proof writing let $z=s+3/2+it$. Since $|s|\leq 1$ we know that    $1/2\leq\mathfrak{R}z$; additionally, as $|t|\geq 2$, we know $1\leq|\mathfrak{I}z|$.    So, $z\in S$. Thus, from Lemma \ref{ZetaAltFormula} we know that    $$|\zeta(z)|\leq 1+\frac{1}{|z-1|}      +|z|\cdot\left|\int_1^\infty\{x\}\,x^{-z}\,\frac{dx}{x}\right|$$    by applying the triangle inequality. Now note that $|z-1|\geq 1$. Likewise,    $$|z|\cdot\left|\int_1^\infty\{x\}\,x^{-z}\,\frac{dx}{x}\right|      \leq|z|\int_1^\infty|\{x\}\,x^{-z-1}|\,dx      \leq|z|\int_1^\infty x^{-\Re z-1}\,dx=\frac{|z|}{\Re z}\leq 2\,|z|.$$    Thus we have that,    $$|\zeta(s+3/2+it)|=|\zeta(z)|\leq 1+1+2\,|z|=2+2\,|s+3/2+it|      \leq2+2\,|s|+3+2\,|it|\leq 7+2\,|t|.$$  -/)]theorem GlobalBound    {s : ℂ} (hs : ‖s‖  1) {t : } (ht : |t|  2) :    ‖ζ (s + 3 / 2 + I * t)‖  7 + 2 * |t| := by  have sReLB : -1  s.re := by linarith [abs_le.mp ((Complex.abs_re_le_norm s).trans hs)]  have hz : s + 3 / 2 + I * ↑t  {s | 0 < s.re  s  1} := by    simp only [ne_eq, Complex.ext_iff, one_re, one_im, not_and, mem_setOf_eq, add_re, div_ofNat_re,      re_ofNat, mul_re, I_re, ofReal_re, zero_mul, I_im, ofReal_im, mul_zero, sub_self, add_zero,      add_im, div_ofNat_im, im_ofNat, zero_div, mul_im, one_mul, zero_add]    refine by linarith, fun hs => ?_    cases abs_cases t <;>  linarith [abs_le.mp (Complex.abs_re_le_norm s), abs_le.mp (Complex.abs_im_le_norm s)]  have leadingTerms : ‖1 + 1 / (s + 3 / 2 + I * ↑t - 1)‖  2 := by    rw [ one_add_one_eq_two (R := )]    apply norm_add_le_of_le (norm_one.le)    rw [norm_div, norm_one, div_le_one (norm_pos_iff.mpr (sub_ne_zero.mpr hz.2))]    simp only [norm_def, normSq, MonoidWithZeroHom.coe_mk, ZeroHom.coe_mk, sqrt_le_one, sub_re,      add_re, div_ofNat_re, re_ofNat, mul_re, I_re, ofReal_re, zero_mul, I_im, ofReal_im, mul_zero,      sub_self, add_zero, one_re, sub_im, add_im, div_ofNat_im, im_ofNat, zero_div, mul_im, one_mul,      zero_add, one_im, sub_zero, one_le_sqrt] at  hs    cases abs_cases t <;> nlinarith [sq_nonneg (s.re + 1 / 2), sq_nonneg (s.im + t - 1), sq_nonneg (s.im + t + 1)]  have domBound {x : } (hu : x  Ioi 1) : |Int.fract x| * ‖(x : ℂ) ^ (-(s + 3 / 2 + I * ↑t) - 1)‖  x ^ (-(s.re + 3 / 2) - 1) := by    rw [mem_Ioi] at hu    rw [Complex.norm_cpow_eq_rpow_re_of_pos (by linarith)]    simp only [neg_add_rev, sub_re, add_re, neg_re, mul_re, I_re, ofReal_re, zero_mul, I_im,      ofReal_im, mul_zero, sub_self, neg_zero, div_ofNat_re, re_ofNat, zero_add, one_re, Int.abs_fract]    refine mul_le_of_le_one_left (by apply Real.rpow_nonneg (by linarith)) ((Int.fract_lt_one x).le)  have domIntegral : Integrable (fun x :  => x ^ (-(s.re + 3 / 2) - 1)) (volume.restrict (Set.Ioi 1)) := integrableOn_Ioi_rpow_of_lt (by linarith) zero_lt_one  have hint : ‖∫ (u : ) in Ioi 1, (↑(Int.fract u) : ℂ) * (u : ℂ) ^ (-(s + 3 / 2 + I * ↑t) - 1)‖  1 / (s.re + 3 / 2) := by    refine (MeasureTheory.norm_integral_le_integral_norm _).trans ?_    have hI := integral_Ioi_rpow_of_lt (a := -(s.re + 3 / 2) - 1) (by linarith) one_pos    simp only [sub_add_cancel, one_rpow, neg_div_neg_eq] at hI    simp only [Complex.norm_mul, norm_real, norm_eq_abs,  hI]    refine integral_mono_ae (domIntegral.mono' (((measurable_fract.abs).mul ((Complex.measurable_ofReal.pow_const _).norm)).aestronglyMeasurable) ?_) domIntegral (by filter_upwards [self_mem_ae_restrict measurableSet_Ioi] with x hx using domBound hx)    filter_upwards [ae_restrict_mem measurableSet_Ioi] with x hx    rw [norm_mul, norm_eq_abs, abs_abs, norm_norm]    exact domBound hx  have z_norm : ‖s + 3 / 2 + I * ↑t‖  5 / 2 + |t| := by    have It_norm : ‖I * (↑t : ℂ)‖ = |t| := by rw [norm_mul, norm_I, one_mul, Complex.norm_real, Real.norm_eq_abs]    have threeHalves_norm : ‖(3 / 2 : ℂ)‖ = 3 / 2 := by rw [norm_div, Complex.norm_ofNat, Complex.norm_ofNat]    refine (norm_add_le_of_le (norm_add_le_of_le hs (le_of_eq threeHalves_norm)) (le_of_eq It_norm)).trans (by linarith)  have hmul : ‖(s + 3 / 2 + I * ↑t) * ∫ (u : ) in Ioi 1, (↑(Int.fract u) : ℂ) * (u : ℂ) ^ (-(s + 3 / 2 + I * ↑t) - 1)‖  5 + 2 * |t| := by    rw [norm_mul]    have hinv : (1 : ) / (s.re + 3 / 2)  2 := by rw [div_le_iff₀ (by linarith)]; linarith    exact (mul_le_mul z_norm (hint.trans hinv) (norm_nonneg _) (by linarith [abs_nonneg t])).trans (by linarith)  rw [ZetaAltFormula hz.1 hz.2]  exact (norm_sub_le_of_le leadingTerms hmul).trans (by linarith)