import PoincareLib.Geometry.RicciFlow.Curvature.Calculus import PoincareLib.Geometry.Curvature.Operator.RicciBounds import PoincareLib.Geometry.RicciFlow.Curvature.Theory import PoincareLib.Geometry.Riemannian.Tensor.Contraction import Mathlib.Algebra.QuadraticDiscriminant /-! # Scalar evolution under nonnegative Ricci curvature Cauchy--Schwarz for the retained nonnegative Ricci form bounds its squared norm by the square of its trace. Combining this algebraic estimate with the scalar evolution equation gives the scalar differential inequality used in the nonnegative-curvature variant of Chen's local argument, Theorem 3.1, manuscript pp. 10-11. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set open scoped Manifold ContDiff Bundle BigOperators universe u namespace PoincareMT variable {n : β„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] /-- A nonnegative Ricci quadratic form has squared norm at most the square of its scalar trace. -/ theorem LeviCivitaData.ricciNormSq_le_scalarCurvature_sq_of_ricci_nonneg {g : RiemannianMetric n M} (D : LeviCivitaData g) (hD : D.CurvatureTensorCalculus) (x : M) (hRic : βˆ€ v : TangentSpace (𝓑 n) x, 0 ≀ D.ricci x v v) : D.ricciNormSq x ≀ (D.scalarCurvature x) ^ 2 := by let : Bundle.RiemannianBundle (TangentSpace (𝓑 n) : M β†’ Type _) := ⟨g.toRiemannianMetric⟩ obtain ⟨A, hA⟩ := hD.2.1.1 x let B := bilinearOfTwoTensor A have hB (u v : TangentSpace (𝓑 n) x) : B u v = D.ricci x u v := by simpa only [B, bilinearOfTwoTensor_apply, LeviCivitaData.ricciEvaluation, Matrix.cons_val_zero, Matrix.cons_val_one] using (hA ![u, v]).symm have hsym (u v : TangentSpace (𝓑 n) x) : B u v = B v u := by rw [hB, hB] exact (hD.2.2.2.1 x u v u v).2.2.2 have hsq (u v : TangentSpace (𝓑 n) x) : (D.ricci x u v) ^ 2 ≀ D.ricci x u u * D.ricci x v v := by have hq : βˆ€ z : ℝ, 0 ≀ B u u * (z * z) + (2 * B u v) * z + B v v := by intro z have h : 0 ≀ B (z β€’ u + v) (z β€’ u + v) := hB _ _ β–Έ hRic _ simp only [map_add, map_smul, LinearMap.add_apply, LinearMap.smul_apply, smul_eq_mul] at h rw [hsym v u] at h nlinarith have hd := discrim_le_zero hq simp only [discrim, hB] at hd nlinarith let b := g.orthonormalBasis x change (βˆ‘ i, βˆ‘ j, (D.ricci x (b i) (b j)) ^ 2) ≀ (βˆ‘ i, D.ricci x (b i) (b i)) ^ 2 calc _ ≀ βˆ‘ i, βˆ‘ j, D.ricci x (b i) (b i) * D.ricci x (b j) (b j) := Finset.sum_le_sum (fun i _ => Finset.sum_le_sum (fun j _ => hsq (b i) (b j))) _ = _ := by simp only [← Finset.mul_sum, ← Finset.sum_mul, pow_two] /-- Scalar curvature is a subsolution of the quadratic scalar reaction equation wherever Ricci curvature is nonnegative. -/ theorem RicciFlow.deriv_scalarCurvature_le_laplacian_add_sq_of_ricci_nonneg (hC : RicciFlowCurvatureCalculus.{u}) {J : Set ℝ} (F : RicciFlow n M J) {t : ℝ} (ht : t ∈ interior J) (x : M) (hRic : βˆ€ v : TangentSpace (𝓑 n) x, 0 ≀ (F.connection t).ricci x v v) : deriv (fun s => (F.connection s).scalarCurvature x) t ≀ (F.connection t).laplacian (F.connection t).scalarCurvature x + 2 * ((F.connection t).scalarCurvature x) ^ 2 := by have hd := (hC.scalar_evolution n M J F t (interior_subset ht) x).hasDerivAt (mem_interior_iff_mem_nhds.mp ht) rw [hd.deriv] have hnorm := (F.connection t).ricciNormSq_le_scalarCurvature_sq_of_ricci_nonneg (hC.tensor_calculus n M (F.metric t) (F.connection t)) x hRic linarith /-- Nonnegative curvature operator supplies the Ricci hypothesis for the quadratic scalar evolution inequality. -/ theorem RicciFlow.deriv_scalarCurvature_le_laplacian_add_sq_of_nonnegative_curvatureOperator [T2Space M] (hC : RicciFlowCurvatureCalculus.{u}) {J : Set ℝ} (F : RicciFlow n M J) {t : ℝ} (ht : t ∈ interior J) (x : M) (hoperator : (F.connection t).NonnegativeCurvatureOperator x) : deriv (fun s => (F.connection s).scalarCurvature x) t ≀ (F.connection t).laplacian (F.connection t).scalarCurvature x + 2 * ((F.connection t).scalarCurvature x) ^ 2 := F.deriv_scalarCurvature_le_laplacian_add_sq_of_ricci_nonneg hC ht x (fun v => ((F.connection t).ricci_bounds_of_nonnegative_curvatureOperator (hC.tensor_calculus n M (F.metric t) (F.connection t)) x hoperator v).1) end PoincareMT