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.RadialPointIdentification |
| 3 | |
| 4 | /-! |
| 5 | # Actual orbit slopes vanish at centers far from the tip |
| 6 | |
| 7 | Morgan-Tian Theorem 12.32, pp. 326-327. The orbit radius is uniformly |
| 8 | bounded after scalar normalization, while its slope is at most the |
| 9 | radius divided by radial arclength. Centers whose normalized distance |
| 10 | from the actual tip diverges therefore have orbit slope tending to zero. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set Filter |
| 16 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 17 | |
| 18 | namespace PoincareMT.RepairedStandardCapExistenceData |
| 19 | |
| 20 | open M35.Uniqueness |
| 21 | |
| 22 | /-- Theorem 12.32: the actual radial slope tends to zero along every |
| 23 | diverging-curvature sequence whose normalized radial arclength diverges. -/ |
| 24 | theorem axisWarpingSlope_tendsto_zero_of_normalized_arclength |
| 25 | (P : M35StandardCapPredecessors) {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 | (hs : Tendsto (fun k => radialArclength (E.flow.metric (t k)) ‖x k‖ * |
| 31 | Real.sqrt ((E.flow.connection (t k)).scalarCurvature (x k))) atTop atTop) : |
| 32 | Tendsto (fun k => axisWarpingSlope (E.flow.metric (t k)) ‖x k‖) atTop (𝓝 0) := by |
| 33 | obtain ⟨B, H, _hB, _hH, hbound⟩ := E.exists_normalized_orbit_radius_bound_all_points P |
| 34 | let s (k : ℕ) := radialArclength (E.flow.metric (t k)) ‖x k‖ * |
| 35 | Real.sqrt ((E.flow.connection (t k)).scalarCurvature (x k)) |
| 36 | have hspos : ∀ᶠ k in atTop, 0 < s k := hs.eventually (eventually_gt_atTop 0) |
| 37 | have hxne : ∀ᶠ k in atTop, x k ≠ 0 := by |
| 38 | filter_upwards [hspos] with k hk |
| 39 | intro heq |
| 40 | have hfalse := hk |
| 41 | simp only [s, heq, norm_zero, radialArclength_zero, zero_mul, lt_self_iff_false] at hfalse |
| 42 | have hnonneg : ∀ᶠ k in atTop, 0 ≤ axisWarpingSlope (E.flow.metric (t k)) ‖x k‖ := by |
| 43 | filter_upwards [hxne] with k hk |
| 44 | exact axisWarpingSlope_nonneg (E.flow.connection (t k)) (E.rotation_invariant (t k) (ht k)) |
| 45 | (E.nonnegative_sectional (t k) (ht k)) (E.complete (t k) (ht k)) (norm_pos_iff.mpr hk) |
| 46 | have hupper : ∀ᶠ k in atTop, |
| 47 | axisWarpingSlope (E.flow.metric (t k)) ‖x k‖ ≤ B / s k := by |
| 48 | filter_upwards [hxne, hspos, hR.eventually (eventually_ge_atTop H)] with k hk hsk hRk |
| 49 | have h := mul_le_mul_of_nonneg_right |
| 50 | (axisWarpingSlope_mul_arclength_le (E.flow.connection (t k)) |
| 51 | (E.rotation_invariant (t k) (ht k)) (E.nonnegative_sectional (t k) (ht k)) |
| 52 | (norm_pos_iff.mpr hk)) |
| 53 | (Real.sqrt_nonneg ((E.flow.connection (t k)).scalarCurvature (x k))) |
| 54 | apply (le_div_iff₀ hsk).mpr |
| 55 | calc |
| 56 | _ = (axisWarpingSlope (E.flow.metric (t k)) ‖x k‖ * |
| 57 | radialArclength (E.flow.metric (t k)) ‖x k‖) * |
| 58 | Real.sqrt ((E.flow.connection (t k)).scalarCurvature (x k)) := by |
| 59 | dsimp only [s] |
| 60 | ring |
| 61 | _ ≤ _ := h |
| 62 | _ ≤ B := hbound (t k) (ht k) (x k) hk hRk |
| 63 | exact squeeze_zero' hnonneg hupper (tendsto_const_nhds.div_atTop hs) |
| 64 | |
| 65 | /-- Theorem 12.32: normalized distance from the actual metric tip |
| 66 | is sufficient for the preceding radial-slope conclusion. -/ |
| 67 | theorem axisWarpingSlope_tendsto_zero_of_normalized_distance |
| 68 | (P : M35StandardCapPredecessors) {g₀ : StandardInitialMetric} |
| 69 | (E : RepairedStandardCapExistenceData g₀) |
| 70 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 71 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 72 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 73 | (hd : Tendsto (fun k => ((E.flow.metric (t k)).edist 0 (x k)).toReal * |
| 74 | Real.sqrt ((E.flow.connection (t k)).scalarCurvature (x k))) atTop atTop) : |
| 75 | Tendsto (fun k => axisWarpingSlope (E.flow.metric (t k)) ‖x k‖) atTop (𝓝 0) := by |
| 76 | apply E.axisWarpingSlope_tendsto_zero_of_normalized_arclength P t x ht hR |
| 77 | apply tendsto_atTop_mono _ hd |
| 78 | intro k |
| 79 | apply mul_le_mul_of_nonneg_right _ (Real.sqrt_nonneg _) |
| 80 | have hs : 0 ≤ radialArclength (E.flow.metric (t k)) ‖x k‖ := by |
| 81 | simpa only [radialArclength_zero] using |
| 82 | (radialArclength_strictMono (E.flow.metric (t k))).monotone (norm_nonneg (x k)) |
| 83 | apply ENNReal.toReal_le_of_le_ofReal hs |
| 84 | rw [(rotational_scalar_edist_eq_axis P (E.flow.connection (t k)) |
| 85 | (E.rotation_invariant (t k) (ht k)) (x k)).2] |
| 86 | exact edist_axis_le_radialArclength (E.flow.metric (t k)) (norm_nonneg (x k)) |
| 87 | |
| 88 | /-- Theorem 12.32: a small actual slope prevents a spherical orbit |
| 89 | from collapsing at the scalar normalization of its own point. -/ |
| 90 | theorem one_le_normalized_orbit_radius_of_slope_small |
| 91 | (P : M35StandardCapPredecessors) {g₀ : StandardInitialMetric} |
| 92 | (E : RepairedStandardCapExistenceData g₀) {t : ℝ} |
| 93 | (ht : t ∈ Ico 0 E.flow.base.lifetime) {x : StandardCapSpace} (hx : x ≠ 0) |
| 94 | (hsmall : axisWarpingSlope (E.flow.metric t) ‖x‖ ^ 2 ≤ 1 / 2) : |
| 95 | 1 ≤ axisWarpingRadius (E.flow.metric t) ‖x‖ * |
| 96 | Real.sqrt ((E.flow.connection t).scalarCurvature x) := by |
| 97 | have hr := norm_pos_iff.mpr hx |
| 98 | have h := scalar_mul_axisWarpingRadius_sq_ge (E.flow.connection t) |
| 99 | (E.rotation_invariant t ht) (E.nonnegative_sectional t ht) hr |
| 100 | have hs := (rotational_scalar_edist_eq_axis P (E.flow.connection t) |
| 101 | (E.rotation_invariant t ht) x).1 |
| 102 | rw [← hs] at h |
| 103 | apply le_of_sq_le_sq _ |
| 104 | (mul_nonneg (axisWarpingRadius_pos (E.flow.metric t) hr).le (Real.sqrt_nonneg _)) |
| 105 | rw [mul_pow, Real.sq_sqrt (E.scalar_pos ht x).le] |
| 106 | nlinarith |
| 107 | |
| 108 | /-- Theorem 12.32: the actual angular connection factor, divided by |
| 109 | the center's scalar scale, tends to zero at centers far from the tip. -/ |
| 110 | theorem axisWarpingSlope_div_normalized_radius_tendsto_zero |
| 111 | (P : M35StandardCapPredecessors) {g₀ : StandardInitialMetric} |
| 112 | (E : RepairedStandardCapExistenceData g₀) |
| 113 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 114 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 115 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 116 | (hd : Tendsto (fun k => ((E.flow.metric (t k)).edist 0 (x k)).toReal * |
| 117 | Real.sqrt ((E.flow.connection (t k)).scalarCurvature (x k))) atTop atTop) : |
| 118 | Tendsto (fun k => axisWarpingSlope (E.flow.metric (t k)) ‖x k‖ / |
| 119 | (axisWarpingRadius (E.flow.metric (t k)) ‖x k‖ * |
| 120 | Real.sqrt ((E.flow.connection (t k)).scalarCurvature (x k)))) atTop (𝓝 0) := by |
| 121 | have hu := E.axisWarpingSlope_tendsto_zero_of_normalized_distance P t x ht hR hd |
| 122 | have hxne : ∀ᶠ k in atTop, x k ≠ 0 := by |
| 123 | filter_upwards [hd.eventually (eventually_gt_atTop 0)] with k hk |
| 124 | intro heq |
| 125 | have hzero : (E.flow.metric (t k)).edist 0 (x k) = 0 := by |
| 126 | rw [heq] |
| 127 | exact @edist_self StandardCapSpace (E.flow.metric (t k)).toEMetricSpace.toPseudoEMetricSpace 0 |
| 128 | have hfalse := hk |
| 129 | simp only [hzero, ENNReal.toReal_zero, zero_mul, lt_self_iff_false] at hfalse |
| 130 | have hb : ∀ᶠ k in atTop, |
| 131 | 0 ≤ axisWarpingSlope (E.flow.metric (t k)) ‖x k‖ ∧ |
| 132 | 1 ≤ axisWarpingRadius (E.flow.metric (t k)) ‖x k‖ * |
| 133 | Real.sqrt ((E.flow.connection (t k)).scalarCurvature (x k)) := by |
| 134 | filter_upwards [hxne, hu.eventually (eventually_lt_nhds (by norm_num : (0 : ℝ) < 1 / 2))] |
| 135 | with k hk hsmall |
| 136 | have hnonneg := axisWarpingSlope_nonneg (E.flow.connection (t k)) |
| 137 | (E.rotation_invariant (t k) (ht k)) (E.nonnegative_sectional (t k) (ht k)) |
| 138 | (E.complete (t k) (ht k)) (norm_pos_iff.mpr hk) |
| 139 | refine ⟨hnonneg, E.one_le_normalized_orbit_radius_of_slope_small P (ht k) hk ?_⟩ |
| 140 | nlinarith |
| 141 | apply squeeze_zero' _ _ hu |
| 142 | · filter_upwards [hb] with k hk |
| 143 | exact div_nonneg hk.1 (zero_le_one.trans hk.2) |
| 144 | · filter_upwards [hb] with k hk |
| 145 | exact div_le_self hk.1 hk.2 |
| 146 | |
| 147 | end PoincareMT.RepairedStandardCapExistenceData |