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.Compactness.Coordinates.SpacetimeBounds.NormalCharts |
| 2 | import PoincareLib.Geometry.RicciFlow.MetricComparison |
| 3 | |
| 4 | /-! |
| 5 | # Retaining one spatial atlas on larger time windows |
| 6 | |
| 7 | A normal-chart cover obtained on one reference interval remains a cover on |
| 8 | every finite interval on which the Ricci tensor is bounded at its chart images. |
| 9 | The Ricci-flow equation supplies the enlarged coefficient bounds. The spatial |
| 10 | charts, centers, normalization, and covering sets are unchanged. |
| 11 | |
| 12 | This is the fixed-coordinate time comparison needed for the ancient-limit |
| 13 | construction in Kleiner--Lott, Corollary 44.1, pp. 2682--2683, and Appendix E, |
| 14 | pp. 2848--2849. |
| 15 | -/ |
| 16 | |
| 17 | noncomputable section |
| 18 | set_option autoImplicit false |
| 19 | |
| 20 | open Set |
| 21 | open scoped Manifold ContDiff Bundle |
| 22 | |
| 23 | namespace PoincareMT |
| 24 | |
| 25 | namespace RicciFlow |
| 26 | |
| 27 | /-- A Ricci quadratic-form bound controls fixed coordinate coefficients on a |
| 28 | finite interval; the coordinate map need not depend on that interval. -/ |
| 29 | theorem pullbackCoefficients_exp_bounds_of_ricci_bound |
| 30 | {n : ℕ} {M : Type*} [TopologicalSpace M] |
| 31 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 32 | {J : Set ℝ} (F : RicciFlow n M J) {T' T K : ℝ} |
| 33 | (hT : T' < 0 ∧ 0 < T) (hTJ : Ioo T' T ⊆ J) (hK : 0 ≤ K) |
| 34 | (e : EuclideanSpace ℝ (Fin n) → M) (x : EuclideanSpace ℝ (Fin n)) |
| 35 | (hRic : ∀ t ∈ Ioo T' T, ∀ v : TangentSpace (𝓡 n) (e x), |
| 36 | |(F.connection t).ricci (e x) v v| ≤ K * (F.metric t).inner (e x) v v) |
| 37 | {t : ℝ} (ht : t ∈ Ioo T' T) (v : EuclideanSpace ℝ (Fin n)) : |
| 38 | Real.exp (-(2 * K) * (T - T')) * |
| 39 | (F.metric 0).pullbackCoefficients e x v v ≤ |
| 40 | (F.metric t).pullbackCoefficients e x v v ∧ |
| 41 | (F.metric t).pullbackCoefficients e x v v ≤ |
| 42 | Real.exp ((2 * K) * (T - T')) * |
| 43 | (F.metric 0).pullbackCoefficients e x v v := by |
| 44 | let w := mfderiv (𝓡 n) (𝓡 n) e x v |
| 45 | have hnonneg : 0 ≤ (F.metric 0).inner (e x) w w := by |
| 46 | by_cases hw : w = 0 |
| 47 | · simp [hw] |
| 48 | · exact ((F.metric 0).pos (e x) w hw).le |
| 49 | have h := F.metric_inner_self_exp_bounds (convex_Ioo T' T) hTJ |
| 50 | (e x) w K (fun s hs => hRic s hs w) hT ht |
| 51 | have htime : |t - 0| ≤ T - T' := by |
| 52 | rw [abs_le] |
| 53 | constructor <;> linarith [ht.1, ht.2, hT.1, hT.2] |
| 54 | have hC : 0 ≤ 2 * K := by positivity |
| 55 | change Real.exp (-(2 * K) * (T - T')) * (F.metric 0).inner (e x) w w ≤ |
| 56 | (F.metric t).inner (e x) w w ∧ |
| 57 | (F.metric t).inner (e x) w w ≤ |
| 58 | Real.exp ((2 * K) * (T - T')) * (F.metric 0).inner (e x) w w |
| 59 | constructor |
| 60 | · apply le_trans (mul_le_mul_of_nonneg_right |
| 61 | (Real.exp_le_exp.mpr ?_) hnonneg) h.1 |
| 62 | nlinarith [mul_le_mul_of_nonneg_left htime hC] |
| 63 | · apply h.2.trans (mul_le_mul_of_nonneg_right |
| 64 | (Real.exp_le_exp.mpr ?_) hnonneg) |
| 65 | exact mul_le_mul_of_nonneg_left htime hC |
| 66 | |
| 67 | end RicciFlow |
| 68 | |
| 69 | namespace NormalChartCover |
| 70 | |
| 71 | variable {n : ℕ} {M : Type*} [TopologicalSpace M] |
| 72 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 73 | {J : Set ℝ} {F : RicciFlow n M J} {p : M} |
| 74 | {T' T U' U A R ρ a b K : ℝ} {N : ℕ} |
| 75 | |
| 76 | /-- Extend the time interval of a normal-chart cover using the Ricci-flow |
| 77 | equation, while retaining exactly its spatial charts. -/ |
| 78 | def extendTime (C : NormalChartCover F.metric p T' T A R ρ a b N) |
| 79 | (hT : T' < 0 ∧ 0 < T) (hU : U' < 0 ∧ 0 < U) (hUJ : Ioo U' U ⊆ J) |
| 80 | (ha : 0 ≤ a) (hb : 0 ≤ b) (hK : 0 ≤ K) |
| 81 | (hRic : ∀ i, ∀ x ∈ Metric.closedBall 0 (2 * ρ), ∀ t ∈ Ioo U' U, |
| 82 | ∀ v : TangentSpace (𝓡 n) (C.chart i x), |
| 83 | |(F.connection t).ricci (C.chart i x) v v| ≤ |
| 84 | K * (F.metric t).inner (C.chart i x) v v) : |
| 85 | NormalChartCover F.metric p U' U A R ρ |
| 86 | (Real.exp (-(2 * K) * (U - U')) * a) |
| 87 | (Real.exp ((2 * K) * (U - U')) * b) N := by |
| 88 | have hD : 0 ≤ (2 * K) * (U - U') := |
| 89 | mul_nonneg (by positivity) (by linarith [hU.1, hU.2]) |
| 90 | have hlower : Real.exp (-(2 * K) * (U - U')) * a ≤ a := by |
| 91 | calc |
| 92 | Real.exp (-(2 * K) * (U - U')) * a ≤ 1 * a := |
| 93 | mul_le_mul_of_nonneg_right |
| 94 | (Real.exp_le_one_iff.mpr (by nlinarith)) ha |
| 95 | _ = a := one_mul a |
| 96 | have hupper : b ≤ Real.exp ((2 * K) * (U - U')) * b := by |
| 97 | calc |
| 98 | b = 1 * b := (one_mul b).symm |
| 99 | _ ≤ Real.exp ((2 * K) * (U - U')) * b := |
| 100 | mul_le_mul_of_nonneg_right (Real.one_le_exp_iff.mpr hD) hb |
| 101 | refine { C with coefficients := ?_, distances := ?_ } |
| 102 | · intro i t ht x hx v |
| 103 | obtain ⟨hl, hu⟩ := F.pullbackCoefficients_exp_bounds_of_ricci_bound |
| 104 | hU hUJ hK (C.chart i) x (hRic i x hx) ht v |
| 105 | obtain ⟨hl0, hu0⟩ := C.coefficients i 0 hT x hx v |
| 106 | constructor |
| 107 | · calc |
| 108 | (Real.exp (-(2 * K) * (U - U')) * a) * ‖v‖ ^ 2 = |
| 109 | Real.exp (-(2 * K) * (U - U')) * (a * ‖v‖ ^ 2) := mul_assoc _ _ _ |
| 110 | _ ≤ Real.exp (-(2 * K) * (U - U')) * |
| 111 | (F.metric 0).pullbackCoefficients (C.chart i) x v v := |
| 112 | mul_le_mul_of_nonneg_left hl0 (Real.exp_nonneg _) |
| 113 | _ ≤ (F.metric t).pullbackCoefficients (C.chart i) x v v := hl |
| 114 | · calc |
| 115 | (F.metric t).pullbackCoefficients (C.chart i) x v v ≤ |
| 116 | Real.exp ((2 * K) * (U - U')) * |
| 117 | (F.metric 0).pullbackCoefficients (C.chart i) x v v := hu |
| 118 | _ ≤ Real.exp ((2 * K) * (U - U')) * (b * ‖v‖ ^ 2) := |
| 119 | mul_le_mul_of_nonneg_left hu0 (Real.exp_nonneg _) |
| 120 | _ = (Real.exp ((2 * K) * (U - U')) * b) * ‖v‖ ^ 2 := |
| 121 | (mul_assoc _ _ _).symm |
| 122 | · intro i x hx y hy |
| 123 | obtain ⟨hl, hu⟩ := C.distances i x hx y hy |
| 124 | exact ⟨(mul_le_mul_of_nonneg_right (Real.sqrt_le_sqrt hlower) |
| 125 | (dist_nonneg : 0 ≤ dist x y)).trans hl, |
| 126 | hu.trans (mul_le_mul_of_nonneg_right (Real.sqrt_le_sqrt hupper) dist_nonneg)⟩ |
| 127 | |
| 128 | @[simp] theorem extendTime_chart |
| 129 | (C : NormalChartCover F.metric p T' T A R ρ a b N) |
| 130 | (hT : T' < 0 ∧ 0 < T) (hU : U' < 0 ∧ 0 < U) (hUJ : Ioo U' U ⊆ J) |
| 131 | (ha : 0 ≤ a) (hb : 0 ≤ b) (hK : 0 ≤ K) |
| 132 | (hRic : ∀ i, ∀ x ∈ Metric.closedBall 0 (2 * ρ), ∀ t ∈ Ioo U' U, |
| 133 | ∀ v : TangentSpace (𝓡 n) (C.chart i x), |
| 134 | |(F.connection t).ricci (C.chart i x) v v| ≤ |
| 135 | K * (F.metric t).inner (C.chart i x) v v) : |
| 136 | (C.extendTime hT hU hUJ ha hb hK hRic).chart = C.chart := rfl |
| 137 | |
| 138 | @[simp] theorem extendTime_centre |
| 139 | (C : NormalChartCover F.metric p T' T A R ρ a b N) |
| 140 | (hT : T' < 0 ∧ 0 < T) (hU : U' < 0 ∧ 0 < U) (hUJ : Ioo U' U ⊆ J) |
| 141 | (ha : 0 ≤ a) (hb : 0 ≤ b) (hK : 0 ≤ K) |
| 142 | (hRic : ∀ i, ∀ x ∈ Metric.closedBall 0 (2 * ρ), ∀ t ∈ Ioo U' U, |
| 143 | ∀ v : TangentSpace (𝓡 n) (C.chart i x), |
| 144 | |(F.connection t).ricci (C.chart i x) v v| ≤ |
| 145 | K * (F.metric t).inner (C.chart i x) v v) : |
| 146 | (C.extendTime hT hU hUJ ha hb hK hRic).centre = C.centre := rfl |
| 147 | |
| 148 | /-- A curvature-tensor bound supplies the Ricci bound needed to extend the |
| 149 | same normal charts, with dimension-dependent exponential constants. -/ |
| 150 | def extendTimeOfCurvatureBound [T2Space M] |
| 151 | (C : NormalChartCover F.metric p T' T A R ρ a b N) |
| 152 | (hT : T' < 0 ∧ 0 < T) (hU : U' < 0 ∧ 0 < U) (hUJ : Ioo U' U ⊆ J) |
| 153 | (ha : 0 ≤ a) (hb : 0 ≤ b) (hK : 0 ≤ K) |
| 154 | (hcurv : ∀ i, ∀ x ∈ Metric.closedBall 0 (2 * ρ), ∀ t ∈ Ioo U' U, |
| 155 | (F.connection t).curvatureTensorNorm (C.chart i x) ≤ K) : |
| 156 | NormalChartCover F.metric p U' U A R ρ |
| 157 | (Real.exp (-(2 * ((n : ℝ) ^ 3 * K)) * (U - U')) * a) |
| 158 | (Real.exp ((2 * ((n : ℝ) ^ 3 * K)) * (U - U')) * b) N := by |
| 159 | apply C.extendTime hT hU hUJ ha hb (by positivity) |
| 160 | intro i x hx t ht v |
| 161 | have h := (F.connection t).abs_ricci_quadratic_le_curvatureTensorNorm (C.chart i x) v |
| 162 | have hdim : Module.finrank ℝ (TangentSpace (𝓡 n) (C.chart i x)) = n := |
| 163 | finrank_euclideanSpace_fin |
| 164 | simp only [Fintype.card_fin, hdim] at h |
| 165 | have hnonneg : 0 ≤ (F.metric t).inner (C.chart i x) v v := by |
| 166 | by_cases hv : v = 0 |
| 167 | · simp [hv] |
| 168 | · exact ((F.metric t).pos (C.chart i x) v hv).le |
| 169 | exact h.trans (mul_le_mul_of_nonneg_right |
| 170 | (mul_le_mul_of_nonneg_left (hcurv i x hx t ht) (by positivity)) hnonneg) |
| 171 | |
| 172 | @[simp] theorem extendTimeOfCurvatureBound_chart [T2Space M] |
| 173 | (C : NormalChartCover F.metric p T' T A R ρ a b N) |
| 174 | (hT : T' < 0 ∧ 0 < T) (hU : U' < 0 ∧ 0 < U) (hUJ : Ioo U' U ⊆ J) |
| 175 | (ha : 0 ≤ a) (hb : 0 ≤ b) (hK : 0 ≤ K) |
| 176 | (hcurv : ∀ i, ∀ x ∈ Metric.closedBall 0 (2 * ρ), ∀ t ∈ Ioo U' U, |
| 177 | (F.connection t).curvatureTensorNorm (C.chart i x) ≤ K) : |
| 178 | (C.extendTimeOfCurvatureBound hT hU hUJ ha hb hK hcurv).chart = C.chart := rfl |
| 179 | |
| 180 | /-- Curvature control on the larger zero-time ball extends a retained cover |
| 181 | to the entire controlled time window. -/ |
| 182 | def extendTimeOfCurvatureBoundOnBall [T2Space M] |
| 183 | (C : NormalChartCover F.metric p T' T A R ρ a b N) |
| 184 | (hT : T' < 0 ∧ 0 < T) (hU : U' < 0 ∧ 0 < U) (hUJ : Ioo U' U ⊆ J) |
| 185 | (hA : 0 ≤ A) (hR : 0 ≤ R) (hρR : 2 * ρ < R) |
| 186 | (ha : 0 ≤ a) (hb : 0 ≤ b) (hK : 0 ≤ K) |
| 187 | (hcurv : ∀ t ∈ Ioo U' U, ∀ x ∈ (F.metric 0).ball p (A + R), |
| 188 | (F.connection t).curvatureTensorNorm x ≤ K) : |
| 189 | NormalChartCover F.metric p U' U A R ρ |
| 190 | (Real.exp (-(2 * ((n : ℝ) ^ 3 * K)) * (U - U')) * a) |
| 191 | (Real.exp ((2 * ((n : ℝ) ^ 3 * K)) * (U - U')) * b) N := |
| 192 | C.extendTimeOfCurvatureBound hT hU hUJ ha hb hK |
| 193 | (fun i _x hx t ht => hcurv t ht _ |
| 194 | (C.image_mem_zeroBall hA hR i (Metric.closedBall_subset_ball hρR hx))) |
| 195 | |
| 196 | @[simp] theorem extendTimeOfCurvatureBoundOnBall_chart [T2Space M] |
| 197 | (C : NormalChartCover F.metric p T' T A R ρ a b N) |
| 198 | (hT : T' < 0 ∧ 0 < T) (hU : U' < 0 ∧ 0 < U) (hUJ : Ioo U' U ⊆ J) |
| 199 | (hA : 0 ≤ A) (hR : 0 ≤ R) (hρR : 2 * ρ < R) |
| 200 | (ha : 0 ≤ a) (hb : 0 ≤ b) (hK : 0 ≤ K) |
| 201 | (hcurv : ∀ t ∈ Ioo U' U, ∀ x ∈ (F.metric 0).ball p (A + R), |
| 202 | (F.connection t).curvatureTensorNorm x ≤ K) : |
| 203 | (C.extendTimeOfCurvatureBoundOnBall hT hU hUJ hA hR hρR ha hb hK hcurv).chart = |
| 204 | C.chart := rfl |
| 205 | |
| 206 | end NormalChartCover |
| 207 | end PoincareMT |