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.InteriorBoundary |
| 2 | |
| 3 | /-! |
| 4 | # Geometry of the intrinsic manifold interior |
| 5 | |
| 6 | The intrinsic interior is dense because every extended chart target lies in |
| 7 | the closure of its Euclidean interior. |
| 8 | -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | open Set |
| 13 | open scoped ContDiff Manifold Topology |
| 14 | |
| 15 | namespace Poincare.Manifold |
| 16 | |
| 17 | variable {E H M : Type*} |
| 18 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 19 | [TopologicalSpace H] {I : ModelWithCorners ℝ E H} |
| 20 | [TopologicalSpace M] [ChartedSpace H M] [IsManifold I ∞ M] |
| 21 | |
| 22 | /-- The intrinsic interior of a smooth manifold with corners is dense. -/ |
| 23 | theorem dense_manifoldInterior : Dense (I.interior M) := by |
| 24 | intro x |
| 25 | have hx := extChartAt_target_subset_closure_interior (mem_extChartAt_target (I := I) x) |
| 26 | have himage := mem_closure_image (continuousAt_extChartAt_symm (I := I) x) hx |
| 27 | rw [extChartAt_to_inv] at himage |
| 28 | apply closure_mono (s := (extChartAt I x).symm '' interior (extChartAt I x).target) ?_ himage |
| 29 | rintro y ⟨z, hz, rfl⟩ |
| 30 | have hzt := interior_subset hz |
| 31 | have hys := (extChartAt I x).map_target hzt |
| 32 | apply (I.isInteriorPoint_iff_of_mem_atlas (by simp : (∞ : WithTop ℕ∞) ≠ 0) |
| 33 | (chart_mem_atlas H x) (by simpa only [extChartAt_source] using hys)).2 |
| 34 | change extChartAt I x ((extChartAt I x).symm z) ∈ interior (extChartAt I x).target |
| 35 | simpa only [(extChartAt I x).right_inv hzt] using hz |
| 36 | |
| 37 | end Poincare.Manifold |