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.OperationData |
| 2 | |
| 3 | /-! |
| 4 | Adapted from Mapher `PoincareMT/Statements/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 statement |
| 11 | |
| 12 | Every standard initial metric receives uniform surgery constants and an |
| 13 | operation certificate for each admissible neck. |
| 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 | /- The source contract is Claim 13.1, Theorem 13.2, Definition 13.3, and |
| 25 | Lemma 13.4 (Morgan--Tian, printed pp. 331--334), specialized to the |
| 26 | standard initial metric and every admissible epsilon-neck. -/ |
| 27 | structure RepairedMetricSurgeryTheory : Prop where |
| 28 | surgery : ∀ g₀ : StandardInitialMetric, |
| 29 | Nonempty (RepairedMetricSurgeryData.{u} g₀) |
| 30 | |
| 31 | end PoincareMT |