When AI Starts Proving Mathematical Conjectures: A Practical Look at Formal Verification

    This article examines a shift in how mathematical claims are delivered: a proof of a long-standing number theory conjecture was published not as a manuscript but as a machine-checkable code repository. It explains the core logic of formal verification and its trusted kernel, the real division of labor between humans and AI models, the engineering challenges of maintaining a proof library with hundreds of thousands of files, and how to build a reproducible review pipeline. It closes with practical takeaways for enterprise teams on when and how to adopt formal methods.

    1. The Event: A Claim Delivered as Code, Not a Manuscript

    One day, an engineer with a background in mathematical research published a statement on a personal site claiming that, working with an AI coding assistant, they had completed a rigorous proof of a famous number theory conjecture first posed more than 160 years ago. Departing from convention, the deliverable was not a manuscript of several dozen pages but roughly a dozen compressed archives totaling a little over 200 MB. Unpacked, they contained more than 170,000 source files written in a proof language. Once the news spread, independent verification efforts appeared spontaneously around the world.

    What deserves attention from an engineering perspective is not “who proved it,” but the change in delivery format: a mathematical conclusion entered public view for the first time as a “machine-checkable codebase.” This marks a shift in the center of gravity of verification, from “can human peers understand it” to “does the kernel program pass.”

    2. Why Write Proofs as Code: The Basic Logic of Formal Verification

    Traditional mathematical proofs rely on natural language, and their correctness is guaranteed by peer review. This has two inherent weaknesses. First, reviewers have limited attention, and the cost of checking a long proof can be impractically high. Second, natural language is ambiguous, and implicit assumptions can be amplified through layers of citation.

    The idea behind formal verification is to express propositions, definitions, and every inference step in a proof language, and to have a small, trusted kernel check each step to confirm it is legitimately derived from known axioms and previously proved lemmas. Its trust structure is very clear:

    • The kernel is small in code size and unambiguous in semantics, so a handful of experts can audit it exhaustively.
    • No matter how large the upper-level library grows, an error there can only result in “a lemma cannot be proved,” and cannot make the kernel accept a false conclusion.
    • Once a proof passes the check, its correctness no longer depends on the author’s reputation.

    A schematic example looks roughly like this, where the proof is decomposed into a series of independently checkable intermediate assertions:

    1. -- Split the main proposition into independently checkable lemmas
    2. lemma key_estimate (x : ℝ) (hx : 0 < x) :
    3. f x ≤ g x := by
    4. have h1 : f x ≤ h x := monotone_step hx
    5. have h2 : h x ≤ g x := bound_by_constant hx
    6. exact le_trans h1 h2
    7. -- The main theorem just chains the lemmas together logically
    8. theorem main_result : RiemannHypothesis := by
    9. intro s hs
    10. exact key_estimate (re s) (pos_of_critical_strip hs)

    This style has one direct consequence: the size of a proof can grow linearly without any loss of trustworthiness. The 170,000 files are not redundancy but the inevitable cost of expanding every “obvious” step into something checkable.

    3. The Real Division of Labor Between Humans and Models

    In this kind of work, the roles of the model and the human are not “replacement” but a recognizable division of labor:

    1. Formalization translation: transcribing paper-style, diagram-style arguments into a proof language skeleton, the most time-consuming and most mechanical step.
    2. Lemma completion: generating candidate proofs for intermediate steps left as gaps, with the kernel deciding which to accept.
    3. Retrieval and reuse: locating reusable results in a large existing lemma library to avoid reinventing the wheel.
    4. The parts humans own, which cannot be automated: whether the definitions are faithful to the original proposition, whether the axiom assumptions are acceptable, and whether the overall strategy holds.

    One boundary must be stressed: the kernel only guarantees that the reasoning is sound from the given premises; it does not guarantee that the premises match the researcher’s actual intent. If a definition misplaces a single quantifier, the entire formalization can still pass every check perfectly while being completely meaningless. Human review should therefore focus on definitions and theorem statements, not on step-by-step inference.

    4. Engineering Challenges of a Large-Scale Proof Codebase

    A scale of 170,000 files and more than 200 MB of data goes beyond the usual notion of “a repository” and exposes typical engineering problems:

    • Compilation and caching: a full check can take anywhere from hours to days, so content-addressed build caching is required, recomputing only the affected dependency closure.
    • Dependency governance: the proof library forms a strongly coupled DAG, where a change to one foundational lemma triggers large-scale recompilation, demanding strict version locking and semantic change records.
    • Reproducibility: toolchain versions, dependency commit hashes, and compiler flags must be fully pinned, or reviewers cannot obtain the same result.
    • Distribution cost: large artifacts are best kept in object storage with checksums and chunked downloads; review tasks are best containerized and run as elastic batches.
    • Process observability: aggregating the log of each check step into a logging service, with monitoring and alerting, is what makes it possible to locate the first failure across tens of thousands of tasks.

    A practical skeleton for a review pipeline:

    1. stages:
    2. - fetch: verify artifact hash, unpack to a read-only layer
    3. - build: pin toolchain version inside the container, enable dependency cache
    4. - check: run kernel checks in batches, record the first counterexample location on failure
    5. - report: aggregate pass rate, elapsed time, and failure list, output a machine-readable report

    5. Review Mechanisms: From Trusting the Author to Trusting the Process

    The most valuable part of such an event is that it naturally forms a public stress test. Practices worth borrowing include: multiple parties independently running the same pipeline and comparing results; manual cross-auditing of key definitions; and reverse-construction attempts on randomly sampled intermediate lemmas to test for cases that “pass the check but spin semantically empty.” Engineering-wise, review should be made a repeatable, comparable, archivable standard process rather than a one-off ad hoc collaboration.

    6. Takeaways for Enterprise Technical Teams

    Even when the business scenario involves no pure mathematics, this methodology applies. Any system where the cost of correctness far exceeds the cost of implementation can borrow from formal methods: protocol implementations, compilers, key handling, distributed consensus, financial clearing rules, and so on. The practical advice is to start small and scale up: pick one core module with clear boundaries, pin its invariants in a proof language, and leave the rest to conventional testing. Meanwhile, build build caching, dependency locking, artifact verification, logging, and alerting as infrastructure first. On the cloud, general-purpose capabilities such as object storage, container platforms, logging services, and monitoring with alerting are typically already available and can directly carry this kind of high-compute, strongly reproducible batch verification workload, with no need to build the underlying infrastructure yourself.

    7. A Rational View of the Conclusion

    As of now, such claims still need the community to complete independent review and peer review before “confirmation” is even on the table. For developers, the more reliable takeaway is not memorizing a particular conclusion but grasping a trend: when verification can be executed by a machine, the format of the deliverable, the boundaries of collaboration, and the process of quality assurance all get rewritten. Adopting reproducible builds, dependency governance, and automated verification as engineering habits early is the real long-term dividend of this event.