import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Tensor.CenteredHessian import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Tensor.SquareChartCurvature import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Tensor.BasisContractions import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Tensor.TensorTrace import PoincareLib.Geometry.RicciFlow.Curvature.Theory /-! # The scalar Hessian and its orthonormal trace The actual centered-chart formula constructs a continuous bilinear form. Algebraic repackaging makes changes of fiber norm explicit. -/ set_option autoImplicit false set_option maxSynthPendingDepth 3 open scoped Manifold ContDiff Bundle BigOperators universe u namespace PoincareMT.ReducedLength variable {n : β„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] local notation "E" => EuclideanSpace ℝ (Fin n) set_option backward.isDefEq.respectTransparency false in theorem squareTime_hessian_exists_bilinear {J : Set ℝ} (F : RicciFlow n M J) (T b : ℝ) (hb : 0 < b) (hwindow : Set.Icc (T - b) T βŠ† J) (p : M) (s : ℝ) (hs : s ∈ Set.Ioo (-Real.sqrt b) (Real.sqrt b)) (f : M β†’ ℝ) (hf : ContMDiffOn (𝓑 n) (π“˜(ℝ, ℝ)) ∞ f (chartAt E p).source) : βˆƒ H : E β†’L[ℝ] E β†’L[ℝ] ℝ, βˆ€ U V : E, (F.connection (T - s ^ 2)).hessian f p U V = H U V := by let Ο† : E β†’ ℝ := fun y ↦ f ((chartAt E p).symm y) let y0 := (chartAt E p) p let C := coordinateConnectionBilinear (squareChartMetric F T p) (s, y0) have hΟ† : ContDiffOn ℝ ∞ Ο† (chartAt E p).target := (hf.comp contMDiffOn_chart_symm (fun y hy ↦ (chartAt E p).map_target hy)).contDiffOn have hy : y0 ∈ (chartAt E p).target := (chartAt E p).map_source (mem_chart_source E p) have hD : DifferentiableAt ℝ (fderiv ℝ Ο†) y0 := (((hΟ†.contDiffAt ((chartAt E p).open_target.mem_nhds hy)).fderiv_right (m := ∞) (by simp)).differentiableAt (by simp)) let H : E β†’L[ℝ] E β†’L[ℝ] ℝ := fderiv ℝ (fderiv ℝ Ο†) y0 - (ContinuousLinearMap.compL ℝ E E ℝ (fderiv ℝ Ο† y0)).comp C refine ⟨H, ?_⟩ intro U V have hd : fderiv ℝ (fun y ↦ fderiv ℝ Ο† y V) y0 U = fderiv ℝ (fderiv ℝ Ο†) y0 U V := by have h := hD.hasFDerivAt.clm_apply (hasFDerivAt_const V y0) simpa using congrArg (fun L : E β†’L[ℝ] ℝ ↦ L U) h.fderiv rw [hessian_centeredCoordinates (F.connection (T - s ^ 2)) f p hf U V] change fderiv ℝ (fun y ↦ fderiv ℝ Ο† y V) y0 U - fderiv ℝ Ο† y0 ((F.connection (T - s ^ 2)).connection (chartVectorField p V) p U) = H U V rw [hd, ← squareChartConnection_at_center F T b hb hwindow p s hs U V] rfl theorem squareTime_laplacian_orthonormal_trace {J : Set ℝ} (F : RicciFlow n M J) (T b : ℝ) (hb : 0 < b) (hwindow : Set.Icc (T - b) T βŠ† J) (p : M) (s : ℝ) (hs : s ∈ Set.Ioo (-Real.sqrt b) (Real.sqrt b)) (f : M β†’ ℝ) (hf : ContMDiffOn (𝓑 n) (π“˜(ℝ, ℝ)) ∞ f (chartAt E p).source) {ΞΉ : Type*} [Fintype ΞΉ] : letI : Bundle.RiemannianBundle (TangentSpace (𝓑 n) : M β†’ Type _) := ⟨(F.metric (T - s ^ 2)).toRiemannianMetric⟩ βˆ€ e : OrthonormalBasis ΞΉ ℝ (TangentSpace (𝓑 n) p), (βˆ‘ i, (F.connection (T - s ^ 2)).hessian f p (e i) (e i)) = (F.connection (T - s ^ 2)).laplacian f p := by obtain ⟨H, hH⟩ := squareTime_hessian_exists_bilinear F T b hb hwindow p s hs f hf letI : Bundle.RiemannianBundle (TangentSpace (𝓑 n) : M β†’ Type _) := ⟨(F.metric (T - s ^ 2)).toRiemannianMetric⟩ letI : FiniteDimensional ℝ (TangentSpace (𝓑 n) p) := VectorBundle.finiteDimensional ℝ E (TangentSpace (𝓑 n) : M β†’ Type _) p let L : TangentSpace (𝓑 n) p β†’β‚—[ℝ] TangentSpace (𝓑 n) p β†’β‚—[ℝ] ℝ := { toFun := fun v ↦ (H v).toLinearMap map_add' := by intro v w; ext z; exact congrArg (fun B : E β†’L[ℝ] ℝ ↦ B z) (H.map_add v w) map_smul' := by intro c v; ext z; exact congrArg (fun B : E β†’L[ℝ] ℝ ↦ B z) (H.map_smul c v) } let B : TangentSpace (𝓑 n) p β†’L[ℝ] TangentSpace (𝓑 n) p β†’L[ℝ] ℝ := ((LinearMap.toContinuousLinearMap : (TangentSpace (𝓑 n) p β†’β‚—[ℝ] ℝ) ≃ₗ[ℝ] (TangentSpace (𝓑 n) p β†’L[ℝ] ℝ)).toLinearMap.comp L).toContinuousLinearMap intro e have h := bilinear_trace_basis_eq B e ((F.metric (T - s ^ 2)).orthonormalBasis p) change (βˆ‘ i, H (e i) (e i)) = βˆ‘ j, H ((F.metric (T - s ^ 2)).orthonormalBasis p j) ((F.metric (T - s ^ 2)).orthonormalBasis p j) at h change (βˆ‘ i, (F.connection (T - s ^ 2)).hessian f p (e i) (e i)) = βˆ‘ j, (F.connection (T - s ^ 2)).hessian f p ((F.metric (T - s ^ 2)).orthonormalBasis p j) ((F.metric (T - s ^ 2)).orthonormalBasis p j) exact (Finset.sum_congr rfl (fun i _ ↦ hH (e i) (e i))).trans (h.trans (Finset.sum_congr rfl (fun j _ ↦ hH _ _)).symm) theorem scalarCurvature_contMDiff (hM04 : RicciFlowCurvatureTheory.{u}) {g : RiemannianMetric n M} (D : LeviCivitaData g) : ContMDiff (𝓑 n) (π“˜(ℝ, ℝ)) ∞ D.scalarCurvature := tensorMetricTrace_smooth g D.ricciEvaluation (hM04.tensor_calculus n M g D).2.1 end PoincareMT.ReducedLength