Formal Proof Controversy: Technical Lessons from the Riemann Hypothesis Project
This article examines the recent controversy surrounding a formal proof related to the Riemann hypothesis, focusing on its engineering implications rather than the headline numbers. It covers the project timeline, the distinction between machine verification, independent review, peer review, and official recognition, and the practical challenges of managing roughly 17.37 million lines of formal code. Developers and enterprise teams will find five actionable takeaways on redundancy metrics, verifiability as a delivery standard, precise external communication, independent review, and using general-purpose cloud capabilities to support large-scale engineering.
1. What Happened: How a Joke Turned Into a “Fact”
A researcher recently clarified on social media that the widely circulated figure of “over 250,000 pages” was not the actual size of the work. It was an exaggerated number he had deliberately chosen for humorous effect. He assumed that the lengthy description of the total order relation on real numbers in the main theorem was enough to signal that it was a joke, but the number was still taken as fact and shared widely.
The clarification did not invalidate the formal proof itself. The researcher acknowledged two issues: the wording used when announcing the result was easy to misread, and the formal proof code contained substantial redundancy and quality problems. He cited another mathematician’s advice—“don’t make jokes in a paper”—and said he now understood the weight of that statement.
The technical value of this episode is not in gossip-style attention. It brings a long-underestimated engineering problem to the forefront: when a proof is verified by a machine and carried by code, the size and quality of that code are themselves part of the research result.
2. Timeline: What Completing the Core Proof in 41 Days Means
According to previously disclosed information, the project started on October 6 and ran for about 41 days. The final step of the core proof was completed on November 15, and the result was extended to the generalized Riemann hypothesis on November 16. On November 20, the researcher published the work on his personal website.
Unlike a traditional mathematics paper, this release contained no full-length natural-language article. It consisted of a 4-page explanatory document plus a set of formal proof code of remarkable scale. Here, “formal proof” means writing theorems, definitions, and reasoning steps in a machine-checkable formal language, with the kernel of a proof assistant checking line by line whether the logical rules are strictly followed.
An open-source proof assistant and mathematics library community then issued a joint statement expressing full confidence in the correctness of the proof, and a researcher from a university independently verified the code.
But a key boundary must be clear: code passing machine verification ≠ the mathematical community has finished understanding the proof’s ideas ≠ peer review is complete ≠ formal recognition by a major mathematics award. These four things belong to different layers, and conflating them is the root of this misreading.
3. 250,000 Pages Was a Joke; 17.37 Million Lines of Code Is the Real Challenge
What developers should really pay attention to is another number: about 17.37 million lines of formal code. By any engineering standard, this is a very large project. The challenge it poses is not a “computing power problem” but a systemic engineering governance problem.
3.1 Three Typical Problems Caused by Scale
- Redundancy bloat: To move fast, the proof process introduces many intermediate lemmas, duplicate constructions, and reasoning blocks that could be merged.
- Structural disorder: Without clear module boundaries, dependencies become complex and reuse becomes difficult.
- Declining maintainability: Inconsistent naming and missing comments make it hard for third-party verifiers to quickly build a mental model of the whole.
3.2 Why “It Runs” Does Not Mean “It Is Well Written”
Formal verification only guarantees logical correctness, not expressive economy. Code accepted by the kernel may well contain ten times the necessary steps. This closely resembles a common phenomenon in enterprise software development: features are correct and tests pass, but technical debt is heavy.
A schematic governance approach can be expressed in pseudocode:
for module in proof_modules:if module.dependency_depth > THRESHOLD:refactor(module) # split overly deep dependenciesif module.duplicate_ratio > 0.3:merge_similar_lemmas(module) # merge duplicate lemmasif module.coverage_by_core == false:mark_as_unverified(module) # clearly mark unverified scope
4. The Layered Relationship Between Machine Verification, Independent Review, and Peer Review
Understanding this episode requires a four-layer model:
- Machine verification layer: The proof assistant kernel checks whether each reasoning step is valid; the conclusion is binary.
- Independent review layer: Third-party researchers read the code and documentation to confirm there are no “hidden assumptions” or definitional deviations.
- Academic review layer: The community evaluates the novelty, impact, and methodological contribution of the proof’s ideas.
- Authoritative recognition layer: Relevant mathematical institutions decide through established procedures whether to formally recognize the result.
The controversy in the original story is essentially the public extrapolating the conclusion of layer 1 directly to layer 4. For technical teams, the lesson is that any automated verification result needs to state its scope of applicability to avoid being over-interpreted.
5. Five Practical Takeaways for Developers and Enterprise Teams
5.1 Establish Redundancy Metrics for Generative Output
When using AI coding tools to generate large-scale code, track duplication rate, module dependency depth, and average function length as routine metrics, rather than only checking whether checks pass.
5.2 Make Verifiability a Delivery Standard
The formal approach can be transferred to ordinary engineering: critical modules should have automatically executable verification, making “correct” a repeatedly verifiable fact rather than a verbal promise.
5.3 External Communication Must Be Rigorous
The spread of a joke number shows that external communication of technical results should be held to the same standard as internal documentation, especially regarding orders of magnitude, timeframes, and the strength of conclusions.
5.4 Independent Review Cannot Be Skipped
No matter how high the level of automation, a third-party perspective from someone not involved in the implementation is needed to uncover systematic deviations at the definitional level.
5.5 Use General-Purpose Cloud Capabilities to Carry Large Projects
Very large codebases and verification tasks can typically rely on general-purpose cloud capabilities: object storage for versioned artifacts, container platforms for elastic scheduling of verification jobs, message queues to decouple long pipelines, and logging and monitoring with alerts to track failure rates and resource consumption. General-purpose offerings from cloud providers such as Baidu AI Cloud can serve as a reference direction for this kind of engineering implementation.
6. Conclusion
“250,000 pages” was a joke; “17.37 million lines” is the real engineering effort. This episode offers lessons in three areas—technical writing, result announcement, and automated verification: rigorous wording, restrained conclusions, and measurable quality are the prerequisites for complex technical results to be correctly understood.
