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.InitialIntrinsicEscape |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.RawFlow.IntrinsicCurvatureJetsDecay |
| 4 | |
| 5 | /-! |
| 6 | # The exact radial end profile on the actual closed initial slab |
| 7 | |
| 8 | Morgan-Tian Theorem 12.32, pp. 326-327. Actual positive-order radial |
| 9 | jets decay on the closed slab. The retained scalar formula and M34's |
| 10 | actual end scalar determine the zero-order orbit radius, uniformly in |
| 11 | time, with the precise value `2*(1-t)` for its square. |
| 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.Uniqueness |
| 21 | |
| 22 | /-- Every positive actual intrinsic radial jet tends to zero |
| 23 | along a moving end point on the fixed closed initial slab. -/ |
| 24 | theorem initial_intrinsic_positive_jets_tendsto_zero |
| 25 | (P : RicciFlowCurvatureTheory.{0}) {g₀ : StandardInitialMetric} |
| 26 | (E : RepairedStandardCapExistenceData g₀) {theta : ℝ} |
| 27 | (htheta : 0 < theta) (hthetalt : theta < E.flow.base.lifetime) |
| 28 | (t s : ℕ → ℝ) (ht : ∀ k, t k ∈ Icc 0 theta) |
| 29 | (hslim : Tendsto s atTop atTop) (j : ℕ) : |
| 30 | Tendsto (fun k => iteratedDeriv (j + 1) |
| 31 | (rawWarpingRadius P E.flow.base E.rotation_invariant (t k)) (s k)) atTop (𝓝 0) := by |
| 32 | obtain ⟨C, hC, hbound⟩ := raw_intrinsic_warping_jets_polynomial_decay |
| 33 | P E.initial_estimate E.flow.base E.rotation_invariant htheta hthetalt j 1 |
| 34 | have hlimit : Tendsto (fun k => C / s k) atTop (𝓝 0) := by |
| 35 | simpa only [div_eq_mul_inv, mul_zero, Function.comp_def] using |
| 36 | (tendsto_inv_atTop_zero.comp hslim).const_mul C |
| 37 | apply squeeze_zero_norm' _ hlimit |
| 38 | filter_upwards [hslim.eventually_ge_atTop 1] with k hk |
| 39 | have hspos : 0 < s k := zero_lt_one.trans_le hk |
| 40 | rw [Real.norm_eq_abs] |
| 41 | apply (le_div_iff₀ hspos).mpr |
| 42 | have h := hbound (t k) (ht k) (s k) hspos.le |
| 43 | simp only [pow_one] at h |
| 44 | have hw : s k ≤ 1 + s k ^ 2 := by nlinarith only [sq_nonneg (s k - 1)] |
| 45 | have hm := mul_le_mul_of_nonneg_right hw |
| 46 | (abs_nonneg (iteratedDeriv (j + 1) |
| 47 | (rawWarpingRadius P E.flow.base E.rotation_invariant (t k)) (s k))) |
| 48 | simpa only [mul_comm] using hm.trans h |
| 49 | |
| 50 | /-- The genuine squared orbit radius has the exact cylindrical |
| 51 | limit at every converging sequence of closed-slab times and escaping |
| 52 | intrinsic radii. -/ |
| 53 | theorem initial_intrinsic_squared_radius_tendsto |
| 54 | (P : RicciFlowCurvatureTheory.{0}) {g₀ : StandardInitialMetric} |
| 55 | (E : RepairedStandardCapExistenceData g₀) {theta : ℝ} |
| 56 | (htheta : 0 < theta) (hthetalt : theta < E.flow.base.lifetime) |
| 57 | (t s : ℕ → ℝ) (ht : ∀ k, t k ∈ Icc 0 theta) (hs : ∀ k, 0 < s k) |
| 58 | {t₀ : ℝ} (ht₀ : t₀ < 1) (htlim : Tendsto t atTop (𝓝 t₀)) |
| 59 | (hslim : Tendsto s atTop atTop) : |
| 60 | Tendsto (fun k => rawWarpingRadius P E.flow.base E.rotation_invariant (t k) (s k) ^ 2) |
| 61 | atTop (𝓝 (2 * (1 - t₀))) := by |
| 62 | let f k := rawWarpingRadius P E.flow.base E.rotation_invariant (t k) |
| 63 | let S k := (E.flow.connection (t k)).scalarCurvature |
| 64 | (rawInverseRadius P E.flow.base E.rotation_invariant (t k) (s k) • |
| 65 | EuclideanSpace.single (2 : Fin 3) 1) |
| 66 | have htG (k : ℕ) : t k ∈ Ico 0 E.flow.base.lifetime := |
| 67 | ⟨(ht k).1, (ht k).2.trans_lt hthetalt⟩ |
| 68 | have hcontrols (k : ℕ) := raw_intrinsic_warping_controls P E.initial_estimate E.flow.base |
| 69 | (htG k) (E.rotation_invariant (t k) (htG k)) (s k) (hs k) |
| 70 | have hfpos (k : ℕ) : 0 < f k (s k) := by |
| 71 | simpa only [f, rawWarpingRadius_eq P E.flow.base E.rotation_invariant (htG k)] using |
| 72 | (hcontrols k).1 |
| 73 | have hfsq (k : ℕ) : f k (s k) ^ 2 ≤ 2 * E.initial_estimate.scalar_constant := by |
| 74 | simpa only [f, rawWarpingRadius_eq P E.flow.base E.rotation_invariant (htG k)] using |
| 75 | (hcontrols k).2.1 |
| 76 | let B := 2 * E.initial_estimate.scalar_constant + 1 |
| 77 | have hH := E.initial_estimate.scalar_constant_pos |
| 78 | have hfbound (k : ℕ) : |f k (s k)| ≤ B := by |
| 79 | rw [abs_of_pos (hfpos k)] |
| 80 | dsimp only [B] |
| 81 | nlinarith only [hfsq k, sq_nonneg (f k (s k) - 1), hH] |
| 82 | have hp : Tendsto (fun k => deriv (f k) (s k)) atTop (𝓝 0) := by |
| 83 | simpa only [f, zero_add, iteratedDeriv_one] using |
| 84 | initial_intrinsic_positive_jets_tendsto_zero P E htheta hthetalt t s ht hslim 0 |
| 85 | have hpp : Tendsto (fun k => deriv (deriv (f k)) (s k)) atTop (𝓝 0) := by |
| 86 | simpa only [f, iteratedDeriv_succ', iteratedDeriv_zero] using |
| 87 | initial_intrinsic_positive_jets_tendsto_zero P E htheta hthetalt t s ht hslim 1 |
| 88 | have hff : Tendsto (fun k => f k (s k) * deriv (deriv (f k)) (s k)) atTop (𝓝 0) := by |
| 89 | apply squeeze_zero_norm |
| 90 | (fun k => ?_) (by simpa only [abs_zero, mul_zero] using hpp.abs.const_mul B) |
| 91 | rw [Real.norm_eq_abs, abs_mul] |
| 92 | exact mul_le_mul_of_nonneg_right (hfbound k) (abs_nonneg _) |
| 93 | have hformula (k : ℕ) : S k * f k (s k) ^ 2 = |
| 94 | 2 * (1 - deriv (f k) (s k) ^ 2) - |
| 95 | 4 * (f k (s k) * deriv (deriv (f k)) (s k)) := by |
| 96 | have hh := rotational_scalar_eq_intrinsicWarping (E.flow.metric (t k)) |
| 97 | (E.rotation_invariant (t k) (htG k)) (E.flow.base.complete P (htG k)) |
| 98 | (E.flow.connection (t k)) (hs k) |
| 99 | have hfeq : intrinsicWarpingRadius (E.flow.metric (t k)) |
| 100 | (E.rotation_invariant (t k) (htG k)) (E.flow.base.complete P (htG k)) = f k := by |
| 101 | convert! (rawWarpingRadius_eq P E.flow.base E.rotation_invariant (htG k)).symm using 1 |
| 102 | have hreq : (radialArclengthOrderIso (E.flow.metric (t k)) |
| 103 | (E.rotation_invariant (t k) (htG k)) (E.flow.base.complete P (htG k))).symm (s k) = |
| 104 | rawInverseRadius P E.flow.base E.rotation_invariant (t k) (s k) := by |
| 105 | convert! (rawInverseRadius_eq P E.flow.base E.rotation_invariant (htG k) (s k)).symm |
| 106 | using 1 |
| 107 | rw [hfeq, hreq] at hh |
| 108 | change S k = 2 * (1 - deriv (f k) (s k) ^ 2) / f k (s k) ^ 2 - |
| 109 | 4 * deriv (deriv (f k)) (s k) / f k (s k) at hh |
| 110 | field_simp [(hfpos k).ne'] at hh |
| 111 | nlinarith only [hh] |
| 112 | have hproduct : Tendsto (fun k => S k * f k (s k) ^ 2) atTop (𝓝 2) := by |
| 113 | have hh := (((tendsto_const_nhds (x := (1 : ℝ))).sub (hp.pow 2)).const_mul 2).sub |
| 114 | (hff.const_mul 4) |
| 115 | simp only [zero_pow (by norm_num : (2 : ℕ) ≠ 0), sub_zero, mul_one, mul_zero] at hh |
| 116 | simpa only [hformula] using hh |
| 117 | have hscalar : Tendsto S atTop (𝓝 (1 / (1 - t₀))) := |
| 118 | initial_intrinsic_axis_scalar_tendsto P E ⟨htheta.le, hthetalt⟩ t s ht ht₀ htlim hslim |
| 119 | have hdiv := hproduct.div hscalar (one_div_ne_zero (sub_pos.mpr ht₀).ne') |
| 120 | have hmodel : 2 / (1 / (1 - t₀)) = 2 * (1 - t₀) := by field_simp |
| 121 | rw [hmodel] at hdiv |
| 122 | apply hdiv.congr' |
| 123 | apply Eventually.of_forall |
| 124 | intro k |
| 125 | exact mul_div_cancel_left₀ (f k (s k) ^ 2) (E.scalar_pos (htG k) _).ne' |
| 126 | |
| 127 | /-- The exact squared cylindrical radius is approached uniformly |
| 128 | on the complete closed initial slab, including its left endpoint. -/ |
| 129 | theorem exists_initial_intrinsic_squared_radius_control |
| 130 | (P : RicciFlowCurvatureTheory.{0}) {g₀ : StandardInitialMetric} |
| 131 | (E : RepairedStandardCapExistenceData g₀) {theta eta : ℝ} |
| 132 | (htheta : 0 < theta) (hthetalt : theta < E.flow.base.lifetime) (heta : 0 < eta) : |
| 133 | ∃ R : ℝ, 0 < R ∧ ∀ t ∈ Icc 0 theta, ∀ s ≥ R, |
| 134 | |rawWarpingRadius P E.flow.base E.rotation_invariant t s ^ 2 - 2 * (1 - t)| < eta := by |
| 135 | classical |
| 136 | by_contra h |
| 137 | push Not at h |
| 138 | choose t ht s hs hbad using fun n : ℕ => h ((n : ℝ) + 1) (by positivity) |
| 139 | have hslim : Tendsto s atTop atTop := by |
| 140 | refine tendsto_atTop.2 fun B => ?_ |
| 141 | filter_upwards [(tendsto_natCast_atTop_atTop (R := ℝ)).eventually_ge_atTop B] with k hk |
| 142 | linarith only [hs k, hk] |
| 143 | have hspos (k : ℕ) : 0 < s k := (by positivity : 0 < (k : ℝ) + 1).trans_le (hs k) |
| 144 | obtain ⟨t₀, ht₀, phi, hphi, htlim⟩ := isCompact_Icc.tendsto_subseq ht |
| 145 | have ht₀one : t₀ < 1 := ht₀.2.trans_lt (E.lifetime_one ▸ hthetalt) |
| 146 | have hvalue := initial_intrinsic_squared_radius_tendsto P E htheta hthetalt |
| 147 | (t ∘ phi) (s ∘ phi) (fun k => ht (phi k)) (fun k => hspos (phi k)) ht₀one htlim |
| 148 | (hslim.comp hphi.tendsto_atTop) |
| 149 | have herror : Tendsto (fun k => |rawWarpingRadius P E.flow.base E.rotation_invariant |
| 150 | (t (phi k)) (s (phi k)) ^ 2 - 2 * (1 - t (phi k))|) atTop (𝓝 0) := by |
| 151 | simpa only [Function.comp_apply, sub_self, abs_zero] using |
| 152 | (hvalue.sub (((tendsto_const_nhds (x := (1 : ℝ))).sub htlim).const_mul 2)).abs |
| 153 | obtain ⟨k, hk⟩ := (herror.eventually (eventually_lt_nhds heta)).exists |
| 154 | exact (not_lt_of_ge (hbad (phi k))) hk |
| 155 | |
| 156 | end PoincareMT.M35.Uniqueness |