Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

The growth exponent μ(σ)\mu(\sigma)μ(σ), zero counts N(σ,T)N(\sigma,T)N(σ,T) and prime gaps gng_ngn​

Definition
LindelofHypothesis_GrowthAndZeroCounts

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

analytic-number-theorylindelof-hypothesisriemann-zeta

This file fixes the objects in terms of which the Lindelöf hypothesis, its reformulations and its consequences are stated. Throughout, ζ\zetaζ is the Riemann zeta function (analytically continued to C∖{1}\mathbb C\setminus\{1\}C∖{1}), and the multiplicity mρ≥1m_\rho\ge1mρ​≥1 of a zero ρ\rhoρ of ζ\zetaζ is its order of vanishing.

  1. The growth exponent. For real σ\sigmaσ,
μ(σ)=inf⁡{a∈R: ζ(σ+iT)=O(Ta) as T→+∞},\mu(\sigma)=\inf\bigl\{a\in\mathbb R:\ \zeta(\sigma+iT)=O(T^{a})\ \text{as } T\to+\infty\bigr\},μ(σ)=inf{a∈R: ζ(σ+iT)=O(Ta) as T→+∞},

the infimum being taken in the extended reals [−∞,+∞][-\infty,+\infty][−∞,+∞] (so μ(σ)=+∞\mu(\sigma)=+\inftyμ(σ)=+∞ if no such aaa exists).

  1. Zeros in a unit window. For real σ\sigmaσ and TTT, the number of zeros ρ\rhoρ of ζ\zetaζ with Re⁡ρ≥σ\operatorname{Re}\rho\ge\sigmaReρ≥σ and T≤Im⁡ρ≤T+1T\le\operatorname{Im}\rho\le T+1T≤Imρ≤T+1, counted with multiplicity; and the number of all zeros ρ\rhoρ of ζ\zetaζ with T≤Im⁡ρ≤T+1T\le\operatorname{Im}\rho\le T+1T≤Imρ≤T+1, counted with multiplicity.

  2. The zero-density count. For real σ\sigmaσ and TTT,

N(σ,T)=∑ζ(ρ)=0Re⁡ρ≥σ, ∣Im⁡ρ∣≤Tmρ.N(\sigma,T)=\sum_{\substack{\zeta(\rho)=0\\ \operatorname{Re}\rho\ge\sigma,\ |\operatorname{Im}\rho|\le T}} m_\rho .N(σ,T)=ζ(ρ)=0Reρ≥σ, ∣Imρ∣≤T​∑​mρ​.
  1. Prime gaps. Writing pnp_npn​ for the nnn-th prime, gn=pn+1−png_n=p_{n+1}-p_ngn​=pn+1​−pn​.

These are the objects of the sections "The μ function", "Relation to the Riemann hypothesis", "Other consequences" and "The density hypothesis" of the source.

Formalization Note μ(σ)\mu(\sigma)μ(σ) is LindelofHypothesis.mu σ : EReal, an sInf in EReal, so the degenerate cases are ±∞\pm\infty±∞ rather than a junk value. The zero counts zeroCountWindow σ T, zeroCountWindowAll T and zeroDensityCount σ T are sums in ℕ∞ of analyticOrderAt riemannZeta ρ over the zero set; an infinite count would be ⊤\top⊤, never 000, so upper bounds on them cannot hold vacuously. Primes are indexed from 000 (Nat.nth Nat.Prime 0 = 2), which is immaterial for the asymptotic statements. The Lindelöf hypothesis itself is reused from the published definition RiemannVonMangoldt.LindelofHypothesis: for every ε>0\varepsilon>0ε>0, ζ(12+it)=O(tε)\zeta(\tfrac12+it)=O(t^{\varepsilon})ζ(21​+it)=O(tε) as t→+∞t\to+\inftyt→+∞.

Definition code
import Mathlib

/-!
# Growth exponent of `ζ`, zero counts and prime gaps for the Lindelöf hypothesis

