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.Geometry |
| 2 | |
| 3 | /-! |
| 4 | Adapted from Mapher `PoincareMT/Definitions/M45StandardGeometry.lean` at |
| 5 | `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. Declaration bodies are retained; |
| 6 | see `references/ricci-flow/mapher/surgery-adapters-port.json`. |
| 7 | -/ |
| 8 | |
| 9 | /-! |
| 10 | The standard-flow cap is expressed in the common Definition 9.72 certificate. |
| 11 | The +1 margin supplies its uniform strict bounds. Remark 9.73 permits reversing |
| 12 | the end-neck coordinate; the selected carrier, core and connection stay fixed. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | namespace PoincareMT |
| 20 | |
| 21 | structure M45StandardCapRefinement {A : StandardCylinderAtlas} |
| 22 | {g₀ : StandardInitialMetric} {F : MaximalStandardCapFlow g₀} |
| 23 | {t gamma C : ℝ} {x : StandardCapSpace} |
| 24 | (N : StandardCapNeighborhood A F t gamma C x) where |
| 25 | cap : CapCertificate (F.metric t) |
| 26 | epsilon_eq : cap.epsilon = gamma |
| 27 | constant_eq : cap.cap_constant = C + 1 |
| 28 | connection_eq : cap.connection = F.connection t |
| 29 | carrier_eq : cap.carrier = N.carrier |
| 30 | closed_core_eq : cap.closed_core = N.closed_core |
| 31 | model_eq : cap.model_kind = .euclidean |
| 32 | contains : x ∈ cap.core |
| 33 | |
| 34 | /-- The actual standard flow, with literal intrinsic cap or evolving-neck |
| 35 | geometry. The necks retain their exact time windows and the initial alternative |
| 36 | avoids the closed radius-`A0 + 4` cap in the initial standard metric. -/ |
| 37 | inductive M45StandardCanonicalAlternative (A : StandardCylinderAtlas) |
| 38 | {g₀ : StandardInitialMetric} (F : MaximalStandardCapFlow g₀) |
| 39 | (t : ℝ) (x : StandardCapSpace) (gamma C : ℝ) : Prop |
| 40 | | cap (N : CapCertificate (F.metric t)) |
| 41 | (epsilon_eq : N.epsilon = gamma) |
| 42 | (constant_le : N.cap_constant ≤ C) |
| 43 | (connection_eq : N.connection = F.connection t) |
| 44 | (model_eq : N.model_kind = .euclidean) |
| 45 | (contains : x ∈ N.core) |
| 46 | | initial_neck |
| 47 | (N : StandardEvolvingNeck A F t gamma x |
| 48 | (Set.Icc (-t * (F.connection t).scalarCurvature x) 0)) |
| 49 | (initial_disjoint : Disjoint N.patch.carrier |
| 50 | {y | g₀.metric.edist 0 y ≤ ENNReal.ofReal (g₀.cylindrical_end.radius + 4)}) |
| 51 | | evolving_neck |
| 52 | (N : StandardEvolvingNeck A F t gamma x (Set.Ioc (-(1 + gamma)) 0)) |
| 53 | |
| 54 | end PoincareMT |