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.Transport.Theory |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Comparison.Transport.Construction |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Comparison.Smoothing.BasedApproximation |
| 4 | /-! |
| 5 | # SurgeryComparison.Transport comparison-map homotopy proof entry |
| 6 | |
| 7 | The numbered proof file assembles the topology and quantitative smoothing |
| 8 | of the literal comparison selected by the supplied SurgeryComparison data. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | namespace PoincareMT |
| 18 | |
| 19 | /-- |
| 20 | Morgan--Tian Proposition 15.12 (printed p. 365), the cap-image comparison |
| 21 | on p. 428, and the Poincare-specific transport discussion on pp. 430--431 |
| 22 | support the near-unit map used in Claim 18.22 (p. 433). Given arbitrary |
| 23 | Poincare.Topology and SurgeryComparison services, choose a positive bound on terminal accuracy |
| 24 | before the standard metric and flow. For each flow satisfying that bound |
| 25 | and each realized SurgeryComparison provider, take any nonempty separating event with |
| 26 | strict delta/height bounds, closed simply connected parent and child |
| 27 | components, the actual retained region and a parent integral orientation. |
| 28 | Equip the exact selected SurgeryComparison comparison map with a child orientation, |
| 29 | degree one, a homotopy equivalence whose forward map is that comparison, |
| 30 | and bijectivity of its actual based pi3 map. For every positive eta, all |
| 31 | sufficiently late pre-times admit smooth (1 + eta)-Lipschitz approximants |
| 32 | with the exact target basepoint, the same based pi3 map and the same degree. |
| 33 | |
| 34 | Poincare.Topology supplies orientability, CW and homotopy-three-sphere data. The local |
| 35 | degree computation, map-level homology/homotopy naturality and Whitehead |
| 36 | argument remain internal SurgeryComparison.Transport work. Quantitative smoothing and exact-point |
| 37 | correction also belong here; C0 smooth approximation alone is insufficient. |
| 38 | The complete derivation is `reviews/contracts/2026-09-18-m40-full-contract.md`. |
| 39 | The returned subtype retains the actual SurgeryComparison map for M57 and the width |
| 40 | argument. No Poincare endpoint is an input or output. The unused legacy |
| 41 | comparison admission was retired; see |
| 42 | `reviews/declarations/2026-09-18-m39-retirement-validation.md`. The stronger |
| 43 | exact-unit source assertion and the general non-simply-connected branch |
| 44 | remain unclaimed by this theorem. |
| 45 | -/ |
| 46 | theorem repairedComparisonHomotopy : RepairedComparisonHomotopyTheory.{u} := by |
| 47 | constructor |
| 48 | intro P G39 |
| 49 | obtain ⟨epsilon, hepsilon, _⟩ := G39.comparison |
| 50 | refine ⟨epsilon, hepsilon, ?_⟩ |
| 51 | intro g₀ D _ K _ |
| 52 | refine ⟨{ transport := ?_ }⟩ |
| 53 | intro T hT _ input hdelta hh |
| 54 | let Q := Classical.choice |
| 55 | (K.comparison T hT input.toRepairedComparisonMapInput hdelta hh) |
| 56 | exact ⟨⟨SurgeryComparison.Transport.comparisonHomotopyConclusion P Q |
| 57 | (SurgeryComparison.Transport.comparison_smooth_approximants Q), rfl⟩⟩ |
| 58 | |
| 59 | end PoincareMT |