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

Ramanujan.pi_bound_5

PrimeNumberTheoremAnd.IEANTN.Ramanujan.Ramanujan · PrimeNumberTheoremAnd/IEANTN/Ramanujan/Ramanujan.lean:827 to 841

Mathematical statement

Exact Lean statement

@[blueprint
  "ramanujan-pibound-5"
  (title := "Error estimate for theta, range 5 ")
  (statement := /-- For $\exp(2000) \leq x < \exp(3000)$ we have
$$E_\theta(x) \leq 411.5\left(\frac{\log x}{5.573412}\right)^{1.52}\exp\left(-1.89\sqrt{\frac{\log x}{5.573412}}\right).$$
(cf. \cite[(18)]{PT2021})-/)
  (proof := /-- This follows from Corollary \ref{pt_cor_1}. -/)
  (latexEnv := "sublemma")
  (discussion := 993)]
theorem pi_bound_5 (x : ℝ) (hx : x ∈ Set.Ico (exp 2000) (exp 3000)) :
    Eθ x ≤ 411.5 * (log x / 5.573412) ^ (1.52 : ℝ) * exp (-1.89 * sqrt (log x / 5.573412))

Complete declaration

Lean source

Canonical source
Full Lean sourceLean 4
@[blueprint  "ramanujan-pibound-5"  (title := "Error estimate for theta, range 5 ")  (statement := /-- For $\exp(2000) \leq x < \exp(3000)$ we have$$E_\theta(x) \leq 411.5\left(\frac{\log x}{5.573412}\right)^{1.52}\exp\left(-1.89\sqrt{\frac{\log x}{5.573412}}\right).$$(cf. \cite[(18)]{PT2021})-/)  (proof := /-- This follows from Corollary \ref{pt_cor_1}. -/)  (latexEnv := "sublemma")  (discussion := 993)]theorem pi_bound_5 (x : ) (hx : x  Set.Ico (exp 2000) (exp 3000)) :    Eθ x  411.5 * (log x / 5.573412) ^ (1.52 : ) * exp (-1.89 * sqrt (log x / 5.573412)) := by  have h7 : Eθ x  admissible_bound (411.4 + 0.1) (1.52 : ) (1.89 : ) (5.573412 : ) x :=    PT.corollary_1 2000 0.98 411.4 1.52 1.89 8.35e-10 (by simp [PT.Table_1]) x hx.1  have h8 : 411.4 + 0.1 = (411.5 : ) := by norm_num  simpa [h8, admissible_bound, sqrt_eq_rpow] using h7