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.FarTipStrongNeck |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.SphereLineNormalizedTime |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.CylinderLongerWindow |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.SelectedLongerNeck |
| 6 | |
| 7 | /-! |
| 8 | # The prescribed evolving-neck window in the actual far-tip sequence |
| 9 | |
| 10 | Morgan-Tian Theorem 12.32, pp. 326-327. |
| 11 | The genuine sphere-line alternative retains its centered strong neck. |
| 12 | The two-time product law extends its finer comparison, and the same |
| 13 | selected cylinders return the literal prescribed longer window. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set Filter |
| 20 | open scoped Manifold ContDiff Bundle Topology |
| 21 | |
| 22 | namespace PoincareMT.M35.OrdinaryRealization |
| 23 | |
| 24 | local notation "V" => EuclideanSpace ℝ (Fin 3) |
| 25 | |
| 26 | private theorem scalar_eq_of_equal_metrics |
| 27 | {M : Type*} [TopologicalSpace M] [ChartedSpace V M] [IsManifold (𝓡 3) ∞ M] |
| 28 | {g h : RiemannianMetric 3 M} (heq : g = h) |
| 29 | (D : LeviCivitaData g) (D' : LeviCivitaData h) (x : M) : |
| 30 | D.scalarCurvature x = D'.scalarCurvature x := by |
| 31 | subst h |
| 32 | exact D.scalarCurvature_eq D' x |
| 33 | |
| 34 | /-- Theorem 12.32, pp. 326-327: a sufficiently fine actual M27 comparison in the far-tip regime |
| 35 | gives the exact final epsilon and the prescribed normalized time window. -/ |
| 36 | theorem blowupSequence_far_tip_longer_standard_neck |
| 37 | (P : M35StandardCapPredecessors) |
| 38 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 39 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 40 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 41 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 42 | (hd : Tendsto (fun k => ((E.flow.metric (t k)).edist 0 (x k)).toReal * |
| 43 | Real.sqrt ((E.flow.connection (t k)).scalarCurvature (x k))) atTop atTop) |
| 44 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 45 | (blowupBackwardInterval ⊤)) {kappa : ℝ} |
| 46 | (A : BlowupAncientKappaIdentification L.limit kappa) : |
| 47 | letI : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 48 | letI : MeasurableSpace L.limit.carrier.carrier := L.limit.carrier.measurableSpace |
| 49 | letI : BorelSpace L.limit.carrier.carrier := L.limit.carrier.borelSpace |
| 50 | letI : ChartedSpace V L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 51 | letI : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 52 | letI : T2Space L.limit.carrier.carrier := L.limit.carrier.t2Space |
| 53 | letI : T3Space L.limit.carrier.carrier := L.limit.carrier.t3Space |
| 54 | letI : SecondCountableTopology L.limit.carrier.carrier := L.limit.carrier.secondCountable |
| 55 | letI : ConnectedSpace L.limit.carrier.carrier := L.limit.connectedSpace |
| 56 | ∀ {delta gamma epsilon C : ℝ}, |
| 57 | M27KappaNine93Conclusion A.solution delta C → 0 < delta → delta ≤ gamma → |
| 58 | 0 < epsilon → epsilon < 1 / 2 → gamma ≤ epsilon / 4 → |
| 59 | ((⌊gamma⁻¹⌋₊ + 1 : ℕ) : ℝ) * |
| 60 | (18 + 32 * 2 ^ (⌊gamma⁻¹⌋₊ + 2)) * delta ^ 2 < gamma ^ 2 → |
| 61 | ∀ᶠ k in atTop, Nonempty (StandardEvolvingNeck E.atlas E.flow (t (L.subsequence k)) |
| 62 | epsilon (x (L.subsequence k)) (Ioc (-(1 + epsilon)) 0)) := by |
| 63 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 64 | let : MeasurableSpace L.limit.carrier.carrier := L.limit.carrier.measurableSpace |
| 65 | have : BorelSpace L.limit.carrier.carrier := L.limit.carrier.borelSpace |
| 66 | let : ChartedSpace V L.limit.carrier.carrier := 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 : SecondCountableTopology L.limit.carrier.carrier := L.limit.carrier.secondCountable |
| 71 | have : ConnectedSpace L.limit.carrier.carrier := L.limit.connectedSpace |
| 72 | intro delta gamma epsilon C H hdelta hdg he hehalf hge hsmall |
| 73 | obtain ⟨⟨model⟩, N, hcenter, j, hstage⟩ := |
| 74 | blowupSequence_far_tip_centered_strong_neck P E t x ht hR hd L A H |
| 75 | have hscalar : (A.solution.flow.connection 0).scalarCurvature N.center = 1 := by |
| 76 | rw [hcenter] |
| 77 | exact (scalar_eq_of_equal_metrics (A.metric_eq 0 le_rfl) |
| 78 | (A.solution.flow.connection 0) (L.limit.flow.connection 0) L.limit.base).trans |
| 79 | L.limit.scalar_normalized |
| 80 | have hcomparison : RoundCylinderFamilyClose delta (Ioc (-1 : ℝ) 0) |
| 81 | (fun u => roundCylinderPullback (L.limit.flow.metric u) N.terminal_neck.coordinate_map) := by |
| 82 | apply cylinder_family_congr _ N.metric_comparison |
| 83 | intro u hu z _ v w |
| 84 | rw [hscalar, div_one, zero_add, one_mul, A.metric_eq u hu.2] |
| 85 | have haffine : ∀ u ≤ 0, ∀ z v w, |
| 86 | roundCylinderPullback (L.limit.flow.metric u) N.terminal_neck.coordinate_map z v w = |
| 87 | (1 + 2 * u) * roundCylinderPullback (L.limit.flow.metric 0) |
| 88 | N.terminal_neck.coordinate_map z v w - |
| 89 | 2 * u * roundCylinderPullback (L.limit.flow.metric (-1 / 2)) |
| 90 | N.terminal_neck.coordinate_map z v w := by |
| 91 | intro u hu z v w |
| 92 | have h := sphereLine_normalized_family_affine model N.terminal_neck.coordinate_map |
| 93 | 1 zero_lt_one u hu z v w |
| 94 | simpa only [div_one, one_mul, A.metric_eq u hu, A.metric_eq 0 le_rfl, |
| 95 | A.metric_eq (-1 / 2) (by norm_num)] using h |
| 96 | have hlong := hcomparison.extend_affine_window hdelta hdg epsilon |
| 97 | (by linarith) hsmall haffine |
| 98 | exact blowupSequence_longer_standard_evolving_neck P E.atlas E t x ht hR L |
| 99 | (A.solution.flow.metric 0) N.terminal_neck (N.terminal_center.trans hcenter) |
| 100 | j hstage gamma epsilon (hdelta.trans_le hdg) he hehalf |
| 101 | (N.terminal_epsilon.trans_le hdg) hge hlong |
| 102 | |
| 103 | /-- Theorem 12.32, pp. 326-327: the lower M27 theorem supplies the fine comparison. Thus |
| 104 | every actual far-tip blowup sequence has the exact requested evolving |
| 105 | neck window, with no independent product or affine-law hypothesis. -/ |
| 106 | theorem blowupSequence_far_tip_prescribed_window |
| 107 | (P : M35StandardCapPredecessors) |
| 108 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 109 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 110 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 111 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 112 | (hd : Tendsto (fun k => ((E.flow.metric (t k)).edist 0 (x k)).toReal * |
| 113 | Real.sqrt ((E.flow.connection (t k)).scalarCurvature (x k))) atTop atTop) |
| 114 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 115 | (blowupBackwardInterval ⊤)) {kappa : ℝ} |
| 116 | (A : BlowupAncientKappaIdentification L.limit kappa) |
| 117 | (epsilon : ℝ) (he : 0 < epsilon) (hehalf : epsilon < 1 / 2) : |
| 118 | ∀ᶠ k in atTop, Nonempty (StandardEvolvingNeck E.atlas E.flow (t (L.subsequence k)) |
| 119 | epsilon (x (L.subsequence k)) (Ioc (-(1 + epsilon)) 0)) := by |
| 120 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 121 | let : MeasurableSpace L.limit.carrier.carrier := L.limit.carrier.measurableSpace |
| 122 | have : BorelSpace L.limit.carrier.carrier := L.limit.carrier.borelSpace |
| 123 | let : ChartedSpace V L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 124 | have : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 125 | have : T2Space L.limit.carrier.carrier := L.limit.carrier.t2Space |
| 126 | have : T3Space L.limit.carrier.carrier := L.limit.carrier.t3Space |
| 127 | have : SecondCountableTopology L.limit.carrier.carrier := L.limit.carrier.secondCountable |
| 128 | have : ConnectedSpace L.limit.carrier.carrier := L.limit.connectedSpace |
| 129 | obtain ⟨epsilonBar, hbar, hmodels⟩ := P.kappa_models.theorem_9_93 |
| 130 | have hgamma : 0 < epsilon / 4 := div_pos he (by norm_num) |
| 131 | obtain ⟨delta, hdelta, hdg, hdb, hsmall⟩ := |
| 132 | exists_affine_window_accuracy (epsilon / 4) (epsilonBar / 2) hgamma (by positivity) |
| 133 | have hdeltaBar : delta < epsilonBar := hdb.trans_lt (by linarith) |
| 134 | obtain ⟨C, _hC, hCmodels⟩ := hmodels delta hdelta hdeltaBar |
| 135 | exact blowupSequence_far_tip_longer_standard_neck P E t x ht hR hd L A |
| 136 | (hCmodels A.solution).alternatives hdelta hdg he hehalf le_rfl hsmall |
| 137 | |
| 138 | end PoincareMT.M35.OrdinaryRealization |