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.Blowup.Controlled.Bounds |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.DenseTheory |
| 3 | |
| 4 | /-! |
| 5 | Adapted from Mapher `PoincareMT/Statements/M29GeneralizedDistance.lean` at |
| 6 | `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. Declaration bodies are retained; |
| 7 | see `references/ricci-flow/mapher/surgery-adapters-port.json`. |
| 8 | -/ |
| 9 | |
| 10 | /-! |
| 11 | # M29 generalized bounded-distance statement |
| 12 | |
| 13 | Natural-language corollary (the opening of Morgan--Tian's proof of Theorem |
| 14 | 11.1, p. 269, applying Theorem 10.2, pp. 245--246). First choose |
| 15 | one universal small epsilon0, then 0 < epsilon <= epsilon0 and C > 0. For |
| 16 | every generalized blowup sequence in the nonnegative-time normalization whose |
| 17 | members satisfy the Hamilton--Ivey or nonnegative-curvature alternative and whose earlier |
| 18 | high-curvature points have explicit strong canonical-neighborhood certificates, |
| 19 | the scalar curvature on every fixed normalized final-time ball is eventually |
| 20 | bounded by a constant times the base scalar. The conclusion is the concrete |
| 21 | `GeneralizedBlowupBoundedDistance` predicate; compactness and limit extraction |
| 22 | belong to M30. Appendix A.19--A.21 and the errata govern the neck/cap |
| 23 | certificates used by the proof. |
| 24 | -/ |
| 25 | |
| 26 | set_option autoImplicit false |
| 27 | |
| 28 | universe u |
| 29 | |
| 30 | namespace PoincareMT |
| 31 | |
| 32 | structure DenseGeneralizedBoundedDistanceTheory : Prop where |
| 33 | /-- The applied M28 threshold and estimates, with no remaining theory premise. -/ |
| 34 | constants : ∃ epsilon₀ : ℝ, 0 < epsilon₀ ∧ epsilon₀ ≤ 1 / 200 ∧ |
| 35 | ∀ epsilon : ℝ, 0 < epsilon → epsilon ≤ epsilon₀ → |
| 36 | ∀ C : ℝ, 0 < C → |
| 37 | ∀ (S : GeneralizedBlowupSequence.{u}), |
| 38 | DenseGeneralizedBoundedDistanceHypotheses S epsilon C → |
| 39 | GeneralizedBlowupBoundedDistance S |
| 40 | |
| 41 | end PoincareMT |