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.Blowup.Construction.Generalized.RecenteredCylinder |
| 2 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.Generalized.PhysicalClock |
| 3 | import PoincareLib.Geometry.Riemannian.Homothety.Volume |
| 4 | |
| 5 | /-! |
| 6 | # Normalized volume at an included cylinder slice |
| 7 | |
| 8 | An actual point noncollapse certificate applies to the same cylinder after |
| 9 | recentering and returning to the physical clock. The identity homothety |
| 10 | gives the exact normalized calibrated volume. Source: Morgan--Tian |
| 11 | Definitions 3.38--3.41 and 9.1, pp. 61--62 and 180; Theorem 11.8, p. 272; |
| 12 | M30 `recentered-normalized-volume.md`. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M30.Cylinder |
| 23 | |
| 24 | /-- An actual captured normalized ball and its recentered curvature test |
| 25 | give the exact normalized volume bound at any included reference time |
| 26 | (Definition 9.1, p. 180; Theorem 11.8, p. 272). -/ |
| 27 | theorem normalized_volume_of_recentered_noncollapse |
| 28 | {F : GeneralizedRicciFlowData.{u}} {C : GeneralizedSliceCarrier.{u}} |
| 29 | {a q : ℝ} {J : SpacetimeInterval} |
| 30 | {U : TopologicalSpace.Opens C.carrier} |
| 31 | (e : GeneralizedFlowCylinder F C a q J.domain U) |
| 32 | (t0 : J.domain) (p : (F.slice (a + t0.val / q)).carrier) |
| 33 | {rho kappa r0 : ℝ} (hrho : 0 < rho) |
| 34 | (hcutoff : rho / Real.sqrt q ≤ r0) |
| 35 | (htime : Icc (-rho ^ 2) 0 ⊆ |
| 36 | (fun s : ℝ => t0.val + s) ⁻¹' J.domain) |
| 37 | (hnon : GeneralizedKappaNoncollapsedAt F |
| 38 | (⟨a + t0.val / q, p⟩ : F.point) kappa r0) : |
| 39 | let h : RiemannianMetric 3 (F.slice (a + t0.val / q)).carrier := |
| 40 | M13.scaleSmoothMetric (F.metric (a + t0.val / q)) q e.scale_pos |
| 41 | h.ball p rho ⊆ e.forward t0.val t0.property '' (U : Set C.carrier) → |
| 42 | (∀ s (hs : s ∈ Ioc (-rho ^ 2) 0), ∀ y ∈ h.ball p rho, |
| 43 | |F.curvatureNorm (e.pointMap (t0.val + s) |
| 44 | (htime (Ioc_subset_Icc_self hs)) (e.inverse t0.val t0.property y))| / q ≤ |
| 45 | rho⁻¹ ^ 2) → |
| 46 | ENNReal.ofReal (kappa * rho ^ 3) ≤ |
| 47 | calibratedMetricVolume h (h.ball p rho) := by |
| 48 | intro h hball hcurv |
| 49 | let b := a + t0.val / q |
| 50 | let X := (F.slice b).carrier |
| 51 | let g : RiemannianMetric 3 X := F.metric b |
| 52 | let r := rho / Real.sqrt q |
| 53 | have hq : 0 < q := e.scale_pos |
| 54 | have hsqrt : 0 < Real.sqrt q := Real.sqrt_pos.mpr hq |
| 55 | have hr : 0 < r := div_pos hrho hsqrt |
| 56 | have hqr : q * r ^ 2 = rho ^ 2 := by |
| 57 | dsimp only [r] |
| 58 | rw [div_pow, Real.sq_sqrt hq.le, mul_div_cancel₀ _ hq.ne'] |
| 59 | have hhom : MetricHomothety g h (Diffeomorph.refl (𝓡 3) X ∞) q := by |
| 60 | intro x v w |
| 61 | rw [Diffeomorph.coe_refl] |
| 62 | change h.inner x (mfderiv (𝓡 3) (𝓡 3) (@id X) x v) |
| 63 | (mfderiv (𝓡 3) (𝓡 3) (@id X) x w) = q * g.inner x v w |
| 64 | rw [mfderiv_id] |
| 65 | rfl |
| 66 | have hballEq : g.ball p r = h.ball p rho := by |
| 67 | have H := M13.homothety_ball_image g h (Diffeomorph.refl (𝓡 3) X ∞) |
| 68 | q hq hhom p r |
| 69 | simpa only [Diffeomorph.coe_refl, image_id, id_eq, r, |
| 70 | mul_div_cancel₀ _ hsqrt.ne'] using H |
| 71 | have hopen : IsOpen (g.ball p r) := by |
| 72 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : X → Type _) := |
| 73 | ⟨g.toRiemannianMetric⟩ |
| 74 | let : IsContinuousRiemannianBundle (EuclideanSpace ℝ (Fin 3)) |
| 75 | (TangentSpace (𝓡 3) : X → Type _) := |
| 76 | ⟨⟨g.inner, g.toContinuousRiemannianMetric.continuous, fun _ _ _ => rfl⟩⟩ |
| 77 | let : EMetricSpace X := EMetricSpace.ofRiemannianMetric (𝓡 3) X |
| 78 | change IsOpen {y : X | edist p y < ENNReal.ofReal r} |
| 79 | exact isOpen_lt (continuous_const.edist continuous_id) continuous_const |
| 80 | let V : TopologicalSpace.Opens X := ⟨g.ball p r, hopen⟩ |
| 81 | have hV : (V : Set X) ⊆ e.forward t0.val t0.property '' (U : Set C.carrier) := by |
| 82 | change g.ball p r ⊆ _ |
| 83 | rwa [hballEq] |
| 84 | let er := recenter e t0 V hV htime |
| 85 | have hclock (s : ℝ) (hs : s ∈ Ioc (-r ^ 2) 0) : |
| 86 | q * s ∈ Ioc (-rho ^ 2) 0 := by |
| 87 | constructor |
| 88 | · have H := mul_lt_mul_of_pos_left hs.1 hq |
| 89 | nlinarith only [H, hqr] |
| 90 | · exact mul_nonpos_of_nonneg_of_nonpos hq.le hs.2 |
| 91 | have hclockClosed : Ioc (-r ^ 2) 0 ⊆ |
| 92 | (fun s : ℝ => q * s) ⁻¹' Icc (-rho ^ 2) 0 := |
| 93 | fun s hs => Ioc_subset_Icc_self (hclock s hs) |
| 94 | let ep := physicalTime er hclockClosed |
| 95 | have hpoints (s : ℝ) (hs : s ∈ Ioc (-r ^ 2) 0) (y : X) : |
| 96 | ep.pointMap s hs y = e.pointMap (t0.val + q * s) |
| 97 | (htime (Ioc_subset_Icc_self (hclock s hs))) (e.inverse t0.val t0.property y) := by |
| 98 | rw [physicalTime_pointMap, recenter_pointMap] |
| 99 | have hinterval : Ioc (b - r ^ 2) b ⊆ F.interval := by |
| 100 | intro t ht |
| 101 | have hs : t - b ∈ Ioc (-r ^ 2) 0 := by constructor <;> linarith [ht.1, ht.2] |
| 102 | have H := (F.slice_nonempty_iff _).mp ⟨ep.forward (t - b) hs p⟩ |
| 103 | have heq : b + (t - b) / 1 = t := by ring |
| 104 | rwa [heq] at H |
| 105 | have hzero (h0 : (0 : ℝ) ∈ Ioc (-r ^ 2) 0) (y : X) (hy : y ∈ g.ball p r) : |
| 106 | ep.pointMap 0 h0 y = (⟨b, y⟩ : F.point) := by |
| 107 | rw [physicalTime_pointMap] |
| 108 | have H := recenter_zero_identity e t0 V hV htime |
| 109 | (show (0 : ℝ) ∈ Icc (-rho ^ 2) 0 from ⟨neg_nonpos.mpr (sq_nonneg rho), le_rfl⟩) |
| 110 | y hy |
| 111 | simpa only [mul_zero] using H |
| 112 | have hscale : rho⁻¹ ^ 2 * q = r⁻¹ ^ 2 := by |
| 113 | rw [inv_pow, inv_pow, inv_eq_one_div, inv_eq_one_div] |
| 114 | apply (eq_div_iff (pow_ne_zero 2 hr.ne')).mpr |
| 115 | rw [mul_assoc, hqr, one_div_mul_cancel (pow_ne_zero 2 hrho.ne')] |
| 116 | have hphysical (s : ℝ) (hs : s ∈ Ioc (-r ^ 2) 0) (y : X) |
| 117 | (hy : y ∈ g.ball p r) : |F.curvatureNorm (ep.pointMap s hs y)| ≤ r⁻¹ ^ 2 := by |
| 118 | rw [hpoints] |
| 119 | have H := (div_le_iff₀ hq).mp (hcurv (q * s) (hclock s hs) y (hballEq ▸ hy)) |
| 120 | exact H.trans_eq hscale |
| 121 | have hsource := hnon r hr hcutoff hinterval ep hzero hphysical |
| 122 | have hvolume := M13.homothety_volume_image g h (Diffeomorph.refl (𝓡 3) X ∞) |
| 123 | q hq hhom (g.ball p r) |
| 124 | simp only [Diffeomorph.coe_refl, image_id] at hvolume |
| 125 | rw [hballEq] at hvolume hsource |
| 126 | have hfactor : Real.rpow q ((3 : ℝ) / 2) = Real.sqrt q ^ 3 := by |
| 127 | rw [Real.rpow_eq_pow, Real.rpow_div_two_eq_sqrt (3 : ℝ) hq.le] |
| 128 | norm_num |
| 129 | have hvolume' : calibratedMetricVolume h (h.ball p rho) = |
| 130 | ENNReal.ofReal (Real.sqrt q ^ 3) * calibratedMetricVolume g (h.ball p rho) := by |
| 131 | convert hvolume using 1 |
| 132 | exact congrArg (fun z : ℝ≥0∞ => z * calibratedMetricVolume g (h.ball p rho)) |
| 133 | (congrArg ENNReal.ofReal hfactor).symm |
| 134 | rw [hvolume'] |
| 135 | have heq : ENNReal.ofReal (kappa * rho ^ 3) = ENNReal.ofReal (Real.sqrt q ^ 3) * |
| 136 | ENNReal.ofReal (kappa * r ^ 3) := by |
| 137 | rw [← ENNReal.ofReal_mul (pow_nonneg hsqrt.le 3)] |
| 138 | congr 1 |
| 139 | dsimp only [r] |
| 140 | field_simp |
| 141 | rw [heq] |
| 142 | exact mul_le_mul_right hsource _ |
| 143 | |
| 144 | end PoincareMT.M30.Cylinder |