Explicit upper bound for the reciprocal prime sum, (R--S 1962, (8.9))
OpenTaoFivePrimes.reciprocal_prime_sum_upper_boundFor every real ,
where is Euler's constant and the series is the usual convergent one over primes.
Writing for Mertens' constant, the series equals , so this is exactly
which is 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: the explicit form of Mertens' second theorem with the error term made numerical. The statement keeps Mertens' constant expressed as rather than as a decimal, so that it cancels exactly against TaoFivePrimes.mertens_tail_le_partial_sum and no numerical value of is required anywhere.
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 one gets , whose main term is and whose constant is the same . The published input TaoFivePrimes.schoenfeld_psi_error_large already supplies the needed one-sided Chebyshev bound, so this node is expected to be reachable by the same Abel-summation technique that the mission has used elsewhere.
Formalization Note The sum is over Mathlib's Nat.primesLE ⌊x⌋₊, and the series over Nat.Primes; the statement depends on only through on the left and through on the right.
import Mathlib
namespace TaoFivePrimes
theorem reciprocal_prime_sum_upper_bound (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