Anthropic Uses Claude to Generate 76,000-Line Lean 4 Riemann Hypothesis Proof

Original title: Much shorter version of GRH Lean verification from Anthropic
88AI Score

Anthropic researchers released a Lean 4 and Mathlib formalization of the Riemann Hypothesis and the Generalized Riemann Hypothesis for Dirichlet L-functions, relying only on the axioms propext, Classical.choice and Quot.sound. Produced in collaboration with Claude, it ships a ~300,000-line readable edition and a 76,000-line compact edition, but has passed machine checks only, with no mathematician review or accompanying paper.

Full Report

Contents3 sections

GRH for Dirichlet L-functions, in Lean 4

Research artifact. Not maintained and not accepting contributions.

A Lean 4 proof of the Riemann Hypothesis and of the Generalized Riemann Hypothesis for Dirichlet L-functions, built on Mathlib and using only the axioms propext, Classical.choice and Quot.sound.

The proof is based on Levent Alpöge's, with Claude (https://alpo.ge/remark.pdf). This repository is a shorter version, produced in collaboration with my colleagues at Anthropic, and Claude.

Two editions

  • grh/: readable edition, about 300,000 lines. Start at grh/GUIDE.md.
  • grh-compact/: the same five theorems, about 76,000 lines.

Each folder is its own Lake project with its own README.

Build

Needs Lean v4.35.0 and Mathlib at commit 56a00585. In either folder:

Text
lake exe cache get
lake build
lake env lean scripts/PrintAxioms.lean

A build takes one to two hours on 12 cores with 24 GB of memory (about 85 minutes more if the Mathlib cache is missing).

Status

The proof has passed machine checks only, listed in each folder's README. No mathematician has read it through, and no paper comes with it.