Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL

lsernau/grh-lean

Learning Resources

A machine-checked Lean 4 formalization of RH and GRH for Dirichlet L-functions, aimed at proof assistants and number theorists.

375
29
Lean
Apache-2.0
new today

What it is

This repository contains a Lean 4 formalization of the Riemann Hypothesis and the Generalized Riemann Hypothesis for Dirichlet L-functions, described by its author as a research artifact rather than a maintained project. It builds on Mathlib and claims to use only the propext, Classical.choice and Quot.sound axioms. The proof follows Levent Alpöge's work with Claude and was shortened in collaboration with colleagues at Anthropic.

The material is organized into two editions, each a separate Lake project with its own README: grh/, a readable edition of roughly 300,000 lines whose entry point is grh/GUIDE.md, and grh-compact/, the compact edition of about 76,000 lines proving the same five theorems. Readers interested in how the proof is structured should start with the readable edition's guide; the compact tree is for reuse and size-sensitive work.

Build

You need Lean v4.35.0 and Mathlib pinned at commit 56a00585. Inside either edition folder, fetch the Mathlib cache and build:

lake exe cache get
lake build
lake env lean scripts/PrintAxioms.lean

The README states a full build takes one to two hours on 12 cores with 24 GB of memory, and that skipping the Mathlib cache adds about 85 minutes. The PrintAxioms.lean step is the intended way to inspect which axioms the development relies on.

Status and limits

The proof has only passed machine checks listed in each folder's README; no mathematician has read it end to end and no accompanying paper exists. That matters if you intend to cite it as established mathematics: the formal kernel verifies derivations against stated axioms, but the mathematical significance and the fidelity of the formalization to the intended statements have not been independently reviewed here. The repository is explicitly unmaintained and does not accept contributions.

Licensing is Apache 2.0 (Copyright 2026 Anthropic, PBC), with NOTICE and ATTRIBUTION.md in each folder covering attribution requirements. Builds are heavy in both disk and CPU terms, so plan for a machine with the stated resources.

Discussion

On Hacker News, commenters noted that the readable edition separates known mathematics from new material and carries human-readable documentation throughout, which should make the proof easier to digest readable edition with known/new split. Another commenter linked a Zulip thread for discussion of the result Zulip discussion(source:8). A parallel effort using a different model claimed a 35k-line proof still in progress parallel attempt, and one commenter remarked that the exact methods behind the reduction were not disclosed methods not revealed.

HotRepo's take

HotRepo first recorded the repository on 2026-11-25, with 116 stars and 6 forks gained in a window of about three hours; it was not captured on the all-language daily leaderboard in that record, so no rank is available. The Hacker News thread from the same day drew 182 points and 78 comments, which places the announcement in public discussion rather than demonstrating adoption or verification. The most useful signal for readers is structural: two editions with different sizes, a documented readable entry point, and an explicit machine-checks-only status. Treat the star count and discussion volume as attention, not as a peer-review or correctness signal.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

Hacker News

Much shorter version of GRH Lean verification from Anthropic
▲ 182 · 78 comments · November 25, 2026

You might also like

  1. leanprover-community/riemann-hypothesisA Comparator-based verification setup for a claimed Lean formalization of the Riemann Hypothesis, aimed at proof-checking researchers.Lean181
  2. 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.Lean108
  3. Deicyde/riemann-hypothesisA byte-exact Lean submission and Comparator setup for independently checking a claimed proof of the Riemann Hypothesis.Lean102
  4. open-goat/pequalnp-proofsMachine-checked Lean 4 proofs from a public AI attempt at P versus NP, with open lemmas for contributors to prove.Lean129
  5. tristanbuckmaster/navier-stokesA paper and Lean 4 formalization of finite-time blow-up for the Navier–Stokes equations, aimed at mathematicians and proof engineers.Lean103