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.RicciFlow.Surgery.StandardCap.Uniqueness.Imports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.Sequences.BlowupSequence |
| 3 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Calculus.RiemannianProper |
| 4 | |
| 5 | /-! |
| 6 | # Compact closures of actual blowup base balls |
| 7 | |
| 8 | Morgan-Tian, Theorem 12.28, pp. 323-324. The lower M09 complete-Riemannian |
| 9 | ball theorem applies to the connected retained slices and their actual |
| 10 | metrics. The resulting compactness holds at every sequence index. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set Filter |
| 16 | open scoped Manifold ContDiff Bundle Topology |
| 17 | |
| 18 | namespace PoincareMT.M35.OrdinaryRealization |
| 19 | |
| 20 | /-- Theorem 12.28's retained complete slices have compact closures of their metric balls |
| 21 | (pp. 323-324). -/ |
| 22 | theorem isCompact_closure_ball (P : M35StandardCapPredecessors) |
| 23 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 24 | {t : ℝ} (ht : t ∈ Ico 0 E.flow.base.lifetime) |
| 25 | (p : (slice (Ico 0 E.flow.base.lifetime) t).carrier) (r : ℝ) : |
| 26 | IsCompact (closure ((metric E.flow.base.flow t).ball p r)) := by |
| 27 | let : ConnectedSpace (slice (Ico 0 E.flow.base.lifetime) t).carrier := |
| 28 | (sliceDiffeomorph ht).toHomeomorph.connectedSpace_iff.mpr inferInstance |
| 29 | exact Proofs.M09.isCompact_closure_metric_ball (metric E.flow.base.flow t) |
| 30 | ((complete_iff P E.flow.base.flow ht).mpr (E.complete t ht)) p r |
| 31 | |
| 32 | /-- Theorem 11.1's compact-base-ball hypothesis holds on the same actual blowup sequence. |
| 33 | Used in Theorem 12.28, pp. 323-324. -/ |
| 34 | theorem blowupSequence_balls_compact (P : M35StandardCapPredecessors) |
| 35 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 36 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 37 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 38 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) : |
| 39 | BlowupBaseBallsCompact (blowupSequence P E t x ht hR) := by |
| 40 | intro A _ |
| 41 | exact Eventually.of_forall (fun k => isCompact_closure_ball P E (ht k) _ _) |
| 42 | |
| 43 | end PoincareMT.M35.OrdinaryRealization |