A proof checker can accept a flawless proof of the wrong statement. That is an easy thing to forget when an AI system produces an artifact too large for a person to read in one sitting.

A Lean repository from Anthropic’s Lucas Sernau and colleagues illustrates the problem at an unusual scale. It presents a shortened formalization of Levent Alpöge’s claimed proof of the Riemann hypothesis and its generalization to Dirichlet L-functions, developed with Claude. The repository reports roughly 300,000 lines of Lean in its readable edition and 76,000 in a compact edition. It also says no mathematician has read the proof through, and there is no accompanying paper. These are the authors’ claims and checks, not independent mathematical acceptance of the result.

The useful engineering lesson is about where to spend review time. When the implementation is huge and generated, inspect the small boundary that says what success means, and then inspect the assumptions and tools used to establish it.

A passing check has a subject

Lean checks that a proof term has a specified type, relative to its rules and assumptions. That is a strong property. It does not by itself tell a reader whether the type captures the informal claim they intended to make.

The repository makes that boundary relatively accessible. Its Statements.lean imports Mathlib and defines the formal statements; Main.lean gives five named theorems. One uses Mathlib’s RiemannHypothesis type. Another states that, for Dirichlet characters and zeros in the critical strip, the real part is one half. Its conditions matter: the statement explicitly requires the real part to be greater than zero and less than one. The repository notes that its last three theorems say nothing about zeros with real part at or below zero.

A reviewer can ask concrete questions before reading hundreds of files: Does the formal definition match the mathematical claim? Are the domain, exceptions and quantifiers correct? What does the imported definition mean? A proof can be sound under its formal statement while the public description quietly promises more.

Check assumptions, not just the green build

The authors report that the files compile without sorry, Lean’s placeholder for an unfinished proof, and that the five theorems depend on propext, Classical.choice and Quot.sound. They also report exporting the theorems and their dependencies to three independent checkers. Those checks are valuable evidence about acceptance of the formal artifacts; they are not the same as a mathematical community having reviewed the argument or independently checked every implementation and interpretation.

The project README pins Lean and Mathlib versions and gives commands for building and printing theorem axioms. It reports one to two hours on 12 cores and 24 GB of memory for a build. I haven’t run that build. The point is that a reviewer has a reproducible target: versioned dependencies, theorem names, statements and a way to inspect assumptions, rather than a screenshot of a passing check.

A similar pattern applies to agent-written software. A test suite can be perfectly green because an agent weakened an assertion or tested a narrower case. Keep the contract or expected output separate from the implementation under review. Examine what is quantified, what is excluded and what dependencies are trusted. A second checker helps with checker-specific mistakes, but won’t fix an incorrect requirement shared by both checks.

Shorter is not automatically understood

The compact edition has the same five stated theorems, according to the repository, but the authors say some steps use different arguments. Fewer lines make an artifact easier to move and perhaps cheaper to inspect; line count alone doesn’t establish that the mathematics is clearer or that either edition has received human review.

For teams using agents to generate tests, migrations or proofs, the practical starting point is smaller than a full audit: identify the exact claim, pin its dependencies, list assumptions, and preserve a way to rerun the check. Then review whether the claim is the one the user actually needed. The proof checker can’t make that last decision for you.