* `mu σ` is `μ(σ)`: the infimum, in the extended reals, of all real `a` such that
  `ζ(σ + iT) = O(T^a)` as `T → +∞` (`⊤` if there is no such `a`).
* `zeroCountWindow σ T` is the number of zeros `ρ` of `ζ` with `Re ρ ≥ σ` and
  `T ≤ Im ρ ≤ T + 1`, counted with multiplicity.
* `zeroCountWindowAll T` is the number of zeros `ρ` of `ζ` with `T ≤ Im ρ ≤ T + 1`,
  counted with multiplicity.
* `zeroDensityCount σ T` is `N(σ, T)`: the number of zeros `ρ` of `ζ` with `Re ρ ≥ σ` and
  `|Im ρ| ≤ T`, counted with multiplicity.
* `primeGap n` is `g_n = p_{n+1} - p_n`, where `p_n = Nat.nth Nat.Prime n` (so `p_0 = 2`).

All zero counts take values in `ℕ∞`, so an infinite count would be `⊤` rather than a junk value.
-/

namespace LindelofHypothesis

open Complex Filter Asymptotics

/-- `μ(σ)`: the infimum of all real `a` with `ζ(σ + iT) = O(T^a)` as `T → +∞`, taken in `EReal`
(it is `⊤` if no such `a` exists and `⊥` if every real `a` works). -/
noncomputable def mu (σ : ℝ) : EReal :=
  sInf ((fun a : ℝ => (a : EReal)) ''
    {a : ℝ | (fun T : ℝ => riemannZeta (σ + T * I)) =O[atTop] (fun T : ℝ => T ^ a)})

/-- The number of zeros `ρ` of `ζ` with `Re ρ ≥ σ` and `T ≤ Im ρ ≤ T + 1`, counted with
multiplicity (order of vanishing), as an element of `ℕ∞`. -/
noncomputable def zeroCountWindow (σ T : ℝ) : ℕ∞ :=
  ∑' s : {s : ℂ | riemannZeta s = 0 ∧ σ ≤ s.re ∧ T ≤ s.im ∧ s.im ≤ T + 1},
    analyticOrderAt riemannZeta (s : ℂ)

/-- The number of zeros `ρ` of `ζ` with `T ≤ Im ρ ≤ T + 1`, counted with multiplicity,
as an element of `ℕ∞`. -/
noncomputable def zeroCountWindowAll (T : ℝ) : ℕ∞ :=
  ∑' s : {s : ℂ | riemannZeta s = 0 ∧ T ≤ s.im ∧ s.im ≤ T + 1},
    analyticOrderAt riemannZeta (s : ℂ)

/-- `N(σ, T)`: the number of zeros `ρ` of `ζ` with `Re ρ ≥ σ` and `|Im ρ| ≤ T`, counted with
multiplicity, as an element of `ℕ∞`. -/
noncomputable def zeroDensityCount (σ T : ℝ) : ℕ∞ :=
  ∑' s : {s : ℂ | riemannZeta s = 0 ∧ σ ≤ s.re ∧ |s.im| ≤ T},
    analyticOrderAt riemannZeta (s : ℂ)

/-- The `n`-th prime gap `g_n = p_{n+1} - p_n`, with `p_n = Nat.nth Nat.Prime n`
(`p_0 = 2`, `p_1 = 3`, …). -/
noncomputable def primeGap (n : ℕ) : ℕ :=
  Nat.nth Nat.Prime (n + 1) - Nat.nth Nat.Prime n

end LindelofHypothesis
Source
Wikipedia, "Lindelöf hypothesis" (snapshot supplied as Lindelöf_hypothesis.pdf, printed 12 Oct 2026), https://en.wikipedia.org/wiki/Lindel%C3%B6f_hypothesis; sections "The μ function" (definition of μ(σ)), "Relation to the Riemann hypothesis" (zeros with real part at least 1/2+ε and imaginary part between T and T+1), "Other consequences" (p_n, g_n), "The density hypothesis" (N(σ,T)).
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).

  • Endorsed by dbenbenn · Nov 6, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me