import PoincareLib.Geometry.RicciFlow.Harnack.Matrix.Positivity.GeometricContact import PoincareLib.Geometry.RicciFlow.Harnack.Matrix.Positivity.BasisChange import PoincareLib.Geometry.RicciFlow.Harnack.Matrix.Divergence import PoincareLib.Geometry.RicciFlow.Harnack.Matrix.Evolution.ReactionDerivative import PoincareLib.Geometry.RicciFlow.Harnack.Finite /-! # Spatial null contact for the Hamilton tensor block The geometric curvature/mixed/two-tensor block uses a common radial frame. Its two-form coordinates may have arbitrary first jets, while the vector coordinates have zero first jets at the contact point. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false set_option maxHeartbeats 800000 open scoped Manifold ContDiff Bundle Topology BigOperators open Matrix Filter universe u namespace Poincare.RicciFlow.Harnack open PoincareMT variable {n : β„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] {g : RiemannianMetric n M} /-- The divergence representation gives spatial smoothness and multilinearity of Hamilton's two-tensor, including at zero elapsed time under total division. -/ lemma hamiltonM_isSmoothCovariantTensor (D : LeviCivitaData g) (hD : D.CurvatureTensorCalculus) (Ο„ : ℝ) : IsSmoothCovariantTensor (fun y (z : Fin 2 β†’ TangentSpace (𝓑 n) y) => hamiltonM D Ο„ y (z 0) (z 1)) := by let P : CovariantTensorEvaluation n M 3 := fun y z => hamiltonP D y (z 0) (z 1) (z 2) have hB : IsSmoothCovariantTensor (g.tensorTrace (D.covariantTensorDerivative P)) := (D.covariantTensorDerivative_isSmooth (hamiltonP_isSmoothCovariantTensor D hD)).tensorTrace have hC := D.isSmoothCovariantTensor_curvatureRicci hD have hQ := hD.2.1.const_mul (2 * Ο„)⁻¹ convert (hB.add hC).add hQ using 1 funext y z rw [hamiltonM_eq_divergence_hamiltonP D hD] dsimp only [RiemannianMetric.tensorTrace, P] have hz : z = ![z 0, z 1] := by ext i; fin_cases i <;> rfl rw [hz] simp only [Matrix.cons_val_zero, Matrix.cons_val_one] have hflip (a b c d : TangentSpace (𝓑 n) y) : D.curvatureTensor y a b c d = D.curvatureTensor y b a d c := by rw [(hD.2.2.2.1 y a b c d).2.1, (hD.2.2.2.1 y c d a b).1, (hD.2.2.2.1 y c d b a).2.1, (hD.2.2.2.1 y b a c d).1, neg_neg] simp_rw [hflip (g.orthonormalBasis y _) (z 0) (g.orthonormalBasis y _) (z 1)] simp [LeviCivitaData.ricciEvaluation, div_eq_mul_inv, mul_comm] private def blockRank {I : Type} : ((I Γ— I) βŠ• I) β†’ ((I Γ— I) βŠ• I) β†’ β„• | .inl _, .inl _ => 4 | .inl _, .inr _ => 3 | .inr _, .inl _ => 3 | .inr _, .inr _ => 2 private def blockSlots {I : Type} : (i j : (I Γ— I) βŠ• I) β†’ Fin (blockRank i j) β†’ I | .inl ab, .inl cd => ![ab.1, ab.2, cd.1, cd.2] | .inl ab, .inr c => ![ab.1, ab.2, c] | .inr a, .inl bc => ![bc.1, bc.2, a] | .inr a, .inr b => ![a, b] private def blockTensor {I : Type} (R : CovariantTensorEvaluation n M 4) (P : CovariantTensorEvaluation n M 3) (B : CovariantTensorEvaluation n M 2) : (i j : (I Γ— I) βŠ• I) β†’ CovariantTensorEvaluation n M (blockRank i j) | .inl _, .inl _ => R | .inl _, .inr _ => P | .inr _, .inl _ => P | .inr _, .inr _ => B private lemma map_vec_two {Ξ± Ξ² : Type*} (f : Ξ± β†’ Ξ²) (a b : Ξ±) : (fun l : Fin 2 => f (![a, b] l)) = ![f a, f b] := by ext l; fin_cases l <;> rfl private lemma map_vec_three {Ξ± Ξ² : Type*} (f : Ξ± β†’ Ξ²) (a b c : Ξ±) : (fun l : Fin 3 => f (![a, b, c] l)) = ![f a, f b, f c] := by ext l; fin_cases l <;> rfl private lemma map_vec_four {Ξ± Ξ² : Type*} (f : Ξ± β†’ Ξ²) (a b c d : Ξ±) : (fun l : Fin 4 => f (![a, b, c, d] l)) = ![f a, f b, f c, f d] := by ext l; fin_cases l <;> rfl omit [IsManifold (𝓑 n) ∞ M] in private lemma blockTensor_eq {I : Type} (R : CovariantTensorEvaluation n M 4) (P : CovariantTensorEvaluation n M 3) (B : CovariantTensorEvaluation n M 2) (y : M) (e : I β†’ TangentSpace (𝓑 n) y) : (fun i j => blockTensor R P B i j y (fun l => e (blockSlots i j l))) = Matrix.fromBlocks (fun ab cd : I Γ— I => R y ![e ab.1, e ab.2, e cd.1, e cd.2]) (fun ab c => P y ![e ab.1, e ab.2, e c]) (fun a bc => P y ![e bc.1, e bc.2, e a]) (fun a b => B y ![e a, e b]) := by ext (ab | a) (cd | c) <;> simp only [blockTensor, blockSlots, blockRank, Matrix.fromBlocks_apply₁₁, Matrix.fromBlocks_apply₁₂, Matrix.fromBlocks_apply₂₁, Matrix.fromBlocks_applyβ‚‚β‚‚, map_vec_two, map_vec_three, map_vec_four] /-- Spatial diffusion at a null tensor-block direction. The tangent vectors `A a b` prescribe the gradients of its two-form coordinates. -/ theorem tensor_block_diffusion_nonneg_at_null [T2Space M] {I : Type} [Fintype I] (D : LeviCivitaData g) {R : CovariantTensorEvaluation n M 4} {P : CovariantTensorEvaluation n M 3} {B : CovariantTensorEvaluation n M 2} (hR : IsSmoothCovariantTensor R) (hP : IsSmoothCovariantTensor P) (hB : IsSmoothCovariantTensor B) (x : M) (v : I β†’ TangentSpace (𝓑 n) x) (hpos : βˆ€αΆ  y in 𝓝 x, βˆ€ e : I β†’ TangentSpace (𝓑 n) y, (Matrix.fromBlocks (fun ab cd : I Γ— I => R y ![e ab.1, e ab.2, e cd.1, e cd.2]) (fun ab c => P y ![e ab.1, e ab.2, e c]) (fun a bc => P y ![e bc.1, e bc.2, e a]) (fun a b => B y ![e a, e b])).PosSemidef) (U : I β†’ I β†’ ℝ) (W : I β†’ ℝ) (hnull : (βˆ‘ a, βˆ‘ b, B x ![v a, v b] * W a * W b) + 2 * (βˆ‘ a, βˆ‘ b, βˆ‘ c, P x ![v a, v b, v c] * U a b * W c) + (βˆ‘ a, βˆ‘ b, βˆ‘ c, βˆ‘ d, R x ![v a, v b, v c, v d] * U a b * U c d) = 0) (A : I β†’ I β†’ TangentSpace (𝓑 n) x) : 0 ≀ (βˆ‘ a, βˆ‘ b, D.tensorLaplacian B x ![v a, v b] * W a * W b) + 2 * (βˆ‘ a, βˆ‘ b, βˆ‘ c, D.tensorLaplacian P x ![v a, v b, v c] * U a b * W c) + (βˆ‘ a, βˆ‘ b, βˆ‘ c, βˆ‘ d, D.tensorLaplacian R x ![v a, v b, v c, v d] * U a b * U c d) + 4 * (βˆ‘ a, βˆ‘ b, βˆ‘ c, βˆ‘ d, U a b * D.covariantTensorDerivative R x ![A c d, v a, v b, v c, v d]) + 4 * (βˆ‘ a, βˆ‘ b, βˆ‘ c, W c * D.covariantTensorDerivative P x ![A a b, v a, v b, v c]) + 2 * (βˆ‘ a, βˆ‘ b, βˆ‘ c, βˆ‘ d, R x ![v a, v b, v c, v d] * g.inner x (A a b) (A c d)) := by let z : ((I Γ— I) βŠ• I) β†’ ℝ := Sum.elim (fun ab => U ab.1 ab.2) W let V : ((I Γ— I) βŠ• I) β†’ TangentSpace (𝓑 n) x := Sum.elim (fun ab => A ab.1 ab.2) (fun _ => 0) have hT : βˆ€ i j : (I Γ— I) βŠ• I, IsSmoothCovariantTensor (blockTensor R P B i j) := by rintro (ab | a) (cd | c) Β· exact hR Β· exact hP Β· exact hP Β· exact hB have hn : z ⬝α΅₯ ((fun i j => blockTensor R P B i j x (fun l => v (blockSlots i j l))) *α΅₯ z) = 0 := by rw [blockTensor_eq] exact (hamiltonBlock_quadratic_eq (fun a b c d => R x ![v a, v b, v c, v d]) (fun a b c => P x ![v a, v b, v c]) (fun a b => B x ![v a, v b]) U W).trans hnull have hp : βˆ€αΆ  y in 𝓝 x, βˆ€ e : I β†’ TangentSpace (𝓑 n) y, Matrix.PosSemidef (fun i j => blockTensor R P B i j y (fun l => e (blockSlots i j l))) := by filter_upwards [hpos] with y hy e rw [blockTensor_eq] exact hy e have h := tensor_matrix_diffusion_nonneg_at_null D blockRank (blockTensor R P B) hT blockSlots x v hp z hn V have hΞ” : (βˆ‘ i, βˆ‘ j, z i * D.tensorLaplacian (blockTensor R P B i j) x (fun l => v (blockSlots i j l)) * z j) = (βˆ‘ a, βˆ‘ b, D.tensorLaplacian B x ![v a, v b] * W a * W b) + 2 * (βˆ‘ a, βˆ‘ b, βˆ‘ c, D.tensorLaplacian P x ![v a, v b, v c] * U a b * W c) + (βˆ‘ a, βˆ‘ b, βˆ‘ c, βˆ‘ d, D.tensorLaplacian R x ![v a, v b, v c, v d] * U a b * U c d) := by have he := hamiltonBlock_quadratic_eq (fun a b c d => D.tensorLaplacian R x ![v a, v b, v c, v d]) (fun a b c => D.tensorLaplacian P x ![v a, v b, v c]) (fun a b => D.tensorLaplacian B x ![v a, v b]) U W convert he using 1 simp only [dotProduct, mulVec, Fintype.sum_sum_type, Fintype.sum_prod_type, z, Sum.elim_inl, Sum.elim_inr, blockTensor, blockSlots, blockRank, map_vec_two, map_vec_three, map_vec_four, Matrix.fromBlocks_apply₁₁, Matrix.fromBlocks_apply₁₂, Matrix.fromBlocks_apply₂₁, Matrix.fromBlocks_applyβ‚‚β‚‚, Finset.mul_sum, Finset.sum_add_distrib, mul_add, mul_assoc] rw [hΞ”] at h have hzero {k : β„•} {T : CovariantTensorEvaluation n M k} (hT : IsSmoothCovariantTensor T) (w : Fin k β†’ TangentSpace (𝓑 n) x) : D.covariantTensorDerivative T x (Matrix.vecCons 0 w) = 0 := by obtain ⟨L, hL⟩ := (D.covariantTensorDerivative_isSmooth hT).1 x change D.covariantTensorDerivative T x (Fin.cons 0 w) = 0 rw [← Fin.update_cons_zero (x := (0 : TangentSpace (𝓑 n) x)), hL, L.map_update_zero] simp only [Fintype.sum_sum_type, Fintype.sum_prod_type, z, V, Sum.elim_inl, Sum.elim_inr, blockTensor, blockSlots, blockRank, map_vec_two, map_vec_three, map_vec_four, hzero hP, hzero hB, map_zero, _root_.zero_apply, mul_zero, Finset.sum_const_zero, add_zero, Finset.sum_add_distrib, Matrix.Fin.cons_vecCons] at h have hporder : (βˆ‘ c, βˆ‘ a, βˆ‘ b, W c * D.covariantTensorDerivative P x ![A a b, v a, v b, v c]) = βˆ‘ a, βˆ‘ b, βˆ‘ c, W c * D.covariantTensorDerivative P x ![A a b, v a, v b, v c] := by rw [Finset.sum_comm_cycle, Finset.sum_comm_cycle] rw [hporder] at h linarith only [h] private lemma covariantTensorDerivative_cons_sum (D : LeviCivitaData g) {k : β„•} {T : CovariantTensorEvaluation n M k} (hT : IsSmoothCovariantTensor T) (x : M) (w : Fin k β†’ TangentSpace (𝓑 n) x) (c : Fin (Module.finrank ℝ (TangentSpace (𝓑 n) x)) β†’ ℝ) : D.covariantTensorDerivative T x (Fin.cons (βˆ‘ e, c e β€’ g.orthonormalBasis x e) w) = βˆ‘ e, c e * D.covariantTensorDerivative T x (Fin.cons (g.orthonormalBasis x e) w) := by classical obtain ⟨L, hL⟩ := (D.covariantTensorDerivative_isSmooth hT).1 x rw [← Fin.update_cons_zero (x := (0 : TangentSpace (𝓑 n) x)), hL, L.map_update_sum] apply Finset.sum_congr rfl intro e _ rw [L.map_update_smul] simp only [smul_eq_mul, Fin.update_cons_zero, ← hL] private lemma sum_four_last {I : Type} [Fintype I] (f : I β†’ I β†’ I β†’ I β†’ ℝ) : (βˆ‘ a, βˆ‘ c, βˆ‘ d, βˆ‘ e, f a c d e) = βˆ‘ e, βˆ‘ a, βˆ‘ c, βˆ‘ d, f a c d e := by calc _ = βˆ‘ a, βˆ‘ e, βˆ‘ c, βˆ‘ d, f a c d e := by apply Finset.sum_congr rfl intro a _ exact Finset.sum_comm_cycle _ = _ := Finset.sum_comm private lemma sum_five_last {I : Type} [Fintype I] (f : I β†’ I β†’ I β†’ I β†’ I β†’ ℝ) : (βˆ‘ a, βˆ‘ c, βˆ‘ d, βˆ‘ f', βˆ‘ e, f a c d f' e) = βˆ‘ e, βˆ‘ a, βˆ‘ c, βˆ‘ d, βˆ‘ f', f a c d f' e := by calc _ = βˆ‘ a, βˆ‘ e, βˆ‘ c, βˆ‘ d, βˆ‘ f', f a c d f' e := by apply Finset.sum_congr rfl intro a _ exact sum_four_last (f a) _ = _ := Finset.sum_comm /-- The geometric Hamilton diffusion inequality in the canonical basis. The first jets `V` are arbitrary, so Hamilton's prescribed jets can be inserted directly into the checked heat-operator contraction. -/ theorem hamilton_diffusion_quadratic_nonneg_at_null [T2Space M] (hC : RicciFlowCurvatureTheory.{u}) {Tβ‚€ T₁ : ℝ} (F : RicciFlow n M (Set.Ioo Tβ‚€ T₁)) (t Ο„ : ℝ) (x : M) (U : Fin (Module.finrank ℝ (TangentSpace (𝓑 n) x)) β†’ Fin (Module.finrank ℝ (TangentSpace (𝓑 n) x)) β†’ ℝ) (W : Fin (Module.finrank ℝ (TangentSpace (𝓑 n) x)) β†’ ℝ) (hQ : βˆ€αΆ  y in 𝓝 x, HamiltonBlockPos F t y Ο„) (hnull : let D := F.connection t let b := (F.metric t).orthonormalBasis x (βˆ‘ a, βˆ‘ c, hamiltonM D Ο„ x (b a) (b c) * W a * W c) + 2 * (βˆ‘ a, βˆ‘ c, βˆ‘ d, hamiltonP D x (b a) (b c) (b d) * U a c * W d) + (βˆ‘ a, βˆ‘ c, βˆ‘ d, βˆ‘ e, D.curvatureTensor x (b a) (b c) (b d) (b e) * U a c * U d e) = 0) (V : Fin (Module.finrank ℝ (TangentSpace (𝓑 n) x)) β†’ Fin (Module.finrank ℝ (TangentSpace (𝓑 n) x)) β†’ Fin (Module.finrank ℝ (TangentSpace (𝓑 n) x)) β†’ ℝ) : let D := F.connection t let b := (F.metric t).orthonormalBasis x 0 ≀ (βˆ‘ a, βˆ‘ c, D.tensorLaplacian (fun y z => hamiltonM D Ο„ y (z 0) (z 1)) x ![b a, b c] * W a * W c) + 2 * (βˆ‘ a, βˆ‘ c, βˆ‘ d, D.tensorLaplacian (fun y z => hamiltonP D y (z 0) (z 1) (z 2)) x ![b a, b c, b d] * U a c * W d) + (βˆ‘ a, βˆ‘ c, βˆ‘ d, βˆ‘ e, D.tensorLaplacian D.riemannEvaluation x ![b a, b c, b d, b e] * U a c * U d e) + 4 * (βˆ‘ e, βˆ‘ a, βˆ‘ c, βˆ‘ d, D.covariantTensorDerivative (fun y z => hamiltonP D y (z 0) (z 1) (z 2)) x ![b e, b a, b c, b d] * V e a c * W d) + 4 * (βˆ‘ e, βˆ‘ a, βˆ‘ c, βˆ‘ d, βˆ‘ f, D.covariantTensorDerivative D.riemannEvaluation x ![b e, b a, b c, b d, b f] * V e a c * U d f) + 2 * (βˆ‘ e, βˆ‘ a, βˆ‘ c, βˆ‘ d, βˆ‘ f, D.curvatureTensor x (b a) (b c) (b d) (b f) * V e a c * V e d f) := by classical let D := F.connection t let g := F.metric t let b := g.orthonormalBasis x let P : CovariantTensorEvaluation n M 3 := fun y z => hamiltonP D y (z 0) (z 1) (z 2) let B : CovariantTensorEvaluation n M 2 := fun y z => hamiltonM D Ο„ y (z 0) (z 1) let A := fun a c => βˆ‘ e, V e a c β€’ b e have hD := hC.tensor_calculus n M g D have hP : IsSmoothCovariantTensor P := hamiltonP_isSmoothCovariantTensor D hD have hB : IsSmoothCovariantTensor B := hamiltonM_isSmoothCovariantTensor D hD Ο„ have hp : βˆ€αΆ  y in 𝓝 x, βˆ€ e : Fin (Module.finrank ℝ (TangentSpace (𝓑 n) x)) β†’ TangentSpace (𝓑 n) y, (Matrix.fromBlocks (fun ab cd : Fin (Module.finrank ℝ (TangentSpace (𝓑 n) x)) Γ— Fin (Module.finrank ℝ (TangentSpace (𝓑 n) x)) => D.riemannEvaluation y ![e ab.1, e ab.2, e cd.1, e cd.2]) (fun ab c => P y ![e ab.1, e ab.2, e c]) (fun a bc => P y ![e bc.1, e bc.2, e a]) (fun a c => B y ![e a, e c])).PosSemidef := by filter_upwards [hQ] with y hy e exact tensor_block_posSemidef_of_basis g hD.1 hP hB y hy e have h := tensor_block_diffusion_nonneg_at_null D hD.1 hP hB x b hp U W hnull A have hfirstP (a c d) : D.covariantTensorDerivative P x ![A a c, b a, b c, b d] = βˆ‘ e, V e a c * D.covariantTensorDerivative P x ![b e, b a, b c, b d] := by exact covariantTensorDerivative_cons_sum D hP x ![b a, b c, b d] (fun e => V e a c) have hfirstR (a c d f) : D.covariantTensorDerivative D.riemannEvaluation x ![A d f, b a, b c, b d, b f] = βˆ‘ e, V e d f * D.covariantTensorDerivative D.riemannEvaluation x ![b e, b d, b f, b a, b c] := by rw [D.covariantTensorDerivative_riemannEvaluation_pair_swap hD] exact covariantTensorDerivative_cons_sum D hD.1 x ![b d, b f, b a, b c] (fun e => V e d f) have hinner (a c d f) : g.inner x (A a c) (A d f) = βˆ‘ e, V e a c * V e d f := by let : Bundle.RiemannianBundle (TangentSpace (𝓑 n) : M β†’ Type _) := ⟨g.toRiemannianMetric⟩ change inner ℝ (βˆ‘ e, V e a c β€’ b e) (βˆ‘ e, V e d f β€’ b e) = _ simp only [sum_inner, inner_sum, real_inner_smul_left, real_inner_smul_right, b.inner_eq_ite, mul_ite, mul_zero, mul_one, Finset.sum_ite_eq', Finset.mem_univ, if_true] apply Finset.sum_congr rfl intro e _ ring dsimp only [g] at hinner simp only [hfirstP, hfirstR, hinner, Finset.mul_sum] at h rw [sum_four_last (fun a c d e => 4 * (W d * (V e a c * D.covariantTensorDerivative P x ![b e, b a, b c, b d]))), sum_five_last (fun a c d f e => 4 * (U a c * (V e d f * D.covariantTensorDerivative D.riemannEvaluation x ![b e, b d, b f, b a, b c]))), sum_five_last (fun a c d f e => 2 * (D.riemannEvaluation x ![b a, b c, b d, b f] * (V e a c * V e d f)))] at h have hRorder : (βˆ‘ e, βˆ‘ a, βˆ‘ c, βˆ‘ d, βˆ‘ f, 4 * (U a c * (V e d f * D.covariantTensorDerivative D.riemannEvaluation x ![b e, b d, b f, b a, b c]))) = βˆ‘ e, βˆ‘ a, βˆ‘ c, βˆ‘ d, βˆ‘ f, 4 * (D.covariantTensorDerivative D.riemannEvaluation x ![b e, b a, b c, b d, b f] * V e a c * U d f) := by apply Finset.sum_congr rfl intro e _ rw [Finset.sum_comm_cycle] apply Finset.sum_congr rfl intro d _ rw [Finset.sum_comm_cycle] apply Finset.sum_congr rfl intro f _ apply Finset.sum_congr rfl intro a _ apply Finset.sum_congr rfl intro c _ ring rw [hRorder] at h have hPorder : (βˆ‘ e, βˆ‘ a, βˆ‘ c, βˆ‘ d, 4 * (W d * (V e a c * D.covariantTensorDerivative P x ![b e, b a, b c, b d]))) = 4 * (βˆ‘ e, βˆ‘ a, βˆ‘ c, βˆ‘ d, D.covariantTensorDerivative P x ![b e, b a, b c, b d] * V e a c * W d) := by simp only [Finset.mul_sum] apply Finset.sum_congr rfl intro e _ apply Finset.sum_congr rfl intro a _ apply Finset.sum_congr rfl intro c _ apply Finset.sum_congr rfl intro d _ ring rw [hPorder] at h have hVorder : (βˆ‘ e, βˆ‘ a, βˆ‘ c, βˆ‘ d, βˆ‘ f, 2 * (D.riemannEvaluation x ![b a, b c, b d, b f] * (V e a c * V e d f))) = 2 * (βˆ‘ e, βˆ‘ a, βˆ‘ c, βˆ‘ d, βˆ‘ f, D.curvatureTensor x (b a) (b c) (b d) (b f) * V e a c * V e d f) := by simp only [Finset.mul_sum, mul_assoc, LeviCivitaData.riemannEvaluation, Matrix.cons_val_zero, Matrix.cons_val_one, Matrix.cons_val] rw [hVorder] at h have hRcoeff : (βˆ‘ e, βˆ‘ a, βˆ‘ c, βˆ‘ d, βˆ‘ f, 4 * (D.covariantTensorDerivative D.riemannEvaluation x ![b e, b a, b c, b d, b f] * V e a c * U d f)) = 4 * (βˆ‘ e, βˆ‘ a, βˆ‘ c, βˆ‘ d, βˆ‘ f, D.covariantTensorDerivative D.riemannEvaluation x ![b e, b a, b c, b d, b f] * V e a c * U d f) := by simp only [Finset.mul_sum] rw [hRcoeff] at h have hPcoeff : (βˆ‘ a, βˆ‘ c, βˆ‘ d, 2 * (D.tensorLaplacian P x ![b a, b c, b d] * U a c * W d)) = 2 * (βˆ‘ a, βˆ‘ c, βˆ‘ d, D.tensorLaplacian P x ![b a, b c, b d] * U a c * W d) := by simp only [Finset.mul_sum] rw [hPcoeff] at h dsimp only at ⊒ linarith only [h] end Poincare.RicciFlow.Harnack