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.TerminalCap.SelectedCenter |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.TerminalCap.TwoCollars |
| 4 | |
| 5 | /-! |
| 6 | # Actual bounded-tip radial collars with one normalized carrier bound |
| 7 | |
| 8 | Morgan-Tian Theorem 12.32, pp. 326-327. Fine-neck selection supplies |
| 9 | an outward center, and the fixed actual radial threshold supplies both |
| 10 | collars. The image-center distance and its positive scalar ratio bound |
| 11 | the entire original radial carrier at the selected base scalar scale. |
| 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 ENNReal |
| 19 | |
| 20 | namespace PoincareMT.M35.OrdinaryRealization |
| 21 | |
| 22 | open Uniqueness |
| 23 | |
| 24 | local notation "V" => StandardCapSpace |
| 25 | |
| 26 | /-- Theorem 12.32: an actual bounded-tip blowup sequence has |
| 27 | two genuine radial collars around its base, with one bound for their |
| 28 | whole carrier radius and one for the actual core curvature radii. -/ |
| 29 | theorem blowupSequence_bounded_tip_radial_collars |
| 30 | (P : M35StandardCapPredecessors) {g₀ : StandardInitialMetric} |
| 31 | (E : RepairedStandardCapExistenceData g₀) (t : ℕ → ℝ) (x : ℕ → V) |
| 32 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 33 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 34 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 35 | (blowupBackwardInterval ⊤)) {kappa : ℝ} |
| 36 | (A : BlowupAncientKappaIdentification L.limit kappa) |
| 37 | {epsilon D : ℝ} (he : 0 < epsilon) (hehalf : epsilon < 1 / 2) (hD : 0 ≤ D) |
| 38 | (hd : ∀ k, ((E.flow.metric (t k)).edist 0 (x k)).toReal * |
| 39 | Real.sqrt ((E.flow.connection (t k)).scalarCurvature (x k)) ≤ D) : |
| 40 | ∃ Rmax F : ℝ, 0 < Rmax ∧ 0 < F ∧ ∀ᶠ k in atTop, |
| 41 | ∃ N : RadialCapCollars E (t (L.subsequence k)) (ht _) epsilon, |
| 42 | radialArclength (E.flow.metric (t (L.subsequence k))) ‖x (L.subsequence k)‖ < |
| 43 | N.a - N.b * epsilon⁻¹ ∧ |
| 44 | (N.a + N.b * epsilon⁻¹) * |
| 45 | Real.sqrt ((blowupSequence P E t x ht hR).scale (L.subsequence k)) ≤ Rmax ∧ |
| 46 | intrinsicWarpingRadius (E.flow.metric (t (L.subsequence k))) |
| 47 | (E.rotation_invariant _ (ht _)) (E.complete _ (ht _)) N.a * |
| 48 | Real.sqrt ((blowupSequence P E t x ht hR).scale (L.subsequence k)) ≤ F := by |
| 49 | obtain ⟨T, hT, hcollars⟩ := exists_radial_cap_collars_threshold P E he hehalf |
| 50 | let J := T + epsilon⁻¹ + 1 |
| 51 | have hel : 0 < epsilon⁻¹ := inv_pos.mpr he |
| 52 | have hJ : 0 < J := by dsimp only [J]; positivity |
| 53 | obtain ⟨y, m, U, B, hm, _hU, hB, hcenter⟩ := |
| 54 | blowupSequence_separated_radial_center P E t x ht hR L A hD hJ hd |
| 55 | let rootm := Real.sqrt m |
| 56 | have hrootm : 0 < rootm := Real.sqrt_pos.mpr hm |
| 57 | let Rmax := D + B + rootm⁻¹ * epsilon⁻¹ + 1 |
| 58 | let F := 2 * rootm⁻¹ |
| 59 | have hRmax : 0 < Rmax := by dsimp only [Rmax]; positivity |
| 60 | have hF : 0 < F := by dsimp only [F]; positivity |
| 61 | have hscale : Tendsto (fun k => (blowupSequence P E t x ht hR).scale (L.subsequence k)) |
| 62 | atTop atTop := by |
| 63 | simpa only [blowupSequence_scale, Function.comp_def] using |
| 64 | hR.comp L.subsequence_strictMono.tendsto_atTop |
| 65 | refine ⟨Rmax, F, hRmax, hF, ?_⟩ |
| 66 | filter_upwards [hcenter, hscale.eventually_ge_atTop (T / m)] with k hk hlarge |
| 67 | let Q := (blowupSequence P E t x ht hR).scale (L.subsequence k) |
| 68 | have hQ : 0 < Q := (blowupSequence P E t x ht hR).base_scalar_pos (L.subsequence k) |
| 69 | let g : RiemannianMetric 3 V := E.flow.metric (t (L.subsequence k)) |
| 70 | let G : RiemannianMetric 3 V := M13.scaleSmoothMetric g Q hQ |
| 71 | let hrot := E.rotation_invariant (t (L.subsequence k)) (ht _) |
| 72 | let hc := E.complete (t (L.subsequence k)) (ht _) |
| 73 | let z := x (L.subsequence k) |
| 74 | let y' := ((L.embedding k).forward 0 |
| 75 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ y).val |
| 76 | let R := (E.flow.connection (t (L.subsequence k))).scalarCurvature y' |
| 77 | have hRpos : 0 < R := E.scalar_pos (ht _) y' |
| 78 | have hrootR : 0 < Real.sqrt R := Real.sqrt_pos.mpr hRpos |
| 79 | have hrootQ : 0 < Real.sqrt Q := Real.sqrt_pos.mpr hQ |
| 80 | change m * Q ≤ R ∧ R ≤ U * Q ∧ |
| 81 | J + radialArclength g ‖z‖ * Real.sqrt R < radialArclength g ‖y'‖ * Real.sqrt R ∧ |
| 82 | G.edist z y' < ENNReal.ofReal B at hk |
| 83 | have hhigh : T ≤ R := calc |
| 84 | T = T / m * m := (div_mul_cancel₀ T hm.ne').symm |
| 85 | _ ≤ Q * m := mul_le_mul_of_nonneg_right hlarge hm.le |
| 86 | _ = m * Q := mul_comm _ _ |
| 87 | _ ≤ R := hk.1 |
| 88 | have hzrad : 0 ≤ radialArclength g ‖z‖ := by |
| 89 | simpa only [radialArclength_zero] using |
| 90 | (radialArclength_strictMono g).monotone (norm_nonneg z) |
| 91 | have hyrad : 0 ≤ radialArclength g ‖y'‖ := by |
| 92 | simpa only [radialArclength_zero] using |
| 93 | (radialArclength_strictMono g).monotone (norm_nonneg y') |
| 94 | have hfar : T ≤ (g.edist 0 y').toReal * Real.sqrt R := by |
| 95 | rw [edist_zero_eq_radialArclength g hrot hc P, ENNReal.toReal_ofReal hyrad] |
| 96 | have hh := hk.2.2.1 |
| 97 | have hnonneg := mul_nonneg hzrad hrootR.le |
| 98 | dsimp only [J] at hh |
| 99 | linarith only [hh, hnonneg, hel] |
| 100 | obtain ⟨N, hNa, hNb, _hNQ⟩ := hcollars (t (L.subsequence k)) (ht _) y' hhigh hfar |
| 101 | have hbunit : N.b * Real.sqrt R = 1 := by rw [hNb]; exact inv_mul_cancel₀ hrootR.ne' |
| 102 | have hbase : radialArclength g ‖z‖ < N.a - N.b * epsilon⁻¹ := by |
| 103 | apply (mul_lt_mul_iff_of_pos_right hrootR).mp |
| 104 | have hform : (N.a - N.b * epsilon⁻¹) * Real.sqrt R = |
| 105 | N.a * Real.sqrt R - epsilon⁻¹ := by |
| 106 | rw [sub_mul] |
| 107 | congr 1 |
| 108 | calc |
| 109 | _ = (N.b * Real.sqrt R) * epsilon⁻¹ := by ring |
| 110 | _ = _ := by rw [hbunit, one_mul] |
| 111 | rw [hform, hNa] |
| 112 | have hh := hk.2.2.1 |
| 113 | dsimp only [J] at hh |
| 114 | linarith only [hh, hT] |
| 115 | have htip : G.edist 0 z ≤ ENNReal.ofReal D := by |
| 116 | have heq := M13.homothety_edist g G (Diffeomorph.refl (𝓡 3) V ∞) Q hQ |
| 117 | (M13.identity_metricHomothety g Q hQ) 0 z |
| 118 | change G.edist 0 z = ENNReal.ofReal (Real.sqrt Q) * g.edist 0 z at heq |
| 119 | have hh : (g.edist 0 z).toReal * Real.sqrt Q ≤ D := by |
| 120 | simpa only [g, z, Q, blowupSequence_scale] using hd (L.subsequence k) |
| 121 | rw [heq, ← ENNReal.ofReal_toReal (g.edist_ne_top 0 z), |
| 122 | ← ENNReal.ofReal_mul hrootQ.le, mul_comm] |
| 123 | exact ENNReal.ofReal_le_ofReal hh |
| 124 | have hdistance : G.edist 0 y' ≤ ENNReal.ofReal (D + B) := calc |
| 125 | _ ≤ G.edist 0 z + G.edist z y' := |
| 126 | @edist_triangle V G.toEMetricSpace.toPseudoEMetricSpace 0 z y' |
| 127 | _ ≤ ENNReal.ofReal D + ENNReal.ofReal B := add_le_add htip hk.2.2.2.le |
| 128 | _ = _ := (ENNReal.ofReal_add hD hB.le).symm |
| 129 | have hNaQ : N.a * Real.sqrt Q ≤ D + B := by |
| 130 | rw [edist_zero_eq_radialArclength G |
| 131 | (scaleSmoothMetric_rotation_invariant hrot Q hQ) |
| 132 | (scaleSmoothMetric_complete g hc Q hQ) P, radialArclength_scale] at hdistance |
| 133 | have hh := (ENNReal.ofReal_le_ofReal_iff (add_nonneg hD hB.le)).mp hdistance |
| 134 | rw [hNa] |
| 135 | simpa only [mul_comm] using hh |
| 136 | have hNbQ : N.b * Real.sqrt Q ≤ rootm⁻¹ := by |
| 137 | have hsqrt : rootm * Real.sqrt Q ≤ Real.sqrt R := by |
| 138 | simpa only [rootm, Real.sqrt_mul hm.le] using Real.sqrt_le_sqrt hk.1 |
| 139 | have h := mul_le_mul_of_nonneg_right hsqrt N.b_pos.le |
| 140 | rw [mul_comm (Real.sqrt R), hbunit] at h |
| 141 | have hh : (N.b * Real.sqrt Q) * rootm ≤ 1 := by nlinarith only [h] |
| 142 | simpa only [one_div] using (le_div_iff₀ hrootm).mpr hh |
| 143 | refine ⟨N, hbase, ?_, ?_⟩ |
| 144 | · have hw := mul_le_mul_of_nonneg_right hNbQ hel.le |
| 145 | dsimp only [Rmax] |
| 146 | nlinarith only [hNaQ, hw] |
| 147 | · have hf := mul_lt_mul_of_pos_right N.radius hrootQ |
| 148 | dsimp only [F] |
| 149 | nlinarith only [hf, hNbQ] |
| 150 | |
| 151 | end PoincareMT.M35.OrdinaryRealization |