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 | set_option autoImplicit false |
| 4 | |
| 5 | open scoped Manifold ContDiff |
| 6 | |
| 7 | universe u |
| 8 | |
| 9 | namespace PoincareConjecture |
| 10 | |
| 11 | abbrev ThreeSphere := Metric.sphere (0 : EuclideanSpace ℝ (Fin 4)) 1 |
| 12 | |
| 13 | def SmoothPoincare : Prop := |
| 14 | ∀ (M : Type u) [TopologicalSpace M] [T2Space M] [SecondCountableTopology M] |
| 15 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 16 | [CompactSpace M] [SimplyConnectedSpace M], |
| 17 | Nonempty (Diffeomorph (𝓡 3) (𝓡 3) M ThreeSphere ∞) |
| 18 | |
| 19 | def TopologicalPoincare : Prop := |
| 20 | ∀ (M : Type u) [TopologicalSpace M] [T2Space M] [SecondCountableTopology M] |
| 21 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 22 | [CompactSpace M] [SimplyConnectedSpace M], Nonempty (M ≃ₜ ThreeSphere) |
| 23 | |
| 24 | namespace ComparatorTargets |
| 25 | |
| 26 | theorem smoothPoincareSkeleton : SmoothPoincare.{u} := by |
| 27 | sorry |
| 28 | |
| 29 | theorem topologicalPoincareSkeleton : TopologicalPoincare.{u} := by |
| 30 | sorry |
| 31 | |
| 32 | end ComparatorTargets |
| 33 | |
| 34 | end PoincareConjecture |