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.Generalized.BoundedDistance.DenseTheory |
| 2 | import PoincareLib.Geometry.RicciFlow.Blowup.Sequence |
| 3 | |
| 4 | /-! |
| 5 | Adapted from Mapher `PoincareMT/Definitions/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 data |
| 12 | |
| 13 | Morgan--Tian Theorem 11.1, pp. 267--271, first applies the bounded-distance |
| 14 | argument of Theorem 10.2 to each member of a generalized blowup sequence. The |
| 15 | sequence has changing slice carriers, so this interface uses the actual |
| 16 | `GeneralizedRicciFlowData` objects from Chapter 11 rather than a fixed-carrier |
| 17 | ancient-flow coercion or the provisional boxed-flow compatibility layer. |
| 18 | -/ |
| 19 | |
| 20 | set_option autoImplicit false |
| 21 | |
| 22 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | namespace PoincareMT |
| 27 | |
| 28 | /-! Primitive hypotheses for M28's dense-time consequence of Theorem 10.2. -/ |
| 29 | structure DenseGeneralizedBoundedDistanceHypotheses |
| 30 | (S : GeneralizedBlowupSequence.{u}) (epsilon C : ℝ) where |
| 31 | branch : ∀ k, generalizedPinchedOrNonnegative (S.flow k) |
| 32 | canonical : ∀ k, generalizedEarlierDenseStrongCanonicalNeighborhoods |
| 33 | (S.flow k) epsilon C (S.base k).1 (S.base k).2 |
| 34 | |
| 35 | /-! Compatibility setup for the primitive sequence data. No current theorem |
| 36 | consumes this wrapper; M29's statement chooses its threshold independently |
| 37 | through the actual M28 service. -/ |
| 38 | structure GeneralizedBlowupSetup where |
| 39 | sequence : GeneralizedBlowupSequence.{u} |
| 40 | epsilon₀ : ℝ |
| 41 | epsilon₀_pos : 0 < epsilon₀ |
| 42 | epsilon₀_le_one_two_hundred : epsilon₀ ≤ 1 / 200 |
| 43 | epsilon : ℝ |
| 44 | epsilon_pos : 0 < epsilon |
| 45 | epsilon_le : epsilon ≤ epsilon₀ |
| 46 | constant : ℝ |
| 47 | constant_pos : 0 < constant |
| 48 | hypotheses : DenseGeneralizedBoundedDistanceHypotheses sequence epsilon constant |
| 49 | |
| 50 | end PoincareMT |