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.Domain.Transport |
| 2 | |
| 3 | /-! Adapted from Mapher06/Poincare-MorganTian, `PoincareMT/Proofs/M13/DomainLaws.lean`, |
| 4 | revision `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See `references/ricci-flow/mapher/rescaling-import.json`. -/ |
| 5 | |
| 6 | /-! |
| 7 | # Images and exact restrictions of transported domains |
| 8 | |
| 9 | These laws follow from the prescribed point maps and the same interval |
| 10 | equivalence. No existence of a larger survival domain is used. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open scoped Manifold ContDiff Bundle Topology |
| 17 | |
| 18 | universe u v |
| 19 | |
| 20 | open PoincareMT.Homothety |
| 21 | |
| 22 | namespace PoincareMT.ParabolicRescaling |
| 23 | |
| 24 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] |
| 25 | {A : AdaptedMetricAtlas n X} {R : GeneralizedFlowCarrierConclusion A} |
| 26 | {Q : ℝ} {hQ : 0 < Q} {a : ℝ} |
| 27 | {P : ParabolicSpacetimeRescaling R Q hQ a} |
| 28 | |
| 29 | theorem intervalTransport_inverse_inclusion |
| 30 | (T : ParabolicIntervalTransport R.timeIntervals Q hQ a) |
| 31 | (K L : SpacetimeInterval) (h : L.domain ⊆ K.domain) |
| 32 | (s : (R.timeIntervals.interval (parabolicInterval Q hQ a L)).Point) : |
| 33 | (T.diffeomorph K).symm (spacetimeIntervalInclusion _ _ |
| 34 | (parabolicInterval_subset Q hQ a L K h) s) = |
| 35 | spacetimeIntervalInclusion _ _ h ((T.diffeomorph L).symm s) := by |
| 36 | apply Subtype.ext |
| 37 | simp only [T.inverse_eq] |
| 38 | rfl |
| 39 | |
| 40 | theorem intervalTransport_forward_inclusion |
| 41 | (T : ParabolicIntervalTransport R.timeIntervals Q hQ a) |
| 42 | (K L : SpacetimeInterval) (h : L.domain ⊆ K.domain) |
| 43 | (s : (R.timeIntervals.interval L).Point) : |
| 44 | T.diffeomorph K (spacetimeIntervalInclusion _ _ h s) = |
| 45 | spacetimeIntervalInclusion _ _ (parabolicInterval_subset Q hQ a L K h) |
| 46 | (T.diffeomorph L s) := by |
| 47 | apply Subtype.ext |
| 48 | simp only [T.forward_eq] |
| 49 | rfl |
| 50 | |
| 51 | theorem domain_worldline_image (D : ParabolicDomainTransport.{u, v} P) |
| 52 | (K : SpacetimeInterval) |
| 53 | (e : SpacetimeWorldline R.spacetime (R.timeIntervals.interval K)) : |
| 54 | Set.range (D.worldlineEquiv K e).curve = Set.range e.curve := by |
| 55 | have h : (D.worldlineEquiv K e).curve = e.curve ∘ (P.intervalTransport.diffeomorph K).symm := |
| 56 | funext (D.worldline_forward K e) |
| 57 | rw [h] |
| 58 | exact (P.intervalTransport.diffeomorph K).symm.surjective.range_comp e.curve |
| 59 | |
| 60 | theorem domain_embedding_image (D : ParabolicDomainTransport.{u, v} P) |
| 61 | (C : Type v) [TopologicalSpace C] (K : SpacetimeInterval) |
| 62 | (e : CompatibleSpacetimeEmbedding R.spacetime (R.timeIntervals.interval K) C) : |
| 63 | Set.range (D.embeddingEquiv C K e).toSpacetime = Set.range e.toSpacetime := by |
| 64 | ext p |
| 65 | constructor |
| 66 | · rintro ⟨⟨t, x⟩, rfl⟩ |
| 67 | exact ⟨((P.intervalTransport.diffeomorph K).symm t, x), |
| 68 | (D.embedding_forward C K e t x).symm⟩ |
| 69 | · rintro ⟨⟨t, x⟩, rfl⟩ |
| 70 | refine ⟨(P.intervalTransport.diffeomorph K t, x), ?_⟩ |
| 71 | rw [D.embedding_forward, Diffeomorph.symm_apply_apply] |
| 72 | |
| 73 | theorem domain_cylinder_image (D : ParabolicDomainTransport.{u, v} P) |
| 74 | (C : Type v) [TopologicalSpace C] |
| 75 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) C] [IsManifold (𝓡 n) ∞ C] |
| 76 | (K : SpacetimeInterval) |
| 77 | (e : CompatibleSpacetimeCylinder R.spacetime (R.timeIntervals.interval K) C) : |
| 78 | Set.range (D.cylinderEquiv C K e).toSpacetime = Set.range e.toSpacetime := by |
| 79 | have h := domain_embedding_image D C K e.toCompatibleSpacetimeEmbedding |
| 80 | rw [← D.cylinder_embedding] at h |
| 81 | exact h |
| 82 | |
| 83 | theorem domain_embedding_based (D : ParabolicDomainTransport.{u, v} P) |
| 84 | (C : Type v) [TopologicalSpace C] (K : SpacetimeInterval) |
| 85 | (e : CompatibleSpacetimeEmbedding R.spacetime (R.timeIntervals.interval K) C) |
| 86 | (t : (R.timeIntervals.interval K).Point) (source : C → R.spacetime.Point) : |
| 87 | (D.embeddingEquiv C K e).IsBasedAt (P.intervalTransport.diffeomorph K t) source ↔ |
| 88 | e.IsBasedAt t source := by |
| 89 | unfold CompatibleSpacetimeEmbedding.IsBasedAt |
| 90 | simp only [D.embedding_forward, Diffeomorph.symm_apply_apply] |
| 91 | |
| 92 | theorem domain_cylinder_based (D : ParabolicDomainTransport.{u, v} P) |
| 93 | (C : Type v) [TopologicalSpace C] |
| 94 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) C] [IsManifold (𝓡 n) ∞ C] |
| 95 | (K : SpacetimeInterval) |
| 96 | (e : CompatibleSpacetimeCylinder R.spacetime (R.timeIntervals.interval K) C) |
| 97 | (t : (R.timeIntervals.interval K).Point) (source : C → R.spacetime.Point) : |
| 98 | (D.cylinderEquiv C K e).toCompatibleSpacetimeEmbedding.IsBasedAt |
| 99 | (P.intervalTransport.diffeomorph K t) source ↔ |
| 100 | e.toCompatibleSpacetimeEmbedding.IsBasedAt t source := by |
| 101 | rw [D.cylinder_embedding] |
| 102 | exact domain_embedding_based D C K e.toCompatibleSpacetimeEmbedding t source |
| 103 | |
| 104 | theorem domain_worldline_restrict (D : ParabolicDomainTransport.{u, v} P) |
| 105 | (K L : SpacetimeInterval) (h : L.domain ⊆ K.domain) |
| 106 | (e : SpacetimeWorldline R.spacetime (R.timeIntervals.interval K)) |
| 107 | (r : SpacetimeWorldline R.spacetime (R.timeIntervals.interval L)) |
| 108 | (hr : ∀ t, r.curve t = e.curve (spacetimeIntervalInclusion _ _ h t)) |
| 109 | (s : (R.timeIntervals.interval (parabolicInterval Q hQ a L)).Point) : |
| 110 | (D.worldlineEquiv L r).curve s = (D.worldlineEquiv K e).curve |
| 111 | (spacetimeIntervalInclusion _ _ (parabolicInterval_subset Q hQ a L K h) s) := by |
| 112 | rw [D.worldline_forward, D.worldline_forward, hr, intervalTransport_inverse_inclusion] |
| 113 | |
| 114 | theorem domain_embedding_restrict (D : ParabolicDomainTransport.{u, v} P) |
| 115 | (C : Type v) [TopologicalSpace C] (K L : SpacetimeInterval) (h : L.domain ⊆ K.domain) |
| 116 | (e : CompatibleSpacetimeEmbedding R.spacetime (R.timeIntervals.interval K) C) |
| 117 | (r : CompatibleSpacetimeEmbedding R.spacetime (R.timeIntervals.interval L) C) |
| 118 | (hr : ∀ t x, r.toSpacetime (t, x) = e.toSpacetime (spacetimeIntervalInclusion _ _ h t, x)) |
| 119 | (s : (R.timeIntervals.interval (parabolicInterval Q hQ a L)).Point) (x : C) : |
| 120 | (D.embeddingEquiv C L r).toSpacetime (s, x) = (D.embeddingEquiv C K e).toSpacetime |
| 121 | (spacetimeIntervalInclusion _ _ (parabolicInterval_subset Q hQ a L K h) s, x) := by |
| 122 | rw [D.embedding_forward, D.embedding_forward, hr, intervalTransport_inverse_inclusion] |
| 123 | |
| 124 | theorem domain_cylinder_restrict (D : ParabolicDomainTransport.{u, v} P) |
| 125 | (C : Type v) [TopologicalSpace C] |
| 126 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) C] [IsManifold (𝓡 n) ∞ C] |
| 127 | (K L : SpacetimeInterval) (h : L.domain ⊆ K.domain) |
| 128 | (e : CompatibleSpacetimeCylinder R.spacetime (R.timeIntervals.interval K) C) |
| 129 | (r : CompatibleSpacetimeCylinder R.spacetime (R.timeIntervals.interval L) C) |
| 130 | (hr : ∀ t x, r.toSpacetime (t, x) = e.toSpacetime (spacetimeIntervalInclusion _ _ h t, x)) |
| 131 | (s : (R.timeIntervals.interval (parabolicInterval Q hQ a L)).Point) (x : C) : |
| 132 | (D.cylinderEquiv C L r).toSpacetime (s, x) = (D.cylinderEquiv C K e).toSpacetime |
| 133 | (spacetimeIntervalInclusion _ _ (parabolicInterval_subset Q hQ a L K h) s, x) := by |
| 134 | rw [D.cylinder_forward, D.cylinder_forward, hr, intervalTransport_inverse_inclusion] |
| 135 | |
| 136 | end PoincareMT.ParabolicRescaling |