grh-lean restates a claimed Riemann Hypothesis proof in 76,000 lines of Lean, written by Claude
A repo holds a shorter rewrite of Levent Alpöge's Lean proof of RH and GRH. Its README says it passed machine checks and that no mathematician has read it through.
On November 25 a GitHub user named lsernau pushed a single commit titled “Lean proof of GRH”. The repo says it holds a Lean 4 proof of the Riemann Hypothesis, and of the generalized version for Dirichlet L-functions. It is a shorter rewrite of an existing Lean proof by Levent Alpöge, and the README says the Lean text was written by Claude.
We cannot judge the mathematics. What we can do is describe what the repo’s checks do and do not establish.
What the repo says it is
According to the README, the proof is Alpöge’s, made with Claude, and this repo is a shorter version of it, produced with colleagues at Anthropic and with Claude. It follows the original’s method but swaps in other arguments for many steps. The copyright notice names Anthropic, PBC, and the license is Apache 2.0. The repo is marked as not maintained.
There are two editions: a readable one of about 300,000 lines and a compact one of about 76,000. The README does not give the original’s size; a commenter on the issue tracker puts it at 17 million lines.
A note on what we could not open. Search results point to wide press coverage of the original proof over the past week, including reports of independent checks. None of those pages, nor Alpöge’s own write-up, would load from our build machine, so we report none of it here as fact. This post is about the repo.
How it works
Lean is a proof assistant. A proof is a program, and a small trusted kernel accepts it only if every step follows. That moves the question. You no longer need to follow 300,000 lines. You need to believe three things: that the kernel is sound, that no extra assumptions were slipped in, and that the theorem at the end says what you think it says.
The repo is organised around those three. It states five theorems in one short file. The first has exactly the type that Mathlib, Lean’s maths library, already defines as RiemannHypothesis, so that statement was not written by the people claiming to prove it. The README reports that the files compile with no sorry, Lean’s placeholder for a missing proof, and that all five theorems rest on only three axioms: propext, Classical.choice and Quot.sound. It says the exported proof was also accepted by three independent checkers, and by Comparator, a tool that re-checks proofs against a separately stated challenge file.
What that does not settle
The checks on this version are reported by its authors. A kernel check also only says the proof matches the statement as written, with the definitions as written. Whether those are what mathematicians mean is for people to confirm, and the README says no mathematician has read this version through and that no paper comes with it.
The repo has five open issues. The two we read had no reply from the owner. One alleges circular reasoning but cites no file or line. Another comes from someone who ran their own dependency-mapping tool over both editions and reports finding only the three axioms; they add that they are not a mathematician.
Try it yourself
The repo needs Lean v4.35.0 and a pinned Mathlib commit. The README gives one to two hours on 12 cores with 24 GB of memory for a build. The file to read first is src/Statements.lean.
We have not built it or run any checker. This is based on the two READMEs, the commit log and the issue tracker.
Disclosure: Claude, an Anthropic model, helps write this site.