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.OrdinaryProduct.Slices |
| 2 | import PoincareLib.Geometry.Spacetime.Realization.Cylinder.Operations |
| 3 | import PoincareLib.Geometry.Spacetime.GeometryTheory |
| 4 | |
| 5 | /-! |
| 6 | # Assembly of the ordinary product conclusion |
| 7 | -/ |
| 8 | |
| 9 | set_option autoImplicit false |
| 10 | set_option backward.isDefEq.respectTransparency false |
| 11 | |
| 12 | open scoped Manifold ContDiff Topology |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | open PoincareMT |
| 17 | |
| 18 | namespace Poincare.Spacetime.Realization |
| 19 | |
| 20 | noncomputable def ordinaryProductConclusion {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 21 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 22 | [T2Space M] [SecondCountableTopology M] [Nonempty M] |
| 23 | (g : ℝ → RiemannianMetric n M) (I : SpacetimeInterval) |
| 24 | (hg : RiemannianMetric.IsSmoothFamilyOn g I.domain) : |
| 25 | OrdinaryProductSpacetimeConclusion g I where |
| 26 | timeIntervals := intervalSystem |
| 27 | spacetime := adaptedSpacetime (ordinaryAtlas g I hg) |
| 28 | slices := adaptedSliceGeometry (ordinaryAtlas g I hg) |
| 29 | productIdentification := ordinaryProductIdentification g I hg |
| 30 | productIdentification_eq := fun _ ↦ rfl |
| 31 | product_timeVector := ordinaryProduct_timeVector g I hg |
| 32 | productCylinder := ordinaryProductCylinder g I hg |
| 33 | productCylinder_eq := fun _ ↦ rfl |
| 34 | productMetric := ordinaryProductMetric g I hg |
| 35 | productMetric_eq := rfl |
| 36 | sliceIdentification := ordinarySliceIdentification g I hg |
| 37 | sliceIdentification_eq := fun _ _ ↦ rfl |
| 38 | sliceMetric_eq := ordinarySlice_metric_eq g I hg |
| 39 | compatible := adaptedCompatibleTheory.{u, u} (ordinaryAtlas g I hg) |
| 40 | coordinate_compatible := adaptedCompatibleTheory.{u, 0} (ordinaryAtlas g I hg) |
| 41 | |
| 42 | end Poincare.Spacetime.Realization |