Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Dusart's bound for ∑p≤x1/p\sum_{p\le x}1/p∑p≤x​1/p from the explicit Chebyshev estimate

Proved
Dusart.reciprocal_primes_of_chebyshev

by @bwdaugherty · 1 vote · Oct 16, 2026 · Mathlib 0df444a (Lean v4.33.1)

analytic-number-theorynumber-theoryprime-numbers

Assume Dusart's explicit Chebyshev estimate (Theorem 5.2 with k=2k=2k=2, η=0.2\eta=0.2η=0.2):

∣θ(t)−t∣≤t5log⁡2t(t≥3594641),|\theta(t)-t|\le\frac{t}{5\log^2t}\qquad(t\ge 3594641),∣θ(t)−t∣≤5log2tt​(t≥3594641),

where θ(t)=∑p≤tlog⁡p\theta(t)=\sum_{p\le t}\log pθ(t)=∑p≤t​logp. Then for every real x≥10372x\ge10372x≥10372,

∑p≤x1p−log⁡log⁡x−B≤110log⁡2x+415log⁡3x,B=γ+∑p(log⁡(1−1p)+1p).\sum_{p\le x}\frac1p-\log\log x-B\le\frac{1}{10\log^2x}+\frac{4}{15\log^3x},\qquad B=\gamma+\sum_p\Big(\log\Big(1-\frac1p\Big)+\frac1p\Big).p≤x∑​p1​−loglogx−B≤10log2x1​+15log3x4​,B=γ+p∑​(log(1−p1​)+p1​).

This is Dusart's Theorem 6.10 (upper bound) with its only analytic input made explicit. The deduction combines partial summation, the identification of the limit of ∑p≤x1/p−log⁡log⁡x\sum_{p\le x}1/p-\log\log x∑p≤x​1/p−loglogx with Mertens' constant BBB, and the finite range [10372,3594641][10372,3594641][10372,3594641].

Formalization Note θ\thetaθ is Mathlib's Chebyshev.theta; BBB is written with tsum over Nat.Primes.

Preamble
import Mathlib.NumberTheory.Chebyshev
import Mathlib.NumberTheory.Harmonic.EulerMascheroni
Formal statement
theorem Dusart.reciprocal_primes_of_chebyshev
    (hθ : ∀ t : ℝ, 3594641 ≤ t → |Chebyshev.theta t - t| ≤ (1 / 5) * t / Real.log t ^ 2)
    (x : ℝ) (hx : 10372 ≤ x) :
    (∑ p ∈ Finset.filter Nat.Prime (Finset.range (⌊x⌋₊ + 1)), (1 : ℝ) / p) - Real.log (Real.log x) -
        (Real.eulerMascheroniConstant + ∑' p : Nat.Primes, (Real.log (1 - 1 / (p : ℝ)) + 1 / (p : ℝ))) ≤
      1 / (10 * Real.log x ^ 2) + 4 / (15 * Real.log x ^ 3) := by sorry
Source
P. Dusart, Estimates of some functions over primes without R.H., arXiv:1002.0442 (2010), Theorem 6.10 (upper bound for x ≥ 10372) and Theorem 5.2 (k = 2, η = 0.2, x ≥ 3 594 641); the proof of Theorem 6.10 closes the range below 3 594 641 by a computer check.

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