The Spectrum Dispatch News

technology

Anthropic researchers formalize Riemann Hypothesis proof in Lean 4

A collaborative project produces a machine-verified proof of the Generalized Riemann Hypothesis for Dirichlet L-functions, available in two versions totaling up to 300,000 lines

Anthropic researchers formalize Riemann Hypothesis proof in Lean 4

Researchers at Anthropic have created a formal proof of the Riemann Hypothesis and the Generalized Riemann Hypothesis for Dirichlet L-functions using Lean 4, a proof assistant language. The project, available on GitHub, represents a machine-verified formalization built on Mathlib and uses only the axioms propext, Classical.choice, and Quot.sound.

Anthropic researchers formalize Riemann Hypothesis proof in Lean 4

According to the repository, the proof is based on work by Levent Alpöge and was developed in collaboration between Anthropic colleagues and Claude, an AI assistant. The project provides two versions: a readable edition containing approximately 300,000 lines of code with a guide for navigation, and a more compact version with roughly 76,000 lines that proves the same five theorems.

Both versions are structured as separate Lake projects with their own documentation. Building the proof requires Lean version 4.35.0 and Mathlib at a specific commit. The compilation process is computationally intensive, requiring one to two hours on a 12-core system with 24 GB of memory, extending to approximately 85 minutes longer if the Mathlib cache needs to be built from scratch.

The proof has undergone machine verification but has not been reviewed by mathematicians in its entirety. The repository note explicitly states that “no mathematician has read it through, and no paper comes with it,” indicating this is a research artifact rather than a formally published mathematical result.

The project is released under the Apache 2.0 license with copyright held by Anthropic. The repository is marked as not maintained and not accepting external contributions.

This formalization represents a computational approach to one of mathematics’ most famous unsolved problems. The Riemann Hypothesis concerns the distribution of prime numbers and remains unproven in classical mathematics, though numerous computational verifications have supported its validity for extremely large numbers. The creation of a machine-verifiable proof in Lean demonstrates how formal proof assistants can be applied to fundamental mathematical questions, though questions about the nature and implications of such automated proofs versus traditional mathematical proof remain open.

Key facts

  • The proof formalizes both the Riemann Hypothesis and the Generalized Riemann Hypothesis for Dirichlet L-functions
  • Two versions exist: a 300,000-line readable edition and a 76,000-line compact version
  • The proof has been machine-verified but has not undergone human mathematician review
  • Building the proof requires significant computational resources and time, approximately one to two hours on high-end hardware
  • The project was developed collaboratively by Anthropic researchers and Claude, based on work by Levent Alpöge

Sources

← All posts