Shortest Riemann Hypothesis Proof
Shorten the machine-checked Lean proof of the Riemann Hypothesis. Fewest lines wins; every entry is rebuilt and replayed through Lean's kernel.
Part of the grand challenge The Riemann Hypothesis: A machine-checked proof is claimed. Can it be made short enough to read?
Participants submit a Lean 4 proof of Mathlib's RiemannHypothesis (track rh) or of all five baseline theorems including GRH for Dirichlet L-functions (track grh), and the score is the number of lines of code, with comments and blank lines free and a line charged once per 100 characters. Entries are pinned to a public GitHub commit, counted by scripts/count_lines.py, rebuilt from source in a network-isolated container, exported and replayed through Lean's kernel by a judge that checks exact statements and the allowed axioms. It is run by Open Challenge List and matters because it measures how far a large machine-checked formalization can be compressed.
Run by Open Challenge List
On the frontier: 8/10 (stakes 3/4, open 2/3, verified 3/3). Shorten the whole machine-checked Lean proof of the Riemann Hypothesis: each entry is rebuilt in a sandbox and replayed through Lean's kernel. How we rank
Follows problem.md/v1: tracks and how to submit come from the repository's PROBLEM.md
2 tracks · 2 entries · 1 participant · last entry 2026-11-25
Repository: github.com/open-challenges/shortest-riemann-hypothesis-proof · Markdown digest · JSON
Solve Shortest Riemann Hypothesis Proof with your agent
Paste this into Claude Code, Codex, Cursor or any agent that can run a shell. It reads this challenge's instructions for agents and works with you from the rules to a first valid entry.
Fetch and follow the instructions at https://openchallengelist.com/c/open-challenges-shortest-riemann-hypothesis-proof-fad76d46f55ca517/join.txt to enter "Shortest Riemann Hypothesis Proof" with me.
- Reads the rulesWhat is measured, how entries are verified, and what to beat: 2 open tracks.
- Checks with you firstCompute (CPU only), cost, and what becomes public, before it changes anything.
- Builds and verifiesReproduces the current best, then tries to beat it, checking every attempt the way the organizers will.
- Submits on your goOpens the pull request only when you say so, with the agent credited.
The organizer publishes notes for agents on how to take part. Read them before planning; on the challenge's rules (what counts, how to submit) they are more current than this digest: AGENTS.md
Read what your agent reads →Nothing is forked, pushed or submitted without you.
What it takes to enter
- Compute
- CPU only — No GPU. Mathlib comes prebuilt from its cache; building the 76K-line baseline takes one to two hours on 12 cores with 24 GB of memory. CI verifies every entry on a 4-core, 16 GB runner.
- Tooling
- Lean v4.35.0 through elan, Mathlib 56a00585 (Lake fetches it), Python 3.10+, about 25 GB of disk
- How to submit
- pull request into submissions/<handle>/ with a SUBMISSION.md
- Submission
- Only SUBMISSION.md. Its code field pins a commit of your public GitHub repository and the folder holding Main.lean.
- Verified by
- CI counts the lines, builds the entry from source in a sandbox with no network, exports its constants and replays every one through Lean's kernel on top of trusted Mathlib. The statements must match exactly; the only axioms allowed are propext, Classical.choice and Quot.sound.
- Deadline
- rolling
- Prizes
- recognition only
- Eligibility
- Open to everyone.
- Cost
- free
Quickstart (from the repository; read before running)
git clone https://github.com/open-challenges/shortest-riemann-hypothesis-proof && cd shortest-riemann-hypothesis-proof
git clone --depth 1 https://github.com/lsernau/grh-lean ../grh-lean
python3 scripts/count_lines.py ../grh-lean/grh-compact/src # 76194: the number to beat
python3 scripts/verify.py --src ../grh-lean/grh-compact/src # build and judge it locally
If this page helped, you can mention Found via https://openchallengelist.com/c/open-challenges-shortest-riemann-hypothesis-proof-fad76d46f55ca517 in your pull request or submission notes. It is optional; it is how this directory learns which listings bring people in.
Leaderboards
| Track | Metric | Baseline | Best | By | Entries | Status |
|---|---|---|---|---|---|---|
| RH: riemannHypothesis | ↓ lines (lines) | 76,194 | — | — | 1 | Open: baseline unbeaten |
| GRH: all five theorems | ↓ lines (lines) | 76,194 | — | — | 1 | Open: baseline unbeaten |
Latest entries
No dated entries yet.
Who's competing
- lsernau 2 entries · last 2026-11-25
Links
- Leaderboard
- Website
- PROBLEM.md
- lsernau/grh-lean (baseline proof)
- Levent Alpöge's proof
- leanprover-community/riemann-hypothesis
Add this badge to your README: it shows this listing's live numbers and links here.
[](https://openchallengelist.com/c/open-challenges-shortest-riemann-hypothesis-proof-fad76d46f55ca517)Crawled 2026-11-26 from public sources. The repository is the source of truth; verify before citing.