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.Geometry.Manifold.IsManifold.ExtChartAt |
| 2 | |
| 3 | /-! |
| 4 | # Local path connectedness of real manifolds with corners |
| 5 | |
| 6 | Convexity of the model range gives local path connectedness, which transfers |
| 7 | through the model embedding and the manifold charts. |
| 8 | -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | open Set |
| 13 | |
| 14 | namespace Poincare.Manifold |
| 15 | |
| 16 | variable {E H M : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 17 | [TopologicalSpace H] {I : ModelWithCorners ℝ E H} |
| 18 | [TopologicalSpace M] [ChartedSpace H M] |
| 19 | |
| 20 | include I in |
| 21 | /-- Local path connectedness comes from the manifold model and chart maps. -/ |
| 22 | theorem manifold_locallyPathConnected : LocallyPathConnectedSpace M := by |
| 23 | let : LocallyPathConnectedSpace (range I) := I.convex_range.locallyPathConnectedSpace |
| 24 | let : LocallyPathConnectedSpace H := |
| 25 | I.isClosedEmbedding.toHomeomorph.isOpenEmbedding.locallyPathConnectedSpace |
| 26 | exact ChartedSpace.locallyPathConnectedSpace H M |
| 27 | |
| 28 | end Poincare.Manifold |