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.Generalized.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Persistence.CapTopology.NeckRegions |
| 3 | |
| 4 | /-! |
| 5 | # Exact closure of a strict inner neck slab |
| 6 | |
| 7 | Morgan--Tian Claim 10.8, p. 254; M28 derivation 94. Compactness of the |
| 8 | closed parameter slab gives the exact ambient closure even when the |
| 9 | ambient Riemannian manifold is incomplete. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set |
| 15 | open scoped Manifold ContDiff Topology |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.EpsilonNeck |
| 20 | |
| 21 | variable {M : Type u} [TopologicalSpace M] [T2Space M] |
| 22 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 23 | {g : RiemannianMetric 3 M} |
| 24 | |
| 25 | /-- The closure of a nonempty strict inner neck region is its literal |
| 26 | closed coordinate slab (MT Claim 10.8, p. 254). -/ |
| 27 | theorem closure_region_eq_coordinate_slab (N : EpsilonNeck g) {a b : ℝ} |
| 28 | (ha : -N.epsilon⁻¹ < a) (hab : a < b) (hb : b < N.epsilon⁻¹) : |
| 29 | closure (N.region a b) = N.coordinate_map '' (univ ×ˢ Icc a b) := by |
| 30 | have hcl : closure ((univ : Set UnitTwoSphere) ×ˢ Ioo a b) = univ ×ˢ Icc a b := by |
| 31 | rw [closure_prod_eq, closure_univ, closure_Ioo hab.ne] |
| 32 | have hcompact : IsCompact (closure ((univ : Set UnitTwoSphere) ×ˢ Ioo a b)) := by |
| 33 | rw [hcl] |
| 34 | exact isCompact_univ.prod isCompact_Icc |
| 35 | have hcont : ContinuousOn N.coordinate_map |
| 36 | (closure ((univ : Set UnitTwoSphere) ×ˢ Ioo a b)) := by |
| 37 | rw [hcl] |
| 38 | exact N.coordinate_map_smooth.continuousOn.mono |
| 39 | (fun _ hz => ⟨mem_univ _, ha.trans_le hz.2.1, hz.2.2.trans_lt hb⟩) |
| 40 | rw [N.region_eq_image_m28 ha.le hb.le] |
| 41 | have hh := image_closure_of_isCompact hcompact hcont |
| 42 | rw [hcl] at hh |
| 43 | exact hh.symm |
| 44 | |
| 45 | end PoincareMT.EpsilonNeck |