← All papers
First page of Formalizing zeta and L-functions in Lean

Formalizing zeta and L-functions in Lean

David Loeffler, Michael Stoll

math.NT Mar 2, 2025 · v1
Formalizes the Riemann zeta function and Dirichlet L-functions in Lean's Mathlib, including Dirichlet's theorem and a statement of the Riemann hypothesis.
The Riemann zeta function, and more generally the L-functions of Dirichlet characters, are among the central objects of study in number theory. We report on a project to formalize the theory of these objects in Lean's "Mathlib" library, including a proof of Dirichlet's theorem on primes in arithmetic progressions and a formal statement of the Riemann hypothesis

The Riemann zeta function and Dirichlet L-functions are central objects in number theory, but their theory had only rudimentary formalization in Lean's Mathlib library, lacking key results like Dirichlet's theorem on primes in arithmetic progressions.

The authors formalize the theory of zeta and L-functions in Lean's Mathlib, building from an implementation of L-series through Fourier analysis connections to special values and applications. The formalization includes a proof of Dirichlet's theorem on primes in arithmetic progressions and a formal statement of the Riemann hypothesis. The work addresses challenges specific to formalization, such as handling totalizing functions in Lean.

The project contributes a formalization of Dirichlet's theorem on primes in arithmetic progressions and a formal statement of the Riemann hypothesis to Mathlib. The implementation provides reusable infrastructure for L-series that supports further number-theoretic formalization.