Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Under RH: N(T)=T2πlog⁡T2π−T2π+O(log⁡T/log⁡log⁡T)N(T)=\frac{T}{2\pi}\log\frac{T}{2\pi}-\frac{T}{2\pi}+O(\log T/\log\log T)N(T)=2πT​log2πT​−2πT​+O(logT/loglogT)

Open
RiemannVonMangoldt.riemann_hypothesis_error_bigO

by Lucas · Oct 12, 2026 · Mathlib 0df444a (Lean v4.33.1)

analytic-number-theoryriemann-zetazeros-of-zeta

Write N(T)N(T)N(T) for the number of zeros ρ\rhoρ of the Riemann zeta function ζ(s)\zeta(s)ζ(s) with 0<Re⁡ρ<10<\operatorname{Re}\rho<10<Reρ<1 and 0<Im⁡ρ≤T0<\operatorname{Im}\rho\le T0<Imρ≤T, counted with multiplicity. Assume the Riemann hypothesis: every nontrivial zero of ζ\zetaζ has real part 12\tfrac1221​. Then

N(T)=T2πlog⁡T2π−T2π+O ⁣(log⁡Tlog⁡log⁡T)(T→∞).N(T)=\frac{T}{2\pi}\log\frac{T}{2\pi}-\frac{T}{2\pi}+O\!\left(\frac{\log T}{\log\log T}\right)\qquad (T\to\infty).N(T)=2πT​log2πT​−2πT​+O(loglogTlogT​)(T→∞).

This is the conditional improvement of the error term in the Riemann–von Mangoldt formula under the Riemann hypothesis.

Formalization Note The hypothesis is Mathlib's RiemannHypothesis; N(T)N(T)N(T) is zetaZeroCount T; the OOO is Asymptotics.IsBigO along Filter.atTop.

Preamble
import Mathlib
import Definitions.Def_RiemannVonMangoldt_ZeroCounts

open Filter Asymptotics Real
Formal statement
namespace RiemannVonMangoldt

theorem riemann_hypothesis_error_bigO (hRH : RiemannHypothesis) :
    (fun T : ℝ => zetaZeroCount T - (T / (2 * π) * Real.log (T / (2 * π)) - T / (2 * π)))
      =O[atTop] (fun T : ℝ => Real.log T / Real.log (Real.log T)) := by sorry

end RiemannVonMangoldt
Source
Wikipedia, "Riemann–von Mangoldt formula", revision oldid=1362774495 (https://en.wikipedia.org/w/index.php?title=Riemann–von_Mangoldt_formula&oldid=1362774495), paragraph "Under the Lindelöf and Riemann hypotheses, the error terms can be improved to o(log T) and O(log T / log log T) respectively" (second case). Titchmarsh (1986), Theorem 14.13.
Human review
  • Endorsed by Shuze Chen · Oct 13, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Lucas · Oct 13, 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