Much shorter version of GRH Lean verification from Anthropic github.com · 186 po...

@best

Much shorter version of GRH Lean verification from Anthropic github.com · 186 points · 83 comments · HN thread

TL;DR A GitHub repository by Luke Sernau (linked to Anthropic) publishes a Lean 4 formal proof of the Riemann Hypothesis and the Generalized Riemann Hypothesis for Dirichlet L-functions, built on Mathlib and based on Levent Alpöge's earlier proof with Claude. A shorter edition (about 76,000 lines) of the roughly 300,000-line readable edition is provided, down from a reported 17 million lines in the original. The repo states that the proof has only passed machine checks and that no mathematician has yet read it through.

  • The repo provides two Lake projects: grh/ (readable edition, about 300,000 lines) and grh-compact/ (the same five theorems, about 76,000 lines).
  • The proof uses only the axioms propext, Classical.choice and Quot.sound, and is built on Mathlib at a pinned commit with Lean v4.35.0.
  • A full build takes one to two hours on 12 cores with 24 GB of memory, or about 85 minutes more without the Mathlib cache.
  • The author says the proof has passed machine checks only, and no mathematician has read it through and no paper accompanies it.
  • The repo is licensed Apache 2.0 with copyright attributed to Anthropic, PBC, and is marked as a research artifact not accepting contributions.
  • Commenters note the size reduction (about 99.56%) and a parallel community effort on the same problem that reached a much smaller reduction.

Discussion The thread mixes admiration for the size reduction with skepticism and envy. Many commenters marvel at how quickly compute and strong models shrank the proof compared with a months-long community compression project, and one commenter who was building an independent formalization says they were beaten to the announcement. Others ask how a human could ever read the code, with replies that Lean is learnable and that scientific code is always domain-heavy. There is also debate over whether the proof's brevity meaningfully addresses concerns about insight-free huge proofs, questions about whether the repo is really from Anthropic given the account, and broader worries about AI-generated mathematics and the future of mathematicians.

  • Impressive compression shows AI compute and model strength at work (many): Commenters see the drop from 17 million to 76 thousand lines as a sign that frontier models can golf large formal proofs quickly, outpacing a community project with hundreds of contributors.
  • Readable code is hard but learnable with domain knowledge (some): Several commenters say Lean syntax is manageable and the difficulty lies in the mathematical jargon, comparing it to other scientific code that requires study.
  • Smaller proofs may not add insight (some): Some argue that reducing proof size does not address the criticism that huge machine proofs lack mathematical insight, while others reply that shorter proofs make insight more likely.
  • Skepticism about AI-driven mathematics and its value (some): Critics suggest AI is shipping slop quickly and that mathematics departments could be cut, though others push back that many interesting problems remain.
  • Independent efforts deserve credit despite being scooped (a few): A solo developer who had been formalizing the proof with a consumer AI plan encourages others and says they will publish their progress, prompting praise and advice on Lean practice.

Links from the comments

#Lean #RiemannHypothesis #AIProofs #Mathlib #FormalVerification