Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The Mertens tail is dominated by every finite partial sum

Proved
TaoFivePrimes.mertens_tail_le_partial_sum

by Yuxuan Xu · Sep 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

analytic-number-theorynumber-theoryprimesseries

Write f(p)=log⁡(1−1p)+1pf(p)=\log\bigl(1-\tfrac1p\bigr)+\tfrac1pf(p)=log(1−p1​)+p1​ for a prime ppp. For every real xxx,

∑p prime′  f(p)  ≤  ∑p≤⌊x⌋, p primef(p).\sum_{p\ \mathrm{prime}}'\; f(p)\;\le\;\sum_{p\le\lfloor x\rfloor,\ p\ \mathrm{prime}} f(p).p prime∑′​f(p)≤p≤⌊x⌋, p prime∑​f(p).

That is: the full series is dominated by each of its finite partial sums. Since f(p)<0f(p)<0f(p)<0 for every prime, the partial sums decrease to the sum, so this is the statement that the series converges from above.

The constant ∑pf(p)\sum_p f(p)∑p​f(p) is Mertens' constant B1B_1B1​ minus γ\gammaγ, numerically B1−γ=−0.3157184511…B_1-\gamma=-0.3157184511\ldotsB1​−γ=−0.3157184511…; both B1B_1B1​ and γ\gammaγ cancel when this node is combined with the reciprocal-prime upper bound, so no numerical value for either is ever needed.

Role. This is the elementary half of Rosser and Schoenfeld's proof of the Mertens product bound (3.29). Their step (iii) exponentiates the identity

∑p≤xlog⁡pp−1=∑p≤x1p−∑p≤xf(p),\sum_{p\le x}\log\frac{p}{p-1}=\sum_{p\le x}\frac1p-\sum_{p\le x}f(p),p≤x∑​logp−1p​=p≤x∑​p1​−p≤x∑​f(p),

so the product bound follows from an upper bound for ∑p≤x1/p\sum_{p\le x}1/p∑p≤x​1/p (the analytic half, TaoFivePrimes.reciprocal_prime_sum_upper_bound) together with this node, which removes the constant. Unlike the analytic half, this node needs no prime-counting input: it is convergence of a series plus the sign of its terms.

Formalization Note Nat.primesLE x is Mathlib's finite set of primes at most xxx, and ⌊x⌋₊ is Nat.floor x; the sum only depends on ⌊x⌋\lfloor x\rfloor⌊x⌋.

Preamble
import Mathlib
Formal statement
namespace TaoFivePrimes

theorem mertens_tail_le_partial_sum (x : ℝ) :
    (∑' p : Nat.Primes, (Real.log (1 - 1 / (p : ℝ)) + 1 / (p : ℝ))) ≤
      ∑ p ∈ Nat.primesLE ⌊x⌋₊, (Real.log (1 - 1 / (p : ℝ)) + 1 / (p : ℝ)) := by sorry

end TaoFivePrimes
Source
J. B. Rosser, L. Schoenfeld, Approximate formulas for some functions of prime numbers, Illinois Journal of Mathematics 6 (1962), 64--94, identity (2.7) on p. 65 and step (iii) of the proof of (3.29) on p. 87. The series is Mertens' constant minus Euler's constant; its convergence is classical (Mertens 1874). Stated here in the form needed by the reduction of TaoFivePrimes.rosser_schoenfeld_product_log_bound_large.

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me