Formal Verification of the Riemann Hypothesis: Analyzing a 17-Million-Line Proof and Machine Checking
This article analyzes a reported human-AI collaboration that produced roughly 17 million lines of formal code for the Riemann Hypothesis and a generalized form for Dirichlet L-functions. It explains what the machine checks actually verified across four layers, why one verification chain still shows some tasks running, and why a human-readable explanation remains the real bottleneck. Developers will find transferable lessons on layered gating, cross-implementation validation, reproducibility as a deliverable, and precise status reporting for long-running pipelines.
1. Overview: The Machine Has Checked, Humans Are Still Explaining
A human-AI collaboration targeting the Riemann Hypothesis and a generalized form involving Dirichlet L-functions has released roughly 17 million lines of formal code. As of the latest update to the public verification records, independent researchers have reported that all 175,187 modules compile without errors, that an axiom check on five main theorems depends on only three standard axioms, and that all modules pass replay through the formal kernel. A separately implemented checking kernel then re-verified the 1,484,729 declarations that the five theorems depend on, reporting no type-checking errors.
At the same time, another verification chain from a university research institution has published multiple passing results, but partial replay of the complete export files and end-to-end comparison tasks are still marked as running.
These two sets of information do not contradict each other. They describe the state of different stages, at different points in time, along the same evidence chain. For developers, what matters is not “who won,” but the process itself: how a mathematical proof is engineered into a machine-checkable code asset, and what engineered verification contributes to trustworthiness.
2. What the Original Claim Did and Did Not Say
On November 20, 2026, a mathematician published a proof completed in collaboration with an intelligent coding tool and released the formal files alongside it. The original claim contained three layers of information:
- The author believes he has found a proof of the Riemann Hypothesis in collaboration with the intelligent tool, and has completed its formalization;
- The research direction was guided over a long period by the human researcher;
- The intelligent tool supplied several technical ideas near completion.
It should be clear that this cannot be reduced to “type one sentence into a chat box and the tool independently solved the problem.” Compressing a human-AI collaboration into single-point attribution neither matches the original statement nor leads to a sound judgment of capability.
The scope of the claim also needs to be precise. According to a statement checked in November 2026 from a mathematics research institution, the Riemann Hypothesis originates from 1859 research and asserts that the real part of every non-trivial zero of the Riemann zeta function is 1/2, closely tied to the distribution of prime numbers. The scope of this public verification also includes the generalized Riemann Hypothesis for Dirichlet L-functions—here “generalized” has a specific referent and cannot be extrapolated to mean that the broadest version covering all types of L-functions has been checked.
3. What the Machine Verification Actually Checked
The core idea of formal verification is to write mathematical statements and proofs as code constrained by a strict type system, then have a small, trusted kernel check each inference for validity. The public records describe verification in four layers, each tightening the guarantee:
- Compilation layer: all 175,187 modules compile, showing the code is type-level consistent with no unresolved references or type errors.
- Axiom layer: an axiom-dependency check on the five main theorems lists only three standard axioms, meaning the proofs introduce no hidden extra assumptions.
- Kernel replay layer: all modules are re-executed through the formal kernel, ruling out the case of “compiles but the kernel does not accept it.”
- Independent implementation layer: a separately written checking kernel, implemented in a different language, re-verifies the 1,484,729 declarations the five theorems depend on, with no type-checking errors reported.
The fourth layer is the most important. The same code checked by two independent implementations can significantly reduce the risk of a “the kernel itself is flawed and produces a wrong judgment” scenario. This is consistent with engineering practice: key conclusions do not rely on a single implementation but require cross-validation.
The report also records the source of the code, hash values, dependency versions, verification scripts, and logs. This is often overlooked, yet it is the foundation of reproducibility—the machine accepts specific statements and their proof terms, and anyone who wants to trace the work must be able to locate the exact version of the input.
A schematic verification flow can be abstracted as:
Source snapshot (with hash) -> dependency version pinning -> full compilation-> axiom dependency check -> kernel replay -> independent kernel cross-check-> export list of statements and proof terms -> archive logs
4. Why “Some Tasks Still Running” Must Be Taken Seriously
The status of the other verification chain is this: multiple compilation, kernel, and statement-matching checks have passed, but partial replay of the complete export files and end-to-end comparison tasks are still marked as running.
The reason is scale. Code on the order of tens of millions of lines makes full replay a compute-intensive task that takes a long time and consumes heavy resources, so an intermediate state is entirely normal. Reading it as “verification failed” or “verification complete” is a misreading. The accurate statement is: completed items have passed, and unfinished items have no conclusion yet.
The standard engineering approach to such states is to make tasks resumable from checkpoints, persist stage results to storage, localize failures to a specific declaration number, and perform end-to-end comparison on the final export to confirm that “the code that was checked” and “the code that was archived” are the same.
5. Why the Human-Readable Explanation Is the Real Bottleneck
The machine can confirm that “the inference chain is valid,” but it will not tell humans “why this chain corresponds to the mathematical problem we care about.” The current state is that the formal files and independent verification records are public, while the human-readable mathematical explanation is still in progress.
This determines the attitude outsiders should take: it is possible to confirm that a formal proof exists which has passed multiple rounds of machine verification; at the same time, one should acknowledge that the academic community’s digestion of the proof approach, confirmation of the claim’s scope boundaries, and evaluation of its methodological value all take time. Equating “the machine passed” directly with “the academic community has fully accepted it” conflates two conclusions of different natures.
6. Transferable Lessons for Developers
The implications of this progress for software engineering are more directly usable than the mathematical conclusion itself:
- Long-chain tasks must be gated in layers. Compilation, static dependency checks, kernel-level replay, and independent implementation review each solve different problems and cannot substitute for one another.
- Cross-implementation beats single trust. Running key validation on two independent implementations can expose implementation-layer defects.
- Reproducibility must be a deliverable. Hashes, dependency versions, scripts, logs, and results are equally important; missing any one makes tracing impossible.
- Solve scale problems with engineering means. Checkpoint resume, staged persistence, and incremental replay are the standard answers for very long tasks.
- Status statements must be precise. “Passed,” “running,” and “no conclusion” must be stated separately, avoiding aggregated conclusions that cause misunderstanding.
When deploying this kind of process in the cloud, a common combination is to use a container platform to pin the verification environment, object storage to archive source snapshots and logs, a message queue to split and schedule replay tasks, and a logging service with monitoring and alerting to track the stage status of long tasks. General-purpose cloud product categories offered by platforms such as Baidu AI Cloud can serve as a reference direction for hosting such a reproducible verification pipeline.
7. Conclusion
The accurate statement at this stage is: a formal proof of roughly 17 million lines has passed compilation, axiom checks, kernel replay, and independent-kernel cross-verification; another verification chain still has some tasks running; and the human-readable explanation is not yet complete. The role of the intelligent coding tool is that of a collaborating participant, not an independent solver. For readers, the most valuable takeaway is not taking sides, but mastering a method for judging this kind of news: see clearly who proposed it, what was checked, where the boundaries are, and which conclusions remain unsettled.
