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.StandardCap.PersistenceGeometry |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.ExistenceData |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.UniquenessData |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.Metric.OperationData |
| 5 | |
| 6 | /-! |
| 7 | Adapted from Mapher `PoincareMT/Definitions/M44CapPersistence.lean` at |
| 8 | `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. Declaration bodies are retained; |
| 9 | see `references/ricci-flow/mapher/surgery-adapters-port.json`. |
| 10 | -/ |
| 11 | |
| 12 | /-! |
| 13 | # M44 repaired surgery-cap persistence data |
| 14 | |
| 15 | This wrapper keeps the exact Proposition 16.5 alternative: a cap either has a |
| 16 | standard-flow comparison cylinder on its assigned interval or disappears at a |
| 17 | later surgery. The standard-cap and metric-surgery certificates are retained |
| 18 | alongside the universal persistence operation. |
| 19 | The forward estimates on the tracked cap region are part of M44's conclusion |
| 20 | construction; callers supply canonicality, pinching and fixed scales. |
| 21 | -/ |
| 22 | |
| 23 | set_option autoImplicit false |
| 24 | |
| 25 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 26 | |
| 27 | universe u |
| 28 | |
| 29 | namespace PoincareMT |
| 30 | |
| 31 | structure RepairedCapPersistenceData (g₀ : StandardInitialMetric) where |
| 32 | standard_cap : RepairedStandardCapExistenceData g₀ |
| 33 | /-- M35 supplies the uniqueness and canonical comparison package for the |
| 34 | selected standard-cap flow used by Proposition 16.5. -/ |
| 35 | standard_cap_uniqueness : |
| 36 | Nonempty (RepairedStandardCapUniquenessData g₀ standard_cap) |
| 37 | metric_surgery : RepairedMetricSurgeryData.{u} g₀ |
| 38 | proposition_16_5 : ∀ (p : SurgeryParameterPrefix metric_surgery.constants) |
| 39 | (rNext : ℝ), |
| 40 | p.setup.standard_initial = g₀ → |
| 41 | 0 < rNext → rNext ≤ p.r ⟨p.i, Nat.lt_succ_self _⟩ → |
| 42 | ∀ A eta theta : ℝ, 0 < A → 0 < eta → 0 < theta → theta < 1 → |
| 43 | ∃ deltaBar : ℝ, 0 < deltaBar ∧ |
| 44 | ∀ (F : SurgeryFlowData.{u}) (O : SurgeryObservation F), |
| 45 | HEq O.standard_flow p.setup.standard_flow → |
| 46 | SurgeryFixedScalesOn p.setup F O |
| 47 | (surgeryEpochStart (p.i - 1)) rNext deltaBar → |
| 48 | SurgeryFlowAdmissible F → |
| 49 | SurgeryFlowPinched F → |
| 50 | SurgeryCanonicalOn F (surgeryObservationInterval O) rNext → |
| 51 | ∀ (t : ℝ) (hT : t ∈ F.surgery_times) |
| 52 | [Nonempty (F.slice t).carrier], |
| 53 | t ∈ surgeryObservationInterval O → |
| 54 | surgeryEpochStart (p.i - 1) ≤ t → |
| 55 | F.parameters.delta t ≤ deltaBar → |
| 56 | ∀ i : Fin (F.event t hT).cap_count, |
| 57 | SurgeryCapPersistenceAlternative F O t hT i A eta theta |
| 58 | |
| 59 | end PoincareMT |