AlexKontorovich/PrimeNumberTheoremAnd
Source indexedtheorem · leanprover/lean4:v4.32.0
Ramanujan.pi_bound_4
PrimeNumberTheoremAnd.IEANTN.Ramanujan.Ramanujan · PrimeNumberTheoremAnd/IEANTN/Ramanujan/Ramanujan.lean:805 to 825
Mathematical statement
Exact Lean statement
@[blueprint
"ramanujan-pibound-4"
(title := "Error estimate for theta, range 4")
(statement := /-- For $\exp(1169) \leq x < \exp(2000)$ we have
$$E_\theta(x) \leq 462.0\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 := 992)]
theorem pi_bound_4 (x : ℝ) (hx : x ∈ Set.Ico (exp 1169) (exp 2000)) :
Eθ x ≤ 462.0 * (log x / 5.573412) ^ (1.52 : ℝ) * exp (-1.89 * sqrt (log x / 5.573412))Complete declaration
Lean source
Full Lean sourceLean 4
@[blueprint "ramanujan-pibound-4" (title := "Error estimate for theta, range 4") (statement := /-- For $\exp(1169) \leq x < \exp(2000)$ we have$$E_\theta(x) \leq 462.0\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 := 992)]theorem pi_bound_4 (x : ℝ) (hx : x ∈ Set.Ico (exp 1169) (exp 2000)) : Eθ x ≤ 462.0 * (log x / 5.573412) ^ (1.52 : ℝ) * exp (-1.89 * sqrt (log x / 5.573412)) := by have h3 : exp 1000 ≤ x := by have h5 : exp 1000 ≤ exp 1169 := by apply exp_le_exp.mpr norm_num have h6 : exp 1169 ≤ x := hx.1 linarith have h7 : Eθ x ≤ admissible_bound (461.9 + 0.1) (1.52 : ℝ) (1.89 : ℝ) (5.573412 : ℝ) x := PT.corollary_1 1000 0.98 461.9 1.52 1.89 1.20e-5 (by simp [PT.Table_1]) x h3 have h8 : 461.9 + 0.1 = (462.0 : ℝ) := by norm_num simpa [h8, admissible_bound, sqrt_eq_rpow] using h7