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.Blowup.Neck.Geometry.SelectedStandardNeck |
| 3 | |
| 4 | /-! |
| 5 | # Returning the prescribed longer-time neck to the actual selected flow |
| 6 | |
| 7 | Morgan-Tian Theorem 12.32, pp. 326-327. |
| 8 | The finer comparison and the original geometric neck may have different |
| 9 | accuracies. Their same spatial map is restricted only at the final target |
| 10 | epsilon. The actual exhaustion cylinder supplies survival throughout the |
| 11 | literal requested longer normalized interval. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | namespace PoincareMT.M35.OrdinaryRealization |
| 21 | |
| 22 | local notation "V" => EuclideanSpace ℝ (Fin 3) |
| 23 | |
| 24 | /-- Theorem 12.32, pp. 326-327: a sufficiently fine actual limit comparison over the prescribed |
| 25 | longer window returns a standard evolving neck over that same window. -/ |
| 26 | theorem blowupSequence_longer_standard_evolving_neck |
| 27 | (P : M35StandardCapPredecessors) (atlas : StandardCylinderAtlas) |
| 28 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 29 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 30 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 31 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 32 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 33 | (blowupBackwardInterval ⊤)) : |
| 34 | letI : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 35 | letI : ChartedSpace V L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 36 | letI : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 37 | ∀ (g : RiemannianMetric 3 L.limit.sliceCarrier.carrier) (N : EpsilonNeck g) |
| 38 | (_hcenter : N.center = L.limit.base) |
| 39 | (j : ℕ) (_hstage : closure N.carrier ⊆ L.exhaustion.space j) |
| 40 | (delta epsilon : ℝ) (_hd : 0 < delta) (_he : 0 < epsilon) |
| 41 | (_hehalf : epsilon < 1 / 2) (_hNd : N.epsilon ≤ delta) |
| 42 | (_hde : delta ≤ epsilon / 4) |
| 43 | (_hclose : RoundCylinderFamilyClose delta (Ioc (-(1 + epsilon)) 0) |
| 44 | (fun u => roundCylinderPullback (L.limit.flow.metric u) N.coordinate_map)), |
| 45 | ∀ᶠ k in atTop, Nonempty (StandardEvolvingNeck atlas E.flow (t (L.subsequence k)) |
| 46 | epsilon (x (L.subsequence k)) (Ioc (-(1 + epsilon)) 0)) := by |
| 47 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 48 | let : ChartedSpace V L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 49 | have : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 50 | intro g N hcenter j hstage delta epsilon hd he hehalf hNd hde hclose |
| 51 | have hsubDomain : (univ : Set UnitTwoSphere) ×ˢ Ioo (-delta⁻¹) delta⁻¹ ⊆ |
| 52 | univ ×ˢ Ioo (-N.epsilon⁻¹) N.epsilon⁻¹ := |
| 53 | prod_mono subset_rfl (Ioo_subset_Ioo |
| 54 | (neg_le_neg (inv_anti₀ N.epsilon_pos hNd)) (inv_anti₀ N.epsilon_pos hNd)) |
| 55 | have hspace : MapsTo N.coordinate_map (univ ×ˢ Ioo (-delta⁻¹) delta⁻¹) |
| 56 | (L.exhaustion.space j) := fun _ hz => |
| 57 | hstage (subset_closure (N.coordinatePartialDiffeomorph.map_source (hsubDomain hz))) |
| 58 | obtain ⟨K, hK⟩ := blowupSequence_neck_family_close P E t x ht hR L N.coordinate_map |
| 59 | delta epsilon hd he hde (N.coordinate_map_smooth.mono hsubDomain) j hspace |
| 60 | (Ioc (-(1 + epsilon)) 0) (Icc (-(1 + epsilon)) 0) isCompact_Icc |
| 61 | (fun _ hu => hu.2) (fun _ hu => ⟨hu.1.le, hu.2⟩) hclose |
| 62 | have htime := L.exhaustion.time_cofinal (Icc (-(1 + epsilon)) 0) isCompact_Icc (by |
| 63 | intro u hu |
| 64 | simpa [blowupBackwardInterval] using hu.2) |
| 65 | filter_upwards [eventually_ge_atTop j, eventually_ge_atTop K, htime] with k hj hk htk |
| 66 | let Q := (blowupSequence P E t x ht hR).scale (L.subsequence k) |
| 67 | have hQ : Q = (E.flow.connection (t (L.subsequence k))).scalarCurvature |
| 68 | (x (L.subsequence k)) := blowupSequence_scale P E t x ht hR (L.subsequence k) |
| 69 | have hzero : (0 : ℝ) ∈ Icc (-L.exhaustion.time k) 0 := |
| 70 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ |
| 71 | have htime₀ : t (L.subsequence k) + 0 / Q ∈ Ico 0 E.flow.base.lifetime := |
| 72 | ((L.embedding k).forward 0 hzero L.limit.base).property |
| 73 | let f := cylinderSpatialCoordinates E.flow.base.flow (L.embedding k) |
| 74 | (L.exhaustion.space_open k) 0 hzero htime₀ |
| 75 | have hsub : N.carrier ⊆ f.source := fun _ hy => |
| 76 | L.exhaustion.space_increasing hj (hstage (subset_closure hy)) |
| 77 | have hbase : f L.limit.base = x (L.subsequence k) := by |
| 78 | have hb := L.base_preserving k hzero |
| 79 | exact congrArg (fun p : (generalizedFlow E.flow.base.flow).point => p.2.val) hb |
| 80 | have hNe : N.epsilon ≤ epsilon := hNd.trans (hde.trans (by linarith)) |
| 81 | let patch₀ := (N.transportedStandardPatch f hsub).restrict |
| 82 | (inv_pos.mpr he) (inv_anti₀ N.epsilon_pos hNe) |
| 83 | let patch : StandardCylinderPatch epsilon⁻¹ (x (L.subsequence k)) := |
| 84 | { patch₀ with |
| 85 | center_sphere := by |
| 86 | obtain ⟨q, hq⟩ := patch₀.center_sphere |
| 87 | exact ⟨q, hq.trans ((congrArg f hcenter).trans hbase)⟩ } |
| 88 | refine ⟨{ |
| 89 | time_mem := ht (L.subsequence k) |
| 90 | epsilon_pos := he |
| 91 | epsilon_lt_half := hehalf |
| 92 | scalar_pos := E.scalar_pos (ht (L.subsequence k)) (x (L.subsequence k)) |
| 93 | patch := patch |
| 94 | interval_survival := ?_ |
| 95 | close := ?_ |
| 96 | }⟩ |
| 97 | · intro u hu |
| 98 | have h := ((L.embedding k).forward u (htk ⟨hu.1.le, hu.2⟩) L.limit.base).property |
| 99 | change t (L.subsequence k) + u / Q ∈ Ico 0 E.flow.base.lifetime at h |
| 100 | rwa [hQ] at h |
| 101 | · have h := hK k hk |
| 102 | change RoundCylinderFamilyClose epsilon (Ioc (-(1 + epsilon)) 0) |
| 103 | (fun u z v w => Q * roundCylinderPullback |
| 104 | (E.flow.metric (t (L.subsequence k) + u / Q)) patch.coordinate z v w) at h |
| 105 | change RoundCylinderFamilyClose epsilon (Ioc (-(1 + epsilon)) 0) |
| 106 | (fun u z v w => (E.flow.connection (t (L.subsequence k))).scalarCurvature |
| 107 | (x (L.subsequence k)) * roundCylinderPullback |
| 108 | (E.flow.metric (t (L.subsequence k) + u / |
| 109 | (E.flow.connection (t (L.subsequence k))).scalarCurvature (x (L.subsequence k)))) |
| 110 | patch.coordinate z v w) |
| 111 | rwa [hQ] at h |
| 112 | |
| 113 | end PoincareMT.M35.OrdinaryRealization |