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.LossData |
| 2 | |
| 3 | /-! |
| 4 | Adapted from Mapher `PoincareMT/Definitions/M50FinitePrefix.lean` at |
| 5 | `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. Declaration bodies are retained; |
| 6 | see `references/ricci-flow/mapher/surgery-adapters-port.json`. |
| 7 | -/ |
| 8 | |
| 9 | /-! |
| 10 | # M50 repaired finite-prefix flow data |
| 11 | |
| 12 | This package records the finite-horizon event bound supplied by M49 and its |
| 13 | compact-set and no-accumulation consequences for the same actual flow. |
| 14 | Finite epoch continuation is owned by M48; it is not an additional universal |
| 15 | service hidden in this volume-loss consequence. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | |
| 20 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT |
| 25 | |
| 26 | structure RepairedFinitePrefixData |
| 27 | (F : SurgeryFlowData.{u}) |
| 28 | (C : RepairedVolumeLossControls F) |
| 29 | (V : RepairedVolumeLossData F C) where |
| 30 | /-- The concrete M49 certificate is retained, rather than a phantom index. -/ |
| 31 | volume_loss : RepairedVolumeLossData F C |
| 32 | volume_loss_eq : volume_loss = V |
| 33 | /-- Compact-set finiteness is the source-facing form of the M49 bound. -/ |
| 34 | local_finite : ∀ Kset : Set ℝ, IsCompact Kset → |
| 35 | (F.surgery_times ∩ Kset).Finite |
| 36 | /-- This is the finite-horizon consequence, stated for every finite center. -/ |
| 37 | no_finite_accumulation : ∀ T : ℝ, |
| 38 | ∃ d : ℝ, 0 < d ∧ |
| 39 | (F.surgery_times ∩ Set.Ioo (T - d) (T + d)).Finite |
| 40 | |
| 41 | end PoincareMT |