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 Mathlib |
| 2 | |
| 3 | /-! The two endpoint propositions for the Poincare conjecture. -/ |
| 4 | |
| 5 | set_option autoImplicit false |
| 6 | |
| 7 | open scoped Manifold ContDiff |
| 8 | |
| 9 | universe u |
| 10 | |
| 11 | namespace PoincareConjecture |
| 12 | |
| 13 | /-- The unit three-sphere in four-dimensional real Euclidean space. -/ |
| 14 | abbrev ThreeSphere := Metric.sphere (0 : EuclideanSpace ℝ (Fin 4)) 1 |
| 15 | |
| 16 | /-- Smooth Poincare, Morgan-Tian Corollary 0.2(a). -/ |
| 17 | def SmoothPoincare : Prop := |
| 18 | ∀ (M : Type u) [TopologicalSpace M] [T2Space M] [SecondCountableTopology M] |
| 19 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 20 | [CompactSpace M] [SimplyConnectedSpace M], |
| 21 | Nonempty (Diffeomorph (𝓡 3) (𝓡 3) M ThreeSphere ∞) |
| 22 | |
| 23 | /-- Topological Poincare, without any smooth structure assumption. -/ |
| 24 | def TopologicalPoincare : Prop := |
| 25 | ∀ (M : Type u) [TopologicalSpace M] [T2Space M] [SecondCountableTopology M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 27 | [CompactSpace M] [SimplyConnectedSpace M], Nonempty (M ≃ₜ ThreeSphere) |
| 28 | |
| 29 | end PoincareConjecture |