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.Map |
| 2 | import PoincareLib.Topology.Manifold.ConnectedSum.Surgery.Local |
| 3 | /-! |
| 4 | # SurgeryComparison repaired comparison-map statement |
| 5 | |
| 6 | The geometric comparison uses a selected M38 local topology witness and |
| 7 | strong admissibility at each nonempty event after a uniform small-epsilon |
| 8 | choice. One map retains the limit isometry, sends the complement into the |
| 9 | actual closed caps, and has global near-unit Lipschitz bounds as the pre-time |
| 10 | approaches surgery. Homotopy, smoothing and degree transport stay in SurgeryComparison.Transport. |
| 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 | /- Morgan--Tian Proposition 15.12 (printed p. 365) and Claim 18.22 |
| 22 | (p. 433), using Claim 13.1/Theorem 13.2 (pp. 331--334). |
| 23 | Choose a positive epsilon threshold before the standard metric and flow. |
| 24 | For every strongly admissible nonempty surgery event below the terminal |
| 25 | accuracy threshold and the strict delta/height cutoffs, take actual parent |
| 26 | and child components, their pulled-back metrics, separating neck spheres, |
| 27 | a selected local topology witness, and the full nonempty inherited open |
| 28 | set fixed by `retained_eq`. Construct one continuous map extending the |
| 29 | retained limit isometry with open retained target image. Its complement |
| 30 | maps into the actual closed caps. For every eta > 0, the same map is |
| 31 | (1 + eta)-Lipschitz for all sufficiently late actual pre-time metrics. |
| 32 | The local collapse's constant tail glues the discarded branches; compact |
| 33 | regular metric convergence supplies the eta-dependent time window. |
| 34 | This is the near-unit consequence needed by Claim 18.22, not verbatim |
| 35 | coverage of Proposition 15.12's exact-unit clause. Remark 15.13 records |
| 36 | the nonseparating obstruction. See the source derivation in |
| 37 | `reviews/contracts/2026-09-18-m39-repair-contract.md` and the unresolved |
| 38 | legacy exact-unit boundary in |
| 39 | `reviews/errata/2026-09-18-m39-comparison-provenance.md`. -/ |
| 40 | structure RepairedComparisonMapTheory : Prop where |
| 41 | comparison : ∃ epsilon₀ : ℝ, 0 < epsilon₀ ∧ |
| 42 | ∀ {g₀ : StandardInitialMetric}, |
| 43 | ∀ D : RepairedSurgeryFlowData.{u} g₀, |
| 44 | terminalAccuracyFactor * D.flow.parameters.epsilon ≤ epsilon₀ → |
| 45 | Nonempty (RepairedComparisonMapData D) |
| 46 | |
| 47 | end PoincareMT |