Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Strict explicit upper bound for the reciprocal prime sum, x≥108x \ge 10^{8}x≥108 (R--S 1962, (8.9))

Open
TaoFivePrimes.reciprocal_prime_sum_upper_bound_strict

by Yuxuan Xu · Sep 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

analytic-number-theorychebyshev-functionsnumber-theoryprimes

For every real x≥108x\ge 10^{8}x≥108,

∑p≤⌊x⌋, p prime1p  <  log⁡log⁡x+γ+∑p prime′(log⁡(1−1p)+1p)+log⁡(1+12log⁡2x),\sum_{p\le\lfloor x\rfloor,\ p\ \mathrm{prime}} \frac1p \;<\; \log\log x+\gamma+\sum_{p\ \mathrm{prime}}'\Bigl(\log\Bigl(1-\frac1p\Bigr)+\frac1p\Bigr)+\log\Bigl(1+\frac1{2\log^2 x}\Bigr),p≤⌊x⌋, p prime∑​p1​<loglogx+γ+p prime∑′​(log(1−p1​)+p1​)+log(1+2log2x1​),

where γ\gammaγ is Euler's constant and the series is the usual convergent one over primes. Writing B1B_1B1​ for Mertens' constant the series equals B1−γB_1-\gammaB1​−γ, so this is the strict form of ∑p≤x1/p<log⁡log⁡x+B1+1/(2log⁡2x)\sum_{p\le x}1/p<\log\log x+B_1+1/(2\log^2 x)∑p≤x​1/p<loglogx+B1​+1/(2log2x), i.e. the upper half of Lemma 13, inequality (8.9), of Rosser and Schoenfeld, Approximate formulas for some functions of prime numbers, Illinois J. Math. 6 (1962), p. 86, which they state with a strict inequality.

Why both this and the non-strict form. The reduction of TaoFivePrimes.rosser_schoenfeld_product_log_bound_large has a strict conclusion, so at least one of its two inputs must be strict; this node supplies the strictness on the reciprocal side, while TaoFivePrimes.mertens_tail_le_partial_sum only removes the constant, for which a non-strict inequality suffices. The non-strict companion TaoFivePrimes.reciprocal_prime_sum_upper_bound is kept because it is the form in which the bound is usually quoted.

Role. This is the analytic half of the proof of the Mertens product bound: it follows from an explicit upper bound for the Chebyshev function by partial summation, starting from θ(u)≤u (1+ε(u))\theta(u)\le u\,(1+\varepsilon(u))θ(u)≤u(1+ε(u)), whose main term is log⁡log⁡x\log\log xloglogx with constant the same B1B_1B1​. The published input TaoFivePrimes.schoenfeld_psi_error_large already supplies the needed one-sided Chebyshev bound.

Formalization Note Mertens' constant is kept as γ+∑p(log⁡(1−1/p)+1/p)\gamma+\sum_p(\log(1-1/p)+1/p)γ+∑p​(log(1−1/p)+1/p), so no decimal approximation of B1B_1B1​ is needed anywhere in this reduction.

Preamble
import Mathlib
Formal statement
namespace TaoFivePrimes

theorem reciprocal_prime_sum_upper_bound_strict (x : ℝ) (hx : 10 ^ 8 ≤ x) :
    (∑ p ∈ Nat.primesLE ⌊x⌋₊, 1 / (p : ℝ)) <
      Real.log (Real.log x) + Real.eulerMascheroniConstant +
        (∑' p : Nat.Primes, (Real.log (1 - 1 / (p : ℝ)) + 1 / (p : ℝ))) +
        Real.log (1 + 1 / (2 * (Real.log x) ^ 2)) := by sorry

end TaoFivePrimes
Source
J. B. Rosser, L. Schoenfeld, Approximate formulas for some functions of prime numbers, Illinois Journal of Mathematics 6 (1962), 64--94, Lemma 13, inequality (8.9) on p. 86, stated there as a strict inequality. Companion of TaoFivePrimes.reciprocal_prime_sum_upper_bound; range threshold 10^8 matches TaoFivePrimes.schoenfeld_psi_error_large.

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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me