Dusart's explicit upper bound for
OpenQRHLittlewood.dusart_reciprocal_primesLet be the Euler–Mascheroni constant and let
be Mertens' constant, the sum running over all primes. For every real ,
This is the explicit form of Mertens' second theorem used to bound smoothed sums over primes.
Status note (2026-10-17) The release Dusart v2.0.0, doi:10.5281/zenodo.23432990 proves this bound in Lean 4 from the Chebyshev estimate for alone (Dusart.dusart_reciprocal_primes_of_chebyshev_large).
Status note (2026-10-19) The release Dusart v3.0.0, doi:10.5281/zenodo.23463154 proves this bound in Lean 4 with a single published table row as the only hypothesis, for (Broadbent, Kadiri, Lumley, Ng and Wilk, Math. Comp. 90 (2021), Theorem 1 with , Table 15, row ) (Dusart.dusart_reciprocal_primes_of_bklnw; axioms propext, Classical.choice, Quot.sound only). With that published theorem the bound holds unconditionally as mathematics; the row itself is not formalized, so on this platform the entry stays reduced to the Chebyshev estimate.
import Mathlib.NumberTheory.Harmonic.EulerMascheroni import Mathlib.NumberTheory.LSeries.DirichletContinuation open Real
namespace QRHLittlewood
theorem dusart_reciprocal_primes (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
end QRHLittlewoodRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Statement. For every real number ,
where is the natural logarithm and
with the Euler–Mascheroni constant.
Details.
- The finite sum runs over primes in , i.e. exactly the primes (here is the usual floor since ).
- The infinite sum over all primes is an unconditional (summability-based) sum; in Mathlib such a sum is defined to be if the family is not summable. The terms are negative and of size about , so this junk convention would only matter if the family failed to be summable.
- For , , so all logarithms and denominators are genuine (no junk values).
- This is a one-sided bound: only an upper bound on is asserted; no lower bound is claimed. The difference may be negative.
- No hypotheses other than ; need not be an integer.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.