Formal Verification of AI-Assisted Proofs: Kernel Checks, Dependency Graphs, and Community Acceptance
When someone claims that an AI coding tool has formalized a famous conjecture, the claim should be separated into three questions: Is the statement formalized correctly? Did a trusted kernel accept the proof object? Can mathematicians understand, reuse, and generalize the proof? Using the Riemann Hypothesis as a motivating example, this article explains the boundary between kernel verification and mathematical acceptance, the proper division of labor for AI tools in proof work, modular proof organization, a reproducible verification checklist, and how to read formalization community statements. It also applies the same discipline to enterprise teams that generate large amounts of code with AI and mistake passing tests for production readiness.
Mathematical history’s famous conjectures often share two features: the statement is very short, while any path to a conclusion is very long. The Riemann Hypothesis, centered on the distribution of primes, is a typical case. It rewrites the irregular appearance of primes as a constraint on the locations of zeros of a complex function. The problem itself can be stated in a sentence or two, but the work in between draws on analytic number theory, complex analysis, and a large body of estimation techniques. When someone announces that an “AI coding tool has completed a formal proof,” professional readers should not rush to take sides. They should first separate three questions: Has the proposition been formalized correctly? Has the proof been accepted by a trusted kernel? And can the proof be understood, reused, and generalized by human mathematicians?
First, separate three layers of “correct”
In public discussion, the easiest confusion is between “the code passes a checker” and “the conjecture has been accepted by the mathematical community.” These are not the same statement.
The first layer is the statement itself. A theorem name in a formal system must correspond strictly to the classical statement: where the zeros lie, whether exceptions are excluded, and whether conditions are fully written when generalizing to more general L-functions. If the formal statement is weaker than the verbal announcement, passing the check only shows that the weaker proposition holds. Verification should examine quantifiers, domains, preconditions for analytic continuation, and whether “nontrivial zeros” matches the definition in the literature.
The second layer is the proof object. The kernel of a proof assistant accepts only terms derived from axioms and library lemmas through inference rules. A passing kernel check means that, under that logic and that base library, the dependency chain has no obvious type errors or open goals. It does not automatically guarantee that every cited lemma in the base library matches one’s mathematical intuition, nor does it guarantee that the natural-language paper and the formal text say the same thing.
The third layer is academic recognition. Traditional peer review asks whether the idea is new, whether estimates are reproducible, and whether the proof can be read by peers in a reasonable amount of time. Formal verification can greatly reduce the risk of “one line calculated wrong,” but it cannot replace intellectual digestion. If a conjecture is still marked unresolved on an authoritative problem list, that usually means the community has not completed that digestion, not that some machine check “failed.” The two can coexist for a long time: a machine may pass a particular formal text while the mathematical community still treats the original conjecture as open, until the proof is understood, independently reconstructed, or a gap is found.
What AI coding tools actually do in proofs
A safer division of labor for putting AI coding tools into mathematical research is this: humans choose the direction of attack, propose testable intermediate propositions, and decide which estimates can be combined; tools expand lengthy algebraic manipulations, search for nearby lemmas, fill in routine proof steps, and point out unclosed goals when they fail. The value of this collaboration is to shorten the distance from an idea to a checkable text, not to give a model the authority to declare a millennium problem finished on its own.
Several boundaries should hold in practice. Directions and key lemmas should be proposed by people with domain judgment and written as independently statable propositions, not left only in a chat log. Tool-generated steps must enter the proof assistant and be judged by the kernel, not by the model’s own explanation. Every “breakthrough” should become a citable lemma with assumptions and conclusions noted, rather than holding implicitly only inside a long script. If the claimed method generalizes to a broader family of conjectures, the generalization should be formalized separately; a passing record for the original proposition cannot substitute for it.
Research logs are also worth keeping: on which day work began on which type of estimate, which path was abandoned, and which external lemmas were ultimately relied on. Without a timeline and dependency graph, outsiders face only a huge script and cannot tell where the innovation actually occurred.
Scale cannot replace structure
Very long formal texts create an illusion: the more lines, the less likely an error. In reality, length mainly raises audit cost. With hundreds of thousands of lines or more of proof scripts, if module boundaries are missing, reviewers cannot know which section to read first. A more reasonable organization is to divide by mathematical structure, not to stack files in generation order.
At minimum, consider these layers: basic definitions, such as the functional equation, series regions, and zero multiplicities; classical tool lemmas, preferably citing libraries polished by the community over time and pinning versions; original estimates, each in its own file with natural-language comments explaining its role in the proof; the main theorem, which only assembles the pieces and does not expand technical calculations in the main file; and generalization theorems, with additional assumptions made explicit.
The dependency graph should be exportable. Reviewers need to answer: if one huge file is deleted, does the main theorem still compile? If the answer is “the whole repository is one script that cannot be separated,” then “the kernel passed” only shows that a machine-checkable path exists, not that the path can be maintained.
Code quality and logical correctness can be separated. Messy formatting, arbitrary naming, missing comments, and extensive duplication all make later modifications likely to introduce a risk: the code still appears to pass, but the proposition has been quietly weakened. Poor quality does not equal an incorrect proof, but it does equal an unsustainable proof. If public materials are hard to read, the responsible move is to acknowledge insufficient readability and add structural documentation, rather than distract with jokes about length or exaggerated page counts. Page counts and line counts are not evidence; locatable lemmas are.
How to run a reproducible verification
For results claimed to be “fully formalized,” the following checklist can be used without relying on the publisher’s wording.
Statement comparison. Compare the formal theorem with the classical statement line by line and list all additional assumptions. Pay special attention to whether phrases such as “almost all,” “except for finitely many,” or “to the right of the critical line” are encoded precisely.
Fixed environment. Record the proof assistant version, base library version, and build options. If the result cannot be reproduced after a minor version change, a single passing run cannot be treated as a stable fact.
Kernel and external solvers. If the proof calls external automation, numerical computation, or an uncheckable oracle, the trust boundary of those steps must be stated separately. A pure kernel proof and a “kernel plus external black box” proof do not carry the same credibility.
Minimal reproduction. Provide the steps from a clean environment to a passing check of the main theorem, including how dependencies are obtained and expected runtime. Steps should use a common build description and avoid binding to a private environment that cannot be inspected.
Layered review. First, someone familiar with proof assistants should confirm that the text really checks the main theorem. Then someone familiar with the conjecture should review the original estimates. These two skill sets are rarely concentrated in one person, so the combined conclusion should state what each review covered.
Counterexamples and boundary tests. Construct extreme parameters or known classical special cases for intermediate lemmas and see whether the formal statement rejects incorrect strengthenings. A system configuration that accepts a false proposition is itself a defect.
An illustrative module boundary might look like this (only a structural example, not the syntax of any specific system):
Defs/Zeta.basic -- Definitions of the function and analytic continuationLemmas/ExplicitFormula -- Citation and version of the explicit formulaEstimates/ZeroFree -- Original zero estimates, one declaration per fileMain/RH -- Only assembles the lemmas aboveMain/Generalization -- Generalization under additional assumptionsNOTES.md -- Mathematical role of each file
How to read community statements
Joint statements from the formalization community can usually certify only the text they received: under the agreed versions, the proof object for the stated proposition was accepted. The strength of such a statement depends on whether review is public, whether third parties can reproduce it, and whether “fully convinced” refers to the kernel result or to the mathematical idea. When reading a statement, look for three sentences: the full name of the theorem checked, the base library version used, and whether the review scope includes mathematical novelty. If any of these is missing, the statement should not be upgraded to “the conjecture has been solved.”
The traditional mathematical community often responds more slowly. This is a difference in methods, not emotional opposition. A huge argument that exists only as formal code needs time to be translated back into a proof sketch people can discuss: What is the key new estimate? Which classical obstacle does it replace? What are the failure modes? Until such a sketch appears, keeping the “unresolved” label is reasonable academic hygiene, not a denial of the value of machine checking.
If the authors later clarify that some exaggerated claims were only jokes, or admit that the code quality is poor, readers should treat the clarification as an audit clue: which numbers were never seriously claimed, and which files need to be rewritten before serious review. Clarification does not automatically overturn or confirm the proof; it only changes where attention should be allocated.
Lessons for enterprise and engineering teams
Most teams will not work on analytic number theory, but they encounter the same class of problem: use AI coding tools to generate a large amount of code, then claim that “all tests pass, so it can go live.” The transferable principles are concrete.
Write acceptance criteria as machine-checkable specifications, not as intentions buried in a chat log. Specifications should be versioned so implementations cannot quietly weaken them. Generated code must be reviewable in modules; a very long single file is a risk, not an achievement. Automated passing covers only the properties written in the specification; security, performance, and business interpretation still require human judgment. When readability is poor, add structure and comments first, then expand promotion. External messaging should match the actual scope of kernel checks; do not turn “a checker exited with zero” into “the problem has been solved at its root.”
If a team uses cloud build and artifact repositories to pin proof or test environments, it should lock dependency versions, retain build logs, and let third parties reproduce under the same specification. What is needed here is general continuous build, artifact management, and audit logging capability, not a narrative tied to one model vendor or one proof assistant.
Conclusion
AI tools can participate in concrete derivations, lemma search, and routine proof completion, making very long arguments checkable line by line by machines for the first time. That is real progress in capability. But it does not shorten the time required for human understanding, nor does it make statement checking, dependency versions, and code structure optional. Faced with any formalization claim about a major conjecture, the robust attitude is: check the statement, reproduce the kernel check, draw the dependencies, require a readable proof sketch, and describe formalization community certification separately from mathematical community acceptance. Line counts, page counts, and slogans are not proof; checkable statements, locatable lemmas, and reproducible builds are.
