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.Uniqueness.Imports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.SelectedCertificate |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.SelectedFullStaticNeck |
| 4 | |
| 5 | /-! |
| 6 | # Full quantitative caps on the actual selected flow |
| 7 | |
| 8 | Morgan-Tian Definition 9.72 and Theorem 12.28, pp. 323-324. |
| 9 | The entire two neck comparisons now follow from actual finite-jet and |
| 10 | center-scalar convergence. All certificate fields use the same images |
| 11 | and actual target connection, with a uniform explicit cap constant. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | namespace PoincareMT.M35.OrdinaryRealization |
| 20 | |
| 21 | /-- Theorem 12.28: sufficiently fine compact limit caps transfer |
| 22 | as actual complete quantitative cap certificates, with exact epsilon |
| 23 | and image sets and without additional metric-comparison hypotheses. -/ |
| 24 | theorem blowupSequence_cap_certificate |
| 25 | (P : M35StandardCapPredecessors) : |
| 26 | ∃ delta : ℝ, 0 < delta ∧ ∀ {g₀ : StandardInitialMetric} |
| 27 | (E : RepairedStandardCapExistenceData g₀) |
| 28 | (NC : StandardFlowNoncollapsingCertificate E.flow) |
| 29 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 30 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 31 | (_htone : Tendsto t atTop (𝓝 1)) |
| 32 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 33 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 34 | (blowupBackwardInterval ⊤)) (j : ℕ), |
| 35 | letI : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 36 | letI : MeasurableSpace L.limit.carrier.carrier := L.limit.carrier.measurableSpace |
| 37 | letI : BorelSpace L.limit.carrier.carrier := L.limit.carrier.borelSpace |
| 38 | letI : ChartedSpace (EuclideanSpace ℝ (Fin 3)) L.limit.carrier.carrier := |
| 39 | L.limit.carrier.chartedSpace |
| 40 | letI : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 41 | letI : T2Space L.limit.carrier.carrier := L.limit.carrier.t2Space |
| 42 | letI : T3Space L.limit.carrier.carrier := L.limit.carrier.t3Space |
| 43 | letI : ConnectedSpace L.limit.carrier.carrier := L.limit.connectedSpace |
| 44 | ∀ N : CapCertificate (L.limit.flow.metric 0), N.epsilon ≤ delta → |
| 45 | N.connection = L.limit.flow.connection 0 → |
| 46 | IsCompact (closure N.carrier) → closure N.carrier ⊆ L.exhaustion.space j → |
| 47 | ∀ᶠ k in atTop, |
| 48 | let f : L.limit.carrier.carrier → StandardCapSpace := fun z => |
| 49 | ((L.embedding k).forward 0 |
| 50 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ z).val |
| 51 | ∃ C : CapCertificate (E.flow.metric (t (L.subsequence k))), |
| 52 | C.epsilon = N.epsilon ∧ |
| 53 | C.cap_constant = 8 * N.cap_constant + 16 / NC.kappa ∧ |
| 54 | C.connection = E.flow.connection (t (L.subsequence k)) ∧ |
| 55 | C.carrier = f '' N.carrier ∧ C.core = f '' N.core ∧ |
| 56 | C.closed_core = f '' N.closed_core ∧ C.boundary_sphere = f '' N.boundary_sphere ∧ |
| 57 | C.model_kind = N.model_kind := by |
| 58 | obtain ⟨delta, hdelta, htransfer⟩ := |
| 59 | blowupSequence_cap_certificate_of_full_neck_comparisons P |
| 60 | refine ⟨delta, hdelta, ?_⟩ |
| 61 | intro g₀ E NC t x ht htone hR L j |
| 62 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 63 | let : MeasurableSpace L.limit.carrier.carrier := L.limit.carrier.measurableSpace |
| 64 | have : BorelSpace L.limit.carrier.carrier := L.limit.carrier.borelSpace |
| 65 | let : ChartedSpace (EuclideanSpace ℝ (Fin 3)) L.limit.carrier.carrier := |
| 66 | L.limit.carrier.chartedSpace |
| 67 | have : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 68 | have : T2Space L.limit.carrier.carrier := L.limit.carrier.t2Space |
| 69 | have : T3Space L.limit.carrier.carrier := L.limit.carrier.t3Space |
| 70 | have : ConnectedSpace L.limit.carrier.carrier := L.limit.connectedSpace |
| 71 | intro N hfine hconnection hcompact hstage |
| 72 | have he : N.epsilon ≤ 1 / 24 := N.epsilon_le_threshold.trans (by norm_num) |
| 73 | have hend := blowupSequence_full_static_neck_close P E t x ht hR L N.end_neck |
| 74 | (N.end_neck_epsilon.symm ▸ he) (N.end_neck_connection.trans hconnection) |
| 75 | (hcompact.of_isClosed_subset isClosed_closure (closure_mono N.end_neck_subset)) j |
| 76 | ((closure_mono N.end_neck_subset).trans hstage) |
| 77 | have hboundary := blowupSequence_full_static_neck_close P E t x ht hR L N.boundary_neck |
| 78 | (N.boundary_neck_epsilon.symm ▸ he) (N.boundary_neck_connection.trans hconnection) |
| 79 | (hcompact.of_isClosed_subset isClosed_closure (closure_mono N.boundary_neck_subset)) j |
| 80 | ((closure_mono N.boundary_neck_subset).trans hstage) |
| 81 | apply htransfer E NC t x ht htone hR L j N hfine hconnection hcompact hstage |
| 82 | filter_upwards [hend, hboundary] with k hkE hkB |
| 83 | exact ⟨N.end_neck_epsilon ▸ hkE, N.boundary_neck_epsilon ▸ hkB⟩ |
| 84 | |
| 85 | end PoincareMT.M35.OrdinaryRealization |