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.Topology.Connected.TotallyDisconnected |
| 2 | |
| 3 | /-! |
| 4 | # Component classes under continuous maps |
| 5 | |
| 6 | Functoriality of the component quotient gives the elementary equality |
| 7 | calculation used in MT Definition 18.2, printed pp. 419--420. |
| 8 | -/ |
| 9 | |
| 10 | set_option autoImplicit false |
| 11 | |
| 12 | namespace PoincareMT |
| 13 | |
| 14 | /-- Continuous maps preserve equality of component classes, the basic |
| 15 | topological calculation for MT Definition 18.2, pp. 419--420. -/ |
| 16 | theorem m56ComponentClass_map {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y] |
| 17 | {f : X → Y} (hf : Continuous f) {x y : X} |
| 18 | (h : ConnectedComponents.mk x = ConnectedComponents.mk y) : |
| 19 | ConnectedComponents.mk (f x) = ConnectedComponents.mk (f y) := |
| 20 | congrArg hf.connectedComponentsMap h |
| 21 | |
| 22 | end PoincareMT |