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.FiberBundle.Basic |
| 2 | import Mathlib.Topology.Separation.Hausdorff |
| 3 | |
| 4 | /-! |
| 5 | # Hausdorff total spaces of fiber bundles |
| 6 | |
| 7 | The closed phase-equality argument in Morgan-Tian Lemma 6.18, |
| 8 | pp. 113-114, uses the Hausdorff topology of the actual velocity |
| 9 | bundle. Projection separates distinct base points; a common local |
| 10 | trivialization separates distinct vectors over the same base point. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Bundle |
| 16 | open scoped Topology |
| 17 | |
| 18 | namespace PoincareMT.M14 |
| 19 | |
| 20 | /-- A fiber bundle with Hausdorff base and model fiber has Hausdorff |
| 21 | total space. This justifies the closed phase-equality set used for |
| 22 | the uniqueness assertion of Lemma 6.18, pp. 113-114. -/ |
| 23 | theorem fiberBundle_totalSpace_t2Space {B : Type*} (F : Type*) (E : B → Type*) |
| 24 | [TopologicalSpace B] [TopologicalSpace F] [∀ b, TopologicalSpace (E b)] |
| 25 | [TopologicalSpace (TotalSpace F E)] [FiberBundle F E] [T2Space B] [T2Space F] : |
| 26 | T2Space (TotalSpace F E) := by |
| 27 | apply t2Space_iff_disjoint_nhds.mpr |
| 28 | intro x y hne |
| 29 | by_cases hbase : x.proj = y.proj |
| 30 | · let e := trivializationAt F E x.proj |
| 31 | have hx : x ∈ e.source := e.mem_source.mpr (mem_baseSet_trivializationAt F E x.proj) |
| 32 | have hy : y ∈ e.source := e.mem_source.mpr |
| 33 | (hbase ▸ mem_baseSet_trivializationAt F E x.proj) |
| 34 | have he : e x ≠ e y := fun h => hne (e.toOpenPartialHomeomorph.injOn hx hy h) |
| 35 | exact (e.toOpenPartialHomeomorph.continuousAt hx).disjoint |
| 36 | (disjoint_nhds_nhds.mpr he) (e.toOpenPartialHomeomorph.continuousAt hy) |
| 37 | · exact (FiberBundle.continuous_proj F E).continuousAt.disjoint |
| 38 | (disjoint_nhds_nhds.mpr hbase) (FiberBundle.continuous_proj F E).continuousAt |
| 39 | |
| 40 | end PoincareMT.M14 |