Lean Proof Verification: How 17 Million Lines of Formalized Math Passed Machine Checks

    This article examines a recently publicized formalization effort in which roughly 17 million lines of Lean proof code, spanning over 1.7 million modules, passed four independent categories of machine verification. It breaks down what the original claim actually covers, what each verification step (full compilation, axiom checking, kernel replay, and independent kernel cross-checking) really proves, and why passing machine verification is not the same as acceptance by the mathematical community. It closes with engineering takeaways on minimizing the trusted computing base, independently recomputing key results, and dividing work between humans and automation according to their strengths.

    Lean Proof Verification: How 17 Million Lines of Formalized Math Passed Machine Checks

    “A ten-million-line proof has been checked by machines, and humans are still working on explaining it clearly.” Over the past few weeks, this sentence has become the most frequently quoted summary among researchers discussing formalized mathematics. A proof concerning a classical conjecture in number theory, completed through collaboration between a mathematics researcher and an AI coding tool, came to public attention in late November 2026: the published formalized code runs to roughly 17 million lines and covers more than 1.7 million modules. As of November 23, third-party researchers had reported that compilation, axiom checking, kernel replay, and independent kernel verification had all passed.

    This news deserves serious attention from the engineering and technical community not because of the emotional narrative that “AI has solved a hard math problem,” but because it has pushed a set of engineering practices—previously circulated only within the formal verification community—into the spotlight: module compilation, axiom dependency tracking, kernel replay, cross-validation with independent implementations, and hashing and log retention. Below, we break the story down across three dimensions: the claim itself, the verification chain, and the division of labor between humans and machines.

    1. What the Original Claim Actually Covers

    To understand this progress accurately, the first step is to draw the boundaries of the claim strictly. The core message in the author’s statement is that he believes he has, in collaboration with an AI coding tool, completed a proof concerning the Riemann zeta function, and has released the formalized code alongside it. The statement also includes two details: first, how the researcher himself designed the guiding path and split intermediate propositions; second, how the tool supplied several technical constructions near the final stage of the proof.

    Taken together, these two points make one thing clear—the result cannot be reduced to “input a single sentence, and the model independently produces the answer.” On the contrary, it is closer to a collaboration in which human mathematical intuition drives the direction while automated tools take on a large volume of repetitive construction work. This also matches the real production process of formalized mathematics: defining the overall strategy, selecting key lemmas, and designing types and structures usually require deep involvement from the researcher, while the massive number of local proof obligations that unfold from those strategies are the main reason the code volume explodes.

    The second point that needs precise definition is what the qualifier “generalized” actually refers to. The claim covers a generalized form of the Riemann hypothesis for Dirichlet L-functions, not the broadest form of all types of L-functions in any abstract sense. The most common misreading in mathematical writing is precisely to expand a qualified statement into a universal one. Similarly, according to public statements from the relevant mathematics research institution, the original conjecture dates to research from the mid-19th century and asserts that all non-trivial zeros of the zeta function have real part equal to one half; its significance lies in directly linking the error term in the distribution of prime numbers to the locations of those zeros.

    2. Independent Verification: What the Four Categories of Machine Checks Each Validate

    In formalized mathematics, “verification passed” is not a vague conclusion but can be decomposed into several mutually independent checking actions. A public report from third-party researchers dated November 21, 2026 listed four categories of results, each answering a different question.

    First, full compilation with no errors. Roughly 175,187 modules all compiled successfully. Compilation itself only guarantees consistency of syntax, types, and definitions; it does not guarantee the content of the propositions, but it is the prerequisite for every subsequent check. In a project on the scale of tens of millions of lines, the compilation stage alone can expose the vast majority of structural problems, such as circular dependencies, naming conflicts, instance resolution failures, and missing proof terms.

    Second, axiom checking. Dependency tracking was performed on five main theorems, and the results showed that their axiom dependencies consisted of only three standard axioms, with no additional unaccepted assumptions introduced. This step is the core of a formal proof’s credibility. Even if a proof is entirely valid syntactically, the conclusion is meaningless as long as it depends on a wrong axiom. The axiom dependency list is effectively the “ingredient list” for the proof’s trustworthiness.

    Third, full-module kernel replay. Replay means not trusting the compiled artifacts or cache, but instead rebuilding proof terms one by one from the declarations and submitting them to the theorem prover’s trusted kernel for re-adjudication. This step rules out the risk of “a contaminated intermediate representation” and is the strictest self-verification at the level of the official implementation.

    Fourth, independent kernel cross-verification. The researchers used a separately implemented, independently developed trusted kernel to check, item by item, the 1,484,729 declarations that the five theorems depend on, and reported no type errors. The significance of this layer far exceeds the previous two: when two independently implemented checkers reach the same conclusion on the same batch of propositions, an error would require “two independent defects that happen to complement each other,” and the probability drops sharply. This is also a best practice long promoted in the formalized mathematics community—do not put blind faith in a single implementation.

    The report also made public the source of the code, file hashes, dependency versions, verification scripts, and run logs. This metadata is not a formality. For reproducible engineering, hashing locks the inputs, version locking pins the semantics, and logs lock the process; only when all three are present can a third party re-run the conclusion without the original author’s involvement.

    It is worth noting that a computational mathematician at another research institution also maintains a parallel verification chain. Timestamps on its public page show that multiple compilation, kernel, and proposition-matching checks have passed, but replay of part of the complete export file, along with one end-to-end comparison task, is still marked as running. This does not contradict the statement that “four checks are complete”: different teams differ in what they check, the granularity of their checks, and the resources they invest. One chain being complete does not mean all chains are complete, and vice versa. Professional reporting in the same period also added records of progress on independent verification.

    3. Why “Machines Have Checked It” Does Not Mean “the Mathematical Community Accepts It”

    Here it is necessary to distinguish two different levels of conclusion strength.

    Formal verification answers the question: do these formalized propositions, starting from accepted axioms, pass the mechanical adjudication of a trusted kernel? It is a binary result and can be fully reproduced.

    Acceptance by the mathematical community answers a different set of questions: are the formalized propositions the same as the conjecture written on paper; is there any substitution during the statement process; is the proof path understood, reused, and incorporated into subsequent work by peers. The reason the human-readable explanatory write-up is not yet complete lies precisely here. Machines can confirm that “the proof terms exist and are correctly typed,” but they cannot tell you “why this argument holds, what the key idea is, or whether it can be generalized to other problems.”

    So the accurate statement at present should be: machine verification at the formal level has passed; the human-readable explanation and peer review at the mathematical level are still in progress. Treating the former as a substitute for the latter is the most common misreading of this kind of news.

    4. Implications for Engineering Practice

    Stepping outside the mathematical context, this event offers comparable lessons for software and systems engineering, centered on three isomorphic points.

    Keep the trusted computing base as small as possible. The upper bound on the trustworthiness of a formal proof equals the upper bound on the trustworthiness of its kernel and axioms. Similarly, the upper bound on the security of any system equals the trustworthiness of the components within its trust boundary. The first question in design is always: which parts must be trusted, and can that set be reduced to the minimum?

    Key conclusions must be independently recomputed. Cross-validating the same batch of inputs with a second independent implementation is more effective than adding test volume on a single implementation. In a build pipeline, the corresponding practices are dependency locking, reproducible builds, hash verification, multi-implementation comparison, and archiving the logs and artifacts of each verification round.

    Divide labor between humans and machines along capability boundaries. Automated tools excel at expanding a clear strategy into massive deterministic steps, while humans excel at setting goals and judging which intermediate propositions are worth proving. Draw the boundary wrong, and two typical failures appear: having people manually check a million declarations, or having a model decide the overall proof strategy.

    For teams that need to reproduce this kind of verification in their own environments, the usual implementation path does not involve complex specialized software: build an isolated, reproducible build environment on a container platform, store code and dependency artifacts in object storage and pin versions with checksums, orchestrate verification tasks as re-runnable pipelines, and retain the evidence chain of each run through logging services and monitoring alerts. These are combinations of general engineering capabilities, not features of any single product.

    Conclusion

    The real value of this progress lies not in the dramatic judgment of “whether AI has solved a century-old problem,” but in the fact that it demonstrates how a complete, reproducible, independently reviewable evidence chain is built: roughly 17 million lines of formalized code, more than 1.7 million modules, four mutually independent categories of machine checks, public hashes and logs, and parallel verification by multiple teams.

    For readers, the most valuable takeaway is this: machine verification can deliver deterministic local conclusions, but it cannot replace human understanding and peer review; and the principle of “cross-validation with independent implementations” applies to mathematical proofs just as it does to the systems we maintain every day.