A Mertens-type bound for
ProvedMertensTheorems.sum_inv_prime_sub_one_leThe sum of over primes has the same growth as .
There is an absolute constant such that for every ,
Mertens' second theorem gives , and the difference between the two sums converges absolutely:
since . So replacing by changes only the additive constant, not the growth.
The weight is the one that appears naturally in sieve theory and in multiplicative number theory, because is the density of a fixed non-zero residue class mod among the integers coprime to — equivalently . Bounds for and for singular series in the Hardy–Littlewood circle method are routinely reduced to this sum.
Formalization note. The sum runs over primes ; note is computed in after the cast, so no truncated subtraction occurs. The constant is existentially quantified.
import Mathlib
namespace MertensTheorems
theorem sum_inv_prime_sub_one_le :
∃ C : ℝ, ∀ n : ℕ, 2 ≤ n →
∑ p ∈ (Finset.range (n + 1)).filter Nat.Prime, (1 : ℝ) / (p - 1)
≤ Real.log (Real.log n) + C := by sorry
end MertensTheorems