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.AlgebraicTopology.HomotopyGroup.LoopSpace.Basepoint.GenLoopWhisker |
| 2 | |
| 3 | /-! |
| 4 | # The uniform higher basepoint service |
| 5 | |
| 6 | The moving-boundary construction commutes with continuous postcomposition. |
| 7 | It supplies M59's service for every space and dimension, using exactly the |
| 8 | frozen surgery homotopy map. Source: Hatcher, Section 4.1, pp. 341-342. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open scoped Topology unitInterval |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT |
| 20 | |
| 21 | /-- The constructed higher basepoint service, including continuous naturality. |
| 22 | Source: Hatcher, Section 4.1, pp. 341-342. -/ |
| 23 | def m59HigherBasepointTransportService : M59HigherBasepointTransportService.{u} where |
| 24 | transport n {X} _ := m59HigherBasepointTransport X n |
| 25 | naturality := by |
| 26 | intro n X Y _ _ f x y p a |
| 27 | refine Quotient.inductionOn a ?_ |
| 28 | intro a |
| 29 | exact Quotient.sound (GenLoop.boundaryTransport_map p a f) |
| 30 | |
| 31 | /-- M59's basepoint service exists without any manifold or predecessor hypothesis. |
| 32 | Source: Hatcher, Section 4.1, pp. 341-342. -/ |
| 33 | theorem m59HigherBasepointTransportService_nonempty : |
| 34 | Nonempty M59HigherBasepointTransportService.{u} := |
| 35 | ⟨m59HigherBasepointTransportService⟩ |
| 36 | |
| 37 | end PoincareMT |