Poincaré conjecture: the Lean proof, cleaned up together
The 2026 Lean proof of the Poincaré conjecture after Morgan and Tian, 3 million lines, cleaned up together: smaller, faster to build, more readable, the theorems unchanged

Known
What is established about this problem, one fact a line, each with where it comes from: job 12, result 40, issue 7, commit 1a2b3c4 or route <branch>. The site checks every pointer and shows the page in the project's status. Its maintainer keeps this file; propose a line in a pull request.
The judge rejects
- Any change to
PoincareConjecture/Statement.lean,Comparator/Challenge.leanorComparator/config.json: they state what is proved, andchallengecompares them with the approved version (checks/frozen.json). sorry,admit, anaxiomdeclaration,native_decide,implemented_byorexternin any Lean file, outside comments and strings.- A
lakefile.tomlchange beyond arequire'srev,leanOptions,defaultTargets,lean_exeor[cache]; a package outside leanprover and leanprover-community on GitHub; a toolchain that is not a release; files under.lake/. - A
lakefile.leanbesidelakefile.toml: Lake would read it instead.
Tried, did not work
- Building the whole proof within six hours on a GitHub-hosted runner: LeanEval's first evaluation of a port reached its six-hour limit during compilation (2026-10-14, by the submitter's account in the later submission). The port passed on 2026-11-17 by reusing a local build of 5 h 13 min.
Mind
- The maintainer replays the whole proof on an open pull request's head once
challengeandbuildhave passed there, so a verdict on main follows a passing pull request; at d20b6eabuildandchallengepassed at 12-02 01:28 andreplayreads pending (commit d20b6ea). - The starting point is frenzymath/PoincareConjecture at 62db01af9388dc1d9b56b66d6674f4c09b2318a2 (2026-10-05): 23,554 Lean files under
PoincareLib/, 3,060,326 lines (2,522,977 of code), on Lean v4.33.1 with Mathlib 0df444a3, Comparator 3927ad38 and lean4export 15f6055e. From there this project is its own line. - The authors' Comparator run was at their working copy's 1876d7dc (2026-09-28); the release commit we start from was assembled after it, and its pull request says no
lake buildor Comparator run was performed (upstream's pull request 3). On 2026-12-02 thelake buildof our starting commit completed on this site's production machine: 32,265 jobs, 1 h 46 min on 32 cores with other builds beside it, thenChallenge,Solutionand the two tools in 13 s (lane notes of the launch, not a job of this project). Comparator has not yet run on it here. - Upstream publishes no build cache of the project;
lake exe cache getfetches Mathlib's only. The authors' own build with Comparator took 6 h 55 min and 44.7 GB of memory at its peak (2026-09-28). buildruns in the Lean imageshoal-poincare-lean:62db01af(docker/), with no network: the image holds the toolchain, the dependencies and a build of the approved main. A toolchain or Mathlib bump passeschallengebut needs a new image, and the tag in scienceslack.json moved with it, beforebuildcan pass.- A change to a Lean file, comments included, rebuilds that file and everything that imports it; the import chains are up to 168 modules deep. Comment-only pieces (P-2, P-7) cost the
buildcheck as much as code changes in the same files. - Milestone labels of upstream's earlier proof tree (
M76,M64…) are in 14,601 files, mostly inside declaration names and docstrings:M76occurs 12,936 times,M643,613,M472,465,M281,856 (counted 2026-12-02). No public table says what each milestone is (P-5).Topology/Manifold/Poincare.leannames M75 for the smooth theorem, M76 for the compatible smoothing and M77–M90 for the final route. - 257 files are under 30 lines and 183 hold no declaration keyword by a text scan (S-1); the largest file,
Topology/Manifold/Schoenflies/Plane/Isotopy/Arcs/NestedSlab.lean, has 5,834 lines (P-3). - Upstream's own review found 106 files that matched exactly after excluding comments, whitespace, imports and namespaces (its
MODIFICATIONS.md, 2026-10-05): duplicates are a known fact of this tree (S-3). - The statements carry
[SecondCountableTopology M], which Lean Zulip readers found redundant (Gouëzel and Xu, 2026-09-28): a compact Hausdorff locally Euclidean space is second countable (ChartedSpace.secondCountable_of_sigmaCompact). The fixed files keep it; the form without it is a corollary to prove beside them (M-3). - The smooth statement is Morgan–Tian's Corollary 0.2(a). The topological statement is the team's addition (the book: a footnote); Corollary 0.2(b) is not formalised.
- Section 19.2 of Morgan–Tian was corrected by its authors in 2015 (arXiv:1512.00699, after Bahri and Tao): estimates for curve shrinking in an ambient Ricci flow. A docstring citing chapter 19 says which version it checked (V-5).
- Many statements on the path are implications whose premise is proved elsewhere; a reader of upstream's blueprint "sees an implication, and has to search the library to learn whether its premise is ever discharged" (upstream's open question, 2026-11-12; P-7).
Comparator/Solution.leanimports the statement module beforePoincareLib, so that the library's instances cannot change how the statements elaborate. Keep that order.- Notices:
NOTICE,MODIFICATIONS.mdand the per-file headers record code adapted from Mathlib, ClassificationOfSurfaces, DifferentialGeometry, DeGiorgi and Tau Ceti. A change that moves code keeps its notice with it.