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.ScaledNeckComparison |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.Transport.TransportedNeckPatch |
| 4 | |
| 5 | /-! |
| 6 | # Actual selected patches for the limit cap boundary neck |
| 7 | |
| 8 | Morgan-Tian Remark 9.73 and Theorem 12.28, pp. 323-324. |
| 9 | The boundary neck retains its fixed scalar normalization. A strictly |
| 10 | shorter actual patch is enough for buffered balls at its central sphere; |
| 11 | the cap carrier and end-neck attachment are not changed here. |
| 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: the actual selected image of a finer limit neck |
| 22 | contains a literal fixed-scale cylindrical patch with the original |
| 23 | central-sphere coordinate, uniformly for all sufficiently late indices. -/ |
| 24 | theorem blowupSequence_boundary_neck_patch (P : M35StandardCapPredecessors) |
| 25 | (atlas : StandardCylinderAtlas) {g₀ : StandardInitialMetric} |
| 26 | (E : RepairedStandardCapExistenceData g₀) |
| 27 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 28 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 29 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 30 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 31 | (blowupBackwardInterval ⊤)) : |
| 32 | letI : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 33 | letI : ChartedSpace (EuclideanSpace ℝ (Fin 3)) L.limit.carrier.carrier := |
| 34 | L.limit.carrier.chartedSpace |
| 35 | letI : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 36 | ∀ (N : EpsilonNeck (L.limit.flow.metric 0)) (j : ℕ) |
| 37 | (_hstage : closure N.carrier ⊆ L.exhaustion.space j) |
| 38 | (epsilon : ℝ) (_he : 0 < epsilon) (_hde : N.epsilon ≤ epsilon / 4), |
| 39 | ∀ᶠ k in atTop, |
| 40 | let f : L.limit.sliceCarrier.carrier → StandardCapSpace := fun z => |
| 41 | ((L.embedding k).forward 0 |
| 42 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ z).val |
| 43 | let Q := (blowupSequence P E t x ht hR).scale (L.subsequence k) |
| 44 | ∃ patch : StandardCylinderPatch epsilon⁻¹ (f N.center), |
| 45 | patch.coordinate = f ∘ N.coordinate_map ∧ |
| 46 | patch.carrier ⊆ f '' N.carrier ∧ |
| 47 | StandardSpatialCylinderClose atlas (E.flow.metric (t (L.subsequence k))) |
| 48 | epsilon (N.scale⁻¹ ^ 2 * Q) patch := by |
| 49 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 50 | let : ChartedSpace (EuclideanSpace ℝ (Fin 3)) L.limit.carrier.carrier := |
| 51 | L.limit.carrier.chartedSpace |
| 52 | have : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 53 | intro N j hstage epsilon he hde |
| 54 | have hS : 0 < N.scale⁻¹ ^ 2 := sq_pos_of_pos (inv_pos.mpr N.scale_pos) |
| 55 | have hspace : MapsTo N.coordinate_map (univ ×ˢ Ioo (-N.epsilon⁻¹) N.epsilon⁻¹) |
| 56 | (L.exhaustion.space j) := fun _ hz => |
| 57 | hstage (subset_closure (N.coordinatePartialDiffeomorph.map_source hz)) |
| 58 | have hC : RoundCylinderFamilyClose N.epsilon ({0} : Set ℝ) |
| 59 | (fun u z v w => N.scale⁻¹ ^ 2 * |
| 60 | roundCylinderPullback (L.limit.flow.metric u) N.coordinate_map z v w) := by |
| 61 | obtain ⟨hsmooth, b, hb, hbound⟩ := N.metric_comparison.close |
| 62 | refine ⟨?_, b, hb, ?_⟩ |
| 63 | · intro u hu |
| 64 | rcases mem_singleton_iff.mp hu with rfl |
| 65 | exact hsmooth |
| 66 | · intro u hu z hz |
| 67 | rcases mem_singleton_iff.mp hu with rfl |
| 68 | exact hbound z hz |
| 69 | obtain ⟨K, hK⟩ := blowupSequence_scaled_neck_family_close P E t x ht hR L |
| 70 | N.coordinate_map N.epsilon epsilon (N.scale⁻¹ ^ 2) N.epsilon_pos he hS hde |
| 71 | N.coordinate_map_smooth j hspace ({0} : Set ℝ) ({0} : Set ℝ) |
| 72 | isCompact_singleton (by simp) subset_rfl hC |
| 73 | filter_upwards [eventually_ge_atTop j, eventually_ge_atTop K] with k hj hk |
| 74 | have hzero : (0 : ℝ) ∈ Icc (-L.exhaustion.time k) 0 := |
| 75 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ |
| 76 | have htime := ((L.embedding k).forward 0 hzero L.limit.base).property |
| 77 | let phi := cylinderSpatialCoordinates E.flow.base.flow (L.embedding k) |
| 78 | (L.exhaustion.space_open k) 0 hzero htime |
| 79 | let f : L.limit.carrier.carrier → StandardCapSpace := fun z => |
| 80 | ((L.embedding k).forward 0 hzero z).val |
| 81 | have hsub : N.carrier ⊆ phi.source := fun _ hy => |
| 82 | L.exhaustion.space_increasing hj (hstage (subset_closure hy)) |
| 83 | have hlength : epsilon⁻¹ ≤ N.epsilon⁻¹ := inv_anti₀ N.epsilon_pos (by linarith) |
| 84 | let patch := (N.transportedStandardPatch phi hsub).restrict (inv_pos.mpr he) hlength |
| 85 | refine ⟨patch, rfl, ?_, ?_⟩ |
| 86 | · intro y hy |
| 87 | obtain ⟨z, hz, rfl⟩ := patch.coordinate_image.symm ▸ hy |
| 88 | have hzold : z ∈ univ ×ˢ Ioo (-N.epsilon⁻¹) N.epsilon⁻¹ := |
| 89 | ⟨mem_univ _, (neg_le_neg hlength).trans_lt hz.2.1, hz.2.2.trans_le hlength⟩ |
| 90 | exact ⟨N.coordinate_map z, N.coordinatePartialDiffeomorph.map_source hzold, rfl⟩ |
| 91 | · obtain ⟨hsmooth, b, hb, hbound⟩ := hK k hk |
| 92 | have hclose₀ : RoundCylinderClose epsilon 0 |
| 93 | (fun z v w => (N.scale⁻¹ ^ 2 * (blowupSequence P E t x ht hR).scale (L.subsequence k)) * |
| 94 | roundCylinderPullback (E.flow.metric (t (L.subsequence k) + |
| 95 | 0 / (blowupSequence P E t x ht hR).scale (L.subsequence k))) |
| 96 | (f ∘ N.coordinate_map) z v w) := |
| 97 | ⟨hsmooth 0 (mem_singleton 0), b, hb, hbound 0 (mem_singleton 0)⟩ |
| 98 | have hclose : RoundCylinderClose epsilon 0 |
| 99 | (fun z v w => (N.scale⁻¹ ^ 2 * (blowupSequence P E t x ht hR).scale (L.subsequence k)) * |
| 100 | roundCylinderPullback (E.flow.metric (t (L.subsequence k))) |
| 101 | (f ∘ N.coordinate_map) z v w) := by |
| 102 | simpa only [zero_div, add_zero] using hclose₀ |
| 103 | exact hclose |
| 104 | |
| 105 | end PoincareMT.M35.OrdinaryRealization |