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.Volume.FinitePrefixTheory |
| 2 | import PoincareLib.Geometry.RicciFlow.Volume.Surgery.Finiteness.Observed |
| 3 | import PoincareLib.Geometry.RicciFlow.Volume.Surgery.Finiteness.Compact |
| 4 | |
| 5 | /-! |
| 6 | Adapted from Mapher `PoincareMT/Proofs/M50.lean` at |
| 7 | revision `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. |
| 8 | |
| 9 | # Finite surgery counts and no finite accumulation |
| 10 | |
| 11 | Natural-language theorem: a raw changing-carrier flow with its exact M49 |
| 12 | volume-loss certificate has finite surgery sets on compact time intervals and no finite |
| 13 | accumulation on that same flow. M48 owns finite epoch continuation. This |
| 14 | milestone adds no generic extension, global schedule or terminal-time claim. |
| 15 | Its input is the produced certificate on that flow, not a whole M49 theory |
| 16 | whose freshly chosen cutoff might be unavailable for the given flow. |
| 17 | |
| 18 | Source: Morgan--Tian, Theorem 15.9, pp. 363--366, and Section 17.2, |
| 19 | especially Lemma 17.12, MT2007.txt pp. 410--411 (arXiv V2 pp. 395--397). |
| 20 | The corrected M49 volume scaling is recorded in |
| 21 | `reviews/errata/2026-09-10-surgery-extinction-audit.md`. |
| 22 | |
| 23 | The finite-subset argument is recorded in |
| 24 | `reviews/contracts/2026-09-20-m50-finite-subsets.md`. |
| 25 | -/ |
| 26 | |
| 27 | set_option autoImplicit false |
| 28 | |
| 29 | universe u |
| 30 | |
| 31 | namespace PoincareMT |
| 32 | |
| 33 | /-- The exact volume-loss certificate gives compact-set finiteness and no |
| 34 | finite accumulation (Morgan-Tian Lemma 17.12 and Section 17.2, pp. 410-411). -/ |
| 35 | theorem repairedFinitePrefix : RepairedFinitePrefixTheory.{u} := by |
| 36 | refine ⟨?_⟩ |
| 37 | intro F C V |
| 38 | have hlocal := SurgeryFiniteness.surgery_times_inter_compact_finite F C V |
| 39 | refine ⟨⟨V, rfl, hlocal, ?_⟩⟩ |
| 40 | intro T |
| 41 | refine ⟨1, zero_lt_one, ?_⟩ |
| 42 | exact (hlocal (Set.Icc (T - 1) (T + 1)) isCompact_Icc).subset |
| 43 | (Set.inter_subset_inter_right _ Set.Ioo_subset_Icc_self) |
| 44 | |
| 45 | end PoincareMT |