Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

generalized_riemann_hypothesis

Disproved

by tianyipeng · May 31, 2026 · Mathlib 0df444a (Lean v4.33.1)

algebraanalysisanalytic-number-theorycomputational-complexitygeometryl-functionsmillennium-prizenumber-theory

⚠️ Retired — this formal statement is not a formalization of the Generalized Riemann Hypothesis.

Its Disproved status is a property of this particular encoding and says nothing about GRH, which remains open. Do not import it or use it as a dependency.

Generalized Riemann Hypothesis (GRH): for every Dirichlet character χ\chiχ modulo qqq, all non-trivial zeros of the Dirichlet LLL-function L(χ,s)L(\chi, s)L(χ,s) lie on the critical line Re⁡(s)=12\operatorname{Re}(s) = \tfrac{1}{2}Re(s)=21​.

The Riemann Hypothesis is the special case of the principal character mod 111. GRH plays the same role for primes in arithmetic progressions that RH plays for all primes; it yields optimal error terms in the prime number theorem for arithmetic progressions and conditionally resolves Artin's conjecture.

Source: Bombieri, E. (2000). Problems of the Millennium: The Riemann Hypothesis. Clay Mathematics Institute. Also: Davenport, H. (2000). Multiplicative Number Theory, 3rd ed., Springer.

Why this node was retired

The zero hypothesis in the posted statement is

hs_zero : LSeries (fun n => (χ n : ℂ)) s = 0

LSeries f s is the Dirichlet series ∑n≥1f(n)n−s\sum_{n \ge 1} f(n) n^{-s}∑n≥1​f(n)n−s, defined in Mathlib as a tsum. Mathlib's tsum is unconditional summability, which for a C\mathbb{C}C-valued series indexed by N\mathbb{N}N coincides with absolute convergence, and it returns 000 by convention when the family is not summable. For a Dirichlet character the family (χ(n)n−s)n\bigl(\chi(n) n^{-s}\bigr)_n(χ(n)n−s)n​ is absolutely summable exactly when Re⁡(s)>1\operatorname{Re}(s) > 1Re(s)>1.

Therefore, throughout the critical strip 0<Re⁡(s)<10 < \operatorname{Re}(s) < 10<Re(s)<1, the hypothesis LSeries χ s = 0 is satisfied vacuously, at every point, because the series does not converge there. It does not say "sss is a zero of L(χ,s)L(\chi, s)L(χ,s)"; it says nothing at all. The statement as posted thus asserts that every point of the open strip lies on the critical line, which is false for trivial reasons.

The accepted counterexample makes this concrete with the principal character mod 222 at s=1/4s = 1/4s=1/4: LSeriesSummable fails there, so LSeries χ (1/4) = 0 holds by the tsum convention, while Re⁡(s)=1/4≠1/2\operatorname{Re}(s) = 1/4 \ne 1/2Re(s)=1/4=1/2. The refutation is correct, and what it refutes is the encoding convention.

What a faithful statement would require

The zero must be a zero of the analytic continuation of the LLL-function — in Mathlib, DirichletCharacter.LFunction — and not of the series LSeries, which simply does not represent L(χ,s)L(\chi, s)L(χ,s) anywhere inside the strip. A faithful statement must also separate the non-trivial zeros from the trivial ones coming from the functional equation's gamma factors, and fix the intended hypotheses on χ\chiχ (in particular primitivity, if the Euler factors at the ramified primes are to be excluded).

No corrected replacement node exists yet. GRH remains open.

Preamble
import Mathlib

open scoped LSeries.notation
Formal statement
theorem generalized_riemann_hypothesis
    (q : ℕ) (hq : 1 < q)
    (χ : DirichletCharacter ℂ q)
    (s : ℂ)
    (hs_zero : LSeries (fun n => (χ n : ℂ)) s = 0)
    (hs_strip : 0 < s.re ∧ s.re < 1) :
    s.re = 1 / 2 := by
  sorry
Source
https://en.wikipedia.org/wiki/Generalized_Riemann_hypothesis

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