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.Cylinder.Theory |
| 2 | |
| 3 | /-! Ported from Mapher06/Poincare-MorganTian, `PoincareMT/Statements/M11GeneralizedFlow.lean`, |
| 4 | revision `b2c3c64781fee22edfd683a224d4f8d280e2e9ce`. Declaration bodies are unchanged; |
| 5 | only imports and module placement differ. See |
| 6 | `references/ricci-flow/mapher/spacetime-port.json`. -/ |
| 7 | |
| 8 | /-! |
| 9 | # M11 spacetime realization |
| 10 | |
| 11 | The construction keeps the exact raw carrier, topology and time. Every box, |
| 12 | slice, supplied label and cylinder is compared using one selected realization. |
| 13 | The ordinary product is geometric; its Ricci equation belongs to M12. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT |
| 23 | |
| 24 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] |
| 25 | |
| 26 | /-- Realization of the specified adapted metric atlas, with actual box/slice |
| 27 | comparisons and all geometric domain operations required by later owners. -/ |
| 28 | structure GeneralizedFlowCarrierConclusion (A : AdaptedMetricAtlas n X) where |
| 29 | timeIntervals : SpacetimeIntervalSystem |
| 30 | spacetime : GeneralizedFlowSpacetime n X A.time A.interval |
| 31 | slices : ∀ t, SpacetimeSliceGeometry spacetime t |
| 32 | boxCylinder : ∀ b, CompatibleSpacetimeCylinder spacetime |
| 33 | (timeIntervals.interval (A.box b).interval) (A.box b).spatial |
| 34 | boxCylinder_eq : ∀ b p, (boxCylinder b).toSpacetime p = (A.box b).toSpacetime p |
| 35 | box_localDiffeomorph : ∀ b, IsLocalDiffeomorph (spacetimeModel n) (spacetimeModel n) ∞ |
| 36 | (boxCylinder b).toSpacetime |
| 37 | boxMetric : ∀ b, SpacetimeCylinderMetric (boxCylinder b) |
| 38 | boxMetric_eq : ∀ b (t : (timeIntervals.interval (A.box b).interval).Point) x v w, |
| 39 | ((boxMetric b).metric t.val).inner x v w = (A.box b).metric (t.val, x) v w |
| 40 | sliceBox : ∀ b t, t ∈ (A.box b).interval.domain → |
| 41 | (A.box b).spatial → (slices t).Point |
| 42 | sliceBox_eq : ∀ b t ht x, |
| 43 | (sliceBox b t ht x).val = (A.box b).toSpacetime (⟨t, ht⟩, x) |
| 44 | sliceBox_localDiffeomorph : ∀ b t ht, |
| 45 | IsLocalDiffeomorph (𝓡 n) (𝓡 n) ∞ (sliceBox b t ht) |
| 46 | sliceBox_metric : ∀ b t ht x v w, |
| 47 | (slices t).metricOnPoints.inner (sliceBox b t ht x) |
| 48 | (mfderiv (𝓡 n) (𝓡 n) (sliceBox b t ht) x v) |
| 49 | (mfderiv (𝓡 n) (𝓡 n) (sliceBox b t ht) x w) = (A.box b).metric (t, x) v w |
| 50 | supplied_labels : ∀ L : SpacetimeSliceLabeling A, ∀ t, |
| 51 | Nonempty (SpacetimeSliceIdentification spacetime t (slices t) (L.slice t)) |
| 52 | horizontalBracket : ∀ (U : ∀ p : spacetime.Point, spacetime.Horizontal p) |
| 53 | (O : Set spacetime.Point), IsOpen O → |
| 54 | ContMDiffOn (spacetimeModel n) |
| 55 | ((spacetimeModel n).prod 𝓘(ℝ, EuclideanSpace ℝ (Fin n))) ∞ |
| 56 | (fun p : spacetime.Point ↦ Bundle.TotalSpace.mk' (EuclideanSpace ℝ (Fin n)) |
| 57 | (E := spacetime.Horizontal) p (U p)) O → |
| 58 | ∀ p ∈ O, mfderiv (spacetimeModel n) 𝓘(ℝ) spacetime.timeFunction p |
| 59 | (VectorField.mlieBracket (spacetimeModel n) |
| 60 | (show ∀ q : spacetime.Point, TangentSpace (spacetimeModel n) q from spacetime.timeVector) |
| 61 | (fun q : spacetime.Point ↦ (U q).val) p) = 0 |
| 62 | compatible : CompatibleSpacetimeTheory.{u, u} spacetime timeIntervals |
| 63 | coordinate_compatible : CompatibleSpacetimeTheory.{u, 0} spacetime timeIntervals |
| 64 | |
| 65 | /-- Ordinary product geometry on exactly I times the supplied manifold. |
| 66 | All identifications retain the given metric family, even when interval charts |
| 67 | and the realized spacetime charts are different chosen records. -/ |
| 68 | structure OrdinaryProductSpacetimeConclusion {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 69 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 70 | (g : ℝ → RiemannianMetric n M) (I : SpacetimeInterval) where |
| 71 | timeIntervals : SpacetimeIntervalSystem |
| 72 | spacetime : GeneralizedFlowSpacetime n (I.domain × M) (fun p ↦ p.1.val) I |
| 73 | slices : ∀ t, SpacetimeSliceGeometry spacetime t |
| 74 | productIdentification : Diffeomorph (spacetimeModel n) (spacetimeModel n) |
| 75 | ((timeIntervals.interval I).Point × M) spacetime.Point ∞ |
| 76 | productIdentification_eq : ∀ p, productIdentification p = p |
| 77 | product_timeVector : ∀ p, |
| 78 | mfderiv (spacetimeModel n) (spacetimeModel n) productIdentification p |
| 79 | ((timeIntervals.interval I).positiveTangent p.1, 0) = |
| 80 | spacetime.timeVector (productIdentification p) |
| 81 | productCylinder : CompatibleSpacetimeCylinder spacetime (timeIntervals.interval I) M |
| 82 | productCylinder_eq : ∀ p, productCylinder.toSpacetime p = p |
| 83 | productMetric : SpacetimeCylinderMetric productCylinder |
| 84 | productMetric_eq : productMetric.metric = g |
| 85 | sliceIdentification : ∀ t : I.domain, |
| 86 | Diffeomorph (𝓡 n) (𝓡 n) M (slices t.val).Point ∞ |
| 87 | sliceIdentification_eq : ∀ t x, (sliceIdentification t x).val = (t, x) |
| 88 | sliceMetric_eq : ∀ t x v w, |
| 89 | (slices t.val).metricOnPoints.inner (sliceIdentification t x) |
| 90 | (mfderiv (𝓡 n) (𝓡 n) (sliceIdentification t) x v) |
| 91 | (mfderiv (𝓡 n) (𝓡 n) (sliceIdentification t) x w) = (g t.val).inner x v w |
| 92 | compatible : CompatibleSpacetimeTheory.{u, u} spacetime timeIntervals |
| 93 | coordinate_compatible : CompatibleSpacetimeTheory.{u, 0} spacetime timeIntervals |
| 94 | |
| 95 | /-- M11's complete geometric construction problem in arbitrary dimension. |
| 96 | No analytic milestone, Ricci equation, global product or completeness is an input. -/ |
| 97 | structure GeneralizedSpacetimeGeometryTheory (n : ℕ) : Prop where |
| 98 | realize : ∀ (X : Type u) [TopologicalSpace X] [T2Space X] [SecondCountableTopology X] |
| 99 | (A : AdaptedMetricAtlas n X), Nonempty (GeneralizedFlowCarrierConclusion A) |
| 100 | ordinary_product : ∀ (M : Type u) [TopologicalSpace M] |
| 101 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 102 | [T2Space M] [SecondCountableTopology M] [Nonempty M] |
| 103 | (g : ℝ → RiemannianMetric n M) (I : SpacetimeInterval), |
| 104 | RiemannianMetric.IsSmoothFamilyOn g I.domain → |
| 105 | Nonempty (OrdinaryProductSpacetimeConclusion g I) |
| 106 | |
| 107 | end PoincareMT |