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.CapGeometry.CanonicalTimeAssembly |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.TerminalCap.BoundedTipThreshold |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.TerminalCap.SelectedCapAssembly |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.TerminalCap.SelectedCollars |
| 6 | |
| 7 | /-! |
| 8 | # The full canonical alternatives on the selected standard cap |
| 9 | |
| 10 | Morgan-Tian Theorem 12.32, pp. 326-327, with the repaired initial |
| 11 | closed-cap boundary. The actual bounded-tip collars, retained analytic |
| 12 | controls and noncollapse produce the terminal cap. The initial-slab |
| 13 | and prescribed-window neck theorems then give one cap constant before |
| 14 | every point and time. No geometric or analytic producer is assumed. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | |
| 19 | open Set Filter |
| 20 | open scoped Manifold ContDiff Bundle Topology |
| 21 | |
| 22 | namespace PoincareMT.M35.Uniqueness |
| 23 | |
| 24 | open OrdinaryRealization |
| 25 | |
| 26 | /-- Theorem 12.32, pp. 326-327: every point of the actual selected |
| 27 | flow has one of the three literal frozen alternatives, at the requested |
| 28 | epsilon and with one positive cap constant independent of point and time. -/ |
| 29 | theorem standard_cap_canonical |
| 30 | (P : M35StandardCapPredecessors) {g₀ : StandardInitialMetric} |
| 31 | (E : RepairedStandardCapExistenceData g₀) (epsilon : ℝ) |
| 32 | (he : 0 < epsilon) (hehalf : epsilon < 1 / 2) : |
| 33 | ∃ C : ℝ, 0 < C ∧ ∀ t ∈ Ico 0 E.flow.base.lifetime, |
| 34 | ∀ x : StandardCapSpace, |
| 35 | StandardCanonicalAlternative E.atlas E.flow t x epsilon C := by |
| 36 | apply canonical_of_bounded_tip_caps P E epsilon he hehalf |
| 37 | intro D hD |
| 38 | apply exists_bounded_tip_cap_threshold_of_selected P E epsilon D |
| 39 | intro t x ht hR hd L kappa A |
| 40 | obtain ⟨s, _F, hs, _hF, hcollars⟩ := |
| 41 | blowupSequence_bounded_tip_radial_collars P E t x ht hR L A he hehalf hD hd |
| 42 | exact blowupSequence_caps_of_radial_collars P E t x ht hR L A he hehalf hD hd hs hcollars |
| 43 | |
| 44 | end PoincareMT.M35.Uniqueness |