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.CanonicalInduction.Generalized.GeneralizedBridgeIsometry |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Geometry.CanonicalGeometry.CapIsometry |
| 3 | |
| 4 | /-! |
| 5 | # Full canonical caps on a regular generalized slice |
| 6 | |
| 7 | The verified exact-isometry cap theorem transports every frozen field, |
| 8 | including both necks and actual core balls, with unchanged constants. |
| 9 | The nonsurgery hypothesis ensures the whole physical slice is present. |
| 10 | Source: Morgan--Tian Definition 9.72 and Proposition 14.12. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Bundle Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M47 |
| 21 | |
| 22 | variable {F : SurgeryFlowData.{u}} {W : M33RegularHistoryWindow F} |
| 23 | (H : M33RegularHistoryData W) {t : ℝ} (ht : t ∈ H.generalized.interval) |
| 24 | (hregular : t ∉ F.surgery_times) |
| 25 | |
| 26 | include hregular |
| 27 | |
| 28 | /-- A physical cap at a regular time gives the same full generalized |
| 29 | canonical alternative, retaining epsilon and its original cap constant. -/ |
| 30 | theorem regular_history_cap_control {epsilon C : ℝ} |
| 31 | (x : (H.generalized.slice t).carrier) (N : CapCertificate (F.metric t)) |
| 32 | (hepsilon : N.epsilon = epsilon) (hconstant : N.cap_constant ≤ C) |
| 33 | (hx : H.history.forward t ht x ∈ N.core) : |
| 34 | Nonempty (GeneralizedCanonicalControl (F := H.generalized) t x epsilon C) := by |
| 35 | let f := regular_history_slice_diffeomorph H t ht hregular |
| 36 | obtain ⟨N', he, hC, hD, hcore, _⟩ := N.exists_isometric_image_cap f.symm |
| 37 | (regular_history_inverse_homothety H ht hregular) (H.generalized.connection t) |
| 38 | refine ⟨GeneralizedCanonicalControl.cap N' (he.trans hepsilon) |
| 39 | (hC ▸ hconstant) hD ?_⟩ |
| 40 | rw [hcore] |
| 41 | exact ⟨f x, hx, f.symm_apply_apply x⟩ |
| 42 | |
| 43 | end PoincareMT.M47 |