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.Rescaling.Basic |
| 2 | |
| 3 | /-! Ported from Mapher06/Poincare-MorganTian, `PoincareMT/Definitions/M13DomainTransport.lean`, |
| 4 | revision `49331b7d7ecad38f53e4300c3b35d6a84b2cc648`. |
| 5 | Declaration bodies are unchanged; only imports and module placement differ. -/ |
| 6 | |
| 7 | /-! |
| 8 | # Actual parabolic transport of compatible domains |
| 9 | |
| 10 | Morgan-Tian Definitions 3.38, 3.40 and 3.41, pp. 61-62. These output |
| 11 | records keep the supplied maps, their exact intervals and their source |
| 12 | inclusions. Maximality is an explicit conditional property of an existing |
| 13 | domain, not a claim of a common lifetime for a noncompact source. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | universe u v |
| 21 | |
| 22 | namespace PoincareMT |
| 23 | |
| 24 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] |
| 25 | |
| 26 | /-- An existing worldline has no extension to a larger interval in this |
| 27 | spacetime. The extension must agree on the entire original domain. -/ |
| 28 | def SpacetimeWorldline.IsMaximal {time : X → ℝ} {I K : SpacetimeInterval} |
| 29 | {F : GeneralizedFlowSpacetime n X time I} (T : SpacetimeIntervalSystem) |
| 30 | (γ : SpacetimeWorldline F (T.interval K)) : Prop := |
| 31 | ∀ (L : SpacetimeInterval) (η : SpacetimeWorldline F (T.interval L)) |
| 32 | (h : K.domain ⊆ L.domain), |
| 33 | (∀ t : (T.interval K).Point, |
| 34 | η.curve (spacetimeIntervalInclusion (T.interval K) (T.interval L) h t) = γ.curve t) → |
| 35 | L.domain ⊆ K.domain |
| 36 | |
| 37 | /-- Maximality of an actual compatible embedding for its fixed spatial |
| 38 | source. No existence or openness of such a maximal interval is asserted. -/ |
| 39 | def CompatibleSpacetimeEmbedding.IsMaximal {time : X → ℝ} {I K : SpacetimeInterval} |
| 40 | {F : GeneralizedFlowSpacetime n X time I} (T : SpacetimeIntervalSystem) |
| 41 | {C : Type v} [TopologicalSpace C] |
| 42 | (e : CompatibleSpacetimeEmbedding F (T.interval K) C) : Prop := |
| 43 | ∀ (L : SpacetimeInterval) (f : CompatibleSpacetimeEmbedding F (T.interval L) C) |
| 44 | (h : K.domain ⊆ L.domain), |
| 45 | (∀ (t : (T.interval K).Point) (x : C), |
| 46 | f.toSpacetime (spacetimeIntervalInclusion (T.interval K) (T.interval L) h t, x) = |
| 47 | e.toSpacetime (t, x)) → |
| 48 | L.domain ⊆ K.domain |
| 49 | |
| 50 | /-- A compatible neighborhood with the actual open initial metric ball as |
| 51 | source. Its base time lies in K and its base map is the literal slice |
| 52 | inclusion. Closed or half-open time domains are separate explicit conditions. -/ |
| 53 | structure BasedBallSpacetimeNeighborhood {time : X → ℝ} {I : SpacetimeInterval} |
| 54 | (F : GeneralizedFlowSpacetime n X time I) |
| 55 | (S : ∀ t : ℝ, SpacetimeSliceGeometry F t) (T : SpacetimeIntervalSystem) |
| 56 | (t : ℝ) (p : (S t).Point) (r : ℝ) (K : SpacetimeInterval) where |
| 57 | radius_pos : 0 < r |
| 58 | base_mem : t ∈ K.domain |
| 59 | embedding : CompatibleSpacetimeEmbedding F (T.interval K) ((S t).metricOnPoints.ball p r) |
| 60 | based : embedding.IsBasedAt ⟨t, base_mem⟩ (fun x ↦ x.val.val) |
| 61 | |
| 62 | variable {A : AdaptedMetricAtlas n X} {R : GeneralizedFlowCarrierConclusion A} |
| 63 | {Q : ℝ} {hQ : 0 < Q} {a : ℝ} |
| 64 | |
| 65 | /-- Equivalences of actual compatible map records under the affine clock. |
| 66 | The displayed point identities prescribe both directions, on exactly K and |
| 67 | its affine image, using one fixed interval system. -/ |
| 68 | structure ParabolicDomainTransport (P : ParabolicSpacetimeRescaling R Q hQ a) where |
| 69 | worldlineEquiv : ∀ K : SpacetimeInterval, |
| 70 | SpacetimeWorldline R.spacetime (R.timeIntervals.interval K) ≃ |
| 71 | SpacetimeWorldline P.realization.spacetime |
| 72 | (R.timeIntervals.interval (parabolicInterval Q hQ a K)) |
| 73 | worldline_forward : ∀ (K : SpacetimeInterval) |
| 74 | (γ : SpacetimeWorldline R.spacetime (R.timeIntervals.interval K)) |
| 75 | (s : (R.timeIntervals.interval (parabolicInterval Q hQ a K)).Point), |
| 76 | (worldlineEquiv K γ).curve s = γ.curve ((P.intervalTransport.diffeomorph K).symm s) |
| 77 | worldline_inverse : ∀ (K : SpacetimeInterval) |
| 78 | (γ : SpacetimeWorldline P.realization.spacetime |
| 79 | (R.timeIntervals.interval (parabolicInterval Q hQ a K))) |
| 80 | (t : (R.timeIntervals.interval K).Point), |
| 81 | ((worldlineEquiv K).symm γ).curve t = γ.curve (P.intervalTransport.diffeomorph K t) |
| 82 | embeddingEquiv : ∀ (C : Type v) [TopologicalSpace C] (K : SpacetimeInterval), |
| 83 | CompatibleSpacetimeEmbedding R.spacetime (R.timeIntervals.interval K) C ≃ |
| 84 | CompatibleSpacetimeEmbedding P.realization.spacetime |
| 85 | (R.timeIntervals.interval (parabolicInterval Q hQ a K)) C |
| 86 | embedding_forward : ∀ (C : Type v) [TopologicalSpace C] (K : SpacetimeInterval) |
| 87 | (e : CompatibleSpacetimeEmbedding R.spacetime (R.timeIntervals.interval K) C) |
| 88 | (s : (R.timeIntervals.interval (parabolicInterval Q hQ a K)).Point) (x : C), |
| 89 | (embeddingEquiv C K e).toSpacetime (s, x) = |
| 90 | e.toSpacetime ((P.intervalTransport.diffeomorph K).symm s, x) |
| 91 | embedding_inverse : ∀ (C : Type v) [TopologicalSpace C] (K : SpacetimeInterval) |
| 92 | (e : CompatibleSpacetimeEmbedding P.realization.spacetime |
| 93 | (R.timeIntervals.interval (parabolicInterval Q hQ a K)) C) |
| 94 | (t : (R.timeIntervals.interval K).Point) (x : C), |
| 95 | ((embeddingEquiv C K).symm e).toSpacetime (t, x) = |
| 96 | e.toSpacetime (P.intervalTransport.diffeomorph K t, x) |
| 97 | cylinderEquiv : ∀ (C : Type v) [TopologicalSpace C] |
| 98 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) C] [IsManifold (𝓡 n) ∞ C] |
| 99 | (K : SpacetimeInterval), |
| 100 | CompatibleSpacetimeCylinder R.spacetime (R.timeIntervals.interval K) C ≃ |
| 101 | CompatibleSpacetimeCylinder P.realization.spacetime |
| 102 | (R.timeIntervals.interval (parabolicInterval Q hQ a K)) C |
| 103 | cylinder_forward : ∀ (C : Type v) [TopologicalSpace C] |
| 104 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) C] [IsManifold (𝓡 n) ∞ C] |
| 105 | (K : SpacetimeInterval) |
| 106 | (e : CompatibleSpacetimeCylinder R.spacetime (R.timeIntervals.interval K) C) |
| 107 | (s : (R.timeIntervals.interval (parabolicInterval Q hQ a K)).Point) (x : C), |
| 108 | (cylinderEquiv C K e).toSpacetime (s, x) = |
| 109 | e.toSpacetime ((P.intervalTransport.diffeomorph K).symm s, x) |
| 110 | cylinder_inverse : ∀ (C : Type v) [TopologicalSpace C] |
| 111 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) C] [IsManifold (𝓡 n) ∞ C] |
| 112 | (K : SpacetimeInterval) |
| 113 | (e : CompatibleSpacetimeCylinder P.realization.spacetime |
| 114 | (R.timeIntervals.interval (parabolicInterval Q hQ a K)) C) |
| 115 | (t : (R.timeIntervals.interval K).Point) (x : C), |
| 116 | ((cylinderEquiv C K).symm e).toSpacetime (t, x) = |
| 117 | e.toSpacetime (P.intervalTransport.diffeomorph K t, x) |
| 118 | cylinder_embedding : ∀ (C : Type v) [TopologicalSpace C] |
| 119 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) C] [IsManifold (𝓡 n) ∞ C] |
| 120 | (K : SpacetimeInterval) |
| 121 | (e : CompatibleSpacetimeCylinder R.spacetime (R.timeIntervals.interval K) C), |
| 122 | (cylinderEquiv C K e).toCompatibleSpacetimeEmbedding = |
| 123 | embeddingEquiv C K e.toCompatibleSpacetimeEmbedding |
| 124 | |
| 125 | /-- Actual ball and based-neighborhood comparison, for one base point and |
| 126 | one supplied time interval. Neither a closed nor a half-open domain is |
| 127 | silently added; their exact correspondences are retained as separate fields. -/ |
| 128 | structure ParabolicBallNeighborhoodTransport (P : ParabolicSpacetimeRescaling R Q hQ a) |
| 129 | (t : ℝ) (p : (R.slices t).Point) (r : ℝ) (K : SpacetimeInterval) where |
| 130 | ballHomeomorph : ((R.slices t).metricOnPoints.ball p r) ≃ₜ |
| 131 | ((P.realization.slices (parabolicTime Q a t)).metricOnPoints.ball |
| 132 | (P.sliceIdentification t p) (Real.sqrt Q * r)) |
| 133 | ball_forward : ∀ x, (ballHomeomorph x).val = P.sliceIdentification t x.val |
| 134 | ball_inverse : ∀ x, (ballHomeomorph.symm x).val = (P.sliceIdentification t).symm x.val |
| 135 | source_inclusion : ∀ x, (ballHomeomorph x).val.val = x.val.val |
| 136 | neighborhoodEquiv : |
| 137 | BasedBallSpacetimeNeighborhood R.spacetime R.slices R.timeIntervals t p r K ≃ |
| 138 | BasedBallSpacetimeNeighborhood P.realization.spacetime P.realization.slices |
| 139 | R.timeIntervals (parabolicTime Q a t) (P.sliceIdentification t p) |
| 140 | (Real.sqrt Q * r) (parabolicInterval Q hQ a K) |
| 141 | neighborhood_forward : ∀ e |
| 142 | (s : (R.timeIntervals.interval (parabolicInterval Q hQ a K)).Point) x, |
| 143 | (neighborhoodEquiv e).embedding.toSpacetime (s, ballHomeomorph x) = |
| 144 | e.embedding.toSpacetime ((P.intervalTransport.diffeomorph K).symm s, x) |
| 145 | neighborhood_inverse : ∀ e (v : (R.timeIntervals.interval K).Point) x, |
| 146 | (neighborhoodEquiv.symm e).embedding.toSpacetime (v, ballHomeomorph.symm x) = |
| 147 | e.embedding.toSpacetime (P.intervalTransport.diffeomorph K v, x) |
| 148 | image_eq : ∀ e, |
| 149 | Set.range (neighborhoodEquiv e).embedding.toSpacetime = Set.range e.embedding.toSpacetime |
| 150 | closed_time_iff : ∀ b c : ℝ, |
| 151 | (parabolicInterval Q hQ a K).domain = |
| 152 | Set.Icc (parabolicTime Q a b) (parabolicTime Q a c) ↔ |
| 153 | K.domain = Set.Icc b c |
| 154 | backward_parabolic_time_iff : |
| 155 | (parabolicInterval Q hQ a K).domain = |
| 156 | Set.Ioc (parabolicTime Q a t - (Real.sqrt Q * r) ^ 2) (parabolicTime Q a t) ↔ |
| 157 | K.domain = Set.Ioc (t - r ^ 2) t |
| 158 | |
| 159 | end PoincareMT |