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.Harnack.Matrix.Tensors |
| 2 | import PoincareLib.Geometry.Riemannian.Curvature.RicciContraction |
| 3 | import PoincareLib.Geometry.Riemannian.Curvature.RicciContraction.SecondDerivative |
| 4 | import PoincareLib.Geometry.Riemannian.Tensor.NormBounds |
| 5 | import PoincareLib.Geometry.Riemannian.Tensor.LaplacianTrace |
| 6 | |
| 7 | /-! |
| 8 | # Bounds for Hamilton's tensors |
| 9 | |
| 10 | Metric contraction and the intrinsic tensor norm turn curvature derivative |
| 11 | bounds into bounds for the actual covariant Ricci derivative and Hamilton's |
| 12 | three-tensor. These are inputs to the uniform quadratic lower bound in |
| 13 | Chow et al., Part II, Section 15.4.5, printed pp. 285-287. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open scoped Manifold ContDiff Bundle BigOperators |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.LeviCivitaData |
| 24 | |
| 25 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 27 | {g : RiemannianMetric n M} |
| 28 | |
| 29 | private lemma tangentNorm_basis (x : M) |
| 30 | (i : Fin (Module.finrank ℝ (TangentSpace (𝓡 n) x))) : |
| 31 | g.tangentNorm x (g.orthonormalBasis x i) = 1 := by |
| 32 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 33 | ⟨g.toRiemannianMetric⟩ |
| 34 | change Real.sqrt (inner ℝ (g.orthonormalBasis x i) (g.orthonormalBasis x i)) = 1 |
| 35 | rw [real_inner_self_eq_norm_sq, (g.orthonormalBasis x).norm_eq_one] |
| 36 | norm_num |
| 37 | |
| 38 | /-- The undifferentiated curvature norm bounds arbitrary curvature evaluations. -/ |
| 39 | lemma abs_curvatureTensor_le_curvatureDerivativeNorm_zero |
| 40 | (D : LeviCivitaData g) (hD : D.CurvatureTensorCalculus) |
| 41 | (x : M) (a b c d : TangentSpace (𝓡 n) x) : |
| 42 | |D.curvatureTensor x a b c d| ≤ D.curvatureDerivativeNorm 0 x * |
| 43 | g.tangentNorm x a * g.tangentNorm x b * |
| 44 | g.tangentNorm x c * g.tangentNorm x d := by |
| 45 | obtain ⟨A, hA⟩ := hD.1.1 x |
| 46 | simpa [curvatureDerivativeNorm, iteratedCovariantTensorDerivative, |
| 47 | riemannEvaluation, Fin.prod_univ_succ, mul_assoc] using |
| 48 | abs_tensor_evaluation_le_tensorNorm g D.riemannEvaluation x A hA ![a, b, c, d] |
| 49 | |
| 50 | /-- Contraction bounds every Ricci evaluation by the full curvature norm. -/ |
| 51 | lemma abs_ricci_le_curvatureDerivativeNorm_zero |
| 52 | (D : LeviCivitaData g) (hD : D.CurvatureTensorCalculus) |
| 53 | (x : M) (u v : TangentSpace (𝓡 n) x) : |
| 54 | |D.ricci x u v| ≤ (n : ℝ) * D.curvatureDerivativeNorm 0 x * |
| 55 | g.tangentNorm x u * g.tangentNorm x v := by |
| 56 | have hdim : Module.finrank ℝ (TangentSpace (𝓡 n) x) = n := by |
| 57 | unfold TangentSpace |
| 58 | simp |
| 59 | unfold ricci |
| 60 | calc |
| 61 | _ ≤ ∑ i, |D.curvatureTensor x u (g.orthonormalBasis x i) |
| 62 | v (g.orthonormalBasis x i)| := Finset.abs_sum_le_sum_abs _ _ |
| 63 | _ ≤ ∑ _i : Fin (Module.finrank ℝ (TangentSpace (𝓡 n) x)), |
| 64 | D.curvatureDerivativeNorm 0 x * g.tangentNorm x u * g.tangentNorm x v := by |
| 65 | apply Finset.sum_le_sum |
| 66 | intro i _ |
| 67 | simpa only [tangentNorm_basis, mul_one] using |
| 68 | D.abs_curvatureTensor_le_curvatureDerivativeNorm_zero hD x u |
| 69 | (g.orthonormalBasis x i) v (g.orthonormalBasis x i) |
| 70 | _ = _ := by simp [hdim, mul_assoc] |
| 71 | |
| 72 | /-- A second derivative commutes with Ricci contraction, giving an intrinsic |
| 73 | bound with both derivative directions retained. -/ |
| 74 | lemma abs_secondCovariantTensorDerivative_ricci_le_curvatureDerivativeNorm |
| 75 | (D : LeviCivitaData g) (hD : D.CurvatureTensorCalculus) |
| 76 | (x : M) (a b u v : TangentSpace (𝓡 n) x) : |
| 77 | |D.covariantTensorDerivative (D.covariantTensorDerivative D.ricciEvaluation) |
| 78 | x ![a, b, u, v]| ≤ (n : ℝ) * D.curvatureDerivativeNorm 2 x * |
| 79 | g.tangentNorm x a * g.tangentNorm x b * |
| 80 | g.tangentNorm x u * g.tangentNorm x v := by |
| 81 | have hdim : Module.finrank ℝ (TangentSpace (𝓡 n) x) = n := by |
| 82 | unfold TangentSpace |
| 83 | simp |
| 84 | obtain ⟨A, hA⟩ := (hD.2.2.1 _ _ (hD.2.2.1 _ _ hD.1)).1 x |
| 85 | rw [D.secondCovariantTensorDerivative_ricciEvaluation_eq_sum_riemann hD] |
| 86 | calc |
| 87 | _ ≤ ∑ i, |D.covariantTensorDerivative (D.covariantTensorDerivative |
| 88 | D.riemannEvaluation) x ![a, b, u, g.orthonormalBasis x i, |
| 89 | v, g.orthonormalBasis x i]| := Finset.abs_sum_le_sum_abs _ _ |
| 90 | _ ≤ ∑ _i : Fin (Module.finrank ℝ (TangentSpace (𝓡 n) x)), |
| 91 | D.curvatureDerivativeNorm 2 x * g.tangentNorm x a * g.tangentNorm x b * |
| 92 | g.tangentNorm x u * g.tangentNorm x v := by |
| 93 | apply Finset.sum_le_sum |
| 94 | intro i _ |
| 95 | have h := abs_tensor_evaluation_le_tensorNorm g |
| 96 | (D.covariantTensorDerivative (D.covariantTensorDerivative D.riemannEvaluation)) |
| 97 | x A hA ![a, b, u, g.orthonormalBasis x i, v, g.orthonormalBasis x i] |
| 98 | simpa only [curvatureDerivativeNorm, iteratedCovariantTensorDerivative, |
| 99 | Fin.prod_univ_succ, Matrix.cons_val_zero, Matrix.cons_val_succ, |
| 100 | Fin.prod_univ_zero, tangentNorm_basis, mul_one, one_mul, mul_assoc] using h |
| 101 | _ = _ := by simp [hdim, mul_assoc] |
| 102 | |
| 103 | /-- The rough Ricci Laplacian has two metric contractions of the second |
| 104 | curvature derivative. -/ |
| 105 | lemma abs_tensorLaplacian_ricci_le_curvatureDerivativeNorm |
| 106 | (D : LeviCivitaData g) (hD : D.CurvatureTensorCalculus) |
| 107 | (x : M) (u v : TangentSpace (𝓡 n) x) : |
| 108 | |D.tensorLaplacian D.ricciEvaluation x ![u, v]| ≤ |
| 109 | (n : ℝ) ^ 2 * D.curvatureDerivativeNorm 2 x * |
| 110 | g.tangentNorm x u * g.tangentNorm x v := by |
| 111 | have hdim : Module.finrank ℝ (TangentSpace (𝓡 n) x) = n := by |
| 112 | unfold TangentSpace |
| 113 | simp |
| 114 | unfold tensorLaplacian |
| 115 | calc |
| 116 | _ ≤ ∑ i, |D.iteratedCovariantTensorDerivative D.ricciEvaluation 2 x |
| 117 | ![g.orthonormalBasis x i, g.orthonormalBasis x i, u, v]| := |
| 118 | Finset.abs_sum_le_sum_abs _ _ |
| 119 | _ ≤ ∑ _i : Fin (Module.finrank ℝ (TangentSpace (𝓡 n) x)), |
| 120 | (n : ℝ) * D.curvatureDerivativeNorm 2 x * |
| 121 | g.tangentNorm x u * g.tangentNorm x v := by |
| 122 | apply Finset.sum_le_sum |
| 123 | intro i _ |
| 124 | simpa only [iteratedCovariantTensorDerivative, tangentNorm_basis, mul_one] using |
| 125 | D.abs_secondCovariantTensorDerivative_ricci_le_curvatureDerivativeNorm hD x |
| 126 | (g.orthonormalBasis x i) (g.orthonormalBasis x i) u v |
| 127 | _ = _ := by simp [hdim]; ring |
| 128 | |
| 129 | /-- Tracing the tensor slots instead bounds the scalar Hessian by the same |
| 130 | second-curvature-derivative constant. -/ |
| 131 | lemma abs_hessian_scalar_le_curvatureDerivativeNorm |
| 132 | (D : LeviCivitaData g) (hD : D.CurvatureTensorCalculus) |
| 133 | (x : M) (u v : TangentSpace (𝓡 n) x) : |
| 134 | |D.hessian D.scalarCurvature x u v| ≤ |
| 135 | (n : ℝ) ^ 2 * D.curvatureDerivativeNorm 2 x * |
| 136 | g.tangentNorm x u * g.tangentNorm x v := by |
| 137 | have hdim : Module.finrank ℝ (TangentSpace (𝓡 n) x) = n := by |
| 138 | unfold TangentSpace |
| 139 | simp |
| 140 | have he := D.sum_secondCovariantTensorDerivative_eq_hessian_trace |
| 141 | hD.2.1 (hD.2.2.1 _ _ hD.2.1) x u v |
| 142 | change (∑ i, D.iteratedCovariantTensorDerivative D.ricciEvaluation 2 x |
| 143 | ![u, v, g.orthonormalBasis x i, g.orthonormalBasis x i]) = |
| 144 | D.hessian D.scalarCurvature x u v at he |
| 145 | rw [← he] |
| 146 | calc |
| 147 | _ ≤ ∑ i, |D.iteratedCovariantTensorDerivative D.ricciEvaluation 2 x |
| 148 | ![u, v, g.orthonormalBasis x i, g.orthonormalBasis x i]| := |
| 149 | Finset.abs_sum_le_sum_abs _ _ |
| 150 | _ ≤ ∑ _i : Fin (Module.finrank ℝ (TangentSpace (𝓡 n) x)), |
| 151 | (n : ℝ) * D.curvatureDerivativeNorm 2 x * |
| 152 | g.tangentNorm x u * g.tangentNorm x v := by |
| 153 | apply Finset.sum_le_sum |
| 154 | intro i _ |
| 155 | simpa only [iteratedCovariantTensorDerivative, tangentNorm_basis, mul_one] using |
| 156 | D.abs_secondCovariantTensorDerivative_ricci_le_curvatureDerivativeNorm hD x |
| 157 | u v (g.orthonormalBasis x i) (g.orthonormalBasis x i) |
| 158 | _ = _ := by simp [hdim]; ring |
| 159 | |
| 160 | /-- The scalar Laplacian is a triple metric contraction of the second |
| 161 | curvature derivative. -/ |
| 162 | lemma abs_laplacian_scalar_le_curvatureDerivativeNorm |
| 163 | (D : LeviCivitaData g) (hD : D.CurvatureTensorCalculus) (x : M) : |
| 164 | |D.laplacian D.scalarCurvature x| ≤ |
| 165 | (n : ℝ) ^ 3 * D.curvatureDerivativeNorm 2 x := by |
| 166 | have hdim : Module.finrank ℝ (TangentSpace (𝓡 n) x) = n := by |
| 167 | unfold TangentSpace |
| 168 | simp |
| 169 | unfold laplacian |
| 170 | calc |
| 171 | _ ≤ ∑ i, |D.hessian D.scalarCurvature x |
| 172 | (g.orthonormalBasis x i) (g.orthonormalBasis x i)| := |
| 173 | Finset.abs_sum_le_sum_abs _ _ |
| 174 | _ ≤ ∑ _i : Fin (Module.finrank ℝ (TangentSpace (𝓡 n) x)), |
| 175 | (n : ℝ) ^ 2 * D.curvatureDerivativeNorm 2 x := by |
| 176 | apply Finset.sum_le_sum |
| 177 | intro i _ |
| 178 | simpa only [tangentNorm_basis, mul_one] using |
| 179 | D.abs_hessian_scalar_le_curvatureDerivativeNorm hD x |
| 180 | (g.orthonormalBasis x i) (g.orthonormalBasis x i) |
| 181 | _ = _ := by simp [hdim]; ring |
| 182 | |
| 183 | /-- The actual covariant Ricci derivative is bounded by a dimension factor |
| 184 | times the full curvature derivative norm. -/ |
| 185 | lemma abs_covariantTensorDerivative_ricci_le_curvatureDerivativeNorm |
| 186 | (D : LeviCivitaData g) (hD : D.CurvatureTensorCalculus) |
| 187 | (x : M) (u v w : TangentSpace (𝓡 n) x) : |
| 188 | |D.covariantTensorDerivative D.ricciEvaluation x ![u, v, w]| ≤ |
| 189 | (n : ℝ) * D.curvatureDerivativeNorm 1 x * |
| 190 | g.tangentNorm x u * g.tangentNorm x v * g.tangentNorm x w := by |
| 191 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 192 | ⟨g.toRiemannianMetric⟩ |
| 193 | let b := g.orthonormalBasis x |
| 194 | have hb (i) : g.tangentNorm x (b i) = 1 := by |
| 195 | change Real.sqrt (inner ℝ (b i) (b i)) = 1 |
| 196 | rw [real_inner_self_eq_norm_sq, b.norm_eq_one] |
| 197 | norm_num |
| 198 | have hdim : Module.finrank ℝ (TangentSpace (𝓡 n) x) = n := by |
| 199 | unfold TangentSpace |
| 200 | simp |
| 201 | obtain ⟨A, hA⟩ := (hD.2.2.1 _ _ hD.1).1 x |
| 202 | have hterm (i) : |
| 203 | |D.covariantTensorDerivative D.riemannEvaluation x ![u, v, b i, w, b i]| ≤ |
| 204 | D.curvatureDerivativeNorm 1 x * |
| 205 | g.tangentNorm x u * g.tangentNorm x v * g.tangentNorm x w := by |
| 206 | have h := abs_tensor_evaluation_le_tensorNorm g |
| 207 | (D.covariantTensorDerivative D.riemannEvaluation) x A hA ![u, v, b i, w, b i] |
| 208 | simpa only [curvatureDerivativeNorm, iteratedCovariantTensorDerivative, |
| 209 | Fin.prod_univ_succ, Matrix.cons_val_zero, Matrix.cons_val_succ, |
| 210 | Fin.prod_univ_zero, hb, mul_one, one_mul, mul_assoc] using h |
| 211 | rw [D.covariantTensorDerivative_ricciEvaluation_eq_sum_riemann hD] |
| 212 | calc |
| 213 | _ ≤ ∑ i, |D.covariantTensorDerivative D.riemannEvaluation x |
| 214 | ![u, v, b i, w, b i]| := Finset.abs_sum_le_sum_abs _ _ |
| 215 | _ ≤ ∑ _i : Fin (Module.finrank ℝ (TangentSpace (𝓡 n) x)), |
| 216 | D.curvatureDerivativeNorm 1 x * |
| 217 | g.tangentNorm x u * g.tangentNorm x v * g.tangentNorm x w := |
| 218 | Finset.sum_le_sum (fun i _ => hterm i) |
| 219 | _ = _ := by simp [hdim, mul_assoc] |
| 220 | |
| 221 | end PoincareMT.LeviCivitaData |
| 222 | |
| 223 | namespace Poincare.RicciFlow.Harnack |
| 224 | |
| 225 | open PoincareMT |
| 226 | |
| 227 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 228 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 229 | {g : RiemannianMetric n M} |
| 230 | |
| 231 | /-- Antisymmetrizing the contracted curvature derivative gives a uniform |
| 232 | intrinsic bound for Hamilton's three-tensor. -/ |
| 233 | lemma abs_hamiltonP_le_curvatureDerivativeNorm |
| 234 | (D : LeviCivitaData g) (hD : D.CurvatureTensorCalculus) |
| 235 | (x : M) (u v w : TangentSpace (𝓡 n) x) : |
| 236 | |hamiltonP D x u v w| ≤ |
| 237 | 2 * (n : ℝ) * D.curvatureDerivativeNorm 1 x * |
| 238 | g.tangentNorm x u * g.tangentNorm x v * g.tangentNorm x w := by |
| 239 | have hu := D.abs_covariantTensorDerivative_ricci_le_curvatureDerivativeNorm hD x u v w |
| 240 | have hv := D.abs_covariantTensorDerivative_ricci_le_curvatureDerivativeNorm hD x v u w |
| 241 | have hsub := abs_sub |
| 242 | (D.covariantTensorDerivative D.ricciEvaluation x ![u, v, w]) |
| 243 | (D.covariantTensorDerivative D.ricciEvaluation x ![v, u, w]) |
| 244 | have h := hsub.trans (add_le_add hu hv) |
| 245 | unfold hamiltonP |
| 246 | nlinarith only [h] |
| 247 | |
| 248 | /-- The part of Hamilton's two-tensor other than its nonnegative time term |
| 249 | is bounded independently of elapsed time. -/ |
| 250 | lemma abs_hamiltonM_sub_ricci_le_curvatureDerivativeNorm |
| 251 | (D : LeviCivitaData g) (hD : D.CurvatureTensorCalculus) |
| 252 | (τ : ℝ) (x : M) (u v : TangentSpace (𝓡 n) x) : |
| 253 | |hamiltonM D τ x u v - D.ricci x u v / (2 * τ)| ≤ |
| 254 | (2 * (n : ℝ) ^ 2 * D.curvatureDerivativeNorm 2 x + |
| 255 | 3 * (n : ℝ) ^ 3 * (D.curvatureDerivativeNorm 0 x) ^ 2) * |
| 256 | g.tangentNorm x u * g.tangentNorm x v := by |
| 257 | let b := g.orthonormalBasis x |
| 258 | let K := D.curvatureDerivativeNorm 0 x |
| 259 | have hK : 0 ≤ K := Real.sqrt_nonneg _ |
| 260 | have hu : 0 ≤ g.tangentNorm x u := Real.sqrt_nonneg _ |
| 261 | have hv : 0 ≤ g.tangentNorm x v := Real.sqrt_nonneg _ |
| 262 | have hb (i) : g.tangentNorm x (b i) = 1 := |
| 263 | PoincareMT.LeviCivitaData.tangentNorm_basis x i |
| 264 | have hdim : Module.finrank ℝ (TangentSpace (𝓡 n) x) = n := by |
| 265 | unfold TangentSpace |
| 266 | simp |
| 267 | have hcurv (i j) : |D.curvatureTensor x (b i) u (b j) v| ≤ |
| 268 | K * g.tangentNorm x u * g.tangentNorm x v := by |
| 269 | simpa only [hb, mul_one] using |
| 270 | D.abs_curvatureTensor_le_curvatureDerivativeNorm_zero hD x (b i) u (b j) v |
| 271 | have hric (i j) : |D.ricci x (b i) (b j)| ≤ (n : ℝ) * K := by |
| 272 | simpa only [hb, mul_one] using D.abs_ricci_le_curvatureDerivativeNorm_zero hD x (b i) (b j) |
| 273 | have hRmRic : |∑ i, ∑ j, D.curvatureTensor x (b i) u (b j) v * D.ricci x (b i) (b j)| ≤ |
| 274 | (n : ℝ) ^ 3 * K ^ 2 * g.tangentNorm x u * g.tangentNorm x v := by |
| 275 | calc |
| 276 | _ ≤ ∑ i, |∑ j, D.curvatureTensor x (b i) u (b j) v * D.ricci x (b i) (b j)| := |
| 277 | Finset.abs_sum_le_sum_abs _ _ |
| 278 | _ ≤ ∑ i, ∑ j, |D.curvatureTensor x (b i) u (b j) v * D.ricci x (b i) (b j)| := |
| 279 | Finset.sum_le_sum (fun i _ => Finset.abs_sum_le_sum_abs _ _) |
| 280 | _ ≤ ∑ _i : Fin (Module.finrank ℝ (TangentSpace (𝓡 n) x)), |
| 281 | ∑ _j : Fin (Module.finrank ℝ (TangentSpace (𝓡 n) x)), |
| 282 | (n : ℝ) * K ^ 2 * g.tangentNorm x u * g.tangentNorm x v := by |
| 283 | apply Finset.sum_le_sum |
| 284 | intro i _ |
| 285 | apply Finset.sum_le_sum |
| 286 | intro j _ |
| 287 | rw [abs_mul] |
| 288 | have h := mul_le_mul (hcurv i j) (hric i j) (abs_nonneg _) (by positivity) |
| 289 | nlinarith only [h] |
| 290 | _ = _ := by simp [hdim]; ring |
| 291 | have hRicSq : |∑ i, D.ricci x u (b i) * D.ricci x (b i) v| ≤ |
| 292 | (n : ℝ) ^ 3 * K ^ 2 * g.tangentNorm x u * g.tangentNorm x v := by |
| 293 | calc |
| 294 | _ ≤ ∑ i, |D.ricci x u (b i) * D.ricci x (b i) v| := Finset.abs_sum_le_sum_abs _ _ |
| 295 | _ ≤ ∑ _i : Fin (Module.finrank ℝ (TangentSpace (𝓡 n) x)), |
| 296 | (n : ℝ) ^ 2 * K ^ 2 * g.tangentNorm x u * g.tangentNorm x v := by |
| 297 | apply Finset.sum_le_sum |
| 298 | intro i _ |
| 299 | have h₁ := D.abs_ricci_le_curvatureDerivativeNorm_zero hD x u (b i) |
| 300 | have h₂ := D.abs_ricci_le_curvatureDerivativeNorm_zero hD x (b i) v |
| 301 | simp only [hb, mul_one] at h₁ h₂ |
| 302 | rw [abs_mul] |
| 303 | have h := mul_le_mul h₁ h₂ (abs_nonneg _) (by positivity) |
| 304 | nlinarith only [h] |
| 305 | _ = _ := by simp [hdim]; ring |
| 306 | have hL := D.abs_tensorLaplacian_ricci_le_curvatureDerivativeNorm hD x u v |
| 307 | have hH := D.abs_hessian_scalar_le_curvatureDerivativeNorm hD x u v |
| 308 | have hC₂ : 0 ≤ (n : ℝ) ^ 2 * D.curvatureDerivativeNorm 2 x * |
| 309 | g.tangentNorm x u * g.tangentNorm x v := by |
| 310 | have h₂ : 0 ≤ D.curvatureDerivativeNorm 2 x := Real.sqrt_nonneg _ |
| 311 | positivity |
| 312 | have htriangle := abs_add_le |
| 313 | (D.tensorLaplacian D.ricciEvaluation x ![u, v] - D.hessian D.scalarCurvature x u v / 2) |
| 314 | (2 * (∑ i, ∑ j, D.curvatureTensor x (b i) u (b j) v * D.ricci x (b i) (b j)) - |
| 315 | ∑ i, D.ricci x u (b i) * D.ricci x (b i) v) |
| 316 | have hdiff := abs_sub (D.tensorLaplacian D.ricciEvaluation x ![u, v]) |
| 317 | (D.hessian D.scalarCurvature x u v / 2) |
| 318 | have halg := abs_sub |
| 319 | (2 * (∑ i, ∑ j, D.curvatureTensor x (b i) u (b j) v * D.ricci x (b i) (b j))) |
| 320 | (∑ i, D.ricci x u (b i) * D.ricci x (b i) v) |
| 321 | norm_num only [abs_div, abs_mul, abs_of_pos (by norm_num : (0 : ℝ) < 2)] at hdiff halg |
| 322 | unfold hamiltonM |
| 323 | dsimp only |
| 324 | rw [add_sub_cancel_right] |
| 325 | change |_ + (2 * (∑ i, ∑ j, D.curvatureTensor x (b i) u (b j) v * |
| 326 | D.ricci x (b i) (b j)) - ∑ i, D.ricci x u (b i) * D.ricci x (b i) v)| ≤ _ |
| 327 | dsimp only [K] at hRmRic hRicSq |
| 328 | nlinarith only [htriangle, hdiff, halg, hL, hH, hRmRic, hRicSq, hC₂] |
| 329 | |
| 330 | /-- Nonnegative Ricci removes the elapsed-time term from a lower bound for |
| 331 | Hamilton's quadratic two-tensor. -/ |
| 332 | lemma hamiltonM_lower_bound_of_nonnegative_ricci |
| 333 | (D : LeviCivitaData g) (hD : D.CurvatureTensorCalculus) |
| 334 | {τ : ℝ} (hτ : 0 ≤ τ) (x : M) (v : TangentSpace (𝓡 n) x) |
| 335 | (hRic : 0 ≤ D.ricci x v v) : |
| 336 | -(2 * (n : ℝ) ^ 2 * D.curvatureDerivativeNorm 2 x + |
| 337 | 3 * (n : ℝ) ^ 3 * (D.curvatureDerivativeNorm 0 x) ^ 2) * |
| 338 | (g.tangentNorm x v) ^ 2 ≤ hamiltonM D τ x v v := by |
| 339 | have h := (abs_le.mp (abs_hamiltonM_sub_ricci_le_curvatureDerivativeNorm D hD τ x v v)).1 |
| 340 | have ht : 0 ≤ D.ricci x v v / (2 * τ) := div_nonneg hRic (by positivity) |
| 341 | nlinarith only [h, ht] |
| 342 | |
| 343 | end Poincare.RicciFlow.Harnack |