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.Horizontal.Assembly |
| 2 | import PoincareLib.Geometry.Spacetime.Rescaling.ScaleBounds |
| 3 | import PoincareLib.Geometry.Spacetime.Rescaling.Domain.Calculus |
| 4 | import PoincareLib.Geometry.Spacetime.Rescaling.Domain.BallNeighborhoods |
| 5 | import PoincareLib.Geometry.Spacetime.Rescaling.Complete |
| 6 | |
| 7 | /-! Adapted from Mapher06/Poincare-MorganTian, `PoincareMT/Proofs/M13/Rescaling.lean`, |
| 8 | revision `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See `references/ricci-flow/mapher/rescaling-import.json`. -/ |
| 9 | |
| 10 | /-! |
| 11 | # Assembly of the complete constructed spacetime rescaling |
| 12 | |
| 13 | The geometry, horizontal calculus and both domain universes refer to the |
| 14 | same selected rescaled carrier and its unchanged interval system. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | |
| 19 | open scoped Manifold ContDiff Bundle |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | open PoincareMT.Homothety |
| 24 | |
| 25 | namespace PoincareMT.ParabolicRescaling |
| 26 | |
| 27 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] |
| 28 | {A : AdaptedMetricAtlas n X} |
| 29 | |
| 30 | noncomputable def generalizedRescaling (hEquation : GeneralizedRicciGaugeTheory.{u} n) |
| 31 | (R : GeneralizedFlowCarrierConclusion A) (Q : ℝ) (hQ : 0 < Q) (a : ℝ) : |
| 32 | GeneralizedParabolicRescaling R Q hQ a where |
| 33 | geometry := spacetimeRescaling R Q hQ a |
| 34 | horizontal := parabolicHorizontalCalculus hEquation |
| 35 | backwardEndpoints := parabolicBackwardEndpointCalculus (spacetimeRescaling R Q hQ a) |
| 36 | bounds := parabolicScaleBounds (spacetimeRescaling R Q hQ a) |
| 37 | (parabolicHorizontalCalculus hEquation) |
| 38 | domains := domainTransport.{u, u} R Q hQ a |
| 39 | domain_calculus := domainCalculus R.compatible |
| 40 | coordinateDomains := domainTransport.{u, 0} R Q hQ a |
| 41 | coordinate_domain_calculus := domainCalculus R.coordinate_compatible |
| 42 | ball_neighborhoods := ballNeighborhoodTransport (domainTransport.{u, u} R Q hQ a) |
| 43 | |
| 44 | end PoincareMT.ParabolicRescaling |