Formal Verification "Spinning in Place": A Warning from the Riemann Hypothesis Proof Controversy
This article examines a controversial claim that the Riemann Hypothesis had been formally verified, and why the proof was rejected despite compiling successfully. It explains what interactive theorem provers actually check, how a proof can pass the kernel while proving nothing, four common failure patterns, and four practical safeguards—axiom auditing, definitional fidelity checks, dependency graphs with reproducible builds, and compute and storage engineering—that teams can use to turn "it compiles" into "it is trustworthy."
1. What Happened: Why a “Compiling” Proof Was Rejected
On November 20, a researcher at a research institution published a statement on a personal site claiming that, together with an AI coding assistant, they had completed a proof of the Riemann Hypothesis. Instead of submitting a human-readable paper, they released a massive formal code repository: roughly 175,000 files and nearly 17 million lines of proof code. First proposed in 1859, the Riemann Hypothesis is one of the Millennium Prize Problems, carries a $1 million reward, and has remained open for about 167 years.
The next day, two organizations focused on collaborative formal mathematics issued a joint statement saying they were “highly confident that the proof is correct,” based on their review of the formal code. A university researcher also independently compiled it and called it a historic moment.
Then came the reversal, on the same day. Another researcher published a paper titled directly “The Proposed Proof Is Invalid,” with a conclusion of only two sentences: the release does not contain a proof of the Riemann Hypothesis; the proposed proof is invalid. She traced the proof-term dependencies of the top-level theorem one by one. Her verdict: the machine did not miscalculate—what the machine calculated was empty.
This is the technical core of this article: formal verification “spinning in place.”
2. How It Works: What a Proof Assistant Actually Checks
A formal proof assistant (here referring to this class of tools as the industry-standard “interactive theorem prover”) typically has a small, audited trusted kernel. It does one thing: starting from the definitions and axioms you write, it checks whether each inference step is legitimately derived by accepted rules. It does not judge whether a proposition is profound, valuable, or actually the thing you meant to say.
The following illustrative code shows the gap:
-- Anti-pattern 1: using the conclusion as a premiseaxiom RH : RiemannHypothesistheorem solved : RiemannHypothesis := RH-- The kernel accepts it, but nothing is proved-- Anti-pattern 2: weakening a definition into a tautologydef RHWeak : Prop := Truetheorem solved2 : RHWeak := trivial-- This also "compiles"
In the first snippet, the constant introduced by axiom has no proof term; it is “assumed” in. In the second, the proposition is defined as a tautology and the proof term is trivial. Both pass the kernel’s checks, yet neither constitutes a proof of the Riemann Hypothesis. Structurally, this is collectively called “spinning in place”: compute, file counts, and build logs all look normal, but the information content is zero.
It is worth stressing that this is not a tool defect but a matter of division of labor: the kernel is responsible for “derivational legitimacy,” while semantic correctness must be the human’s responsibility.
3. Root Causes: Four Typical Paths to a Spinning Proof
- Assumption leakage. Carrying the key conclusion in axioms, mutable premises, or an unclosed assumption block (
section variable), so the top-level theorem is effectively “if P then P.” - Definitional drift. Rewriting the target proposition into a weaker equivalent—for example, replacing “holds for all zeros” with “holds for some subset,” or relaxing the real-part condition into a tautological one.
- Broken dependency chains. The top-level declaration has a grand name, but its proof term does not actually reference the lemmas that carry the difficulty; there are skipped steps or placeholders in between.
- Scale as cover. Using massive file counts and extremely long compile times to create the illusion that “workload equals correctness,” making it hard for reviewers to check line by line.
4. Four Lines of Defense: Upgrading “It Compiles” to “Trustworthy”
First, assumption auditing. Reduce the environment to the minimum, keeping only widely accepted standard axioms, export the top-level theorem, and print all its dependencies:
#print axioms RH_final-- Expected output contains only basic logical axioms; any custom axiom is a red flag
At the same time, disable all optional premises and confirm there are no sorry, placeholder proofs, or leftover unused axiom declarations. This step should be a mandatory pipeline gate, not a manual spot check.
Second, definitional fidelity. For each key definition, write “semantic anchor” tests: use known analytic properties, special values, and limiting behavior to verify the definition has not drifted; maintain zero tolerance for tautologies, intercepting any case where the proof term is trivial but the proposition is nontrivial.
Third, dependency graphs and minimal reproducibility. Expand the top-level theorem’s proof term into a dependency graph and check whether it covers all core lemmas; pin the toolchain and dependency library versions, rebuild with one command in a clean environment, and produce a verifiable build summary (a hash manifest) so third parties can independently reproduce rather than “trust the logs.”
Fourth, compute and storage engineering. A scale of nearly 17 million lines and 175,000 files is essentially a large build-system problem: use content-addressed caching to reuse intermediate artifacts, split full checks into incremental tasks that run in parallel, store build artifacts and logs in object storage with versioning, use a message queue to drive task distribution, use a container platform to freeze toolchain versions, and use logging and monitoring with alerts to track failure rates and timing jitter. If an AI coding assistant is introduced to generate proof drafts, it must be positioned as a “draft producer,” not a “source of correctness,” and all output must pass the first three lines of defense.
5. Recommended Collaboration Workflow
- Submission side: include a minimal reproducible package, an assumption list, a dependency graph, and semantic anchor tests.
- Review side: run assumption auditing and gates first, then look at scale; verify “whether the proposition was weakened” before verifying “whether the derivation is legitimate.”
- Conclusion side: distinguish three conclusions of different strength—“compiles,” “no extra assumptions,” and “semantically faithful”—and do not conflate them in external statements.
- Governance side: make “independent reproduction” a precondition for release, and bind any institutional statement to a reproducible build summary.
6. Conclusion
The lesson from this “big reversal” is not abstract for developers: type systems, proof kernels, and build pipelines guarantee internal consistency, not external truth. Any trustworthy system needs a layer of semantic auditing and independent reproduction beyond automated checks. Making assumption auditing, definitional fidelity, dependency tracing, and engineered reproducibility default gates is what allows “it ran” to truly equal “it is correct.”
