Manuscript Offprint

arXiv:2610.08329

An AI-Assisted Formalization of the Poincaré Conjecture

Zhiyuan Zhang, Axel Delaval, Leheng Chen, Jinxuan Chen, Jie Xu, Yuxuan Liao, Jiedong Jiang, Chunlei Liu, Bin Dong

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Zhiyuan Zhang1,∗^{1,*}, Axel Delaval2,∗^{2,*}, Leheng Chen2,8^{2,8}, Jinxuan Chen2^{2}, Jie Xu2^{2}, Yuxuan Liao3^{3}, Jiedong Jiang1^{1}, Chunlei Liu4,^{4,\P}, Bin Dong5,6,7,8,^{5,6,7,8,\P}

1^{1}School of Mathematical Sciences, Peking University

2^{2}Beijing International Center for Mathematical Research, Peking University

3^{3}School of Mathematical Sciences, Beijing Normal University

4^{4}School of Mathematical Sciences, Capital Normal University

5^{5}Beijing International Center for Mathematical Research and the New Cornerstone Science Laboratory, Peking University

6^{6}Center for Machine Learning Research, Peking University

7^{7}Center for Intelligent Computing, Great Bay Institute for Advanced Study, Great Bay University

8^{8}Zhongguancun Academy

We present an AI-assisted Lean 4 formalization of the Poincaré conjecture. The project began with limited reusable formal infrastructure for the geometric analysis behind the proof. To organize this work, we combined a proof blueprint prepared by mathematicians with explicit milestone statements. These milestones enabled parallel agent work and gave mathematicians clear points to locate blockers and provide effective mathematical guidance. Our analysis identifies the human interventions and organizational choices behind this workflow. The project provides a starting point toward reusable infrastructure for future formalization projects; such infrastructure, once developed, could eventually reduce the cost of verifying mathematical results in geometric analysis.

*Equal contribution, ¶Corresponding author

Correspondence: 7357@cnu.edu.cn, dongbin@math.pku.edu.cn

Repository: https://github.com/frenzymath/PoincareConjecture

Website: https://frenzymath.github.io/Poincare-Conjecture/#/

1 Introduction

Checking a proof is one of the most common and demanding tasks in mathematics, and it becomes especially difficult when the argument spans several fields. Recently, AI has greatly accelerated the production of proofs, making reliable verification ever more important. Proof assistants such as Lean 4 [13] verify proofs by rewriting a mathematical argument into precise formal code that the computer mechanically checks, thereby ensuring soundness. Although such systems have incorporated automation to reduce the burden of formalization, constructing formal code still requires extensive manual effort and expertise. Recent advances have enabled large language models to formalize, reducing this manual burden, and only very recently have they become capable of doing so at scale. Once a generated formal proof has passed kernel checking under the permitted axioms, the remaining human task is to judge whether its statement, assumptions, and definitions are semantically faithful to the original mathematical content; a reviewer can then verify the result without reconstructing every proof step or mastering every technique used to establish it. Still, expert guidance can be of great help throughout the formalization process in choosing definitions, reviewing statements, assessing code organization, and resolving mathematical difficulties during proof construction.

Early work on autoformalization studied the translation of mathematical statements [18, 26, 53], alongside progress in generating formal proofs [38, 40, 54]. As language models have become increasingly capable of producing proofs in natural language, the bottleneck has shifted from constructing a proof to translating it into formal code. This shift has enabled an end-to-end pipeline spanning generation, translation, and formal verification, which agent systems sustain through library retrieval, compiler feedback, and repeated task execution [28, 30, 47]. In parallel, the scale of projects that autoformalization can handle has grown from individual proofs to bodies of interrelated results and textbook-level theories [19, 49, 52]. The September 2026 formalization of Fermat’s Last Theorem using Prove2Me produced a complete computer-checked proof of unprecedented scale [1, 9], but how such large-scale formalizations are actually organized, and where human and AI effort is divided, is not yet widely understood.

We use the formalization of the Poincaré conjecture as a testing ground for these questions, a project whose scale and scope make it unusually demanding for organizing human and AI effort. The conjecture, proved by Perelman, states that every simply connected, closed three-manifold is homeomorphic to the three-sphere. We follow Morgan–Tian’s detailed exposition [32]. The proof requires geometric analysis for which Mathlib still lacks mature reusable interfaces, making the building of foundations an essential part of the project.

Our preparation began in May 2026 with three AI engineers with mathematical training, who worked alongside a group of mathematicians. Over the following months, we developed a natural-language blueprint of the proof and formalized some background material. Drawing on this preparation, we substantially redesigned our workflow and restarted the main formalization in September with about 90 milestones, each specifying the definitions and Lean statement required for its target. The milestones provided shared mathematical targets, exposed dependencies, and made progress and blockers visible. The engineers used this structure to coordinate parallel agent work, while mathematicians reviewed the final theorem and key intermediate statements and helped resolve mathematical difficulties during proof construction.

Using publicly available commercial models, we completed the main formalization phase in slightly more than two weeks, after the initial preparation phase. AI subscriptions and server rentals cost about 25,000. The resulting development proves both the topological and smooth Poincaré theorems. 1^{1} It passes a full Lean build and Comparator verification against target statements written using only Mathlib. 2^{2} The initial development contained about 3.2 million lines of Lean code. 3^{3} Extracting the dependencies of the final theorem reduced it to about 2.8 million lines while preserving verification.

Section 2 reviews the mathematical background and related work. Section 3 presents the workflow, team organization, and project resources. Section 4 examines agent behavior, mathematical interventions, and the sources of acceleration, and compares our development with the FLT formalization. Section 5 discusses the prospects for reusable mathematical infrastructure and future formalization projects.

References (39)