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.InitialRadialComparison |
| 3 | |
| 4 | /-! |
| 5 | # The two genuine radial cap necks on the closed initial slab |
| 6 | |
| 7 | Morgan-Tian Theorem 12.32, pp. 326-327. The exact exterior scalar |
| 8 | and orbit-radius controls choose both independently normalized necks |
| 9 | in one true radial coordinate. Their relative widths and full core |
| 10 | curvature-ball margins hold uniformly on the same closed time slab. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | namespace PoincareMT.M35.Uniqueness |
| 20 | |
| 21 | /-- Both actual full necks and the exact core-ball size conditions |
| 22 | hold for every sufficiently far radial center on the closed initial slab. -/ |
| 23 | theorem exists_initial_radial_cap_ends |
| 24 | (P : RicciFlowCurvatureTheory.{0}) {g₀ : StandardInitialMetric} |
| 25 | (E : RepairedStandardCapExistenceData g₀) {theta epsilon : ℝ} |
| 26 | (htheta : 0 < theta) (hthetalt : theta < E.flow.base.lifetime) |
| 27 | (he : 0 < epsilon) (hehalf : epsilon < 1 / 2) : |
| 28 | ∃ R : ℝ, 0 < R ∧ ∀ t ∈ Icc 0 theta, ∀ a ≥ R, |
| 29 | let Q := (E.flow.connection t).scalarCurvature |
| 30 | (rawInverseRadius P E.flow.base E.rotation_invariant t a • |
| 31 | EuclideanSpace.single (2 : Fin 3) (1 : ℝ)) |
| 32 | let b := (Real.sqrt Q)⁻¹ |
| 33 | let a' := a - b * epsilon⁻¹ |
| 34 | let Q' := (E.flow.connection t).scalarCurvature |
| 35 | (rawInverseRadius P E.flow.base E.rotation_invariant t a' • |
| 36 | EuclideanSpace.single (2 : Fin 3) (1 : ℝ)) |
| 37 | let b' := (Real.sqrt Q')⁻¹ |
| 38 | InitialRadialComparison P E t a epsilon ∧ |
| 39 | InitialRadialComparison P E t a' epsilon ∧ |
| 40 | b < 2 ∧ b' < 2 * b ∧ |
| 41 | 6 * rawWarpingRadius P E.flow.base E.rotation_invariant t a < a ∧ |
| 42 | rawWarpingRadius P E.flow.base E.rotation_invariant t a < 2 * (b * epsilon⁻¹) := by |
| 43 | have htone : theta < 1 := E.lifetime_one ▸ hthetalt |
| 44 | obtain ⟨Rn, hRn, hneck⟩ := exists_initial_radial_comparison_threshold |
| 45 | P E htheta hthetalt he |
| 46 | obtain ⟨Rs, hRs, hscalar⟩ := exists_initial_intrinsic_scalar_control |
| 47 | P E ⟨htheta.le, hthetalt⟩ (by norm_num : (0 : ℝ) < 1 / 4) |
| 48 | obtain ⟨Rf, hRf, hradius⟩ := exists_initial_intrinsic_squared_radius_control |
| 49 | P E htheta hthetalt (half_pos (sub_pos.mpr htone)) |
| 50 | let F := 2 * E.initial_estimate.scalar_constant + 1 |
| 51 | have hF : 0 < F := by |
| 52 | dsimp only [F] |
| 53 | linarith only [E.initial_estimate.scalar_constant_pos] |
| 54 | have hel : 0 < epsilon⁻¹ := inv_pos.mpr he |
| 55 | have helone : 1 < epsilon⁻¹ := (one_lt_inv₀ he).mpr (by linarith only [hehalf]) |
| 56 | let R := Rn + Rs + Rf + 2 * epsilon⁻¹ + 6 * F + 1 |
| 57 | have hR : 0 < R := by dsimp only [R]; positivity |
| 58 | refine ⟨R, hR, ?_⟩ |
| 59 | intro t ht a ha |
| 60 | let Q := (E.flow.connection t).scalarCurvature |
| 61 | (rawInverseRadius P E.flow.base E.rotation_invariant t a • |
| 62 | EuclideanSpace.single (2 : Fin 3) (1 : ℝ)) |
| 63 | let b := (Real.sqrt Q)⁻¹ |
| 64 | let a' := a - b * epsilon⁻¹ |
| 65 | let Q' := (E.flow.connection t).scalarCurvature |
| 66 | (rawInverseRadius P E.flow.base E.rotation_invariant t a' • |
| 67 | EuclideanSpace.single (2 : Fin 3) (1 : ℝ)) |
| 68 | let b' := (Real.sqrt Q')⁻¹ |
| 69 | let f := rawWarpingRadius P E.flow.base E.rotation_invariant t a |
| 70 | change InitialRadialComparison P E t a epsilon ∧ |
| 71 | InitialRadialComparison P E t a' epsilon ∧ b < 2 ∧ b' < 2 * b ∧ |
| 72 | 6 * f < a ∧ f < 2 * (b * epsilon⁻¹) |
| 73 | have htime : t ∈ Ico 0 E.flow.base.lifetime := ⟨ht.1, ht.2.trans_lt hthetalt⟩ |
| 74 | have haRn : Rn ≤ a := by dsimp only [R] at ha; linarith only [ha, hRs, hRf, hel, hF] |
| 75 | have haRs : Rs ≤ a := by dsimp only [R] at ha; linarith only [ha, hRn, hRf, hel, hF] |
| 76 | have haRf : Rf ≤ a := by dsimp only [R] at ha; linarith only [ha, hRn, hRs, hel, hF] |
| 77 | have hapos : 0 < a := hRn.trans_le haRn |
| 78 | have hQ : 0 < Q := E.scalar_pos htime _ |
| 79 | have hb : 0 < b := inv_pos.mpr (Real.sqrt_pos.mpr hQ) |
| 80 | have hunit : Q * b ^ 2 = 1 := by |
| 81 | dsimp only [b] |
| 82 | rw [inv_pow, Real.sq_sqrt hQ.le, mul_inv_cancel₀ hQ.ne'] |
| 83 | have hs := hscalar t ht a haRs |
| 84 | change |(1 - t) * Q - 1| < 1 / 4 at hs |
| 85 | have hslo := (abs_lt.mp hs).1 |
| 86 | have hshi := (abs_lt.mp hs).2 |
| 87 | have htimeone : 0 < 1 - t := sub_pos.mpr (ht.2.trans_lt htone) |
| 88 | have hQlo : (1 / 4 : ℝ) < Q := by |
| 89 | have hmul : (1 - t) * Q ≤ Q := by nlinarith only [ht.1, hQ] |
| 90 | linarith only [hmul, hslo] |
| 91 | have hbsmall : b < 2 := by |
| 92 | have h := mul_lt_mul_of_pos_right hQlo (sq_pos_of_pos hb) |
| 93 | rw [hunit] at h |
| 94 | nlinarith only [h, hb] |
| 95 | have hwsmall : b * epsilon⁻¹ < 2 * epsilon⁻¹ := |
| 96 | mul_lt_mul_of_pos_right hbsmall hel |
| 97 | have ha'Rn : Rn ≤ a' := by |
| 98 | dsimp only [a'] |
| 99 | dsimp only [R] at ha |
| 100 | linarith only [ha, hwsmall, hRs, hRf, hF] |
| 101 | have ha'Rs : Rs ≤ a' := by |
| 102 | dsimp only [a'] |
| 103 | dsimp only [R] at ha |
| 104 | linarith only [ha, hwsmall, hRn, hRf, hF] |
| 105 | have hQ' : 0 < Q' := E.scalar_pos htime _ |
| 106 | have hb' : 0 < b' := inv_pos.mpr (Real.sqrt_pos.mpr hQ') |
| 107 | have hunit' : Q' * b' ^ 2 = 1 := by |
| 108 | dsimp only [b'] |
| 109 | rw [inv_pow, Real.sq_sqrt hQ'.le, mul_inv_cancel₀ hQ'.ne'] |
| 110 | have hs' := hscalar t ht a' ha'Rs |
| 111 | change |(1 - t) * Q' - 1| < 1 / 4 at hs' |
| 112 | have hs'lo := (abs_lt.mp hs').1 |
| 113 | have hQQ' : Q < 4 * Q' := by |
| 114 | apply (mul_lt_mul_iff_of_pos_left htimeone).mp |
| 115 | nlinarith only [hshi, hs'lo] |
| 116 | have hspeed : b' < 2 * b := by |
| 117 | have h := mul_lt_mul_of_pos_right hQQ' (sq_pos_of_pos hb) |
| 118 | rw [hunit] at h |
| 119 | have hsq : b' ^ 2 < 4 * b ^ 2 := by |
| 120 | apply (mul_lt_mul_iff_of_pos_left hQ').mp |
| 121 | nlinarith only [h, hunit'] |
| 122 | nlinarith only [hsq, hb', hb] |
| 123 | have hcontrols := raw_intrinsic_warping_controls P E.initial_estimate E.flow.base |
| 124 | htime (E.rotation_invariant t htime) a hapos |
| 125 | have hfpos : 0 < f := by |
| 126 | simpa only [f, rawWarpingRadius_eq P E.flow.base E.rotation_invariant htime] using |
| 127 | hcontrols.1 |
| 128 | have hfbound : f ≤ F := by |
| 129 | have hfsq : f ^ 2 ≤ 2 * E.initial_estimate.scalar_constant := by |
| 130 | simpa only [f, rawWarpingRadius_eq P E.flow.base E.rotation_invariant htime] using |
| 131 | hcontrols.2.1 |
| 132 | dsimp only [F] |
| 133 | nlinarith only [hfsq, sq_nonneg (f - 1)] |
| 134 | have hfar : 6 * f < a := by |
| 135 | dsimp only [R] at ha |
| 136 | linarith only [ha, hfbound, hRn, hRs, hRf, hel] |
| 137 | have hfmodel := hradius t ht a haRf |
| 138 | change |f ^ 2 - 2 * (1 - t)| < (1 - theta) / 2 at hfmodel |
| 139 | have hfsq : f ^ 2 < (5 / 2) * (1 - t) := by |
| 140 | have h := (abs_lt.mp hfmodel).2 |
| 141 | linarith only [h, ht.2] |
| 142 | have hQf : Q * f ^ 2 < 4 := by |
| 143 | have h := mul_lt_mul_of_pos_left hfsq hQ |
| 144 | nlinarith only [h, hshi] |
| 145 | have hfb : f < 2 * b := by |
| 146 | have hsq : f ^ 2 < 4 * b ^ 2 := by |
| 147 | apply (mul_lt_mul_iff_of_pos_left hQ).mp |
| 148 | nlinarith only [hQf, hunit] |
| 149 | nlinarith only [hsq, hfpos, hb] |
| 150 | have hwidth : f < 2 * (b * epsilon⁻¹) := by |
| 151 | have h := mul_lt_mul_of_pos_left helone (mul_pos (by norm_num : (0 : ℝ) < 2) hb) |
| 152 | nlinarith only [hfb, h] |
| 153 | exact ⟨hneck t ht a haRn, hneck t ht a' ha'Rn, hbsmall, hspeed, hfar, hwidth⟩ |
| 154 | |
| 155 | end PoincareMT.M35.Uniqueness |