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.InitialRadialEnds |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.InitialCompactOperators |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.InitialCoreVolume |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.RadialCapNeighborhood |
| 6 | |
| 7 | /-! |
| 8 | # Actual caps covering the bounded initial radial region |
| 9 | |
| 10 | Morgan-Tian Theorem 12.32, pp. 326-327. A fixed sufficiently far |
| 11 | radial center supplies both genuine full necks. Their common carrier |
| 12 | has uniform scalar, operator, diameter and volume bounds on the closed |
| 13 | initial slab, including the literal time-zero core balls. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set |
| 20 | open scoped Manifold ContDiff Bundle Topology |
| 21 | |
| 22 | namespace PoincareMT.M35.Uniqueness |
| 23 | |
| 24 | local notation "V" => StandardCapSpace |
| 25 | |
| 26 | /-- Every bounded true radial region on a closed initial slab is |
| 27 | covered by actual frozen caps with one constant and the exact requested |
| 28 | epsilon. The literal smooth closed-ball core is part of each witness. -/ |
| 29 | theorem exists_initial_radial_caps |
| 30 | (P : M35StandardCapPredecessors) {g₀ : StandardInitialMetric} |
| 31 | (E : RepairedStandardCapExistenceData g₀) {theta epsilon Y : ℝ} |
| 32 | (htheta : 0 < theta) (hthetalt : theta < E.flow.base.lifetime) |
| 33 | (he : 0 < epsilon) (hehalf : epsilon < 1 / 2) (hY : 0 ≤ Y) : |
| 34 | ∃ C₀ : ℝ, 0 < C₀ ∧ ∀ C ≥ C₀, ∀ t ∈ Icc 0 theta, ∀ x : V, |
| 35 | radialArclength (E.flow.metric t) ‖x‖ ≤ Y → |
| 36 | Nonempty (StandardCapNeighborhood E.atlas E.flow t epsilon C x) := by |
| 37 | obtain ⟨A, hA, hends⟩ := exists_initial_radial_cap_ends |
| 38 | P.curvature E htheta hthetalt he hehalf |
| 39 | let a := A + Y + 2 * epsilon⁻¹ + 1 |
| 40 | have hel : 0 < epsilon⁻¹ := inv_pos.mpr he |
| 41 | have ha : 0 < a := by dsimp only [a]; positivity |
| 42 | have hAa : A ≤ a := by dsimp only [a]; linarith only [hY, hel] |
| 43 | let Rmax := a + 2 * epsilon⁻¹ |
| 44 | have hRmax : 0 < Rmax := by dsimp only [Rmax]; positivity |
| 45 | obtain ⟨K, hK, hcarrier⟩ := exists_initial_radial_carrier_compact |
| 46 | P.curvature E ⟨htheta.le, hthetalt⟩ Rmax |
| 47 | obtain ⟨B, hB, hbounds⟩ := exists_compact_initial_scalar_operator_bounds E |
| 48 | ⟨htheta.le, hthetalt⟩ hK |
| 49 | let F := 2 * E.initial_estimate.scalar_constant + 1 |
| 50 | have hF : 0 < F := by |
| 51 | dsimp only [F] |
| 52 | linarith only [E.initial_estimate.scalar_constant_pos] |
| 53 | obtain ⟨Cv, hCv, hcorevolume⟩ := exists_initial_radial_ball_strict_volume P E |
| 54 | ⟨htheta.le, hthetalt⟩ ha.le (show 0 ≤ 3 * F by positivity) |
| 55 | let d := B ^ (-1 / 2 : ℝ) |
| 56 | let v := B ^ (-3 / 2 : ℝ) |
| 57 | have hd : 0 < d := Real.rpow_pos_of_pos hB _ |
| 58 | have hv : 0 < v := Real.rpow_pos_of_pos hB _ |
| 59 | let Vmax := Rmax ^ 3 * (Real.pi * 4 / 3) |
| 60 | have hVmax : 0 < Vmax := by dsimp only [Vmax]; positivity |
| 61 | let Cd := 2 * Rmax / d + 1 |
| 62 | let Cm := Vmax / v + 1 |
| 63 | have hCd : 0 < Cd := by dsimp only [Cd]; positivity |
| 64 | have hCm : 0 < Cm := by dsimp only [Cm]; positivity |
| 65 | let C₀ := Cv + B ^ 2 + B + Cd + Cm + 1 |
| 66 | have hC₀ : 0 < C₀ := by dsimp only [C₀]; positivity |
| 67 | refine ⟨C₀, hC₀, ?_⟩ |
| 68 | intro C hC t ht x hx |
| 69 | have hCpos : 0 < C := hC₀.trans_le hC |
| 70 | have hCvC : Cv ≤ C := by dsimp only [C₀] at hC; nlinarith only [hC, hB, hCd, hCm] |
| 71 | have hBC : B ≤ C := by dsimp only [C₀] at hC; nlinarith only [hC, hCv, hCd, hCm] |
| 72 | have hBsC : B ^ 2 < C := by |
| 73 | dsimp only [C₀] at hC |
| 74 | linarith only [hC, hCv, hB, hCd, hCm] |
| 75 | have hCdC : Cd ≤ C := by dsimp only [C₀] at hC; nlinarith only [hC, hCv, hB, hCm] |
| 76 | have hCmC : Cm ≤ C := by dsimp only [C₀] at hC; nlinarith only [hC, hCv, hB, hCd] |
| 77 | have htime : t ∈ Ico 0 E.flow.base.lifetime := ⟨ht.1, ht.2.trans_lt hthetalt⟩ |
| 78 | let g := E.flow.metric t |
| 79 | let D := E.flow.connection t |
| 80 | let hrot := E.rotation_invariant t htime |
| 81 | let hc := E.complete t htime |
| 82 | let Q := D.scalarCurvature |
| 83 | (rawInverseRadius P.curvature E.flow.base E.rotation_invariant t a • |
| 84 | EuclideanSpace.single (2 : Fin 3) (1 : ℝ)) |
| 85 | let b := (Real.sqrt Q)⁻¹ |
| 86 | let a' := a - b * epsilon⁻¹ |
| 87 | let Q' := D.scalarCurvature |
| 88 | (rawInverseRadius P.curvature E.flow.base E.rotation_invariant t a' • |
| 89 | EuclideanSpace.single (2 : Fin 3) (1 : ℝ)) |
| 90 | let b' := (Real.sqrt Q')⁻¹ |
| 91 | let R := a + b * epsilon⁻¹ |
| 92 | have hQ : 0 < Q := E.scalar_pos htime _ |
| 93 | have hQ' : 0 < Q' := E.scalar_pos htime _ |
| 94 | have hb : 0 < b := inv_pos.mpr (Real.sqrt_pos.mpr hQ) |
| 95 | have hb' : 0 < b' := inv_pos.mpr (Real.sqrt_pos.mpr hQ') |
| 96 | have hunit : Q * b ^ 2 = 1 := by |
| 97 | dsimp only [b] |
| 98 | rw [inv_pow, Real.sq_sqrt hQ.le, mul_inv_cancel₀ hQ.ne'] |
| 99 | have hunit' : Q' * b' ^ 2 = 1 := by |
| 100 | dsimp only [b'] |
| 101 | rw [inv_pow, Real.sq_sqrt hQ'.le, mul_inv_cancel₀ hQ'.ne'] |
| 102 | obtain ⟨hend, hend', hbsmall, hspeed, hfar, hwidth⟩ := hends t ht a hAa |
| 103 | change 0 < a' ∧ RoundCylinderClose epsilon 0 (radialCylinderTensor |
| 104 | (fun u => Q * rawWarpingRadius P.curvature E.flow.base E.rotation_invariant t |
| 105 | (a + b * u) ^ 2) 1) at hend |
| 106 | change 0 < a' - b' * epsilon⁻¹ ∧ RoundCylinderClose epsilon 0 (radialCylinderTensor |
| 107 | (fun u => Q' * rawWarpingRadius P.curvature E.flow.base E.rotation_invariant t |
| 108 | (a' + b' * u) ^ 2) 1) at hend' |
| 109 | have hfeq : rawWarpingRadius P.curvature E.flow.base E.rotation_invariant t = |
| 110 | intrinsicWarpingRadius g hrot hc := by |
| 111 | convert! rawWarpingRadius_eq P.curvature E.flow.base E.rotation_invariant htime using 1 |
| 112 | rw [hfeq] at hend hend' hfar hwidth |
| 113 | have hR : 0 < R := by dsimp only [R]; positivity |
| 114 | have hRR : R ≤ Rmax := by |
| 115 | have h := mul_le_mul_of_nonneg_right hbsmall.le hel.le |
| 116 | dsimp only [R, Rmax] |
| 117 | linarith only [h] |
| 118 | have hcenter : radialArclength g ‖x‖ < a' := by |
| 119 | have h := mul_lt_mul_of_pos_right hbsmall hel |
| 120 | dsimp only [a', a] |
| 121 | linarith only [hx, h, hA] |
| 122 | have hinside (y : V) (hy : y ∈ g.ball 0 R) : y ∈ K := by |
| 123 | have hrad : radialArclength g ‖y‖ < R := by |
| 124 | change g.edist 0 y < ENNReal.ofReal R at hy |
| 125 | rw [edist_zero_eq_radialArclength g hrot hc P] at hy |
| 126 | exact ENNReal.ofReal_lt_ofReal_iff_of_nonneg (by |
| 127 | simpa only [radialArclength_zero] using |
| 128 | (radialArclength_strictMono g).monotone (norm_nonneg y)) |>.mp hy |
| 129 | exact hcarrier t ht y (hrad.le.trans hRR) |
| 130 | have hbound (y : V) (hy : y ∈ g.ball 0 R) := hbounds t ht y (hinside y hy) |
| 131 | have hzero : (0 : V) ∈ g.ball 0 R := by |
| 132 | change g.edist 0 0 < ENNReal.ofReal R |
| 133 | rw [show g.edist 0 0 = 0 from @edist_self V g.toEMetricSpace.toPseudoEMetricSpace 0] |
| 134 | exact ENNReal.ofReal_pos.mpr hR |
| 135 | let S := scalarCurvatureSupOn g D (g.ball 0 R) |
| 136 | have hbounded : BddAbove (range fun z : g.ball 0 R => D.scalarCurvature z.1) := by |
| 137 | refine ⟨B, ?_⟩ |
| 138 | rintro _ ⟨z, rfl⟩ |
| 139 | exact (hbound z z.property).2.1 |
| 140 | have hSpos : 0 < S := (E.scalar_pos htime 0).trans_le |
| 141 | (le_csSup hbounded ⟨⟨0, hzero⟩, rfl⟩) |
| 142 | have hSB : S ≤ B := by |
| 143 | change sSup (range fun z : g.ball 0 R => D.scalarCurvature z.1) ≤ B |
| 144 | apply csSup_le (s := range fun z : g.ball 0 R => D.scalarCurvature z.1) |
| 145 | ⟨D.scalarCurvature 0, ⟨⟨0, hzero⟩, rfl⟩⟩ |
| 146 | rintro _ ⟨z, rfl⟩ |
| 147 | exact (hbound z z.property).2.1 |
| 148 | have hdS : d ≤ S ^ (-1 / 2 : ℝ) := |
| 149 | Real.rpow_le_rpow_of_nonpos hSpos hSB (by norm_num) |
| 150 | have hvS : v ≤ S ^ (-3 / 2 : ℝ) := |
| 151 | Real.rpow_le_rpow_of_nonpos hSpos hSB (by norm_num) |
| 152 | have hdiam : 2 * R ≤ C * S ^ (-1 / 2 : ℝ) := by |
| 153 | have hCd' : 2 * Rmax / d < C := by dsimp only [Cd] at hCdC; linarith only [hCdC] |
| 154 | exact (mul_le_mul_of_nonneg_left hRR (by norm_num)).trans |
| 155 | (((div_lt_iff₀ hd).mp hCd').le.trans |
| 156 | (mul_le_mul_of_nonneg_left hdS hCpos.le)) |
| 157 | have hvol : R ^ 3 * (Real.pi * 4 / 3) < C * S ^ (-3 / 2 : ℝ) := by |
| 158 | have hCm' : Vmax / v < C := by dsimp only [Cm] at hCmC; linarith only [hCmC] |
| 159 | have hRvol : R ^ 3 * (Real.pi * 4 / 3) ≤ Vmax := |
| 160 | mul_le_mul_of_nonneg_right (pow_le_pow_left₀ hR.le hRR 3) (by positivity) |
| 161 | exact hRvol.trans_lt (((div_lt_iff₀ hv).mp hCm').trans_le |
| 162 | (mul_le_mul_of_nonneg_left hvS hCpos.le)) |
| 163 | let q : UnitTwoSphere := ⟨EuclideanSpace.single (2 : Fin 3) (1 : ℝ), by simp⟩ |
| 164 | have hscalar (s : ℝ) (hs : 0 < s) : |
| 165 | D.scalarCurvature (intrinsicSpatialInverse g hrot hc (s • q.val)) = |
| 166 | D.scalarCurvature (rawInverseRadius P.curvature E.flow.base E.rotation_invariant |
| 167 | t s • EuclideanSpace.single (2 : Fin 3) (1 : ℝ)) := by |
| 168 | rw [(rotational_scalar_edist_eq_axis P D hrot _).1, |
| 169 | intrinsicSpatialInverse_norm, norm_smul, Real.norm_eq_abs, abs_of_pos hs, |
| 170 | norm_eq_of_mem_sphere, mul_one] |
| 171 | congr 2 |
| 172 | convert! (rawInverseRadius_eq P.curvature E.flow.base E.rotation_invariant htime s).symm |
| 173 | using 1 |
| 174 | refine ⟨radialCapNeighborhood P E t htime x q a b b' Q Q' epsilon C |
| 175 | hb hb' hQ hQ' he hehalf hCpos hunit hunit' hend.1 hend'.1 hspeed hcenter |
| 176 | (hscalar a ha) (hscalar a' hend.1) hend.2 hend'.2 hfar hwidth ?_ hdiam hvol ?_ ?_ ?_⟩ |
| 177 | · intro y hy z hz |
| 178 | have hratio : B < C * B⁻¹ := by |
| 179 | rw [← div_eq_mul_inv] |
| 180 | apply (lt_div_iff₀ hB).mpr |
| 181 | simpa only [pow_two] using hBsC |
| 182 | exact (hbound z hz).2.1.trans_lt (hratio.trans_le |
| 183 | (mul_le_mul_of_nonneg_left (hbound y hy).1 hCpos.le)) |
| 184 | · intro y hy r hr hrbound _hscale |
| 185 | have hfbound : intrinsicWarpingRadius g hrot hc a ≤ F := by |
| 186 | have h := raw_intrinsic_warping_controls P.curvature E.initial_estimate E.flow.base |
| 187 | htime hrot a ha |
| 188 | have hsq : intrinsicWarpingRadius g hrot hc a ^ 2 ≤ |
| 189 | 2 * E.initial_estimate.scalar_constant := h.2.1 |
| 190 | dsimp only [F] |
| 191 | nlinarith only [hsq, sq_nonneg (intrinsicWarpingRadius g hrot hc a - 1)] |
| 192 | exact hcorevolume C hCvC t ht y (by |
| 193 | change radialArclength g ‖y‖ ≤ a |
| 194 | have hw : 0 < b * epsilon⁻¹ := mul_pos hb hel |
| 195 | linarith only [hy, hw]) r hr |
| 196 | (hrbound.trans (mul_le_mul_of_nonneg_left hfbound (by norm_num))) |
| 197 | · intro y hy |
| 198 | exact (hbound y hy).2.2.1.trans_le (mul_le_mul_of_nonneg_right hBC |
| 199 | (Real.rpow_nonneg (E.scalar_pos htime y).le _)) |
| 200 | · intro y hy |
| 201 | exact (hbound y hy).2.2.2.trans_le (mul_le_mul_of_nonneg_right hBC (sq_nonneg _)) |
| 202 | |
| 203 | end PoincareMT.M35.Uniqueness |