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.Maximal |
| 2 | import PoincareLib.Geometry.Spacetime.Rescaling.Domain.Metric |
| 3 | |
| 4 | /-! Adapted from Mapher06/Poincare-MorganTian, `PoincareMT/Proofs/M13/DomainCalculus.lean`, |
| 5 | revision `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See `references/ricci-flow/mapher/rescaling-import.json`. -/ |
| 6 | |
| 7 | /-! |
| 8 | # The complete compatible domain calculus |
| 9 | |
| 10 | Images, bases, restrictions, gluing and conditional maximality all refer |
| 11 | to the same constructed equivalences, as does the cylinder metric law. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | universe u v |
| 20 | |
| 21 | open PoincareMT.Homothety |
| 22 | |
| 23 | namespace PoincareMT.ParabolicRescaling |
| 24 | |
| 25 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] |
| 26 | {A : AdaptedMetricAtlas n X} {R : GeneralizedFlowCarrierConclusion A} |
| 27 | {Q : ℝ} {hQ : 0 < Q} {a : ℝ} |
| 28 | |
| 29 | theorem domainCalculus |
| 30 | (H : CompatibleSpacetimeTheory.{u, v} R.spacetime R.timeIntervals) : |
| 31 | ParabolicDomainCalculus (domainTransport.{u, v} R Q hQ a) := by |
| 32 | let D := domainTransport.{u, v} R Q hQ a |
| 33 | refine { |
| 34 | worldline_image := domain_worldline_image D |
| 35 | embedding_image := domain_embedding_image D |
| 36 | cylinder_image := domain_cylinder_image D |
| 37 | embedding_based := domain_embedding_based D |
| 38 | cylinder_based := domain_cylinder_based D |
| 39 | worldline_time_restrict := domain_worldline_restrict D |
| 40 | embedding_time_restrict := domain_embedding_restrict D |
| 41 | cylinder_time_restrict := domain_cylinder_restrict D |
| 42 | embedding_source_restrict := ?_ |
| 43 | cylinder_open_restrict := ?_ |
| 44 | relative_time_open_iff := relative_time_open_iff Q hQ a |
| 45 | time_cover_iff := time_cover_iff Q hQ a |
| 46 | cylinder_glue := ?_ |
| 47 | worldline_maximal_iff := domain_worldline_maximal D |
| 48 | embedding_maximal_iff := domain_embedding_maximal D |
| 49 | cylinder_metric_exists := domain_cylinder_metric_exists H |
| 50 | cylinder_metric := domain_cylinder_metric } |
| 51 | · intro C C' _ _ K e r j hr s x |
| 52 | rw [D.embedding_forward, D.embedding_forward, hr] |
| 53 | · intro C _ _ _ K e U r hr s x |
| 54 | rw [D.cylinder_forward, D.cylinder_forward, hr] |
| 55 | · intro C _ _ _ K B J h e localCylinder he b s x |
| 56 | exact (domain_cylinder_restrict D C K (J b) (h b) e (localCylinder b) |
| 57 | (fun t y ↦ (he b t y).symm) s x).symm |
| 58 | |
| 59 | end PoincareMT.ParabolicRescaling |