How to Formalize All of Mathematics | Xena
Xena
Mathematicians learning Lean by doing.
Skip to content Home About Xena Student projects Installing Lean and mathlib Bluesky Useful links.
← To grieve, or not to grieve?
How to Formalize All of Mathematics
Posted on October 16, 2026 by xenaproject
(This is a guest post, written by Jeremy Avigad, Kevin Buzzard, Johan Commelin, Rémy Degenne, Kim Morrison, Oliver Nash and Adam Topaz.) Mathematicians’ reactions to last week’s big OpenAI release range from excitement to frustration, but one thing is clear: AI has become remarkably good at proving theorems, both formally and informally. The successes in the formal realm have led AI enthusiasts to declare that now is the time to formalize all of mathematics as a legacy for future generations. We are sympathetic to this proposal. We recognize the power of new technologies for mathematical reasoning and appreciate what they can contribute to the subject we know and love. We are generally optimistic about the role AI can play, but we are deeply concerned by some recent calls to formalize everything as quickly as possible. If done well, a large-scale, coordinated formalization effort could enormously expand mathematical exploration and discovery. Done poorly, it will be, at best, a waste of resources; more likely, it will do lasting damage. We prefer to see formalization done well. This post therefore clarifies our concerns, describes some of our experiences with AI and formalization, and offers a positive vision of how we can all work toward a world in which all, or almost all, mathematical definitions, theorems, and proofs are equipped with a formal representation, and in which these artifacts help mathematics flourish. Just as the role of AI in mathematics is a fraught subject these days, so too is its role in formalization. The range of attitudes among expert formalizers toward AI is as wide as the range of attitudes among mathematicians more broadly. We are aware that some of our closest friends and colleagues, whose opinions we value and respect highly, stand strongly opposed to large-scale formalization using AI. Nothing we say here should be taken as representative of the views of any of the organizations or communities with which we are associated. The concerns Let’s start with the observation that a formal artifact is not worth much if nobody uses it. When Math, Inc. tried to hijack a project to formalize Maryna Viazovska’s higher-dimensional sphere-packing results last February, it impressively demonstrated what the technology could do, but beyond that, it contributed nothing to mathematics. The original project team kept preparing a quality formalization of the 8-dimensional result and soon discovered that cleaning up the AI-generated code was more trouble than it was worth; it turned out it was better to throw the code away and do it right, still with ample help from AI. When Anthropic announced that Claude had formally verified Fermat’s Last Theorem with 13 million lines of code written over 11 days, Kevin Buzzard cheerfully lauded the result while also declaring he had no intention of ending his ongoing formalization of a more modern proof. Once again, although the accomplishment is impressive, this piece of AI-generated code probably has little ongoing value. What is going on here? The theorems were not seriously in doubt, so the value of the formal artifacts lies solely in what we get beyond mere correctness. We want to formalize everything because we want to use the formalizations to do more mathematics, and to do it better than we could have done without them. We want to think about possible generalizations, explore connections between different branches of mathematics, and consider unexpected applications. We want to refactor and improve our knowledge: part of the joy of manual formalization comes from realizing that we can adjust our concepts to make them more elegant, more efficient, and better suited to our purposes. Knowledge isn’t worth having until it contributes to our understanding; the value of a formalization comes from our ability to use and interact with the data. When OpenAI announced solutions to the Navier–Stokes equations that blow up in finite time, the natural-language proof was accompanied by a Lean formalization. In contrast to the previous examples, the correctness signal played a key role here: there seems to be little doubt now that the solution is correct, even though the natural-language proof is mostly incomprehensible. OpenAI nonetheless drew the mathematics community’s anger over concerns about how it obtained the result, provenance and credit for ideas, and worries that focusing on correctness alone discouraged the exploration and understanding the Millenium prize was meant to foster. So, even here, the unadorned formal artifact is a mixed blessing. OpenAI’s later dump contains astonishing and important mathematics, and at the same time shows a remarkable disregard for readers and for building understanding (some results have been retracted, many of the informal/formal pairs diverge in subtle or significant ways, and most of the informal writeups are impenetrable). This explains our concern. If spending millions of dollars to formalize mathematics results in libraries nobody uses, it will be a terrible waste of resources. Worse, the project could disincentivize good research and productive use of AI, disrupt the social norms and practices research depends on, and set the field back decades. A grand failure will make it hard, or even impossible, to recover later. A lousy formalization of existing results is worse than no formalization at all. The positives Some of the results from the big labs have been done well: OpenAI’s unit distance conjecture work, and Anthropic’s work on the density of Riemann zeta zeroes stand out. They demonstrated impressive new capabilities, contributed to understanding, and the community subsequently built on their work. These are examples of how the labs can contribute positively and we invite further constructive partnerships between the research community and the labs. Good formal libraries will enable the positive vision we have for the future of mathematical research. Humans, AIs, and the Lean language work in concert. Today, AIs are extremely capable in many aspects of mathematical research. Researchers using interactive theorem provers already understand and appreciate the power of having a compiler that can check1 the validity of a proof. Together, these tools are incredibly effective. The AIs will generate formal proofs as they work, constantly checking these against the Lean compiler, and automatically pruning incorrect reasoning. To realize this vision, we will need a high-quality, comprehensive library of formalized mathematics at an unprecedented scale, so mathematicians can work effectively at the frontiers of research. While we are writing as research mathematicians, we must keep in mind that this vision extends beyond mathematics, potentially accelerating research in engineering and science. If and only if we do it right, that payoff would justify a very large investment of resources. Lessons so far We have argued that if we want to use AI to help with formalization, we need to solve a special case of the alignment problem, namely, ensuring that formal libraries fulfill the community’s mathematical goals. We believe that solving this case will provide powerful lessons about how we can more generally use AI in ways that are safe, reliable, and support our values. How can we do that? None of us know with certainty: that is part of what makes life on the frontier both exciting and unnerving. But collectively we have experience using AI for formalization, and we should expect any serious effort to pay attention to what we have learned so far. In particular, we want to call attention to the following projects. Mathlib is an open-source community-driven library that supports the formal mathematical ecosystem and was awarded the 2026 Jean-Pierre Demailly Prize for Open Science in Mathematics. It is curated by a team of 65 reviewers and 950 contributors to date. Because it emphasizes high-quality, trustworthy code and human curation, Mathlib grows steadily, but more slowly than AI-generated libraries. For the same reasons, it has been the primary place where we learn how to formalize better. Formal Conjectures is a collaborative effort to collect the formal statements of open problems. This is a social enterprise that requires discussion, review, and auditing. AIs can be useful adjuncts, but the goal is to obtain trustworthy statements of the important open questions in various disciplines. We should encourage projects announcing formalizations to use the existing vetted statements of problems wherever possible. The Annals Challenge. Kevin Buzzard is leading a project to state (but not prove) all the theorems from recent issues of Annals of Mathematics (and later other top journals). The blocker here is missing definitions, and one of the points of the project is that it incentivises good formalizations of definitions which are being used in practice by leaders of the field. Projects like this help us focus effort where it has the highest payoffs. Tau Ceti is building a large coherent library of formal mathematics, incubated by the Lean FRO and the Mathlib Initiative. While structurally similar to Mathlib, all contributions are written by AIs, and then adversarially reviewed by other AIs using standard rubrics. These contributions follow roadmaps curated by mathematicians and formalization experts. The review criteria include appropriate generality, avoiding duplication by reusing existing material, documentation, and naming conventions. Tau Ceti extends Mathlib without any duplication, and defers to all design decisions made there. It is possible to contribute to Tau Ceti either by writing roadmaps or by supplying inference2. Tau Ceti is now slightly larger than Mathlib (3 million lines of code), and growing rapidly. Recent results include Riemann-Roch, Schur-Weyl duality, Jordan-Brouwer separation, Rellich-Kondrakov compactness, and Chebotarev density. Formal Frontier is a Mathlib Initiative project building a pipeline converting source texts into interlinked formal libraries. It uses an interacting community of AI agents that can be instructed to formalize specific texts. This system is designed with scalability in mind, so it can ingest thousands of textbooks. There are now 41 released libraries (e.g. on profinite groups, toric ideals, and homological algebra) comprising approximately 200k lines of code. In addition to providing infrastructure to manage the agent swarm, the Formal Frontier project has written a build server for large Lean projects. Recent highlights from Formal Frontier include formalizations of the hairy ball theorem, Kaplansky’s theorem on projective modules, Bass’s stable range theorem, Tate periodicity, and Stone duality for spectral spaces. Formal Frontier and Tau Ceti both use agents and adversarial review, but they differ in their drivers and output structure. Tau Ceti uses roadmaps curated by experts and builds a single coherent library. Formal Frontier is primarily a source-to-library pipeline. Both insist that a formalization is only valuable if others can build on top of it. We anticipate that future autoformalization projects will build upon both approaches. Palomar is an online registry of formal mathematics projects. The goal of Palomar is to index formalization projects aimed at particular results, but not necessarily aspiring to be part of a general library. Many such results have recently been “dumped” on GitHub, and it can be very difficult to interpret or trust them. Palomar addresses this problem by requiring two features in every project it indexes. First, the project must contain a formalization.yaml file, a metadata file containing a self-assessed description of what was formalized, how it was formalized (e.g. solely by humans, in conjunction with AIs, or autonomously by AIs), and also relationships to other work, and how the authors of the underlying informal research were involved in the project. Second, the project must include a Comparator setup, which makes it easier to audit exactly what the statement proves. Mathlib, Tau Ceti, and Formal Frontier aspire to common values. These are not specific to autoformalization, but rather principles that apply to all formal libraries. The Mathlib community has recently published a document on values, and this is the starting point for our own list.
Defer to human-curated libraries, particularly Mathlib; follow their design principles and code rules, and continuously refactor to adopt their decisions. Prefer thoroughness and breadth. These must come before depth, but ultimately enable it. Avoid duplication. Generalize theorems for maximal reuse. Review additions publicly, according to agreed standards. Publish freely. Libraries should be open source, interoperable, and explorable. Stay up to date. Ensure continuous compatibility with every release of Lean and Mathlib. Stay open-minded about changes. If a better approach is discovered, it’s never too late. Document and organize. Files should be coherent, systematically organized, and their contents must be documented. Link to the existing literature. A mathematician should be able to trust and verify that the concepts described in the library have the expected meaning. Set standards, and meet them. Producing low-quality or unaudited code and claiming or hoping to “clean it up later” is counterproductive.
Mathlib implements these values through its review process and community discussions. Tau Ceti and Formal Frontier instantiate these values in the code and prompts that drive them, as well as in community-written planning documents. The way forward Within three years, and possibly much sooner, most of mathematics can be formalized in such a way that mathematicians can explore, build on, and make use of formal libraries. This would significantly extend our ability to develop and discover new mathematics. The Lean FRO is committed to ensuring that Lean is able to support projects at this scale. Achieving this ambitious project will require several types of additional support and community participation:
Curate and contribute to Mathlib, the foundation of the formal mathematics ecosystem, where we discover best practices in formalization. Provide the resources needed for the shovel-ready projects, Tau Ceti and Formal Frontier, to grow by an order of magnitude in a matter of months. Write the expert roadmaps and blueprints that guide the implementation of large formal libraries. Propose and support workshops to design and improve subject-specific libraries.3 Develop credible modeling of the financial, engineering, and technical requirements for scaling.4 Advocate for control by mathematicians of the tools and resources required for autoformalization. Launch non-profit or academic hosting for the mathematicians, engineers, and inference required for implementation of large-scale formalization, with the necessary governance and advisory bodies.
🎉 ↩︎Anyone can help build Tau Ceti by runninguv tool install git+https://github.com/TauCetiProject/TauCetiWorker followed bytauceti work --loop (You need `claude` or `codex`, and the `gh` GitHub command line tool authenticated.) ↩︎This is already happening, e.g. meetings on statistics and physics at ICARM, analysis at ICERM, and PDEs at SLMath. ↩︎We’re planning on delivering models based on Tau Ceti and Formal Frontier as soon as possible, but this is out of scope for a blog post. ↩︎Share this: Share on X (Opens in new window) X
Share on Facebook (Opens in new window) Facebook Like Loading...
Related
About xenaproject The Xena Project aims to get mathematics undergraduates (at Imperial College and beyond) trained in the art of formalising mathematics on a computer. Why? Because I have this feeling that digitising mathematics will be really important one day.
View all posts by xenaproject →
This entry was posted in Fermat's Last Theorem, Machine Learning, Research formalisation and tagged AI, Artificial Intelligence, lean, math, mathematics, philosophy, science, technology. Bookmark the permalink.
← To grieve, or not to grieve?
2 Responses to How to Formalize All of Mathematics
Steven Obua says:
October 16, 2026 at 1:54 pm Very well argued, and I would like to go one step further. You are arguing that not any formalisation will do, but that the quality of the formalisation matters. Well, if you really think so, it is questionable that in the medium term, you would use dependent types as an underlying logic! I’ve heard many reports that when formalising in Lean, you have to do things differently than you would in normal informal mathematics, and so there is a natural quality barrier here, assuming that current correct informal mathematics is the highest quality, which is of course not a given. So it might be that to achieve long-lasting highest quality, you need to use a different underlying logic, one that is closer to informal mathematics than dependent types is. LikeLike
Reply
Pingback: How to Formalize All of Mathematics | What's new
Leave a Reply Cancel replyCommentNameEmailWebsite Turn on JavaScript to leave a comment.
Δ
Search for:
Categories
Algebraic Geometry
computability
Fermat's Last Theorem
formalising mathematics course
General
Imperial
Learning Lean
liquid tensor experiment
M1F
M1P1
M40001
M4P33
Machine Learning
mathlib
number theory
Olympiad stuff
Research formalisation
rigour
tactics
Technical assistance
Type theory
Uncategorized
undergrad maths
Recent Posts
How to Formalize All of Mathematics October 16, 2026
To grieve, or not to grieve? October 1, 2026
FLT: Anthropic has beaten me to it September 4, 2026
The Annals Challenge August 13, 2026
Human mathematicians are being outcounterexampled July 20, 2026
Xena
Blog at WordPress.com.
Comment
Reblog
Subscribe
Subscribed
Xena
Join 254 other subscribers
Sign me up
Have a WordPress.com account? Log in now.
XenaCopy shortlinkView post in ReaderManage subscriptionsSign upLog inReport this contentCollapse this bar
%d
Create your own website, free on WordPress.com.Create your own website.Start free |
Mathematicians are debating the proposition of formalizing all mathematics, viewing the success of artificial intelligence in proving theorems formally as prompting a push to establish these formalizations as a legacy for future generations. While the authors are sympathetic to the potential of new technologies to expand mathematical exploration, they express deep concern regarding the speed and execution of large-scale formalization efforts. They argue that the value of a formal artifact is contingent upon its utility; if formalizations are done without contributing to deeper mathematical understanding, they risk becoming an unutilized burden. The authors contend that the primary goal should not be mere correctness but using formalizations to facilitate further mathematical inquiry, such as exploring generalizations, uncovering interdisciplinary connections, and refactoring knowledge to achieve greater elegance and efficiency.
A major concern revolves around the quality and provenance of AI-generated formalizations. Experiences, such as the attempt to formalize results by Math, Inc. or the formal verification of Fermat's Last Theorem by Anthropic, highlight that impressive computational achievements do not automatically confer lasting mathematical value. If formalizations are derived from incomprehensible natural-language proofs or lack rigorous auditing, they risk generating useless artifacts. The authors warn that a poorly executed, large-scale formalization effort could waste immense resources, disincentivize productive research, disrupt established scientific norms, and potentially cause long-term damage to the field. They assert that a poor formalization of existing results is worse than no formalization at all.
Conversely, the authors recognize the positive potential of well-executed formalization. Examples, such as work by OpenAI and Anthropic, demonstrate that AI can contribute meaningfully to mathematical understanding when guided by sound objectives. The long-term vision involves a cohesive ecosystem where human mathematicians, AIs, and tools like the Lean language collaborate. This vision requires an unprecedentedly large, high-quality library of formalized mathematics, which would allow AIs to generate formal proofs while leveraging interactive theorem provers to continuously validate reasoning.
To realize this future, the authors propose focusing on specific projects and establishing stringent principles for formal libraries. They advocate for prioritizing human-curated libraries, particularly Mathlib, emphasizing that the community-driven approach ensures high quality and trustworthiness. Key principles for successful formalization include deferring to human-curated systems, prioritizing thoroughness and breadth over immediate depth, avoiding duplication through generalization, ensuring public review of additions, maintaining continuous compatibility with software releases, and meticulously documenting and linking formal statements to existing literature.
Specific initiatives proposed to advance this goal include Mathlib, which serves as the foundation for the formal mathematics ecosystem; Formal Conjectures, which focuses on collecting formal statements of open problems; and The Annals Challenge, which incentivizes formalizing definitions actively used by field leaders. Other notable projects include Tau Ceti, which uses AI contributions subjected to adversarial review and guided by expert roadmaps to build a coherent library, and Formal Frontier, a system designed as a pipeline to convert source texts into interlinked formal libraries using AI agents. Furthermore, Palomar is proposed as an index to address the difficulty in trusting loosely formalized GitHub projects by requiring metadata regarding the formalization process and comparator setups for auditing. Collectively, these efforts aim to establish common values for all formal libraries, regardless of the specific autoformalization method employed.
The path forward demands substantial community participation, including curating Mathlib, providing resources for projects like Tau Ceti and Formal Frontier to scale up, developing credible models for scaling requirements, and advocating for mathematician control over the tools and resources used for autoformalization. The ultimate goal is to implement a system where mathematicians can effectively build upon formal libraries to accelerate the discovery of new mathematics. |