import PoincareLib.Geometry.RicciFlow.Curvature.Estimates.QuadraticRicci import PoincareLib.Geometry.Riemannian.MinimalSurface.Sphere.Compatibility.Curvature import PoincareLib.Geometry.Riemannian.ScalarOperators import PoincareLib.Geometry.Riemannian.Curvature.Calculus import Mathlib.LinearAlgebra.BilinearForm.Basic import Mathlib.Logic.Equiv.Fin.Basic /-! # Ricci quadratic bounds from the actual squared norm Morgan-Tian Claim 18.13, printed p. 427. The frozen Ricci norm is the sum of squared coefficients in the metric orthonormal basis. M04's tensor Cauchy-Schwarz estimate gives the required quadratic bound from ricciNormSq <= D^2. The bilinear representation is extracted from the actual tensor-calculus input, with no new curvature assumptions. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false 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] {g : RiemannianMetric n M} /-- The general tensor norm agrees with the frozen Ricci coefficient norm. Source: MT Claim 18.13, p. 427, Ricci-norm normalization. -/ theorem m60Ricci_tensorNorm_sq (D : LeviCivitaData g) (x : M) : (g.tensorNorm D.ricciEvaluation x) ^ 2 = D.ricciNormSq x := by let b := g.orthonormalBasis x let k := Fin (Module.finrank ℝ (TangentSpace (𝓑 n) x)) unfold RiemannianMetric.tensorNorm rw [Real.sq_sqrt (Finset.sum_nonneg fun _ _ => sq_nonneg _)] change (βˆ‘ a : Fin 2 β†’ k, (D.ricci x (b (a 0)) (b (a 1))) ^ 2) = βˆ‘ i : k, βˆ‘ j : k, (D.ricci x (b i) (b j)) ^ 2 simpa [Fintype.sum_prod_type] using (finTwoArrowEquiv k).sum_comp (fun p : k Γ— k => (D.ricci x (b p.1) (b p.2)) ^ 2) /-- A Ricci squared-norm bound controls every quadratic evaluation. Source: MT Claim 18.13, p. 427, coefficient Cauchy-Schwarz. -/ theorem m60Ricci_quadratic_bound (D : LeviCivitaData g) (hD : D.CurvatureTensorCalculus) (x : M) {C : ℝ} (hC : 0 ≀ C) (hnorm : D.ricciNormSq x ≀ C ^ 2) (v : TangentSpace (𝓑 n) x) : |D.ricci x v v| ≀ C * g.inner x v v := by let : Bundle.RiemannianBundle (TangentSpace (𝓑 n) : M β†’ Type _) := ⟨g.toRiemannianMetric⟩ have hv : 0 ≀ g.inner x v v := real_inner_self_nonneg (x := v) have h := M04.tensorEvaluation_sq_le_tensorNorm g hD.2.1 x ![v, v] rw [m60Ricci_tensorNorm_sq] at h simp only [LeviCivitaData.ricciEvaluation, Fin.prod_univ_two, Matrix.cons_val_zero, Matrix.cons_val_one] at h apply (sq_le_sqβ‚€ (abs_nonneg _) (mul_nonneg hC hv)).mp rw [sq_abs, mul_pow] simpa only [pow_two] using h.trans (mul_le_mul_of_nonneg_right hnorm (mul_nonneg hv hv)) /-- Tensorial Ricci evaluation has an actual bilinear representation. Source: MT Claim 18.13, p. 427, using M04 tensor calculus. -/ theorem m60Ricci_exists_bilinear (D : LeviCivitaData g) (hD : D.CurvatureTensorCalculus) (x : M) : βˆƒ B : LinearMap.BilinForm ℝ (TangentSpace (𝓑 n) x), βˆ€ v w, B v w = D.ricci x v w := by obtain ⟨A, hA⟩ := hD.2.1.1 x have hRic (v w : TangentSpace (𝓑 n) x) : D.ricci x v w = A ![v, w] := hA ![v, w] have hu0 (v w z : TangentSpace (𝓑 n) x) : Function.update ![v, w] 0 z = ![z, w] := by ext i fin_cases i <;> simp [Function.update] have hu1 (v w z : TangentSpace (𝓑 n) x) : Function.update ![v, w] 1 z = ![v, z] := by ext i fin_cases i <;> simp [Function.update] have ha1 (v w z : TangentSpace (𝓑 n) x) : D.ricci x (v + w) z = D.ricci x v z + D.ricci x w z := by simp only [hRic] simpa only [hu0] using A.map_update_add ![v, z] 0 v w have ha2 (v w z : TangentSpace (𝓑 n) x) : D.ricci x z (v + w) = D.ricci x z v + D.ricci x z w := by simp only [hRic] simpa only [hu1] using A.map_update_add ![z, v] 1 v w have hs1 (c : ℝ) (v w : TangentSpace (𝓑 n) x) : D.ricci x (c β€’ v) w = c β€’ D.ricci x v w := by simp only [hRic] simpa only [hu0] using A.map_update_smul ![v, w] 0 c v have hs2 (c : ℝ) (v w : TangentSpace (𝓑 n) x) : D.ricci x v (c β€’ w) = c β€’ D.ricci x v w := by simp only [hRic] simpa only [hu1] using A.map_update_smul ![v, w] 1 c w exact ⟨{ toFun := fun v => { toFun := D.ricci x v map_add' := fun w z => ha2 w z v map_smul' := fun c w => hs2 c v w } map_add' := by intro v w; ext z; exact ha1 v w z map_smul' := by intro c v; ext w; exact hs1 c v w }, fun _ _ => rfl⟩ end PoincareMT