Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Zero count for Dirichlet LLL-functions: N(T,χ)=Tπlog⁡qT2πe+O(log⁡qT)N(T,\chi)=\frac{T}{\pi}\log\frac{qT}{2\pi e}+O(\log qT)N(T,χ)=πT​log2πeqT​+O(logqT)

Open
RiemannVonMangoldt.dirichlet_L_zero_count

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

analytic-number-theoryriemann-zetazeros-of-zeta

For a positive integer qqq and a Dirichlet character χ\chiχ modulo qqq, write N(T,χ)N(T,\chi)N(T,χ) for the number of zeros ρ\rhoρ of the Dirichlet LLL-function L(s,χ)L(s,\chi)L(s,χ) with 0<Re⁡ρ<10<\operatorname{Re}\rho<10<Reρ<1 and −T≤Im⁡ρ≤T-T\le\operatorname{Im}\rho\le T−T≤Imρ≤T, counted with multiplicity.

There is an absolute constant CCC such that for every q≥1q\ge1q≥1, every primitive Dirichlet character χ\chiχ modulo qqq and every T≥2T\ge2T≥2,

∣N(T,χ)−Tπlog⁡qT2πe∣≤Clog⁡(qT).\left|N(T,\chi)-\frac{T}{\pi}\log\frac{qT}{2\pi e}\right|\le C\log(qT).​N(T,χ)−πT​log2πeqT​​≤Clog(qT).

In the usual notation, N(T,χ)=Tπlog⁡qT2πe+O(log⁡qT)N(T,\chi)=\frac{T}{\pi}\log\frac{qT}{2\pi e}+O(\log qT)N(T,χ)=πT​log2πeqT​+O(logqT), uniformly in qqq and χ\chiχ.

This is the analogue of the Riemann–von Mangoldt formula for Dirichlet LLL-functions; for q=1q=1q=1 (where L(s,χ)=ζ(s)L(s,\chi)=\zeta(s)L(s,χ)=ζ(s) and N(T,χ)=2N(T)N(T,\chi)=2N(T)N(T,χ)=2N(T)) it recovers the formula for ζ\zetaζ.

Formalization Note The source gives no range for TTT and leaves the uniformity implicit; the draft uses the standard form (Davenport, Multiplicative Number Theory, Ch. 16): T≥2T\ge2T≥2, with one constant CCC for all qqq and all primitive χ\chiχ. L(s,χ)L(s,\chi)L(s,χ) is Mathlib's DirichletCharacter.LFunction, primitivity is DirichletCharacter.IsPrimitive, and N(T,χ)N(T,\chi)N(T,χ) is dirichletZeroCount χ T.

Preamble
import Mathlib
import Definitions.Def_RiemannVonMangoldt_ZeroCounts

open Filter Asymptotics Real
Formal statement
namespace RiemannVonMangoldt

theorem dirichlet_L_zero_count :
    ∃ C : ℝ, ∀ (q : ℕ) [NeZero q] (χ : DirichletCharacter ℂ q), χ.IsPrimitive →
      ∀ T : ℝ, 2 ≤ T →
        |dirichletZeroCount χ T - T / π * Real.log (q * T / (2 * π * Real.exp 1))| ≤
          C * Real.log (q * 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), last displayed formula ("Similarly, for any primitive Dirichlet character χ modulo q ..."). Davenport, Multiplicative Number Theory (3rd ed., GTM 74), Chapter 16.
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