The Mertens correction tail is between zero and 1/(2N)
ProvedMertensCorrection.prime_correction_tail_half_boundinfinite-seriesmertens-theoremnumber-theoryprimes
For each prime , set . For every integer , the finite correction and the full correction series satisfy
The correction series converges absolutely. The finite sum includes when is prime, so the omitted tail consists of primes strictly greater than .
This auxiliary estimate improves the bound used in the existing Mertens correction-tail lemmas. It can reduce the error allowance for a truncated correction series; an explicit Mertens product estimate still requires bounds for the reciprocal-prime sum.
Preamble
import Mathlib.NumberTheory.PrimeCounting import Mathlib.Analysis.PSeries import Mathlib.Analysis.SpecialFunctions.Log.Deriv import Mathlib.Analysis.Calculus.Deriv.MeanValue import Mathlib.Tactic
Formal statement
theorem MertensCorrection.prime_correction_tail_half_bound (N : ℕ) (hN : 1 ≤ N) :
0 ≤ (∑ p ∈ Nat.primesLE N, (Real.log (1 - 1 / (p : ℝ)) + 1 / (p : ℝ))) -
(∑' p : Nat.Primes, (Real.log (1 - 1 / (p : ℝ)) + 1 / (p : ℝ))) ∧
(∑ p ∈ Nat.primesLE N, (Real.log (1 - 1 / (p : ℝ)) + 1 / (p : ℝ))) -
(∑' p : Nat.Primes, (Real.log (1 - 1 / (p : ℝ)) + 1 / (p : ℝ))) ≤
1 / (2 * (N : ℝ)) := by sorrySource
Elementary proof by logarithm comparison and telescoping. For 0 <= u < 1, -log(1-u)-u <= u^2/(2(1-u)). At u=1/n this is 1/(2(n-1))-1/(2n). Summing over integers n>N bounds the prime tail. Background for the correction-series normalization: R. Vanlalngaia, Explicit Mertens Sums, INTEGERS 17 (2017), A11, equation (17), https://emis.de/ft/19485. No claim is made that the exact 1/(2N) bound is stated in that source.