What Did the Lean Community Actually Certify About Claude’s Riemann Hypothesis Proof?


Young boy writing complex formulas on a chalkboard

Seventeen million lines of Lean. That is the size of the Riemann Hypothesis proof Anthropic mathematician Levent Alpöge released on November 20, according to the joint statement from the Lean and Mathlib communities. One day later, that statement said: “We hereby certify that both the statement and the proof of the Riemann Hypothesis are correct.”

No human has read the proof. Alpöge says so himself. In his four-page note he writes that he is “presenting the world with a complete argument before having mastered a massive neighbourhood around its mathematics,” and that his own attempt at a readable version “hit 250,000+ pages.” He chose to publish only the Lean code, calling the alternative “some massive unreadable travesty of ‘slop’.”

So the most famous open problem in mathematics, posed in 1859 and carrying a $1 million Clay prize (Scientific American), was certified by machines before it was understood by people. That order of events is the real news, and it is not only a mathematics story. It is the first public, high-stakes run of a question every organization using AI agents is about to face: what does “verified” mean when nobody can read the work?

What exactly was certified, and by whom?

The certification is narrower and stronger than most headlines suggest. Per the Lean community statement, three separate things were checked:

  • The statement. The theorem Alpöge’s code proves is Mathlib’s existing RiemannHypothesis definition, which the community says “has been carefully vetted by experts in Lean and number theory.” Two independent tools, comparator and con-leche --compare, confirmed that the proved theorem is exactly that statement and not a lookalike.
  • The compilation. Per the statement, “dozens of people have reported correct compilation of the codebase, reproducing the same raw proof export file.”
  • The proof checking. The export was checked by Lean’s official kernel plus the con-leche and con-ron checkers, which “come with a formal proof, relative to set theory, that they cannot accept a false proof,” along with third-party checkers written in other languages. The checks ran “on an inert export of the proof, out of reach of hypothetical malicious code.”

MIT’s Andrew Sutherland, who compiled it independently, told Scientific American that the proof was “independently rechecked by the Lean kernel with only the three standard axioms,” and that “the chance that anything is fishy here is approximately zero.”

Two things were not certified. The first is the Generalized Riemann Hypothesis. Alpöge’s note says the method “easily extends much further, resolving the so-called Generalized Riemann Hypothesis,” and Terence Tao’s post describes the Lean development as a proof of GRH. The community certification, though, names only the Riemann Hypothesis. The second is understanding. A Lean check tells you the conclusion follows. It does not tell anyone why.

Why did a 17 million line proof clear review in a day?

Because the hardest part was done years before Claude started. The trusted piece of this whole apparatus is one short definition, written and reviewed by humans and already sitting in Mathlib when Claude’s proof arrived. Everything else (the 17 million lines) only has to be accepted by a checker, and checkers do not get tired.

Kevin Buzzard laid out the method in a Xena Project post eight days before the release, written about AI-generated Lean in general. His four questions, which the Lean statement says are “all satisfied,” map almost one to one onto any review of machine-generated work. The third column below is this site’s own reading, not Buzzard’s.

Buzzard’s question How it was answered for Alpöge’s proof The same question for AI-generated work in a company
Does the formal statement match the real theorem? Proved theorem matched Mathlib’s vetted RiemannHypothesis, confirmed by two tools Does the test or spec actually describe what the business needs?
Does the code compile? Dozens of independent builds, identical export Does it build and run outside the agent’s own environment?
Does the code prove the theorem as stated, without redefining anything? comparator checked statement identity and permitted axioms Did the agent edit the tests, mocks or config to make them pass?
Could it exploit a checker bug? Multiple independent kernels, two with formal soundness proofs Is there more than one independent check, or one CI job the agent can influence?

Buzzard’s sharpest warning is about the first row. “Note the huge difference here between the statement, and the proof,” he writes, and “one may have to read many thousands of lines of code just to understand the statement of a formalised theorem.” He also notes that of 290 OpenAI papers that shipped with Lean code, about 38 had code that “does not even state, let alone prove, the main theorem of the paper.” We covered the machine-checked side of that OpenAI work in our August look at the attribution dispute, and the pattern holds here: a green checkmark on the wrong statement is worthless.

The comparator tool’s own README uses RiemannHypothesis as its example of the risk. When a challenge leaves a definition open, it says, “all definition hole solutions must always be checked with an additional (potentially human) verifier.” The tool was merged into Lean core as lake comparator in release v4.35.0, per that README. Weeks later it certified the most consequential theorem it will probably ever see.

