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.Comparison.Extension.Theory |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Comparison.Extension.Distance |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Comparison.Extension.Branches.Construction |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.Comparison.Extension.Gluing |
| 5 | /-! |
| 6 | # SurgeryComparison comparison-map proof entry |
| 7 | |
| 8 | The separating branch construction and constant-tail gluing give one |
| 9 | continuous extension. Compact regular metric convergence gives its late |
| 10 | near-unit distance bounds for the actual parent and child metrics. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT |
| 20 | |
| 21 | /- |
| 22 | Morgan--Tian Proposition 15.12 (printed p. 365) and Claim 18.22 |
| 23 | (p. 433), with the local collapse of Claim 13.1/Theorem 13.2 |
| 24 | (pp. 331--334). Uniformly in the standard metric and flow, choose a positive |
| 25 | epsilon threshold. For each strongly admissible nonempty event with strict |
| 26 | delta/height bounds, separating surgery spheres, a selected M38 topology |
| 27 | witness and actual parent/child metrics, construct one continuous comparison |
| 28 | map. It agrees with retention on the full nonempty inherited open region, |
| 29 | preserves the limit metric there, has open retained target image, and sends |
| 30 | the complement into the actual closed caps. For each eta > 0, this same map |
| 31 | is globally (1 + eta)-Lipschitz at every sufficiently late pre-time. MetricSurgery's |
| 32 | constant collapse tail extends over each discarded branch; its static |
| 33 | distance estimate and compact regular metric convergence give the bound. |
| 34 | This exports the near-unit consequence used by Claim 18.22. The stronger |
| 35 | exact-unit legacy clause remains unresolved, as recorded in |
| 36 | `reviews/errata/2026-09-18-m39-comparison-provenance.md`; the full derivation |
| 37 | is `reviews/contracts/2026-09-18-m39-repair-contract.md`. |
| 38 | SurgeryComparison.Transport owns controlled smoothing, degree, homotopy and pi3 transport. Remark |
| 39 | 15.13 explains the separating-sphere restriction. |
| 40 | -/ |
| 41 | theorem repairedComparisonMap : RepairedComparisonMapTheory.{u} := by |
| 42 | refine ⟨⟨1, zero_lt_one, ?_⟩⟩ |
| 43 | intro g₀ D _hε |
| 44 | refine ⟨{ comparison := ?_ }⟩ |
| 45 | intro T hT hNonempty I _hdelta _hheight |
| 46 | obtain ⟨B⟩ := SurgeryComparison.comparisonBranches_nonempty I |
| 47 | obtain ⟨G⟩ := SurgeryComparison.comparisonExtension_of_branches I B |
| 48 | exact ⟨SurgeryComparison.comparisonConclusionOfExtension I G⟩ |
| 49 | |
| 50 | end PoincareMT |