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.Surgery.Induction.EpochExtension.History.RegularHistory |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.Spacetime.GeneralizedRicci |
| 3 | |
| 4 | /-! |
| 5 | # The actual M48 regular-history spacetime |
| 6 | |
| 7 | Apply the supplied M33 service on the preterminal window, then the supplied |
| 8 | M11/M12 services to its actual boxes. Retain both selections, the exact |
| 9 | original-slice identifications and the intrinsic equation. This checked bridge |
| 10 | adds no geometric or analytic premise and no admission. |
| 11 | Sources: Morgan--Tian Definitions 3.34-3.38, pp. 59-61, and Lemma 14.11 / |
| 12 | Proposition 14.12, pp. 349-350. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT |
| 20 | |
| 21 | structure M48RegularSpacetimeData {F : SurgeryFlowData.{u}} {T : ℝ} |
| 22 | (L : RepairedPreterminalSlab F T) where |
| 23 | history : M33RegularHistoryData L.regularHistoryWindow |
| 24 | geometry : EpochExtension.Spacetime.FlowBoxRicciGeometry history.generalized |
| 25 | |
| 26 | /-- A preterminal slab supplies the actual generalized regular history and |
| 27 | its same-carrier intrinsic Ricci geometry from M33, M11 and Spacetime. The resulting |
| 28 | M14 transport is `geometry.toLGeometry`; metric/curvature consequences and |
| 29 | the analytic or noncollapse configurations are separate obligations. -/ |
| 30 | theorem M48Predecessors.regularSpacetime (P : M48Predecessors.{u}) |
| 31 | {F : SurgeryFlowData.{u}} {T : ℝ} (L : RepairedPreterminalSlab F T) : |
| 32 | Nonempty (M48RegularSpacetimeData L) := by |
| 33 | obtain ⟨H⟩ := P.regularHistory L |
| 34 | obtain ⟨G⟩ := EpochExtension.Spacetime.flowBoxRicciGeometry H.generalized P.m11 P.m12 |
| 35 | exact ⟨⟨H, G⟩⟩ |
| 36 | |
| 37 | end PoincareMT |