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.Riemannian.LoopSpace.Width |
| 2 | |
| 3 | /-! |
| 4 | # Compactness of the width parameter sphere |
| 5 | |
| 6 | Morgan--Tian Definition 18.17, printed p. 430, takes the maximum over the |
| 7 | nonempty compact two-sphere. These instances use the contract's norm-one |
| 8 | subtype and its existing topology. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | namespace PoincareMT.Proofs.M61 |
| 14 | |
| 15 | /-- The parameter sphere of Definition 18.17, p. 430, is compact. -/ |
| 16 | instance loopTwoSphereCompactSpace : CompactSpace LoopTwoSphere := by |
| 17 | let e : (Metric.sphere (0 : LoopAmbient) 1) ≃ₜ LoopTwoSphere := |
| 18 | Homeomorph.setCongr (by ext z; exact mem_sphere_zero_iff_norm) |
| 19 | exact e.compactSpace |
| 20 | |
| 21 | /-- A unit coordinate vector inhabits the sphere of Definition 18.17, p. 430. -/ |
| 22 | instance loopTwoSphereNonempty : Nonempty LoopTwoSphere := |
| 23 | ⟨⟨EuclideanSpace.basisFun (Fin 3) ℝ 0, |
| 24 | (EuclideanSpace.basisFun (Fin 3) ℝ).norm_eq_one 0⟩⟩ |
| 25 | |
| 26 | end PoincareMT.Proofs.M61 |