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.Generalized.Gauge.MetricPredecessors |
| 2 | import PoincareLib.Geometry.Spacetime.Horizontal.Theory |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.Gauge.Theory |
| 4 | |
| 5 | /-! Ported from Mapher06/Poincare-MorganTian, `PoincareMT/Statements/M12GeneralizedEquation.lean`, |
| 6 | revision `b2c3c64781fee22edfd683a224d4f8d280e2e9ce`. Declaration bodies are unchanged; |
| 7 | only imports and module placement differ. See |
| 8 | `references/ricci-flow/mapher/spacetime-port.json`. -/ |
| 9 | |
| 10 | /-! |
| 11 | # M12 intrinsic Ricci equation and actual gauge realization |
| 12 | |
| 13 | Morgan-Tian Definition 3.36 and Remark 3.37, pp. 60-61. The input cover is |
| 14 | the concrete covering supplied by the M11 atlas realization. All operators, |
| 15 | slice choices, cylinders and pullback metrics refer to the same spacetime. |
| 16 | The ordinary-product clause constructs that cover on the given metric family. |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | |
| 21 | open scoped Manifold ContDiff Bundle Topology |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT |
| 26 | |
| 27 | /-- Actual product geometry and its intrinsic equation for the given metric family. |
| 28 | The retained M11 product identifies both the carrier and the full metric representative. -/ |
| 29 | structure OrdinaryProductRicciGeometry {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 30 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 31 | (g : ℝ → RiemannianMetric n M) (I : SpacetimeInterval) where |
| 32 | product : OrdinaryProductSpacetimeConclusion g I |
| 33 | cover : SpacetimeGaugeCover product.spacetime product.timeIntervals |
| 34 | leafwiseConnection : LeafwiseLeviCivitaFamily product.spacetime product.slices |
| 35 | equation_iff : ∀ c : MetricLeviCivitaFamily g, |
| 36 | IntrinsicGeneralizedRicciEquation leafwiseConnection ↔ OrdinaryMetricRicciPDE g c I |
| 37 | ordinary_from_equation : IntrinsicGeneralizedRicciEquation leafwiseConnection → |
| 38 | Nonempty (OrdinaryGaugeWitness leafwiseConnection product.productCylinder product.productMetric) |
| 39 | |
| 40 | /-- M12's complete construction and equivalence problem in arbitrary dimension. |
| 41 | The supplied adapted cover is geometric data; it assumes no Ricci equation, |
| 42 | curvature identity, connection naturality or analytic estimate. -/ |
| 43 | structure GeneralizedRicciGaugeTheory (n : ℕ) : Prop where |
| 44 | leafwise_calculus : ∀ (X : Type u) [TopologicalSpace X] (time : X → ℝ) |
| 45 | (I : SpacetimeInterval) (F : GeneralizedFlowSpacetime n X time I) |
| 46 | (S : ∀ t : ℝ, SpacetimeSliceGeometry F t) (T : SpacetimeIntervalSystem) |
| 47 | (_cover : SpacetimeGaugeCover F T), |
| 48 | Nonempty (LeafwiseLeviCivitaFamily F S) ∧ |
| 49 | ∀ D : LeafwiseLeviCivitaFamily F S, HorizontalRicciCalculus D |
| 50 | gauges : ∀ (X : Type u) [TopologicalSpace X] (time : X → ℝ) |
| 51 | (I : SpacetimeInterval) (F : GeneralizedFlowSpacetime n X time I) |
| 52 | (S : ∀ t : ℝ, SpacetimeSliceGeometry F t) (T : SpacetimeIntervalSystem) |
| 53 | (_cover : SpacetimeGaugeCover F T) (D : LeafwiseLeviCivitaFamily F S), |
| 54 | SpacetimeGaugeTheory.{u, u} D T |
| 55 | coordinate_gauges : ∀ (X : Type u) [TopologicalSpace X] (time : X → ℝ) |
| 56 | (I : SpacetimeInterval) (F : GeneralizedFlowSpacetime n X time I) |
| 57 | (S : ∀ t : ℝ, SpacetimeSliceGeometry F t) (T : SpacetimeIntervalSystem) |
| 58 | (_cover : SpacetimeGaugeCover F T) (D : LeafwiseLeviCivitaFamily F S), |
| 59 | SpacetimeGaugeTheory.{u, 0} D T |
| 60 | adapted_equation : ∀ (X : Type u) [TopologicalSpace X] (time : X → ℝ) |
| 61 | (I : SpacetimeInterval) (F : GeneralizedFlowSpacetime n X time I) |
| 62 | (S : ∀ t : ℝ, SpacetimeSliceGeometry F t) (T : SpacetimeIntervalSystem) |
| 63 | (cover : SpacetimeGaugeCover F T) (D : LeafwiseLeviCivitaFamily F S), |
| 64 | IntrinsicGeneralizedRicciEquation D ↔ |
| 65 | ∀ b, ∀ c : MetricLeviCivitaFamily (cover.metric b).metric, |
| 66 | OrdinaryMetricRicciPDE (cover.metric b).metric c (cover.interval b) |
| 67 | ordinary_product : ∀ (M : Type u) [TopologicalSpace M] |
| 68 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 69 | [T2Space M] [SecondCountableTopology M] [Nonempty M] |
| 70 | (g : ℝ → RiemannianMetric n M) (I : SpacetimeInterval), |
| 71 | RiemannianMetric.IsSmoothFamilyOn g I.domain → |
| 72 | Nonempty (OrdinaryProductRicciGeometry g I) |
| 73 | |
| 74 | end PoincareMT |