|
Getting your Trinity Audio player ready...
|
Mathematical proofs could become machine-verifiable by expressing their definitions, assumptions, theorem statements, and logical steps in a formal language that a proof assistant can check. Systems such as Lean, Rocq—formerly known as Coq—and Isabelle already perform this kind of verification.
The computer does not merely search the text for familiar phrases or ask an artificial intelligence model whether the argument appears convincing. It checks whether every formal inference follows from previously accepted definitions, axioms, and theorems.
This distinction is crucial:
A machine-verifiable proof is not merely a proof written by a machine. It is a proof represented in a formal system and accepted by a trusted proof checker.
Machine verification could substantially reduce logical errors, make mathematical dependencies more explicit, and enable new systems for evaluating research. However, it cannot automatically determine whether a formal theorem represents the concept that the mathematician originally intended.
What Is a Machine-Verifiable Mathematical Proof?
An ordinary mathematical proof is written for knowledgeable human readers. It relies on shared conventions, omitted calculations, diagrams, intuition, and phrases such as:
- “It is easy to see that…”
- “The remaining cases are analogous.”
- “By a standard argument…”
- “Choose a sufficiently small neighborhood.”
A human expert may reconstruct the missing reasoning. A computer cannot do so unless the relevant meaning has been encoded precisely.
A machine-verifiable proof therefore requires three components:
- A formal statement specifying exactly what is being proved.
- A formal proof object or proof script representing the derivation.
- A proof checker that verifies the derivation according to the rules of the formal system.
Lean, for example, is both a programming language and an interactive theorem prover. Its core uses dependent type theory, while a comparatively small kernel checks the resulting proof terms. The restricted role of the kernel is important because independent implementations can, in principle, check the same proof object and reduce reliance on one large software system.
How Formal Verification Works
Suppose a mathematician wants to prove that the sum of two even integers is even.
In ordinary prose, the proof may say:
Let (a) and (b) be even. Then (a=2m) and (b=2n) for some integers (m,n). Therefore (a+b=2(m+n)), so (a+b) is even.
A formal version must specify:
- what an integer is;
- what “even” means;
- which variables are universally quantified;
- how existential witnesses are introduced;
- which algebraic transformations are permitted;
- why (m+n) is an integer.
For elementary mathematics, this may seem unnecessarily verbose. For long arguments involving hundreds of definitions and thousands of dependencies, however, this precision becomes a major advantage.
Proof assistants usually combine several layers:
Formal definitions
Every object must have an exact representation. A topological space, group, category, measurable function, or differential equation cannot remain informally described.
Tactics and automation
The author can use tactics that perform routine reasoning, search a local library, normalize algebraic expressions, or discharge decidable subproblems.
Proof-term generation
Automation ultimately produces a proof object—or enough information to reconstruct one—that the trusted kernel can check.
Kernel verification
The kernel verifies the final object using a small collection of logical rules. The trust claim therefore depends primarily on the kernel, the formal foundations, and the correctness of the theorem statement—not on every tactic or AI system that helped construct the proof.
Formalization Is More Than Checking an Existing Manuscript
It is tempting to imagine uploading a PDF and receiving a green “proof verified” mark. Current formal verification generally does not work that way.
The main difficulty is often formalization, not checking.
A conventional paper must be translated into:
- formal definitions;
- precisely typed objects;
- explicit hypotheses;
- formal theorem statements;
- machine-readable intermediate lemmas;
- complete dependency chains.
This translation can reveal ambiguities that human readers overlook. A theorem may use the same word in two slightly different senses, silently assume an object exists, or depend on a convention that was never stated.
Consequently, formalization frequently changes how the mathematics is organized. Definitions must become reusable interfaces, implicit dependencies become visible, and large proofs are divided into formally manageable lemmas.
The Role of Mathematical Libraries
A mathematician should not need to formalize arithmetic, sets, real numbers, topology, and algebra from the beginning for every theorem. Proof assistants therefore depend on shared libraries.
For Lean, the principal community library is Mathlib, a collaboratively developed collection of formalized definitions, theorems, and proof automation spanning many areas of mathematics.
Such libraries perform a role similar to the accumulated literature of ordinary mathematics, but with stricter technical guarantees. A theorem can import earlier results only when their exact formal statements are compatible with its own definitions.
This creates a dependency graph in which a checker can identify:
- which definitions a theorem uses;
- which lemmas support it;
- which axioms are required;
- whether unfinished placeholders remain;
- whether a library update breaks the proof.
Machine-verifiable mathematics is therefore not just a collection of isolated proofs. It is an interconnected formal knowledge base.
Evidence That Large Modern Proofs Can Be Formalized
Formal verification is no longer limited to elementary exercises or small logic demonstrations.
One important example is the Liquid Tensor Experiment, a project initiated after Peter Scholze challenged the formalization community to verify a difficult result arising from condensed mathematics. In July 2022, the project announced completion of the formal verification of the main theorem concerning liquid vector spaces in Lean.
The project required substantial infrastructure in category theory, homological algebra, condensed mathematics, and related fields. Much of that infrastructure became reusable formal mathematics rather than project-specific scaffolding.
This illustrates an important effect:
Formalizing one advanced theorem can produce a library that lowers the cost of formalizing many later theorems.
Other formalization programs target major historical and contemporary results. Lean’s official project pages, for example, describe the ongoing challenge of formalizing Fermat’s Last Theorem.
These projects show feasibility, but they also expose the labor involved. A successful formal proof may require cooperation between subject specialists, formalization experts, library maintainers, and software developers.
Could AI Translate Ordinary Proofs Automatically?
Artificial intelligence may make formal verification much more accessible through autoformalization: translating natural-language mathematics into a formal theorem statement or proof-assistant code.
A future workflow might look like this:
- A mathematician writes a proof in conventional notation.
- An AI system identifies definitions, assumptions, and intermediate claims.
- It proposes formal statements in Lean, Rocq, Isabelle, or another system.
- Automated theorem provers attempt to fill routine proof steps.
- The proof assistant checks every generated proof object.
- Human reviewers compare the formal theorem with the intended mathematical claim.
Research on autoformalization has advanced rapidly, especially with large language models. However, surveys and benchmarks continue to identify major difficulties, including limited training data, translation ambiguity, library alignment, and poor performance on some advanced or naturally occurring mathematics.
Most importantly, successful compilation does not establish that the system formalized the intended theorem.
An AI could accidentally replace a difficult statement with:
- a weaker theorem;
- a theorem with an impossible hypothesis;
- a theorem about the wrong mathematical object;
- a statement that is true only because a definition was mistranslated.
The resulting formal proof could be perfectly valid and still fail to verify the original claim.
Verification Has Two Distinct Problems
Machine-verifiable mathematics must separate syntactic verification from semantic fidelity.
Syntactic verification
Does the proof term establish the formal theorem under the stated formal assumptions?
A proof assistant is exceptionally strong at answering this question.
Semantic fidelity
Does the formal theorem accurately represent what the paper claims in ordinary mathematical language?
This question requires human mathematical judgment, careful specification, or additional verification procedures.
The distinction resembles software verification. A program can be proved to satisfy a formal specification while the specification itself fails to describe what users actually need.
Therefore, the strongest publication model would preserve both forms:
- a readable mathematical exposition;
- a linked formal specification and machine-checked proof.
The human-readable paper explains meaning, motivation, examples, and conceptual significance. The formal artifact verifies the deductive structure.
What Machine Verification Could Change in Publishing
Formal proofs could alter mathematical publishing in several ways.
Errors could be detected before publication
A proof assistant can catch missing cases, type mismatches, circular dependencies, invalid substitutions, and unjustified uses of earlier lemmas.
Reviewers could focus on mathematical significance
Reviewers would still need to judge novelty, relevance, exposition, and whether the formal statement captures the intended theorem. But they would spend less time manually checking routine logical details.
Corrections could become more precise
A broken dependency could identify exactly which later theorems are affected. Formal libraries can make the propagation of errors more visible than conventional citation chains.
Results could become easier to reuse
A machine-readable theorem can be imported directly into later formal developments. Its assumptions and output are explicit rather than reconstructed from prose.
Contributions could become divisible
Traditional academic credit tends to concentrate on the final theorem and its named authors. A formal project exposes contributions such as:
- creating definitions;
- proving infrastructure lemmas;
- implementing tactics;
- reviewing formal code;
- maintaining libraries;
- translating informal mathematics;
- improving documentation.
This matters for research evaluation. A system such as the AI Internet-Meritocracy could, in principle, examine the dependency structure of formal mathematics and recognize contributors whose work supports many later results. This would complement the finer-grained evaluation discussed in why long mathematical monographs struggle under modern evaluation systems.
Formal Verification Would Not Make Peer Review Obsolete
A verified proof answers a narrow but important question: whether a formal conclusion follows from formal premises under the rules of the selected system.
It does not automatically answer:
- Is the theorem new?
- Is it important?
- Were the right concepts formalized?
- Does the result apply to the intended real-world or mathematical problem?
- Are the assumptions meaningful?
- Is the presentation understandable?
- Was an existing result merely reformulated?
- Does the formal model omit a crucial condition?
Human peer review would therefore change rather than disappear.
The relationship between machine verification and peer review is similar to the relationship between automated tests and software review. Passing tests provides valuable evidence, but reviewers still assess architecture, requirements, maintainability, security, and purpose.
This hybrid model also fits the broader distinction explored in AI peer review versus human peer review: machines are well suited to scalable, repeatable checks, while humans remain necessary for interpretation and accountability.
Major Obstacles to Machine-Verifiable Mathematics
Several barriers must be overcome before formal proofs become standard.
High formalization costs
Formal proof development can require much more work than writing the corresponding informal proof, particularly when the necessary library infrastructure does not yet exist.
Fragmented foundations and ecosystems
Lean, Rocq, Isabelle, HOL Light, Agda, Metamath, and other systems use different languages, foundations, libraries, and conventions. Moving proofs between them is difficult.
Incomplete library coverage
Some mathematical areas have extensive formal libraries; others lack even basic definitions.
Usability
Proof-assistant errors and elaboration failures can be difficult for ordinary mathematicians to diagnose. Better editor support and automation are necessary.
Formalization incentives
Academic institutions seldom reward library maintenance, definition design, or verification work as strongly as theorem publication. This is partly an evaluation problem rather than a technical problem.
Long-term preservation
A proof should remain checkable after particular software versions, dependencies, or operating systems become obsolete. Archival formats and independent checkers will be needed.
Trust concentration
A formal proof is only as trustworthy as its statement, axioms, kernel, and computational environment. Multiple independent checkers could reduce the risk of implementation errors or compromised infrastructure.
A Plausible Transition Path
Mathematics is unlikely to switch from prose papers to fully formal artifacts all at once. A gradual transition is more realistic.
Initially, formal verification may concentrate on:
- foundational lemmas;
- controversial or extremely long proofs;
- computer-assisted classifications;
- results used in safety-critical engineering;
- reusable mathematical libraries;
- calculations that are tedious for human reviewers;
- AI-generated mathematical claims.
Journals could then accept several levels of verification:
| Level | Evidence |
|---|---|
| Informal | Conventional human-readable proof |
| Computational | Source code and reproducible calculations |
| Partially formal | Critical lemmas checked formally |
| Fully formal | Complete theorem and proof checked |
| Independently verified | Proof accepted by multiple implementations |
Such labels would communicate what has actually been checked without treating verification as all-or-nothing.
Funding the Formalization Infrastructure
Formal verification creates public infrastructure. A definition of a difficult mathematical structure or a library of foundational lemmas may benefit hundreds of future projects, even when it does not itself produce a headline theorem.
Conventional grant and publication systems can underreward this work because the value is distributed across later users. A dependency-aware funding system could identify widely reused formal artifacts and reward their maintainers over time.
This is one reason funding scientific infrastructure may outperform funding one project. Proof libraries, translators, kernels, documentation, interoperability layers, and verification servers are not secondary conveniences. They are prerequisites for scalable machine-verifiable mathematics.
AIIM could potentially evaluate both the final proof and the infrastructure beneath it. However, automatic funding must not equate formal correctness with scientific importance. Verification is strong evidence about validity, but not a complete measurement of value.
The Likely Future: Human Meaning, AI Assistance, Machine Checking
The most plausible future is not mathematics produced entirely by autonomous machines. It is a layered system:
- humans formulate concepts and decide which questions matter;
- AI helps translate, search, refactor, and complete formal arguments;
- proof assistants check deductive correctness;
- reviewers examine semantic fidelity and significance;
- public libraries preserve reusable formal knowledge;
- funding systems recognize infrastructure and dependency contributions.
In this model, an AI system may suggest a proof, but it does not receive trust merely because its explanation sounds plausible. Trust comes from converting the claim into a precise statement and producing a proof object accepted by a transparent checker.
Conclusion
Mathematical proofs can become machine-verifiable when mathematics is expressed in a formal language and every inference is checked by a proof assistant. The necessary technology already exists, and major projects have demonstrated that even advanced modern mathematics can be formalized.
The principal bottlenecks are now formalization cost, library coverage, interoperability, usability, and incentives—not the basic possibility of machine checking.
Machine verification will not eliminate mathematicians or peer review. It will separate several tasks that are often conflated:
- proving that a formal conclusion follows;
- confirming that the formal statement matches the intended claim;
- judging whether the result is original and important;
- explaining why the mathematics matters.
The strongest future publishing system would combine human-readable exposition with machine-checked formal artifacts. This would make mathematical knowledge more auditable, reusable, and resistant to unnoticed logical errors—while preserving the human work of choosing definitions, interpreting results, and creating new mathematics.
Support Independent Science
Our flagship product is AI Internet-Meritocracy - an app, that unlike universities distributes money directly to researchers and open source developers, without traditional bureaucracy.
AIIM’s dependency-aware allocation model is currently being tested. Support the next testing milestone.
Supporting independent science is not only a matter of fairness to researchers whose expertise and work are often underfunded. It is also essential for addressing systemic failures in scientific publishing that delay discoveries and leave important results unnoticed. In science and software, even one missing component can prevent an entire system from working.
Help valuable research and open-source infrastructure move forward. Please make a donation to support independent scientists and free software developers.
Dislclaimer
Experimental-system notice: AI Internet-Meritocracy is an experimental funding system. Its AI-generated evaluations are heuristic judgments based on available public or connected-account evidence; they are not validated measurements of a person’s causal economic or scientific impact. The current beta uses custodial and administrative components. Decentralized governance, non-custodial wallets, and complete on-chain auditability remain under development. Evaluations may contain factual errors or biases and should be interpreted together with audit logs, appeals, human oversight, and published test results.
Ads:
| Description | Action |
|---|---|
|
A Brief History of Time
A landmark volume in science writing exploring cosmology, black holes, and the nature of the universe in accessible language. |
Check Price |
|
Astrophysics for People in a Hurry
Tyson brings the universe down to Earth clearly, with wit and charm, in chapters you can read anytime, anywhere. |
Check Price |
|
Raspberry Pi Starter Kits
Inexpensive computers designed to promote basic computer science education. Buying kits supports this ecosystem. |
View Options |
|
Free as in Freedom: Richard Stallman's Crusade
A detailed history of the free software movement, essential reading for understanding the philosophy behind open source. |
Check Price |
As an Amazon Associate I earn from qualifying purchases resulting from links on this page.

