[Map](https://riemannhypothesissolved.com/) / [Hecke characters and primes in progressions](https://riemannhypothesissolved.com/theme/th020-hecke-characters-and-primes-in-progressions/) / k0677

Cluster k0677 · Lean proof of the Riemann hypothesis

# Main theorem statements, plus the explicit formula for Dirichlet L-functions

Classical number theory · 1900–1949 · Graduate level

[Checked against the code](#checked)[See all 16 core clusters ›](https://riemannhypothesissolved.com/core/)

Statements.lean spells out the Riemann hypothesis and its Dirichlet L-function versions, and Main.lean proves them by pointing to the final assembly elsewhere. Most of the other files prove a standard explicit formula: a prime sum twisted by a character is controlled by the zeros of its L-function, with the zeros near any height counted and Perron's formula bounded. A third set of files only states alternative "if these prime-sum bounds hold, then RH follows" claims, which are never proved.

This cluster holds the main theorem.

The whole proof feeds into it: through chains of imports it builds on all 2,646 other clusters (Builds on, below, counts only its direct imports).

Proof status as of 22 Nov 2026: on 21 Nov 2026 a [joint statement](https://leanprover-community.github.io/blog/posts/riemann-hypothesis/) by the Lean and Mathlib communities, endorsed by the Lean FRO and the Mathlib Initiative, certified the Lean statement and proof. More independent checks: [math.mit.edu/~drew/grh](https://math.mit.edu/~drew/grh/). This cluster's name and description were checked against its full Lean code; the other names and descriptions on this map are written by Claude from samples of the code and may be wrong.

## Checked against the code

This name and description were checked against every Lean file in the cluster (source commit `40e56bab`) and corrected where the earlier, AI-drafted ones were wrong. Some of the declarations the check rests on:

- `riemannHypothesis` in `Main`: RiemannHypothesis := rhOfAll; plus the GRH-for-Dirichlet theorems LFunction_ne_zero_of_half_lt_re, LFunction_eq_zero_re, LFunction_eq_zero_re_of_isPrimitive
- `DirichletLNonvanishingRightOfHalf` in `Statements`: L(chi,s) != 0 for Re s > 1/2 except at the pole
- `explicitFormula_closed / zerosWindow_closed` in `Formalism.PeriodIntegrals.ExplicitFormulaCounts.ExplicitFormula`: truncated explicit formula and local zero count, proved

## Prerequisite concepts

Dirichlet L-functions, Dirichlet characters, What RH says, ζ(s) as a series, Complex analysis, Chebyshev functions theta and psi, Analytic continuation

## In the learning path

- [The Riemann hypothesis](https://riemannhypothesissolved.com/learn/#riemann-hypothesis) — theorem
- [GRH for Dirichlet L-functions](https://riemannhypothesissolved.com/learn/#grh-dirichlet) — theorem

## References

Davenport, Multiplicative Number Theory · ch. 17-19 (explicit formula, zero-free region) — Background reading suggested by the AI namer · unchecked

GRH for Dirichlet L-functions — H. Davenport, Multiplicative Number Theory (book) — Cited in the author's note · matched by word overlap · unchecked

von Mangoldt function, explicit formula — H. Davenport, Multiplicative Number Theory, ch. 17-19 — Cited in the author's note · matched by word overlap · unchecked

Weil explicit formula — A. Weil, "Sur les formules explicites de la theorie des nombres premiers" (1952) — Cited in the author's note · matched by word overlap · unchecked

Turan power-sum method — P. Turan, On a New Method of Analysis and its Applications (book, 1984) — Cited in the author's note · matched by word overlap · unchecked

## Builds on 3 clusters

Direct imports: clusters with a file that a file here imports.

By theme: [Hecke characters and primes in progressions](https://riemannhypothesissolved.com/theme/th020-hecke-characters-and-primes-in-progressions/) (3)

Key: [Primes in progressions, Siegel-Walfisz and exceptional zero bounds](https://riemannhypothesissolved.com/cluster/k0683-primes-in-progressions-siegel-walfisz-and-exceptional-zero/), [Zero-free region for zeta and Dirichlet L-functions](https://riemannhypothesissolved.com/cluster/k0680-zero-free-region-for-zeta-and-dirichlet-l-functions/), [Mertens-type estimates and zero sums for Dirichlet L-functions](https://riemannhypothesissolved.com/cluster/k0694-mertens-type-estimates-and-zero-sums-for-dirichlet-l/)

- [Primes in progressions, Siegel-Walfisz and exceptional zero bounds](https://riemannhypothesissolved.com/cluster/k0683-primes-in-progressions-siegel-walfisz-and-exceptional-zero/) — Hecke characters and primes in progressions
- [Zero-free region for zeta and Dirichlet L-functions](https://riemannhypothesissolved.com/cluster/k0680-zero-free-region-for-zeta-and-dirichlet-l-functions/) — Hecke characters and primes in progressions
- [Mertens-type estimates and zero sums for Dirichlet L-functions](https://riemannhypothesissolved.com/cluster/k0694-mertens-type-estimates-and-zero-sums-for-dirichlet-l/) — Hecke characters and primes in progressions

## Needed by 8 clusters

Direct importers: clusters with a file that imports a file here.

By theme: [Hecke characters and primes in progressions](https://riemannhypothesissolved.com/theme/th020-hecke-characters-and-primes-in-progressions/) (7), [Adelic lattices, level subgroups and explicit bounds](https://riemannhypothesissolved.com/theme/th040-adelic-lattices-level-subgroups-and-explicit-bounds/) (1)

Key: [Primes in progressions, Siegel-Walfisz and exceptional zero bounds](https://riemannhypothesissolved.com/cluster/k0683-primes-in-progressions-siegel-walfisz-and-exceptional-zero/), [Zero-free region for zeta and Dirichlet L-functions](https://riemannhypothesissolved.com/cluster/k0680-zero-free-region-for-zeta-and-dirichlet-l-functions/), [Mean-square and Jacobi-symbol estimates for prime sums in progressions](https://riemannhypothesissolved.com/cluster/k0688-mean-square-and-jacobi-symbol-estimates-for-prime-sums-in/)

- [Primes in progressions, Siegel-Walfisz and exceptional zero bounds](https://riemannhypothesissolved.com/cluster/k0683-primes-in-progressions-siegel-walfisz-and-exceptional-zero/) — Hecke characters and primes in progressions
- [Zero-free region for zeta and Dirichlet L-functions](https://riemannhypothesissolved.com/cluster/k0680-zero-free-region-for-zeta-and-dirichlet-l-functions/) — Hecke characters and primes in progressions
- [Mertens-type estimates and zero sums for Dirichlet L-functions](https://riemannhypothesissolved.com/cluster/k0694-mertens-type-estimates-and-zero-sums-for-dirichlet-l/) — Hecke characters and primes in progressions
- [Mean-square and Jacobi-symbol estimates for prime sums in progressions](https://riemannhypothesissolved.com/cluster/k0688-mean-square-and-jacobi-symbol-estimates-for-prime-sums-in/) — Hecke characters and primes in progressions
- [Landau's theorem and nonvanishing of zeta from one-sided prime-sum bounds](https://riemannhypothesissolved.com/cluster/k0682-landau-s-theorem-and-nonvanishing-of-zeta-from-one-sided/) — Hecke characters and primes in progressions
- [Family bounds on shares, degrees and admissible constants](https://riemannhypothesissolved.com/cluster/k1640-family-bounds-on-shares-degrees-and-admissible-constants/) — Adelic lattices, level subgroups and explicit bounds
- [Log-derivative bounds and truncated explicit formula for L-functions](https://riemannhypothesissolved.com/cluster/k0678-log-derivative-bounds-and-truncated-explicit-formula-for-l/) — Hecke characters and primes in progressions
- [An alternative route to GRH for Dirichlet L-functions, from three inputs](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/) — Hecke characters and primes in progressions

65 Lean files, main folder Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.

## Explore

- [Theme: Hecke characters and primes in progressions](https://riemannhypothesissolved.com/theme/th020-hecke-characters-and-primes-in-progressions/)
- [How the proof is structured: the route to the main theorem](https://riemannhypothesissolved.com/route/)
- [The core of the proof: 16 clusters, names checked against the code](https://riemannhypothesissolved.com/core/)
- [The proof in numbers: files, lines, clusters and checks](https://riemannhypothesissolved.com/proof-in-numbers/)
- [Has the Riemann hypothesis been solved? Status of the proof](https://riemannhypothesissolved.com/status/)
- [Learning path: the proof step by step, down to school maths](https://riemannhypothesissolved.com/learn/)

---

Main theorem statements, plus the explicit formula for Dirichlet L-functions. Web page: https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/ · updated 2026-11-22 · site map for machines: https://riemannhypothesissolved.com/llms.txt
