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.Compactness.Carrier |
| 2 | import PoincareLib.Topology.Exhaustion |
| 3 | |
| 4 | /-! |
| 5 | # Exhaustions of flow carriers |
| 6 | |
| 7 | The topological fields of a flow carrier suffice to construct all the open-set |
| 8 | exhaustion data in pointed geometric convergence. This does not construct the |
| 9 | limit carrier, metric, or embeddings. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | namespace PoincareMT.FlowCarrier |
| 15 | |
| 16 | /-- Every based flow carrier has an exhaustion of the shape required by the |
| 17 | frozen pointed geometric convergence contract. -/ |
| 18 | theorem exists_connected_open_exhaustion {n : ℕ} (C : FlowCarrier n) (base : C.carrier) : |
| 19 | letI : TopologicalSpace C.carrier := C.topologicalSpace |
| 20 | ∃ U : ℕ → Set C.carrier, |
| 21 | (∀ j, IsOpen (U j)) ∧ |
| 22 | (∀ j, IsConnected (U j)) ∧ |
| 23 | (∀ j, IsCompact (closure (U j))) ∧ |
| 24 | (∀ j, U j ⊆ U (j + 1)) ∧ |
| 25 | (⋃ j, U j = Set.univ) ∧ |
| 26 | (∀ j, base ∈ U j) := by |
| 27 | let : TopologicalSpace C.carrier := C.topologicalSpace |
| 28 | let : ChartedSpace (EuclideanSpace ℝ (Fin n)) C.carrier := C.chartedSpace |
| 29 | let : T2Space C.carrier := C.t2Space |
| 30 | let : SecondCountableTopology C.carrier := C.secondCountable |
| 31 | let : PreconnectedSpace C.carrier := ⟨C.connected.isPreconnected⟩ |
| 32 | let : LocallyConnectedSpace C.carrier := |
| 33 | ChartedSpace.locallyConnectedSpace (EuclideanSpace ℝ (Fin n)) C.carrier |
| 34 | let : LocallyCompactSpace C.carrier := |
| 35 | ChartedSpace.locallyCompactSpace (EuclideanSpace ℝ (Fin n)) C.carrier |
| 36 | exact Poincare.exists_connected_open_exhaustion base |
| 37 | |
| 38 | end PoincareMT.FlowCarrier |