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.Laws |
| 2 | |
| 3 | /-! Adapted from Mapher06/Poincare-MorganTian, `PoincareMT/Proofs/M13/DomainMaximal.lean`, |
| 4 | revision `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See `references/ricci-flow/mapher/rescaling-import.json`. -/ |
| 5 | |
| 6 | /-! |
| 7 | # Conditional maximality of transported domains |
| 8 | |
| 9 | An extension on either side pulls back to an extension on the other side. |
| 10 | Interval surjectivity retains arbitrary candidate extensions and endpoints. |
| 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 domain_worldline_maximal (D : ParabolicDomainTransport.{u, v} P) |
| 30 | (K : SpacetimeInterval) |
| 31 | (e : SpacetimeWorldline R.spacetime (R.timeIntervals.interval K)) : |
| 32 | (D.worldlineEquiv K e).IsMaximal R.timeIntervals ↔ e.IsMaximal R.timeIntervals := by |
| 33 | constructor |
| 34 | · intro H L f h hf |
| 35 | apply interval_subset_of_parabolic (Q := Q) (hQ := hQ) (a := a) |
| 36 | apply H (parabolicInterval Q hQ a L) (D.worldlineEquiv L f) |
| 37 | (parabolicInterval_subset Q hQ a K L h) |
| 38 | intro s |
| 39 | exact (domain_worldline_restrict D L K h f e (fun t ↦ (hf t).symm) s).symm |
| 40 | · intro H L |
| 41 | obtain ⟨L, rfl⟩ := parabolicInterval_surjective Q hQ a L |
| 42 | intro f h hf |
| 43 | let h₀ : K.domain ⊆ L.domain := interval_subset_of_parabolic h |
| 44 | have hf₀ : ∀ t : (R.timeIntervals.interval K).Point, |
| 45 | ((D.worldlineEquiv L).symm f).curve (spacetimeIntervalInclusion _ _ h₀ t) = |
| 46 | e.curve t := by |
| 47 | intro t |
| 48 | rw [D.worldline_inverse, intervalTransport_forward_inclusion] |
| 49 | have hval := hf (P.intervalTransport.diffeomorph K t) |
| 50 | rw [D.worldline_forward, Diffeomorph.symm_apply_apply] at hval |
| 51 | exact hval |
| 52 | exact parabolicInterval_subset Q hQ a L K |
| 53 | (H L ((D.worldlineEquiv L).symm f) h₀ hf₀) |
| 54 | |
| 55 | theorem domain_embedding_maximal (D : ParabolicDomainTransport.{u, v} P) |
| 56 | (C : Type v) [TopologicalSpace C] (K : SpacetimeInterval) |
| 57 | (e : CompatibleSpacetimeEmbedding R.spacetime (R.timeIntervals.interval K) C) : |
| 58 | (D.embeddingEquiv C K e).IsMaximal R.timeIntervals ↔ e.IsMaximal R.timeIntervals := by |
| 59 | constructor |
| 60 | · intro H L f h hf |
| 61 | apply interval_subset_of_parabolic (Q := Q) (hQ := hQ) (a := a) |
| 62 | apply H (parabolicInterval Q hQ a L) (D.embeddingEquiv C L f) |
| 63 | (parabolicInterval_subset Q hQ a K L h) |
| 64 | intro s x |
| 65 | exact (domain_embedding_restrict D C L K h f e (fun t y ↦ (hf t y).symm) s x).symm |
| 66 | · intro H L |
| 67 | obtain ⟨L, rfl⟩ := parabolicInterval_surjective Q hQ a L |
| 68 | intro f h hf |
| 69 | let h₀ : K.domain ⊆ L.domain := interval_subset_of_parabolic h |
| 70 | have hf₀ : ∀ (t : (R.timeIntervals.interval K).Point) (x : C), |
| 71 | ((D.embeddingEquiv C L).symm f).toSpacetime |
| 72 | (spacetimeIntervalInclusion _ _ h₀ t, x) = e.toSpacetime (t, x) := by |
| 73 | intro t x |
| 74 | rw [D.embedding_inverse, intervalTransport_forward_inclusion] |
| 75 | have hval := hf (P.intervalTransport.diffeomorph K t) x |
| 76 | rw [D.embedding_forward, Diffeomorph.symm_apply_apply] at hval |
| 77 | exact hval |
| 78 | exact parabolicInterval_subset Q hQ a L K |
| 79 | (H L ((D.embeddingEquiv C L).symm f) h₀ hf₀) |
| 80 | |
| 81 | end PoincareMT.ParabolicRescaling |