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.OrdinaryProduct |
| 2 | import Mathlib.Geometry.Manifold.LocalDiffeomorph |
| 3 | |
| 4 | /-! |
| 5 | # Interval-aware M11 conclusion |
| 6 | |
| 7 | The current Mapher conclusion adds the selected interval restriction |
| 8 | local-diffeomorphism field to the earlier Horizon carrier record. This file |
| 9 | keeps that source-level extension separate from the construction proofs. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open scoped Manifold ContDiff Bundle Topology |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT |
| 19 | |
| 20 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] |
| 21 | |
| 22 | structure GeneralizedFlowCarrierConclusionWithInterval |
| 23 | (A : AdaptedMetricAtlas n X) extends GeneralizedFlowCarrierConclusion A where |
| 24 | interval_localDiffeomorph : ∀ (K L : SpacetimeInterval) |
| 25 | (h : L.domain ⊆ K.domain), |
| 26 | IsOpen {t : K.domain | t.val ∈ L.domain} → |
| 27 | IsLocalDiffeomorph (𝓡∂ 1) (𝓡∂ 1) ∞ |
| 28 | (spacetimeIntervalInclusion (timeIntervals.interval L) |
| 29 | (timeIntervals.interval K) h) |
| 30 | |
| 31 | namespace GeneralizedFlowCarrierConclusionWithInterval |
| 32 | |
| 33 | variable {A : AdaptedMetricAtlas n X} |
| 34 | |
| 35 | abbrev toConclusion (R : GeneralizedFlowCarrierConclusionWithInterval A) : |
| 36 | GeneralizedFlowCarrierConclusion A := |
| 37 | R.toGeneralizedFlowCarrierConclusion |
| 38 | |
| 39 | @[simp] theorem toConclusion_timeIntervals |
| 40 | (R : GeneralizedFlowCarrierConclusionWithInterval A) : |
| 41 | R.toConclusion.timeIntervals = R.timeIntervals := rfl |
| 42 | |
| 43 | @[simp] theorem toConclusion_spacetime |
| 44 | (R : GeneralizedFlowCarrierConclusionWithInterval A) : |
| 45 | R.toConclusion.spacetime = R.spacetime := rfl |
| 46 | |
| 47 | end GeneralizedFlowCarrierConclusionWithInterval |
| 48 | |
| 49 | abbrev GeneralizedFlowCarrierRealization (A : AdaptedMetricAtlas n X) := |
| 50 | GeneralizedFlowCarrierConclusionWithInterval A |
| 51 | |
| 52 | structure GeneralizedSpacetimeRealizationTheory (n : ℕ) : Prop |
| 53 | extends GeneralizedSpacetimeGeometryTheory.{u} n where |
| 54 | realize_with_interval : ∀ (X : Type u) [TopologicalSpace X] |
| 55 | [T2Space X] [SecondCountableTopology X] |
| 56 | (A : AdaptedMetricAtlas n X), |
| 57 | Nonempty (GeneralizedFlowCarrierConclusionWithInterval A) |
| 58 | |
| 59 | namespace GeneralizedSpacetimeRealizationTheory |
| 60 | |
| 61 | variable {n : ℕ} |
| 62 | |
| 63 | abbrev toGeometryTheory |
| 64 | (H : GeneralizedSpacetimeRealizationTheory.{u} n) : |
| 65 | GeneralizedSpacetimeGeometryTheory.{u} n := |
| 66 | H.toGeneralizedSpacetimeGeometryTheory |
| 67 | |
| 68 | theorem realize_projection |
| 69 | (H : GeneralizedSpacetimeRealizationTheory.{u} n) |
| 70 | (X : Type u) [TopologicalSpace X] [T2Space X] |
| 71 | [SecondCountableTopology X] (A : AdaptedMetricAtlas n X) : |
| 72 | Nonempty (GeneralizedFlowCarrierConclusion A) := by |
| 73 | obtain ⟨R⟩ := H.realize_with_interval X A |
| 74 | exact ⟨R.toConclusion⟩ |
| 75 | |
| 76 | end GeneralizedSpacetimeRealizationTheory |
| 77 | |
| 78 | end PoincareMT |