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.TransportedCertificate |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.FullCoreRadii |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.SelectedCoreVolume |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.Transport.TransportedCapSize |
| 6 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.Transport.TransportedCapOperators |
| 7 | |
| 8 | /-! |
| 9 | # Cap certificates on the actual selected original flow |
| 10 | |
| 11 | Morgan-Tian Definition 9.72 in Theorem 12.28, pp. 323-324. |
| 12 | Every quantitative clause is supplied by the checked convergence, |
| 13 | curvature-ball, and noncollapse lemmas. The remaining metric comparison |
| 14 | is precisely the original full end and boundary neck at each actual |
| 15 | transported center scalar; no stronger topology is presumed. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | |
| 20 | open Set Filter |
| 21 | open scoped Manifold ContDiff Bundle Topology |
| 22 | |
| 23 | namespace PoincareMT.M35.OrdinaryRealization |
| 24 | |
| 25 | /-- Theorem 12.28: sufficiently fine limit caps transfer to actual |
| 26 | static caps with one explicit uniform constant, provided the two entire |
| 27 | neck comparisons persist at their actual target center scalars. -/ |
| 28 | theorem blowupSequence_cap_certificate_of_full_neck_comparisons |
| 29 | (P : M35StandardCapPredecessors) : |
| 30 | ∃ delta : ℝ, 0 < delta ∧ ∀ {g₀ : StandardInitialMetric} |
| 31 | (E : RepairedStandardCapExistenceData g₀) |
| 32 | (NC : StandardFlowNoncollapsingCertificate E.flow) |
| 33 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 34 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 35 | (_htone : Tendsto t atTop (𝓝 1)) |
| 36 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 37 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 38 | (blowupBackwardInterval ⊤)) (j : ℕ), |
| 39 | letI : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 40 | letI : MeasurableSpace L.limit.carrier.carrier := L.limit.carrier.measurableSpace |
| 41 | letI : BorelSpace L.limit.carrier.carrier := L.limit.carrier.borelSpace |
| 42 | letI : ChartedSpace (EuclideanSpace ℝ (Fin 3)) L.limit.carrier.carrier := |
| 43 | L.limit.carrier.chartedSpace |
| 44 | letI : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 45 | letI : T2Space L.limit.carrier.carrier := L.limit.carrier.t2Space |
| 46 | letI : T3Space L.limit.carrier.carrier := L.limit.carrier.t3Space |
| 47 | letI : ConnectedSpace L.limit.carrier.carrier := L.limit.connectedSpace |
| 48 | ∀ N : CapCertificate (L.limit.flow.metric 0), N.epsilon ≤ delta → |
| 49 | N.connection = L.limit.flow.connection 0 → |
| 50 | IsCompact (closure N.carrier) → closure N.carrier ⊆ L.exhaustion.space j → |
| 51 | (∀ᶠ k in atTop, |
| 52 | let f : L.limit.carrier.carrier → StandardCapSpace := fun z => |
| 53 | ((L.embedding k).forward 0 |
| 54 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ z).val |
| 55 | RoundCylinderClose N.epsilon 0 (fun z v w => |
| 56 | (E.flow.connection (t (L.subsequence k))).scalarCurvature (f N.end_neck.center) * |
| 57 | roundCylinderPullback (E.flow.metric (t (L.subsequence k))) |
| 58 | (f ∘ N.end_neck.coordinate_map) z v w) ∧ |
| 59 | RoundCylinderClose N.epsilon 0 (fun z v w => |
| 60 | (E.flow.connection (t (L.subsequence k))).scalarCurvature (f N.boundary_neck.center) * |
| 61 | roundCylinderPullback (E.flow.metric (t (L.subsequence k))) |
| 62 | (f ∘ N.boundary_neck.coordinate_map) z v w)) → |
| 63 | ∀ᶠ k in atTop, |
| 64 | let f : L.limit.carrier.carrier → StandardCapSpace := fun z => |
| 65 | ((L.embedding k).forward 0 |
| 66 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ z).val |
| 67 | ∃ C : CapCertificate (E.flow.metric (t (L.subsequence k))), |
| 68 | C.epsilon = N.epsilon ∧ |
| 69 | C.cap_constant = 8 * N.cap_constant + 16 / NC.kappa ∧ |
| 70 | C.connection = E.flow.connection (t (L.subsequence k)) ∧ |
| 71 | C.carrier = f '' N.carrier ∧ C.core = f '' N.core ∧ |
| 72 | C.closed_core = f '' N.closed_core ∧ C.boundary_sphere = f '' N.boundary_sphere ∧ |
| 73 | C.model_kind = N.model_kind := by |
| 74 | obtain ⟨delta, hdelta, hradii⟩ := blowupSequence_cap_closed_core_curvature_balls P |
| 75 | refine ⟨delta, hdelta, ?_⟩ |
| 76 | intro g₀ E NC t x ht htone hR L j |
| 77 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 78 | let : MeasurableSpace L.limit.carrier.carrier := L.limit.carrier.measurableSpace |
| 79 | have : BorelSpace L.limit.carrier.carrier := L.limit.carrier.borelSpace |
| 80 | let : ChartedSpace (EuclideanSpace ℝ (Fin 3)) L.limit.carrier.carrier := |
| 81 | L.limit.carrier.chartedSpace |
| 82 | have : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 83 | have : T2Space L.limit.carrier.carrier := L.limit.carrier.t2Space |
| 84 | have : T3Space L.limit.carrier.carrier := L.limit.carrier.t3Space |
| 85 | have : ConnectedSpace L.limit.carrier.carrier := L.limit.connectedSpace |
| 86 | intro N hfine hconnection hcompact hU hnecks |
| 87 | have hballs := hradii E t x ht hR L j N hfine hconnection hcompact hU |
| 88 | have hballvolume := blowupSequence_cap_curvature_ball_volume_lower |
| 89 | P E NC t x ht htone hR L j N hconnection hcompact hU |
| 90 | obtain ⟨ksize, _, hsize⟩ := |
| 91 | blowupSequence_cap_size_bounds P E t x ht hR L j N hconnection hcompact hU |
| 92 | obtain ⟨_, _, B, _, _, _, hB, kratio, _, hratio⟩ := |
| 93 | blowupSequence_cap_scalar_control P E t x ht hR L j N hconnection hcompact hU |
| 94 | obtain ⟨koperators, _, hoperators⟩ := |
| 95 | blowupSequence_cap_scalar_operator_bounds P E t x ht hR L j N hconnection hcompact hU |
| 96 | have hcoreU : N.core ⊆ N.carrier := by |
| 97 | rw [N.core_eq_interior_closed_core] |
| 98 | intro y hy |
| 99 | exact (N.closed_core_eq_complement_end ▸ interior_subset hy).1 |
| 100 | filter_upwards [hnecks, hballs, hballvolume, eventually_ge_atTop j, |
| 101 | eventually_ge_atTop ksize, eventually_ge_atTop kratio, |
| 102 | eventually_ge_atTop koperators] with k hnecksK hballsK hballvolumeK hj hks hkr hko |
| 103 | dsimp only |
| 104 | have hzero : (0 : ℝ) ∈ Icc (-L.exhaustion.time k) 0 := |
| 105 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ |
| 106 | have htime := ((L.embedding k).forward 0 hzero L.limit.base).property |
| 107 | let phi := cylinderSpatialCoordinates E.flow.base.flow (L.embedding k) |
| 108 | (L.exhaustion.space_open k) 0 hzero htime |
| 109 | have hsource : closure N.carrier ⊆ phi.source := |
| 110 | hU.trans (L.exhaustion.space_increasing hj) |
| 111 | apply N.exists_transported_certificate (E.flow.metric (t (L.subsequence k))) |
| 112 | (E.flow.connection (t (L.subsequence k))) phi hsource NC.kappa NC.kappa_pos |
| 113 | · intro p _ |
| 114 | exact E.scalar_pos (ht (L.subsequence k)) p |
| 115 | · exact hnecksK.1 |
| 116 | · exact hnecksK.2 |
| 117 | · exact (hsize k hks).1 |
| 118 | · refine ⟨B, hB, ?_⟩ |
| 119 | rintro _ ⟨y, hy, rfl⟩ _ ⟨z, hz, rfl⟩ |
| 120 | exact (hratio k hkr).2 y (subset_closure hy) z (subset_closure hz) |
| 121 | · exact (hsize k hks).2 |
| 122 | · rintro _ ⟨y, hy, rfl⟩ |
| 123 | exact hballsK y (N.core_eq_interior_closed_core ▸ hy |> interior_subset) |
| 124 | · rintro _ ⟨y, hy, rfl⟩ r hr hscale |
| 125 | exact hballvolumeK y (subset_closure (hcoreU hy)) r hr hscale |
| 126 | · rintro _ ⟨y, hy, rfl⟩ |
| 127 | exact (hoperators k hko y (subset_closure hy)).1.le |
| 128 | · rintro _ ⟨y, hy, rfl⟩ |
| 129 | exact (hoperators k hko y (subset_closure hy)).2.le |
| 130 | |
| 131 | end PoincareMT.M35.OrdinaryRealization |