leanprover-community riemann-hypothesis: Formalizing the Riemann Hypothesis in Lean 4

leanprover-community riemann-hypothesis: Formalizing the Riemann Hypothesis in Lean 4

GitHub Open Source
leanprover-community/riemann-hypothesis

Verify the Lean formalization of the Riemann Hypothesis and GRH using Lake and Python.

Repository snapshot

  • Repository: leanprover-community/riemann-hypothesis
  • Language: Lean
  • License: Apache-2.0
  • Stars: 1 420
  • Forks: 525

Daily open-source picks: GitHub Open Source on Telegram

What it is

The leanprover-community/riemann-hypothesis repository is a community-led effort to clean up, modularize, and maintain a Lean 4 formalization of the 2026 proofs of the Riemann Hypothesis and the Generalized Riemann Hypothesis for Dirichlet L-functions. It contains hundreds of thousands of lines of code split between background results and the main reduction steps of the argument.

Why it matters

Formalizing monumental mathematical proofs requires intense computational resources and meticulous code organization. This project tackles the immense complexity of the original proofs by improving build performance, establishing Mathlib-level code quality, and eliminating linter warnings. This makes it feasible for researchers to engage with the proof without needing a massive cluster.

Key features

  • Verifies five core theorem statements including riemannHypothesis, riemannZeta_eq_zero_re, and LFunction_eq_zero_re.
  • Fetches prebuilt caches for Mathlib and the project via lake to speed up local builds.
  • Organizes literature background results in src/Lib and novel proof steps in src/New.
  • Runs strict comparator checks ensuring only standard axioms like propext and Classical.choice are used.

Quick start

To fetch the cache and build the project locally, run:

lake exe cache get
lake build

Who should try it

This project is intended for mathematicians, researchers, and developers actively working within the Lean ecosystem who want to inspect or build upon formal number theory proofs.

Verdict

An invaluable artifact for the Lean community that turns a massive formal proof into a structured, maintainable codebase.

Continue exploring

Get the next pick in Telegram: Follow GitHub Open Source

Curated from the repository README and metadata. No hands-on test is claimed; evaluate it in a sandbox before production use.

Report Page