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

Dusart.theta_improv_2

PrimeNumberTheoremAnd.IEANTN.TMEEMT · PrimeNumberTheoremAnd/IEANTN/TMEEMT.lean:472 to 487

Mathematical statement

Exact Lean statement

@[blueprint
  "thm:dusart2018-theta-improv-2"
  (title := "Dusart 2018, $\\vartheta$ improvement 2")
  (statement := /-- For $x \geq 89{,}967{,}803$, we have $|\vartheta(x) - x| \leq \frac{x}{\log^3 x}$. -/)
  (latexEnv := "theorem")]
theorem theta_improv_2 (x : ℝ) (hx : x ≥ 89967803) :
    |θ x - x| ≤ x / (log x) ^ 3

Complete declaration

Lean source

Canonical source
Full Lean sourceLean 4
@[blueprint  "thm:dusart2018-theta-improv-2"  (title := "Dusart 2018, $\\vartheta$ improvement 2")  (statement := /-- For $x \geq 89{,}967{,}803$, we have $|\vartheta(x) - x| \leq \frac{x}{\log^3 x}$. -/)  (latexEnv := "theorem")]theorem theta_improv_2 (x : ) (hx : x  89967803) :    |θ x - x|  x / (log x) ^ 3 := by  have hx_pos : (0:) < x := by linarith  have hlog_pos : (0:) < log x := log_pos (by linarith)  have hlog3_pos : (0:) < (log x) ^ 3 := by positivity  have hmem : (3, (1:), (89967803:))  Dusart.Table_4_2 := by    simp [Dusart.Table_4_2]  have hEθ := Dusart.theorem_4_2 hmem hx  unfold Eθ at hEθ  rw [div_le_div_iff₀ hx_pos hlog3_pos, one_mul] at hEθ  rwa [le_div_iff₀' hlog3_pos, mul_comm]