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 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.PersistenceData |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.ExistenceTheory |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.UniquenessTheory |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.Metric.OperationTheory |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.PersistenceInputs |
| 6 | |
| 7 | /-! |
| 8 | Adapted from Mapher `PoincareMT/Statements/M44CapPersistence.lean` at |
| 9 | `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. Declaration bodies are retained; |
| 10 | see `references/ricci-flow/mapher/surgery-adapters-port.json`. |
| 11 | -/ |
| 12 | |
| 13 | /-! |
| 14 | # M44 repaired surgery-cap persistence statement |
| 15 | |
| 16 | Every standard initial metric has a cap-persistence package with the exact |
| 17 | two-way comparison/disappearance alternative from Proposition 16.5. The |
| 18 | parameter prefix is indexed by the package's M36 constants and is required to |
| 19 | use the same standard initial metric. |
| 20 | -/ |
| 21 | |
| 22 | set_option autoImplicit false |
| 23 | |
| 24 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 25 | |
| 26 | universe u |
| 27 | |
| 28 | namespace PoincareMT |
| 29 | |
| 30 | structure RepairedCapPersistenceTheory : Prop where |
| 31 | persistence : RepairedStandardCapExistenceTheory → |
| 32 | RepairedStandardCapUniquenessTheory → |
| 33 | RepairedMetricSurgeryTheory.{u} → |
| 34 | ∀ g₀ : StandardInitialMetric, |
| 35 | Nonempty (RepairedCapPersistenceData.{u} g₀) |
| 36 | |
| 37 | end PoincareMT |