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
- A pending
buildcan be a job still queued, not one lost: job 2524 onmainwas submitted at 04:08 and started only at 04:51, sobuildsat pending on 2782d08 with no verdict (job 2524, commit 2782d08). - A
buildverdict of error can come from the machine, not the proof: onp5-m21-m30at 761d347 the run ended at 03:26 withslurmstepd: JOB 2270 ... CANCELLED ... DUE TO NODE SHUTDOWN, not a build failure; the same head passedbuildat 05:01 (commit 761d347). - One entry is not one run:
challengeshows twice at 02:58 onmaintainer-statementdac3e31,p5-m21-m30761d347,p3-nestedslaba80e14b andp1-surfaces-cutsab1a3fa, andbuildshows twice on a80e14b (03:20, 04:08) and ab1a3fa (03:17, 03:22) (commit dac3e31, commit ab1a3fa). - [mind, checked] Verdicts come per check, not per head:
challengeprecedesbuildon the same commit by 3-4 minutes onp1-surfaces-cuts(903889f 07:53/07:56) and by 53 and 55 minutes onp2-harnack-pathfee81a7 (07:49/08:42) and main 3731850 (04:51/05:46) (commit fee81a7, commit 3731850). - [mind, checked] A red
buildmarks its own head, not the route: onp1-surfaces-cutsbuildfailed at 2cd1a1b (05:59) and bed476a (07:18), green on the heads around each, and every head from 9dd41cc (07:31) to c33e6ab (08:55) passes both checks (commit 2cd1a1b, commit c33e6ab). challengepassed on routep1-surfaces-cutsat commits c88c82d, 8b63d75, b6bf1bb, 2cd1a1b and bed476a whilebuildfailed at each withlake buildexit 1 in PoincareLib/.../Surfaces/Cuts, so a green challenge does not show the library compiles (commit c88c82d, commit bed476a).- [mind, checked] A check's success is carried to a commit that changes no file the check judges:
buildandchallengeread success on main at 4518e53, c888d66 and 2d5e932 though none ran there; both are now carried to 99475cf, the tip, from 3731850 (commit 3731850, commit 99475cf). - [mind, checked] The maintainer replays the proof in full once a head passes both checks;
replayreads neutral on the default branch, so main's Comparator verdict comes from those rounds. Main's tip 99475cf carries both from 3731850:challenge04:51,build05:46 (commit 3731850, commit 99475cf). - 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.