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.Metric.Local |
| 2 | |
| 3 | /-! |
| 4 | Adapted from Mapher `PoincareMT/Definitions/M36MetricSurgery.lean` at |
| 5 | `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. Declaration bodies are retained; |
| 6 | see `references/ricci-flow/mapher/surgery-adapters-port.json`. |
| 7 | -/ |
| 8 | |
| 9 | /-! |
| 10 | # M36 repaired metric-surgery data |
| 11 | |
| 12 | The operation retains the actual collapse map, inserted standard-cap chart, |
| 13 | metric/curvature controls, distance decrease, and finite-jet comparison. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT |
| 23 | |
| 24 | structure RepairedMetricSurgeryData (g₀ : StandardInitialMetric) where |
| 25 | constants : MetricSurgeryConstants |
| 26 | profile : SurgeryProfileLargeQ g₀ constants |
| 27 | /-- Explicit proof-owned form of the source choice `C₀ \gg q`. -/ |
| 28 | profile_dominance : 100 * constants.q < constants.C₀ |
| 29 | operation : ∀ {M : Type u} [TopologicalSpace M] |
| 30 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 31 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 32 | [T2Space M] [T3Space M] [SecondCountableTopology M], |
| 33 | ∀ {g : RiemannianMetric 3 M} |
| 34 | (I : MetricSurgeryInput constants g), |
| 35 | Nonempty (MetricSurgeryResult g₀ I) |
| 36 | |
| 37 | end PoincareMT |