What Is a Formal Proof? How Machine Kernels Verify Hard Mathematical Problems
This article explains what a formal proof is and how machine kernels verify it, using a recent case in which a number theory researcher and an AI coding tool completed a formal proof of the Riemann Hypothesis and its generalizations. It breaks down the three-layer trust structure, the verification workflow, the community review checkpoints, and why machine correctness does not equal human understanding. It also provides five executable practices for building trustworthy AI systems, common pitfalls that invalidate verification, and a compute governance checklist.
1. Overview: Machines Join a Hard Math Problem, and Community Review Finds No Issues
Recently, a number theory researcher working with an AI technology team publicly announced that, together with an intelligent coding tool, they had completed a formal proof of the Riemann Hypothesis and its generalized forms—problems that had remained open for more than 160 years. The researcher also released a formal proof codebase of roughly 17 million lines. One day later, the formal proof community, backed by several open-source organizations, published a joint certification statement: community review found no issues, and the conclusions are based on the publicly exported files and review records.
A clarification on the numbers: the figures of about 17 million lines, roughly 175,000 modules, more than 1.4 million declarations, and reliance on only three standard axioms come from the project’s public repository and community review records. The counting conventions are: lines are counted as physical lines in code files (including blank lines and comments); modules are deduplicated by the build system’s compilation units; declarations are deduplicated by the declarations exported from the kernel; and axioms are deduplicated from the dependency list in the final export file. Readers should verify these figures themselves against the public export files and review logs for the corresponding version. This article does not constitute an absolute endorsement.
The key point of this event is not that “AI produced the answer,” but that the entire proof exists in a machine-verifiable form and was reviewed by the community through multiple independent checkpoints. It marks a shift in which automated reasoning and formal verification are moving from auxiliary tools to core components of the research production pipeline.
2. Technical Breakdown: What a Formal Proof Is and How the Machine Kernel Verifies It
A formal proof requires every step of reasoning to be written as a logical term that the kernel can check. Any leap, implicit assumption, or type error is rejected. Its trustworthiness rests on a three-layer structure:
- Proposition definition layer: It directly reuses standard proposition definitions that the community has maintained over the long term and that domain experts have repeatedly verified, avoiding “bait-and-switch” on concepts.
- Proof construction layer: The researcher controls the core analogy and overall direction, while the intelligent tool rapidly generates a large number of technical derivations during the final sprint.
- Verification and review layer: After stripping out executable scripts, the static export files pass full verification by the official kernel and then by multiple independent kernels in sequence.
The prerequisites must be stated clearly: the work uses an interactive proof assistant based on dependent type theory (such as a Lean-style system) as the construction environment; the verification side uses both the official kernel and at least two independently implemented kernels (including an independent type checker); dependencies are pinned to exact versions and hashes via a lockfile; the static export uses a kernel-independent .olean/JSON declaration export format; and reproducing the results requires only read-only access to the public repository and a containerized compilation toolchain, with no private server permissions.
The verification flow can be abstracted schematically as:
Proposition definition (community standard) -> Proof term construction (human-AI collaboration) -> Static export-> Official kernel verification -> Independent kernels A/B/C review -> Community joint certification
The community’s checkpoints include: dozens of external researchers independently completing a local build of all roughly 175,000 modules and reproducing identical export files; using two independent comparison tools to confirm that the final proof is indeed of the original proposition; and confirming that all more than 1.4 million declarations in the proof depend on only three standard axioms, with no type holes or room for cheating.
3. Why Machine Correctness Does Not Equal Human Understanding
The most profound tension in this event is that a machine can deliver the certainty of “correctness” but cannot automatically deliver the understandability of “why it is correct.” The researcher admitted that near the finish line, the intelligent tool contributed a large volume of derivations far beyond human writing speed, even “leaving humans far behind.”
This echoes concerns about “the death of proof” raised more than three decades ago: when a proof’s scale exceeds the human ability to check it line by line, the way mathematical knowledge is transmitted must change. Mathematicians in the field have long warned that humans may become bystanders who know only the result and not the mechanism. Formal proofs therefore bring not an end but a new division of labor: humans handle problem selection, analogy construction, and explanatory narrative, while machines handle large-scale derivation and consistency checking.
4. How to Put It into Practice: Five Executable Rules for Trustworthy AI Systems
The conclusion first: making “correctness” a machine-checkable specification and then completely separating generation from verification is the core of this paradigm that can be directly reused. The specific checklist is as follows:
- Specification first: Define “correct” with machine-checkable specifications. Parameter example: the specification file is placed under version control, and generation tasks may start only after review approval.
- Separate generation from verification: The intelligent coding tool handles high-speed generation, and an independent verifier does the gatekeeping. Parameter example: the verifier and the generator use different code repositories and different maintainers; “generating and endorsing your own work” is prohibited.
- Multi-kernel redundant review: Cross-validate with heterogeneous implementations. Parameter example: at least two independent kernels must pass in full; any failure blocks the release.
- Full reproducibility: Pin dependencies, use static export, and compile independently. Parameter example: a lockfile pins dependency hashes, the container image is tagged and its digest is retained, and a third party can reproduce the export files within 30 minutes following the documentation.
- Auditable chain: Use logging services, monitoring alerts, and object storage to preserve the evidence chain. Compliance note: the evidence chain must redact keys and sensitive data, enforce least privilege and key management (such as KMS), and set a clear retention period (for example, archive or delete after 180 days).
- Failure handling: Parameter example: a verification task retries twice with a 60-minute timeout per attempt; if it still fails, roll back to the last version that passed verification and trigger an alert.
For cloud deployment, a container platform can host compilation and verification tasks, and a message queue can decouple the generation and verification pipelines to enable elastic scaling and failure retries.
5. Common Mistakes: Three Pitfalls That Most Easily Invalidate Verification
- Skipping independent kernel review: Releasing after passing only the official kernel; a defect in a single implementation creates systemic risk.
- Non-reproducible export files: Failing to pin dependencies or strip executable scripts means third parties cannot obtain consistent results.
- Drift between specifications and proposition definitions: The generation stage quietly changes the proposition’s wording, so the proof is “correct” but does not prove the original proposition.
6. Compute Resource Governance Checklist
Large-scale formal tasks demand substantial compute, and enterprises can treat compute as a resource that needs governance: multi-cloud and heterogeneous compute scheduling, quota management, cost monitoring, and priority queues reduce single-point supply risk and ensure continuity for long-running tasks.
7. Conclusion: Make Verification Stricter Before Making Generation Stronger
The key to trustworthy AI is not stronger generation but stricter verification. Turning “correctness” into an executable, reviewable, and reproducible engineering asset is the biggest takeaway of this event for developers.
