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.FullStaticStability |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.UniformFullNeckJets |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.MetricConvergence.TerminalScalarConvergence |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.Neck.Jets.NeckPullbackSmoothness |
| 6 | |
| 7 | /-! |
| 8 | # Actual same-epsilon comparison on the entire selected static neck |
| 9 | |
| 10 | Morgan-Tian Definition 9.72 and Theorem 12.28, pp. 323-324. |
| 11 | Full-end coefficient convergence and actual scalar convergence at the |
| 12 | designated center preserve the original strict comparison without |
| 13 | shortening the coordinate, changing the carrier, or changing epsilon. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option maxSynthPendingDepth 5 |
| 18 | |
| 19 | open Set Filter |
| 20 | open scoped Manifold ContDiff Bundle Topology |
| 21 | |
| 22 | namespace PoincareMT.M35.OrdinaryRealization |
| 23 | |
| 24 | local notation "E2" => EuclideanSpace ℝ (Fin 2) |
| 25 | local notation "E3" => EuclideanSpace ℝ (Fin 3) |
| 26 | |
| 27 | /-- Theorem 12.28: the actual selected target neck comparison |
| 28 | uses exactly the original epsilon and the actual target scalar at its |
| 29 | designated center, on every point of the full original open neck. -/ |
| 30 | theorem blowupSequence_full_static_neck_close |
| 31 | (P : M35StandardCapPredecessors) |
| 32 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 33 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 34 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 35 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 36 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 37 | (blowupBackwardInterval ⊤)) : |
| 38 | letI : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 39 | letI : ChartedSpace E3 L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 40 | letI : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 41 | ∀ (N : EpsilonNeck (L.limit.flow.metric 0)) (_he : N.epsilon ≤ 1 / 24) |
| 42 | (_hconnection : N.connection = L.limit.flow.connection 0) |
| 43 | (_hcompact : IsCompact (closure N.carrier)) |
| 44 | (j : ℕ) (_hstage : closure N.carrier ⊆ L.exhaustion.space j), |
| 45 | ∀ᶠ k in atTop, |
| 46 | let f (z : L.limit.sliceCarrier.carrier) := |
| 47 | ((L.embedding k).forward 0 |
| 48 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ z).val |
| 49 | RoundCylinderClose N.epsilon 0 (fun z v w => |
| 50 | (E.flow.connection (t (L.subsequence k))).scalarCurvature (f N.center) * |
| 51 | roundCylinderPullback (E.flow.metric (t (L.subsequence k))) |
| 52 | (f ∘ N.coordinate_map) z v w) := by |
| 53 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 54 | let : ChartedSpace E3 L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 55 | have : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 56 | intro N he hconnection hcompact j hstage |
| 57 | let F (k : ℕ) (z : L.limit.sliceCarrier.carrier) := |
| 58 | ((L.embedding k).forward 0 |
| 59 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ z).val |
| 60 | let Q (k : ℕ) := (blowupSequence P E t x ht hR).scale (L.subsequence k) |
| 61 | let S := N.scale⁻¹ ^ 2 |
| 62 | have hS : 0 < S := sq_pos_of_pos (inv_pos.mpr N.scale_pos) |
| 63 | have hQ (k : ℕ) : 0 < Q k := |
| 64 | (blowupSequence P E t x ht hR).base_scalar_pos (L.subsequence k) |
| 65 | have hscalar : S = (L.limit.flow.connection 0).scalarCurvature N.center := by |
| 66 | dsimp only [S] |
| 67 | rw [N.scale_eq_scalar, ← Real.rpow_neg N.scalar_center_pos.le, |
| 68 | ← Real.rpow_natCast, ← Real.rpow_mul N.scalar_center_pos.le] |
| 69 | norm_num |
| 70 | rw [hconnection] |
| 71 | let B (k : ℕ) : RoundCylinderTwoTensor := fun z v w => (S * Q (k + j)) * |
| 72 | roundCylinderPullback (E.flow.metric (t (L.subsequence (k + j)))) |
| 73 | (F (k + j) ∘ N.coordinate_map) z v w |
| 74 | let C : RoundCylinderTwoTensor := fun z v w => |
| 75 | S * roundCylinderPullback (L.limit.flow.metric 0) N.coordinate_map z v w |
| 76 | let a (k : ℕ) := ((E.flow.connection (t (L.subsequence (k + j)))).scalarCurvature |
| 77 | (F (k + j) N.center) / Q (k + j)) / S |
| 78 | have hC : RoundCylinderClose N.epsilon 0 C := N.metric_comparison.close |
| 79 | have hsmooth (k : ℕ) (A : ℝ) : RoundCylinderTensorSmoothOn N.epsilon |
| 80 | (fun z v w => A * roundCylinderPullback (E.flow.metric (t (L.subsequence (k + j)))) |
| 81 | (F (k + j) ∘ N.coordinate_map) z v w) := by |
| 82 | have htime : t (L.subsequence (k + j)) + 0 / Q (k + j) ∈ |
| 83 | Ico 0 E.flow.base.lifetime := |
| 84 | ((L.embedding (k + j)).forward 0 |
| 85 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos (k + j)).le, le_rfl⟩ L.limit.base).property |
| 86 | have hF : ContMDiffOn (𝓡 3) (𝓡 3) ∞ (F (k + j)) |
| 87 | (L.exhaustion.space (k + j)) := |
| 88 | (sliceDiffeomorph htime).contMDiff.comp_contMDiffOn |
| 89 | ((L.embedding (k + j)).forward_smooth 0 |
| 90 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos (k + j)).le, le_rfl⟩) |
| 91 | exact roundCylinderPullback_scaled_smoothOn _ _ N.epsilon A |
| 92 | (hF.comp N.coordinate_map_smooth (fun z hz => |
| 93 | L.exhaustion.space_increasing (Nat.le_add_left _ _) |
| 94 | (hstage (subset_closure (N.coordinatePartialDiffeomorph.map_source hz))))) |
| 95 | have ha : Tendsto a atTop (𝓝 1) := by |
| 96 | have h := (blowupSequence_terminal_scalar_tendsto P E t x ht hR L N.center).div_const S |
| 97 | rw [← hscalar, div_self hS.ne'] at h |
| 98 | exact h.comp (tendsto_add_atTop_nat j) |
| 99 | have hAt (D : RoundCylinderTwoTensor) (hD : RoundCylinderTensorSmoothOn N.epsilon D) |
| 100 | (q : UnitTwoSphere) (s : ℝ) (hs : s ∈ Ioo (-N.epsilon⁻¹) N.epsilon⁻¹) (i j : Fin 3) : |
| 101 | ContDiffAt ℝ ∞ (fun y => roundCylinderTensorCoefficient D (chartAt E2 q) y i j) |
| 102 | (0, s) := by |
| 103 | apply (hD q i j).contDiffAt |
| 104 | apply ((chartAt E2 q).open_target.prod isOpen_Ioo).mem_nhds |
| 105 | exact ⟨by rw [sphere_chart_target]; trivial, hs⟩ |
| 106 | have hjet : ∀ r ≤ ⌊N.epsilon⁻¹⌋₊, ∀ i b : Fin 3, ∀ eta : ℝ, 0 < eta → |
| 107 | ∃ K : ℕ, ∀ k ≥ K, ∀ q : UnitTwoSphere, ∀ s ∈ Ioo (-N.epsilon⁻¹) N.epsilon⁻¹, |
| 108 | ‖iteratedFDeriv ℝ r (fun y => roundCylinderTensorCoefficient (B k) |
| 109 | (chartAt E2 q) y i b - roundCylinderTensorCoefficient C |
| 110 | (chartAt E2 q) y i b) (0, s)‖ < eta := by |
| 111 | intro r hr i b eta heta |
| 112 | obtain ⟨K, hK⟩ := blowupSequence_full_neck_coefficient_jets_uniform P E t x ht hR L |
| 113 | N he hcompact j hstage {0} isCompact_singleton (by simp) r hr i b |
| 114 | (eta / S) (div_pos heta hS) |
| 115 | refine ⟨K, ?_⟩ |
| 116 | intro k hk q s hs |
| 117 | have hbase := hK (k + j) (hk.trans (Nat.le_add_right _ _)) 0 (mem_singleton 0) q s hs |
| 118 | simp only [zero_div, add_zero] at hbase |
| 119 | let f (y : RoundCylinderCoordinates) := |
| 120 | roundCylinderTensorCoefficient (fun z v w => Q (k + j) * |
| 121 | roundCylinderPullback (E.flow.metric (t (L.subsequence (k + j)))) |
| 122 | (F (k + j) ∘ N.coordinate_map) z v w) (chartAt E2 q) y i b - |
| 123 | roundCylinderTensorCoefficient |
| 124 | (roundCylinderPullback (L.limit.flow.metric 0) N.coordinate_map) (chartAt E2 q) y i b |
| 125 | have hsecond := roundCylinderPullback_scaled_smoothOn |
| 126 | (L.limit.flow.metric 0) N.coordinate_map N.epsilon 1 N.coordinate_map_smooth |
| 127 | simp only [one_mul] at hsecond |
| 128 | have hf : ContDiffAt ℝ r f (0, s) := |
| 129 | ((hAt _ (hsmooth k (Q (k + j))) q s hs i b).sub |
| 130 | (hAt _ hsecond q s hs i b)).of_le (by norm_cast; exact le_top) |
| 131 | have heq : (fun y => roundCylinderTensorCoefficient (B k) (chartAt E2 q) y i b - |
| 132 | roundCylinderTensorCoefficient C (chartAt E2 q) y i b) = S • f := by |
| 133 | funext y |
| 134 | change (S * Q (k + j)) * _ - S * _ = S * (Q (k + j) * _ - _) |
| 135 | dsimp only [roundCylinderTensorCoefficient] |
| 136 | ring |
| 137 | rw [heq, iteratedFDeriv_const_smul_apply hf, norm_smul, Real.norm_eq_abs, abs_of_pos hS] |
| 138 | simpa only [mul_comm] using (lt_div_iff₀ hS).mp hbase |
| 139 | have hclose := eventually_full_static_close_of_rescaled_coefficients N.epsilon_pos hC |
| 140 | B (fun k => hsmooth k (S * Q (k + j))) a ha hjet |
| 141 | obtain ⟨K, hK⟩ := eventually_atTop.mp hclose |
| 142 | filter_upwards [eventually_ge_atTop (K + j)] with k hk |
| 143 | have hjk : j ≤ k := by omega |
| 144 | have hkj : K ≤ k - j := by omega |
| 145 | have h := hK (k - j) hkj |
| 146 | have heq : (fun z v w => a (k - j) * B (k - j) z v w) = |
| 147 | (fun z v w => (E.flow.connection (t (L.subsequence k))).scalarCurvature (F k N.center) * |
| 148 | roundCylinderPullback (E.flow.metric (t (L.subsequence k))) |
| 149 | (F k ∘ N.coordinate_map) z v w) := by |
| 150 | funext z v w |
| 151 | dsimp only [a, B] |
| 152 | rw [Nat.sub_add_cancel hjk] |
| 153 | field_simp [hS.ne', (hQ k).ne'] |
| 154 | change RoundCylinderClose N.epsilon 0 (fun z v w => |
| 155 | (E.flow.connection (t (L.subsequence k))).scalarCurvature (F k N.center) * |
| 156 | roundCylinderPullback (E.flow.metric (t (L.subsequence k))) |
| 157 | (F k ∘ N.coordinate_map) z v w) |
| 158 | rw [← heq] |
| 159 | exact h |
| 160 | |
| 161 | end PoincareMT.M35.OrdinaryRealization |