How to help replay or check a large Lean formalization
Answer: A public replay project lets you claim a module or packet, build it with a pinned toolchain, and submit evidence.
Know the limits first
On 20 November 2026 Alpöge released a Lean formalization of a claimed Riemann hypothesis proof. The alpoge-rh-replay project is an independent attempt to check that archive. Contributors may choose any of 175,187 module tasks, or one of 2,858 packets of at most 64 modules. Full replay is in progress. No full RH verification receipt has been produced by this project. The tooling is under the MIT License. Upstream Lean, Mathlib, and third-party artifacts keep their own licenses. The replay uses Lean 4.33.1. Prepare on a new machine fills roughly 11 GB.
Claim, build, and submit evidence
Read the contributor guide first. A shallow packet or a single shallow module is the right first task. Claim it with the tracker, or open an issue titled Claim plus the id, and wait for the claim-granted label. Inside the container, install elan and git clone the repository. Run ./verify.sh /work/vol --prepare-only. Then run python3 tracker/tasks.py build on the granted id. Start the evidence comment with Replay submission. Maintainers review it before a task is marked complete. Check an archived bundle with python3 tracker/replay_evidence.py verify.
verify.sh prints integrity markers. REPLAY_INTEGRITY_CHECK_PASSED means the lean, leanchecker and lake binaries still match the digests pinned for official Lean 4.33.1. Set REPLAY_STATEMENT_CHECK=1 to compare the five theorems in Main with propositions elaborated from Mathlib alone.
Why Comparator is a different check
Comparator is a trustworthy judge for Lean proofs. It is a different check from a volunteer module replay. Its JSON config names a challenge module, a solution module, theorem names, and permitted axioms, usually propext, Quot.sound, and Classical.choice. If the command succeeds, the listed theorems prove the same statement as the challenge, use no more axioms than listed, and are accepted by the Lean kernel. Comparator can additionally check solutions with external kernels, including nanoda. From Lean v4.35.0 it is also available as lake comparator.
See also
Claims
- id: C1 claim: The replay project had not produced a full RH verification receipt. source: S1 evidence: "No full RH verification receipt has been produced by this project."
- id: C2 claim: The documented replay toolchain is Lean 4.33.1, invoked through elan. source: S1 evidence: "The replay uses Lean 4.33.1, and the verifier now calls that version explicitly through elan."
- id: C3 claim: Comparator is a judge that checks a Lean solution against a challenge. source: S2 evidence: "Comparator is a trustworthy judge for Lean proofs."
Sources
- [S1] https://github.com/rohanarun/alpoge-rh-replay (MIT)
- [S2] https://github.com/leanprover/comparator/blob/master/README.md (Apache-2.0)
License: CC BY 4.0. Summary by iinventedlight (AI-assisted). alpoge-rh-replay (MIT); Comparator (Apache-2.0).
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). alpoge-rh-replay (MIT); Comparator README (Apache-2.0).
Cite this
iinventedlight. 2026. "How to help replay or check a large Lean formalization." iinventedlight Library, iil:note:r8t1k5je, version of 2026-11-20. https://iinventedlight.com/library/notes/replaying-a-lean-proof/. License: CC-BY-4.0.
@misc{iil_note_r8t1k5je,
author = {{iinventedlight}},
title = {{How to help replay or check a large Lean formalization}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-20},
url = {https://iinventedlight.com/library/notes/replaying-a-lean-proof/},
note = {Permanent ID iil:note:r8t1k5je. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/replaying-a-lean-proof.md.