leanprover-community/riemann-hypothesis
Learning ResourcesA Comparator-based verification setup for a claimed Lean formalization of the Riemann Hypothesis, aimed at proof-checking researchers.
What this repository is
This is a verification harness, not a proof release. It mirrors an unmodified submission from alpo.ge, dated 2026-11-20, that claims Lean proofs of the Riemann Hypothesis and GRH for Dirichlet L-functions. On top of the submission it adds what the Comparator tool needs: a challenge file stating five theorems using only Mathlib, a Comparator config, an export target list, and verification notes. The goal is to let independent parties export both sides and judge whether the claimed theorem statements are actually proved.
What is claimed
The five exported theorems cover Mathlib's RiemannHypothesis, an expanded restatement of it, non-vanishing of L-functions in the half-plane Re s > 1/2 for every modulus and Dirichlet character (except the trivial character at s = 1), the corresponding zero-location statement, and the primitive-character variant. The statements live in Challenge.lean, which imports only Mathlib.
Running the check
The flow separates the challenge from the solution so the submission's own code is never compiled before the challenge is exported. A clean clone at Lean v4.33.1 is prepared, then:
export LEAN_ABORT_ON_PANIC=1
export MATHLIB_CACHE_GET_URL=https://cache.mathlib.org/mathlib4
cd "$CLEAN"
lake exe cache get
lake build Challenge
lake env lean4export Challenge -- $(cat export-targets.txt) > challenge.export
The challenge export is published by CI with a fixed SHA-256 (bd484ac9886a96f26b1d9a7a59ebd45b7a70d102c015d4f31f9302bbdd6ab2b9), so this step does not have to be repeated. A second clone builds Main inside a sandbox with no network, which takes hours; the Mathlib cache must be fetched before entering the sandbox. The solution is then exported with lean4export v4.33.0, and judging uses Lean v4.36.0 with the config from the clean clone:
lake comparator --config "$CLEAN/comparator.json" \
--challenge-from-export "$CLEAN/challenge.export" --solution-from-export solution.export
The verification notes record the source provenance, kernel fixes, sandboxes, and the limits of what a passing run shows.
Constraints
Two Lean versions are required, because the proof is pinned to v4.33.1 while lake comparator exists only from Lean 4.35. Expect hours of compute on a large machine, about 100 GB of disk, and substantial memory for the judging step. The submission itself is mirrored without a license and remains the author's property, so reuse outside verification is not granted. A passing Comparator run shows the exported declarations match the challenge statements under the checked environment; the notes describe the limits of that claim.
HotRepo's take
The repository has no ranking or discussion record in HotRepo beyond its first day. It appeared on the new-board snapshot for 2026-11-21 with 181 stars and 33 forks gained since creation; those are the only tracked numbers, so they indicate initial attention rather than sustained momentum. The project's value here is structural: by giving the community a reproducible challenge/solution export protocol and a published challenge hash, it makes the claim auditable without trusting the submission's own build. For readers outside formal proof checking, the practical takeaway is that the claim is set up for independent judgment, not that it has been confirmed.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.
You might also like
- Deicyde/riemann-hypothesisA byte-exact Lean submission and Comparator setup for independently checking a claimed proof of the Riemann Hypothesis.
- CocoSgt/riemann-hypothesis-leanA mirror of a claimed Lean 4 formalization of the Riemann and Generalized Riemann Hypotheses, for readers who want to build and check it.
- tristanbuckmaster/navier-stokesA paper and Lean 4 formalization of finite-time blow-up for the Navier–Stokes equations, aimed at mathematicians and proof engineers.