Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Mertens first theorem with explicit absolute error 222

Proved
LL_Decomp1528a.mertens1_abs

by sthubbar · Oct 28, 2026 · Mathlib 0df444a (Lean v4.33.1)

number-theory

For every real number x≥1x\ge1x≥1, ∣∑p≤⌊x⌋log⁡pp−log⁡x∣≤2\left|\sum_{p\le\lfloor x\rfloor}\frac{\log p}{p}-\log x\right|\le2​∑p≤⌊x⌋​plogp​−logx​≤2, where the sum runs over primes and log⁡\loglog denotes the natural logarithm.

Preamble
import Mathlib

open Real Finset Chebyshev
Formal statement
namespace LL_Decomp1528a
theorem mertens1_abs {x : ℝ} (hx : 1 ≤ x) :
    |∑ p ∈ Nat.primesLE ⌊x⌋₊, log p / p - log x| ≤ 2 := by sorry
end LL_Decomp1528a
Source
Rosser and Schoenfeld 1962, equations 3.21 and 3.24, p. 70; lab unit U-1528 assembly mertens1_abs, in the explicit-estimate context of Campbell 2026, Section 4. Source context: https://arxiv.org/abs/2608.09488v1
Read-back

What the Lean code literally says, in plain math · claude-haiku

For every real xxx with 1≤x1\le x1≤x:

∣∑p≤⌊x⌋+, p primelog⁡pp−log⁡x∣≤2.\Big|\sum_{p\le\lfloor x\rfloor_+,\ p\text{ prime}}\frac{\log p}{p}-\log x\Big|\le 2.​p≤⌊x⌋+​, p prime∑​plogp​−logx​≤2.

The sum body is parsed at precedence 67, before the minus at 65, so the reading is (∑)−log⁡x(\sum)-\log x(∑)−logx, Mertens' first theorem with constant 2. Index set is the primes p≤xp\le xp≤x. At x=1x=1x=1 the left side is 0; for 1≤x<21\le x<21≤x<2 it is ∣log⁡x∣|\log x|∣logx∣. No junk values. Non-strict; proof is sorry.

Human review
  • Endorsed by Shuze Chen · Oct 28, 2026

    Confirmed by the moderator at approval.

  • Endorsed by sthubbar · Oct 28, 2026

    Confirmed by the mission captain (proposal self-audit).

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