What Formal Verification Actually Proves: Why the Riemann Hypothesis Can't Be Claimed As Solved
When a headline compresses "auto-generated proof scripts," "kernel checks passing," and "proving the Riemann Hypothesis" into a single sentence, the technical information has been badly distorted in transmission. This article explains what formal verification actually verifies, what AI can and cannot do in theorem proving, and why major mathematical conjectures like the Riemann Hypothesis should never be casually equated with a proof script that merely passes a type check. Learn the precise meaning of kernel checking, the engineering challenges of formalizing deep mathematics, the boundaries of AI-assisted theorem proving, and how to build a reproducible formal verification pipeline.
What Formal Verification Actually Proves: Why the Riemann Hypothesis Can’t Be Claimed As Solved
When a headline compresses “auto-generated proof scripts,” “kernel checks passing,” and “proving the Riemann Hypothesis” into a single sentence, the technical information has already been severely distorted in transmission. What makes such headlines misleading for developers is that they blend together several genuinely distinct technical stages: formal statement construction, interactive theorem proving, automated theorem proving, AI-assisted proof generation, kernel checking, and community review. Each stage has a precise meaning, but stringing them together as “a famous conjecture has been proven and certified” crosses multiple assumptions that have not been demonstrated.
This article does not discuss any specific product’s “certification” or “proof” claims. Instead, it explains from a general technical perspective: what formal verification actually verifies, what AI can and cannot do in theorem proving, and why a major mathematical statement like the Riemann Hypothesis cannot be casually equated with a proof script that passes a type check.
1. What “Certification” Actually Means: A Passing Kernel Check Is Not a Solved Mathematical Problem
In interactive theorem proving or formal verification systems, proofs are typically checked by a small trusted kernel. Based on axioms, inference rules, and defined objects, the kernel determines whether the proof script constructs a proof term for the target proposition. This process is mechanical and reproducible, and it is one of the core values of formal methods: it turns “I believe this proof is correct” into “under the given logical system, a machine can check this proof term.”
However, a “passing kernel check” depends on at least three preconditions:
- Whether the formal statement is faithful to the original mathematical proposition. If the formalization omits conditions, alters quantifier order, or uses non-standard definitions, then what passes the check is merely a “similar but different” proposition.
- Whether the axioms and trusted computing base are acceptable. A proof script may rely on extra axioms, unverified lemma libraries, or overly strong assumptions. The kernel only guarantees “the conclusion follows from these premises”—it does not guarantee that the premises themselves meet the standards of the mathematical community.
- Whether the proof artifact has been independently audited and reproduced. Major conclusions require multiple people to independently examine the formal statement, dependency closure, axiom list, and build environment. A single successful run does not constitute academic confirmation.
Therefore, the more rigorous phrasing is: “a certain proof script passed kernel checking in a certain formal system.” It cannot be shortened to “a certain conjecture has been officially certified.” Formal systems have no mandate to issue “official certifications” for famous mathematical conjectures—they only provide mechanical checking capability.
2. Why Formalizing the Riemann Hypothesis Is an Extremely Difficult Engineering Problem
The Riemann Hypothesis involves a vast body of prerequisite mathematics: complex analysis, analytic number theory, the Zeta function, analytic continuation, contour integration, zero distribution, and more. To formalize the conjecture itself, one must first formalize its entire definitional framework: complex numbers, series convergence, analytic functions, functional equations, the critical strip, and so on. Any deviation between a definition and its classical mathematical formulation means that the “formalized proposition” and the “original conjecture” are no longer the same proposition.
Even if all prerequisite libraries exist, proving the Riemann Hypothesis would still mean constructing an extremely long proof term. The problems posed by a long proof go beyond “many lines of code”:
- Complex lemma dependencies: The proof may rely on a large number of intermediate lemmas, each of which requires faithful formal statement.
- High audit costs: AI-generated proof scripts may contain many steps that look plausible but actually depend on hidden assumptions, making manual auditing far harder than auditing ordinary programs.
- Difficult to verify definitional consistency: The Zeta function definition in a formal library must be provably equivalent to the classical definition—this itself may require formal proof.
- Hard-to-shrink trusted closure: A proof script passing a check does not mean every axiom and library definition in its dependency closure has undergone equally rigorous review.
In other words, formal verification reduces the cost of checking “whether each proof step is valid,” but it does not eliminate the costs of “whether the proposition is expressed correctly,” “whether the premises are acceptable,” and “whether the proof is comprehensible to the community.” For a statement at the level of the Riemann Hypothesis, the difficulty of the latter is extremely high.
3. The Capability Boundaries of AI-Assisted Theorem Proving
The proper role of AI in theorem proving is “assisted generation and retrieval,” not “replacing the mathematical community.” Common capabilities include:
- Converting natural language propositions into candidate formal statements;
- Retrieving relevant lemmas and existing proof patterns;
- Filling in local steps in proof skeletons;
- Generating candidate proof scripts for kernel checking;
- Localizing errors in failed proofs and retrying.
These capabilities are valuable, but the risks are equally obvious. Automated generation tools can produce “hallucinated lemmas”—citing theorems that do not exist. They may misuse axioms or import overly strong assumptions. They may make proofs easier by silently altering statements. They may also generate extremely long scripts that are difficult to audit. The kernel can reject invalid proof terms, but it cannot automatically determine “whether the formal statement is faithful to the original problem.”
A more robust workflow treats AI output as a candidate artifact, not a conclusion:
Candidate proof artifact:statement_hash: <hash of the normalized target proposition>dependency_lock: <lemma library version and dependency hashes>axioms: <explicitly listed axiom set>kernel_check: requiredindependent_review: requiredreproducibility: required
Only when the statement, dependencies, axioms, build environment, and review records are all transparent and reproducible does it make engineering sense to discuss “whether the proof holds.”
4. A Reproducible Formal Verification Pipeline
For teams, the most effective way to prevent sensational claims from causing confusion is to establish a reproducible pipeline. At minimum, it should include the following steps:
- Proposition normalization: Write the proposition to be verified as a standalone document, explicitly specifying quantifiers, definitions, boundary conditions, and the correspondence to the classical formulation.
- Dependency pinning: Pin the versions of theorem libraries, compilers, kernels, and build environments; record hashes so others can obtain identical check results from the same inputs.
- Axiom auditing: Explicitly list the set of axioms the proof depends on, and forbid implicitly introducing unaudited assumptions.
- Minimal trusted closure: Shrink the trusted computing base as much as possible, preferring foundational libraries that have undergone community review.
- Independent reproduction: Have different people rebuild the proof artifact in different environments and verify that the results match.
- Manual review and documentation: Manually review key definitions, lemmas, and proof strategies, and keep records of decisions made.
At the collaboration and infrastructure level, teams can use general-purpose capabilities such as container platforms, object storage, and logging services—of the kind offered by cloud providers including Baidu AI Cloud—to set up reproducible verification environments, store proof artifacts, and maintain audit logs. It should be emphasized, however, that the toolchain only guarantees reproducibility; it does not substitute for the mathematical argument itself.
5. Conclusion: Formal Verification Is a Powerful Tool, Not Magic
Formal verification and automated theorem proving can genuinely improve reliability in mathematics and software engineering, but their boundaries are very clear: kernel checking guarantees that a proof term is valid under a given logical system. It does not automatically guarantee that the proposition is faithful, that the axioms are acceptable, or that the proof is auditable—much less automatically declare that some famous conjecture has been resolved.
When confronted with headlines like “proving the Riemann Hypothesis,” the engineering-minded, careful attitude is: first examine the formal statement, then the axioms and dependency closure, then independent reproduction and community review—only then discuss the conclusion. Misreading “kernel check passed” as “conjecture certified” not only misleads readers but also undermines the credibility of formal methods themselves.