If the machines agree, why are mathematicians unhappy?

Because certification and mathematics are different products. “Mathematics is mainly about understanding why something is true,” Youness Lamzouri of the University of Lorraine told IBM Think. Fields medalist James Maynard told the same outlet he suspects the proof is correct but that “it looks like it will require quite a lot of work to really gain this understanding.” Tao wrote that “the digestion process will take some time, though in this case at least we have a human author to communicate with.”

Stanford’s Brian Conrad went further. The Next Web, citing The New York Times, reports he called releasing a proof its author does not fully understand “frankly completely outrageous.”

The timing adds a layer. The release came the day after Anthropic’s record IPO debut (Scientific American; our coverage of the listing). Alpöge’s note says he messaged Dario Amodei “late Sunday night” about announcing, that “there was a constraint to respect,” and that “there is an obvious cynical view, to do with the timing, but it is false.” The Next Web reports Anthropic’s shares fell on Friday anyway.

Then there is the work split. Alpöge’s timeline, which he says Claude compiled, runs from a first idea on October 6 to “GRH” on November 16, about six weeks. He credits himself with steering to the right analogy and says that near the finish “Claude flew, and danced, and sparkled.” He also admits he has “little mastery of automorphic forms on higher rank groups,” which is where much of the argument lives. Tao says the proof “appears to use the full power of modern developments on the Langlands program and arithmetic geometry.” By Alpöge’s own account, the human on this proof set the direction and the model did much of the technical mathematics.

What does the other proof from the same day tell us?

On the same Friday, AMS president Ravi Vakil posted a separate, all-human proposed proof of GRH by Alessandro Masullo, which Conrad had been checking “for months.” The plan had been a year of polishing. Instead it went out early, and about eight hours later Vakil added: “Several people have contacted me to report problems in the proposed proof, identified with the assistance of different AI models.”

Put the two releases side by side. The machine-written proof had no readable text and passed formal checks within a day. The human-written proof had readable text, months of expert attention, and AI-assisted readers found problems in it within a working day. Reading and checking have both been automated faster than understanding has.

What should anyone outside mathematics take from this?

Three things, none of them about prime numbers.

The specification is now the scarce asset. The proof cleared review fast because a short, trusted, human-vetted statement already existed. Most companies deploying coding or analysis agents have the opposite: thin specs, tests the agents can edit, and acceptance criteria that live in someone’s head. Our guide to building evaluations instead of trusting leaderboards makes the same point at smaller scale: the trusted file is the thing you invest in, because everything downstream gets cheaper once it exists.

Independent checking means separate checkers, not a second run. The Lean community did not trust one kernel. It used several, written by different people in different languages, and ran them on an inert export the proof’s own code could not touch. An agent that writes the code and also controls the pipeline that grades it is the setup Buzzard’s third and fourth questions exist to rule out. It is the same logic as keeping an agent’s sandbox off the kernel it is probing, which came up in OpenAI’s 948 Linux kernel exploits.

“Correct” and “understood” are now separate sign-offs. In mathematics, a certified proof nobody understands is still a theorem. In a business, a verified change nobody understands is a maintenance liability, an audit finding and an incident waiting for a bad night. Decide in advance which of the two your approval process is actually asking for, because AI work will increasingly arrive able to pass the first test long before any human can pass the second.

Alpöge expects the argument to shrink: his note says “short arguments” should “follow fairly quickly.” If they do, the readable proof will come after the certified one, written by people working backward from a result they already know is true. That is a strange way to do mathematics. It may become the normal way to do a lot of other work too, which is why it is worth watching how the mathematicians handle it, as the line between AI building AI and AI building everything else keeps thinning.

Ty Sutherland

Ty Sutherland is the Chief Editor of AI Rising Trends. Living in what he believes to be the most transformative era in history, Ty is deeply captivated by the boundless potential of emerging technologies like the metaverse and artificial intelligence. He envisions a future where these innovations seamlessly enhance every facet of human existence. With a fervent desire to champion the adoption of AI for humanity's collective betterment, Ty emphasizes the urgency of integrating AI into our professional and personal spheres, cautioning against the risk of obsolescence for those who lag behind. "Airising Trends" stands as a testament to his mission, dedicated to spotlighting the latest in AI advancements and offering guidance on harnessing these tools to elevate one's life.

Recent Posts