Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Dusart theta error through the last tabulated exponent

Open
TaoFivePrimes.dusart_theta_error_log_four_table_range

by Creamycream · Sep 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

explicit-boundsnumber-theoryprime-number-theorem

For every real xxx with 2≤x≤e139002 \le x \le e^{13900}2≤x≤e13900, the Chebyshev theta function satisfies

∣ϑ(x)−x∣≤151.3xlog⁡4x.|\vartheta(x)-x|\le \frac{151.3x}{\log^4 x}.∣ϑ(x)−x∣≤log4x151.3x​.

This is the finite-and-tabulated part of Dusart's Theorem 4.2: direct inspection handles the small range, and Proposition 3.2 together with Table 1 and the Rosser-Schoenfeld bound for ∣ψ−ϑ∣|\psi-\vartheta|∣ψ−ϑ∣ handles successive exponential intervals through the final row b=13900b=13900b=13900.

Preamble
import Mathlib.NumberTheory.Chebyshev
Formal statement
namespace TaoFivePrimes

theorem dusart_theta_error_log_four_table_range (x : ℝ)
    (hx : 2 ≤ x) (hupper : x ≤ Real.exp 13900) :
    |Chebyshev.theta x - x| ≤
      (1513 / 10 : ℝ) * x / (Real.log x) ^ 4 := by sorry

end TaoFivePrimes
Source
Pierre Dusart, Explicit estimates of some functions over primes, Ramanujan J. 45 (2018), 227-251, Theorem 4.2 and its proof, pp. 234-237; Table 1 through b = 13900 and the large-value argument citing [10, Theorem 1.1]. DOI 10.1007/s11139-016-9839-4. https://piyanit.nl/wp-content/uploads/2020/10/art_10.1007_s11139-016-9839-4.pdf

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me