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.Spacetime.Realization.Cylinder.Operations |
| 2 | import PoincareLib.Geometry.Spacetime.Realization.Horizontal.Bracket |
| 3 | import PoincareLib.Geometry.Spacetime.Realization.Slice.Label.Identification |
| 4 | import PoincareLib.Geometry.Spacetime.Realization.Box.CylinderMetric |
| 5 | import PoincareLib.Geometry.Spacetime.GeometryTheory |
| 6 | import PoincareLib.Geometry.Spacetime.Realization.Conclusion |
| 7 | |
| 8 | /-! |
| 9 | # Assembly of the generalized-flow carrier conclusion |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open scoped Manifold ContDiff Bundle Topology |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | open PoincareMT |
| 20 | |
| 21 | namespace Poincare.Spacetime.Realization |
| 22 | |
| 23 | noncomputable def adaptedCarrierConclusion {n : ℕ} {X : Type u} [TopologicalSpace X] |
| 24 | [T2Space X] [SecondCountableTopology X] (A : AdaptedMetricAtlas n X) : |
| 25 | GeneralizedFlowCarrierConclusionWithInterval A where |
| 26 | timeIntervals := intervalSystem |
| 27 | interval_localDiffeomorph := intervalInclusion_localDiffeomorph |
| 28 | spacetime := adaptedSpacetime A |
| 29 | slices := adaptedSliceGeometry A |
| 30 | boxCylinder := adaptedBoxCylinder A |
| 31 | boxCylinder_eq := fun _ _ ↦ rfl |
| 32 | box_localDiffeomorph := adapted_box_localDiffeomorph A |
| 33 | boxMetric := fun b ↦ pulledCylinderMetric (adaptedBoxCylinder A b) |
| 34 | boxMetric_eq := adaptedBox_metric_eq A |
| 35 | sliceBox := fun b t ht ↦ sliceBoxMap (A.box b) t ht |
| 36 | sliceBox_eq := fun _ _ _ _ ↦ rfl |
| 37 | sliceBox_localDiffeomorph := adapted_sliceBox_localDiffeomorph A |
| 38 | sliceBox_metric := adapted_sliceBox_metric A |
| 39 | supplied_labels := fun L t ↦ ⟨adaptedSliceIdentification A L t⟩ |
| 40 | horizontalBracket := spacetime_horizontalBracket (adaptedSpacetime A) |
| 41 | compatible := adaptedCompatibleTheory.{u, u} A |
| 42 | coordinate_compatible := adaptedCompatibleTheory.{u, 0} A |
| 43 | |
| 44 | end Poincare.Spacetime.Realization |