Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 726 · variants.mertens_estimate

Source:Erdős Problems
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

The classical estimate of Mertens states that ∑p≤n1p∼log⁡log⁡n\sum_{p\leq n}\frac{1}{p}\sim \log\log n.

Subjects:Number Theory (math.NT)
MSC classes:11
Tags:formal_proof
Cite as:NS.03018 [math.NT] · NS.03018v1 for this version
Declaration:Erdos726.erdos_726.variants.mertens_estimate
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10; accepted critique: up to 100
Statement hash:4f4a11a3fd99507a153da92b998b6313f16d606ebd37d74e73dfac4ee738db90
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/726.lean

Formal statement

theorem erdos_726.variants.mertens_estimate :
    (fun n : ℕ ↦ ∑ p ∈ (range (n + 1)).filter (fun p ↦ p.Prime), (1 : ℝ) / ((p : ℕ) : ℝ))
    ~[atTop] (fun n : ℕ ↦ Real.log (Real.log (n : ℝ)))
Show the full Challenge.lean (65 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 726

*References:*
- [erdosproblems.com/726](https://www.erdosproblems.com/726)
- [EGRS75] Erdős, P., and Graham, R. L. and Ruzsa, I. Z. and Straus, E. G., On the prime factors of
  $(\sp{2n}\sb{n})$. Math. Comp. (1975), 83-92.
-/

@[expose] public section

open Nat Filter Finset
open scoped Topology Asymptotics

namespace Erdos726

/--
As $n\to \infty$ ranges over integers
$\sum_{p\leq n}1_{n\in (p/2,p)\pmod{p}}\frac{1}{p}\sim \frac{\log\log n}{2}$?

A conjecture of Erdős, Graham, Ruzsa, and Straus [EGRS75].

By $n\in (p/2,p)\pmod{p}$ we mean $n\equiv r\pmod{p}$ for some integer $r$ with $p/2<r<p$.
The remainder `n % p` is computed in `ℕ` before casting to `ℝ`.
-/
@[category research open, question, AMS 11]
theorem erdos_726 :
    (fun n : ℕ ↦ ∑ p ∈ (range (n + 1)).filter
        (fun p : ℕ ↦ p.Prime ∧ (p : ℝ) / 2 < ((n % p : ℕ) : ℝ)),
      (1 : ℝ) / (p : ℝ))
    ~[atTop] (fun n : ℕ ↦ Real.log (Real.log (n : ℝ)) / 2) := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
The classical estimate of Mertens states that $\sum_{p\leq n}\frac{1}{p}\sim \log\log n$.
-/
@[category research solved, AMS 11, formal_proof using lean4 at
  "https://github.com/linrock/math-proofs/blob/74888affffcf320d798f78a2fb45d13c86704d89/erdos-726/Solution.lean#L36"]
theorem erdos_726.variants.mertens_estimate :
    (fun n : ℕ ↦ ∑ p ∈ (range (n + 1)).filter (fun p ↦ p.Prime), (1 : ℝ) / ((p : ℕ) : ℝ))
    ~[atTop] (fun n : ℕ ↦ Real.log (Real.log (n : ℝ))) := by
  sorry

end Erdos726

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos726.erdos_726.variants.mertens_estimate with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_mertens_estimate : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk erdos-726--erdos-726-variants-mertens-estimate      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch erdos-726--erdos-726-variants-mertens-estimate
nosorry submit erdos-726--erdos-726-variants-mertens-estimate nosorry/erdos-726--erdos-726-variants-mertens-estimate/Solution.lean --wait

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.