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.Surgery.Comparison.Transport.Theory |
| 2 | import PoincareLib.Topology.Manifold.EmbeddedSphere.Basic |
| 3 | import PoincareLib.Topology.Manifold.Smoothing.Imports.Topology.SphereConnectivity |
| 4 | import PoincareLib.Topology.Manifold.Smoothing.Imports.Topology.SphereDiskExtension |
| 5 | |
| 6 | /-! |
| 7 | # Free null-homotopies on the Poincare components |
| 8 | |
| 9 | Morgan--Tian, pp. 430-431, applies Proposition 15.12 to null-homotopic |
| 10 | surgery spheres. The supplied M02 homotopy-three-sphere conclusion and its |
| 11 | checked cube/sphere quotient bridge give the needed free null-homotopy. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open scoped Manifold ContDiff ContinuousMap |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | /-- The M02 homotopy-three-sphere conclusion makes every continuous two-sphere |
| 23 | freely null-homotopic, as used before Proposition 18.18, pp. 430-431. -/ |
| 24 | theorem m57FreeSphereNullHomotopy |
| 25 | (P02 : RepairedClosedTopologyProvider.{u}) |
| 26 | {M : Type u} [TopologicalSpace M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 28 | [T2Space M] [SecondCountableTopology M] [CompactSpace M] |
| 29 | [SimplyConnectedSpace M] (f : UnitTwoSphere → M) (hf : Continuous f) : |
| 30 | IsNullHomotopicSphere f := by |
| 31 | obtain ⟨O⟩ := P02 (M := M) |
| 32 | obtain ⟨e⟩ := O.homotopy_three_sphere |
| 33 | let F : ContinuousMap UnitTwoSphere M := ⟨f, hf⟩ |
| 34 | have hpi (y : ThreeSphere) : Subsingleton (HomotopyGroup.Pi 2 ThreeSphere y) := |
| 35 | Proofs.M02.sphere_homotopyGroup_subsingleton_of_dim_lt (N := Fin 2) (by simp) y |
| 36 | have hnull := Proofs.M02.Topology.sphere_map_nullhomotopic_of_pi_trivial |
| 37 | 1 hpi (e.toFun.comp F) |
| 38 | obtain ⟨y, hy⟩ := hnull.comp_right e.invFun |
| 39 | refine ⟨hf, y, ?_⟩ |
| 40 | exact (ContinuousMap.Homotopic.comp e.left_inv.symm (.refl F)).trans hy |
| 41 | |
| 42 | end PoincareMT |