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

| 1 | # What upstream says |
| 2 | |
| 3 | This project starts from [frenzymath/PoincareConjecture](https://github.com/frenzymath/PoincareConjecture) at `62db01af9388dc1d9b56b66d6674f4c09b2318a2` (2026-10-05). Its README at that commit follows, unchanged; `README.md` here is this project's. |
| 4 | |
| 5 | ## Poincare Conjecture |
| 6 | |
| 7 | This repository contains a Lean 4 and Mathlib formalization of the smooth and |
| 8 | topological Poincare theorems following Morgan and Tian's *Ricci Flow and the |
| 9 | Poincare Conjecture*. |
| 10 | |
| 11 | The implementation is the subject-organized `PoincareLib`, imported from |
| 12 | [`frenzymath/Poincare-Conjecture`](https://github.com/frenzymath/Poincare-Conjecture/tree/432c38f2aa5a30efb13871292d17b4a3309a496a/PoincareConjecture/PoincareLib). |
| 13 | It replaces the previous chapter- and milestone-organized proof tree. |
| 14 | Use `import PoincareLib` to access its endpoints: |
| 15 | |
| 16 | ```lean |
| 17 | PoincareMT.smoothPoincareSkeleton |
| 18 | PoincareMT.topologicalPoincareSkeleton |
| 19 | ``` |
| 20 | |
| 21 | Their final assembly is exposed by |
| 22 | [`PoincareLib/Topology/Manifold/Poincare.lean`](PoincareLib/Topology/Manifold/Poincare.lean). |
| 23 | The existing `import PoincareConjecture` entry point remains available with |
| 24 | thin wrappers for its two public theorem names: |
| 25 | |
| 26 | ```lean |
| 27 | PoincareConjecture.smoothPoincareSkeleton |
| 28 | PoincareConjecture.topologicalPoincareSkeleton |
| 29 | ``` |
| 30 | |
| 31 | Only the Mathlib-only |
| 32 | [`PoincareConjecture/Statement.lean`](PoincareConjecture/Statement.lean) and the |
| 33 | endpoint wrappers in |
| 34 | [`PoincareConjecture/Proofs/Main.lean`](PoincareConjecture/Proofs/Main.lean) |
| 35 | remain under the old module prefix. Both wrappers use the `PoincareLib` proofs. |
| 36 | The default build checks `PoincareLib` and these compatibility modules. |
| 37 | See [MODIFICATIONS.md](MODIFICATIONS.md#poincarelib-import) for the exact source and attribution. |
| 38 | |
| 39 | ### Build |
| 40 | |
| 41 | The Lean toolchain, Mathlib revision, Comparator revision, and lean4export |
| 42 | revision are pinned in `lean-toolchain`, `lakefile.toml`, and |
| 43 | `lake-manifest.json`. |
| 44 | |
| 45 | ```sh |
| 46 | lake build |
| 47 | lake build @Comparator/comparator @lean4export/lean4export |
| 48 | ``` |
| 49 | |
| 50 | ### Comparator |
| 51 | |
| 52 | The independent statement interface is in |
| 53 | [`Comparator/Challenge.lean`](Comparator/Challenge.lean). The production |
| 54 | solution is in [`Comparator/Solution.lean`](Comparator/Solution.lean), and |
| 55 | the official comparator configuration is |
| 56 | [`Comparator/config.json`](Comparator/config.json). |
| 57 | |
| 58 | Follow the Linux sandbox setup and invocation in |
| 59 | [`Comparator/README.md`](Comparator/README.md). The configuration enables both |
| 60 | Lean's kernel and Nanoda and permits only `propext`, `Classical.choice`, and |
| 61 | `Quot.sound`. Comparator checks the independently stated endpoint types against |
| 62 | the imported `PoincareLib` proofs. The two `sorry` placeholders in `Challenge.lean` are |
| 63 | the statements to be checked; the production proof and `Solution.lean` contain |
| 64 | no placeholders. |
| 65 | |
| 66 | ### Source |
| 67 | |
| 68 | See [NOTICE](NOTICE) and [MODIFICATIONS.md](MODIFICATIONS.md) for upstream |
| 69 | copyright notices, adapted source files, and descriptions of modifications. |
| 70 | |
| 71 | The formal statements are the smooth and topological forms of Morgan--Tian |
| 72 | Corollary 0.2. The development uses the standard three-sphere |
| 73 | `Metric.sphere (0 : EuclideanSpace ℝ (Fin 4)) 1` as its target. |