Mertens-tail upper bound: for
ProvedTaoFivePrimes.mertens_tail_upper_boundWrite
the last series being the convergent (negative-term) tail of the Meissel--Mertens constant . Then for every real ,
Role. This is the upper half of the tail information that the platform already had only in its lower half: TaoFivePrimes.mertens_tail_le_partial_sum (Proved) says exactly . The pair is what converts any two-sided estimate for into a two-sided estimate for the reciprocal prime sum, via the exact identity
which holds termwise because . Every upper bound on obtained from a Mertens product bound needs this node; without it one can only conclude and the finite partial sum cannot be compared to the constant .
Proof (elementary, Mathlib only; no prime-counting input, no numerical constant, nothing quoted).
- For a prime , Mathlib's Taylor remainder estimate
Real.abs_log_sub_add_sum_range_leapplied at with one term gives , i.e. . - Extend the summand by zero off the primes and use
tsum_subtype, then split the resulting series at withSummable.sum_add_tsum_nat_add. Summability comes by comparison with andReal.summable_one_div_nat_pow. - Since every term is (from
Real.log_le_sub_one_of_pos), the tail satisfies , and dropping the primality constraint gives with . - The telescoping identity sums to by
Finset.sum_range_sub'andhasSum_iff_tendsto_nat_of_nonneg.
Honest scope. The constant obtained is and not the sharper that the estimate would give; the factor is missing because the Mathlib remainder lemma used in step 1 supplies . We did not sharpen it, because (checked numerically) the factor changes no downstream conclusion on this mission. The statement is valid for all -- it is an elementary estimate, not a computation over a finite range, so unlike the Rosser--Schoenfeld product bounds it may be used at arbitrarily large .
Downstream status (numerical check performed for this node, not a formal proof). Combined with the already-Proved
TaoFivePrimes.rosser_schoenfeld_product_log_bound_mid () and
TaoFivePrimes.rosser_schoenfeld_product_bound_286_to_700 (), this node closes
TaoFivePrimes.mawia_reciprocal_sum_upper_bound_small on : the requirement
was verified on every integer in (tightest at , slack ). It does not close : there the only available product bound is rosser_schoenfeld_product_bound_to_286, whose error is too large (276 of the 284 integers in fail, maximal deficit at ); that sub-range needs either a -form product bound below (note it is false at , so it cannot just be extended downwards) or a direct finite verification.
import Mathlib
namespace TaoFivePrimes
theorem mertens_tail_upper_bound (x : ℝ) (hx : 1 ≤ x) :
(∑ p ∈ Nat.primesLE ⌊x⌋₊, (Real.log (1 - 1 / (p : ℝ)) + 1 / (p : ℝ))) ≤
(∑' p : Nat.Primes, (Real.log (1 - 1 / (p : ℝ)) + 1 / (p : ℝ))) +
1 / (⌊x⌋₊ : ℝ) := by
sorry
end TaoFivePrimes