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.ScalarRadialNeck |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.RadialCapBoundary |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.RadialBallVolume |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.RadialCoreCurvatureBalls |
| 6 | import Mathlib.MeasureTheory.Measure.Lebesgue.VolumeOfBalls |
| 7 | |
| 8 | /-! |
| 9 | # The literal radial cap in the original flow |
| 10 | |
| 11 | Morgan-Tian Definition 9.72 and Theorem 12.32, pp. 326-327. |
| 12 | The actual two scalar-normalized radial necks determine one open ball, |
| 13 | its compact smooth closed-ball core, and the exact boundary sphere. |
| 14 | The remaining analytic inputs are bounds on that explicit carrier. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | open Set Metric MeasureTheory |
| 21 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 22 | |
| 23 | namespace PoincareMT.M35.Uniqueness |
| 24 | |
| 25 | local notation "V" => StandardCapSpace |
| 26 | |
| 27 | /-- The frozen cap witness for the actual radial carrier. Both full |
| 28 | neck comparisons use the requested epsilon and their own central scalar. |
| 29 | The diameter, total volume, exact curvature radii, and literal smooth |
| 30 | closed-ball topology are supplied by the actual radial geometry. -/ |
| 31 | noncomputable def radialCapNeighborhood |
| 32 | (P : M35StandardCapPredecessors) {g₀ : StandardInitialMetric} |
| 33 | (E : RepairedStandardCapExistenceData g₀) (t : ℝ) |
| 34 | (ht : t ∈ Ico 0 E.flow.base.lifetime) (x : V) (q : UnitTwoSphere) |
| 35 | (a b b' Q Q' epsilon C : ℝ) |
| 36 | (hb : 0 < b) (hb' : 0 < b') (hQ : 0 < Q) (hQ' : 0 < Q') |
| 37 | (he : 0 < epsilon) (hehalf : epsilon < 1 / 2) (hC : 0 < C) |
| 38 | (hunit : Q * b ^ 2 = 1) (hunit' : Q' * b' ^ 2 = 1) |
| 39 | (hinner : 0 < a - b * epsilon⁻¹) |
| 40 | (hinner' : 0 < (a - b * epsilon⁻¹) - b' * epsilon⁻¹) |
| 41 | (hspeed : b' < 2 * b) |
| 42 | (hcenter : radialArclength (E.flow.metric t) ‖x‖ < a - b * epsilon⁻¹) |
| 43 | (hscalar : (E.flow.connection t).scalarCurvature |
| 44 | (intrinsicSpatialInverse (E.flow.metric t) (E.rotation_invariant t ht) |
| 45 | (E.complete t ht) (a • q.val)) = Q) |
| 46 | (hscalar' : (E.flow.connection t).scalarCurvature |
| 47 | (intrinsicSpatialInverse (E.flow.metric t) (E.rotation_invariant t ht) |
| 48 | (E.complete t ht) ((a - b * epsilon⁻¹) • q.val)) = Q') |
| 49 | (hend : RoundCylinderClose epsilon 0 (radialCylinderTensor |
| 50 | (fun u => Q * intrinsicWarpingRadius (E.flow.metric t) |
| 51 | (E.rotation_invariant t ht) (E.complete t ht) (a + b * u) ^ 2) 1)) |
| 52 | (hboundary : RoundCylinderClose epsilon 0 (radialCylinderTensor |
| 53 | (fun u => Q' * intrinsicWarpingRadius (E.flow.metric t) |
| 54 | (E.rotation_invariant t ht) (E.complete t ht) |
| 55 | ((a - b * epsilon⁻¹) + b' * u) ^ 2) 1)) |
| 56 | (hfar : 6 * intrinsicWarpingRadius (E.flow.metric t) |
| 57 | (E.rotation_invariant t ht) (E.complete t ht) a < a) |
| 58 | (hwidth : intrinsicWarpingRadius (E.flow.metric t) |
| 59 | (E.rotation_invariant t ht) (E.complete t ht) a < 2 * (b * epsilon⁻¹)) |
| 60 | (hratio : ∀ y ∈ (E.flow.metric t).ball 0 (a + b * epsilon⁻¹), |
| 61 | ∀ z ∈ (E.flow.metric t).ball 0 (a + b * epsilon⁻¹), |
| 62 | (E.flow.connection t).scalarCurvature z < |
| 63 | C * (E.flow.connection t).scalarCurvature y) |
| 64 | (hdiameter : 2 * (a + b * epsilon⁻¹) ≤ C * |
| 65 | scalarCurvatureSupOn (E.flow.metric t) (E.flow.connection t) |
| 66 | ((E.flow.metric t).ball 0 (a + b * epsilon⁻¹)) ^ (-1 / 2 : ℝ)) |
| 67 | (hvolume : (a + b * epsilon⁻¹) ^ 3 * (Real.pi * 4 / 3) < C * |
| 68 | scalarCurvatureSupOn (E.flow.metric t) (E.flow.connection t) |
| 69 | ((E.flow.metric t).ball 0 (a + b * epsilon⁻¹)) ^ (-3 / 2 : ℝ)) |
| 70 | (hcorevolume : ∀ y : V, radialArclength (E.flow.metric t) ‖y‖ < a - b * epsilon⁻¹ → |
| 71 | ∀ r : ℝ, 0 < r → r ≤ 3 * intrinsicWarpingRadius (E.flow.metric t) |
| 72 | (E.rotation_invariant t ht) (E.complete t ht) a → |
| 73 | scalarCurvatureSupOn (E.flow.metric t) (E.flow.connection t) |
| 74 | ((E.flow.metric t).ball y r) = r⁻¹ ^ 2 → |
| 75 | ENNReal.ofReal (C⁻¹ * r ^ 3) < |
| 76 | calibratedMetricVolume (E.flow.metric t) ((E.flow.metric t).ball y r)) |
| 77 | (hgradient : ∀ y ∈ (E.flow.metric t).ball 0 (a + b * epsilon⁻¹), |
| 78 | scalarGradientNorm (E.flow.metric t) (E.flow.connection t) y < |
| 79 | C * (E.flow.connection t).scalarCurvature y ^ (3 / 2 : ℝ)) |
| 80 | (hevolution : ∀ y ∈ (E.flow.metric t).ball 0 (a + b * epsilon⁻¹), |
| 81 | |(E.flow.connection t).laplacian (E.flow.connection t).scalarCurvature y + |
| 82 | 2 * (E.flow.connection t).ricciNormSq y| < |
| 83 | C * (E.flow.connection t).scalarCurvature y ^ 2) : |
| 84 | StandardCapNeighborhood E.atlas E.flow t epsilon C x := by |
| 85 | classical |
| 86 | apply Classical.choice |
| 87 | let g := E.flow.metric t |
| 88 | let D := E.flow.connection t |
| 89 | let hrot := E.rotation_invariant t ht |
| 90 | let hc := E.complete t ht |
| 91 | let R := a + b * epsilon⁻¹ |
| 92 | let s := a - b * epsilon⁻¹ |
| 93 | have hl : 0 < epsilon⁻¹ := inv_pos.mpr he |
| 94 | have hw : 0 < b * epsilon⁻¹ := mul_pos hb hl |
| 95 | have ha : 0 < a := by linarith only [hinner, hw] |
| 96 | have hR : 0 < R := by dsimp only [R]; linarith only [ha, hw] |
| 97 | let N := scalarRadialNeck g hrot hc E.atlas D Q hQ q a b epsilon |
| 98 | hb he hehalf hunit hinner hscalar hend |
| 99 | let N' := scalarRadialNeck g hrot hc E.atlas D Q' hQ' q s b' epsilon |
| 100 | hb' he hehalf hunit' hinner' hscalar' hboundary |
| 101 | obtain ⟨f, fi, hfrange, hfleft, hfright, hfsmooth, hfismooth⟩ := |
| 102 | radial_metric_ball_carrier_witness g hrot hc P hR |
| 103 | obtain ⟨core, hcoresmooth, hcoreinj, hcoreimmersion, hcoreimage, hcoreboundary⟩ := |
| 104 | radial_metric_ball_closed_core_witness g hrot hc P hinner |
| 105 | refine ⟨{ |
| 106 | time_mem := ht |
| 107 | epsilon_pos := he |
| 108 | epsilon_lt_half := hehalf |
| 109 | constant_pos := hC |
| 110 | carrier := g.ball 0 R |
| 111 | carrier_open := ?_ |
| 112 | ball_map := f |
| 113 | ball_inverse := fi |
| 114 | ball_map_range := hfrange |
| 115 | ball_map_left_inverse := hfleft |
| 116 | ball_map_right_inverse := hfright |
| 117 | ball_map_smooth := hfsmooth |
| 118 | ball_inverse_smooth := hfismooth |
| 119 | end_neck := N |
| 120 | end_subset := ?_ |
| 121 | closed_core := closure (g.ball 0 s) |
| 122 | closed_core_eq := ?_ |
| 123 | core_compact := radial_metric_ball_core_compact g hrot hc P hinner |
| 124 | center_in_core := mem_interior_radial_core g hrot hc P hinner hcenter |
| 125 | core_map := core |
| 126 | core_map_smooth := hcoresmooth |
| 127 | core_map_injective := hcoreinj |
| 128 | core_map_immersion := hcoreimmersion |
| 129 | core_map_image := hcoreimage |
| 130 | core_boundary := hcoreboundary |
| 131 | boundary_neck := N' |
| 132 | boundary_neck_subset := ?_ |
| 133 | boundary_sphere := ?_ |
| 134 | scalar_pos := fun y _ => E.scalar_pos ht y |
| 135 | scalar_ratio := hratio |
| 136 | diameter_bound := ?_ |
| 137 | volume_bound := ?_ |
| 138 | core_ball := ?_ |
| 139 | gradient_bound := hgradient |
| 140 | time_derivative_bound := hevolution |
| 141 | }⟩ |
| 142 | · rw [ball_zero_eq_radial_ball g hrot hc P R] |
| 143 | exact isOpen_ball |
| 144 | · change (intrinsicRadialAnnulusPatch g hrot hc q a b epsilon⁻¹ |
| 145 | hb hl hinner).carrier ⊆ g.ball 0 R |
| 146 | rw [intrinsicRadialAnnulusPatch_carrier] |
| 147 | intro y hy |
| 148 | change g.edist 0 y < ENNReal.ofReal R |
| 149 | rw [edist_zero_eq_radialArclength g hrot hc P] |
| 150 | exact (ENNReal.ofReal_lt_ofReal_iff_of_nonneg (by |
| 151 | simpa only [radialArclength_zero] using |
| 152 | (radialArclength_strictMono g).monotone (norm_nonneg y))).mpr hy.2 |
| 153 | · exact intrinsicRadialAnnulusPatch_closed_core_eq g hrot hc P q a b epsilon⁻¹ |
| 154 | hb hl hinner |
| 155 | · exact radial_boundary_neck_subset_outer_ball g hrot hc P q a b b' epsilon⁻¹ |
| 156 | hb' hl hinner' hspeed |
| 157 | · exact radial_boundary_neck_frontier g hrot hc P q s b' epsilon⁻¹ hb' hl hinner' |
| 158 | · intro y hy z hz |
| 159 | exact (radial_ball_intrinsic_diameter g D hrot hc |
| 160 | (E.nonnegative_sectional t ht) P hy hz).trans_le |
| 161 | (ENNReal.ofReal_le_ofReal hdiameter) |
| 162 | · have hv := radial_ball_volume_le g D hrot hc (E.nonnegative_sectional t ht) P R |
| 163 | rw [EuclideanSpace.volume_ball_fin_three, ← ENNReal.ofReal_pow hR.le, |
| 164 | ← ENNReal.ofReal_mul (pow_nonneg hR.le 3)] at hv |
| 165 | exact hv.trans_lt ((ENNReal.ofReal_lt_ofReal_iff_of_nonneg (by positivity)).mpr hvolume) |
| 166 | · intro y hy |
| 167 | have hr : 0 < (radialArclengthOrderIso g hrot hc).symm s := by |
| 168 | simpa only [radialArclengthOrderIso_symm_zero] using |
| 169 | (radialArclengthOrderIso g hrot hc).symm.strictMono hinner |
| 170 | rw [closure_ball_zero_eq_radial_closedBall g hrot hc P hinner, |
| 171 | interior_closedBall 0 hr.ne', mem_ball, dist_zero_right] at hy |
| 172 | have hys : radialArclength g ‖y‖ < s := by |
| 173 | change (radialArclengthOrderIso g hrot hc) ‖y‖ < s |
| 174 | simpa only [OrderIso.apply_symm_apply] using |
| 175 | (radialArclengthOrderIso g hrot hc).strictMono hy |
| 176 | have hscalarcont : Continuous D.scalarCurvature := |
| 177 | (Proofs.M09.scalarCurvature_contMDiff P.curvature D).continuous |
| 178 | obtain ⟨r, hrpos, hrbound, hrscale, hrinside, hrcompact⟩ := |
| 179 | radial_core_curvature_balls P g D hrot hc (E.nonnegative_sectional t ht) |
| 180 | ha hw hfar hwidth hscalarcont y hys |
| 181 | exact ⟨r, hrpos, hrscale, hrinside, hrcompact, |
| 182 | hcorevolume y hys r hrpos hrbound hrscale⟩ |
| 183 | |
| 184 | end PoincareMT.M35.Uniqueness |