import PoincareLib.Geometry.Riemannian.ScalarOperators.Laplacian.Harmonic import PoincareLib.Geometry.Riemannian.ScalarOperators.Divergence.Pullback import PoincareLib.Geometry.Riemannian.Metric.LocalExtension /-! # The retained Laplacian in a fixed chart The actual pulled-back metric and its Christoffel contraction give the coordinate operator. A local Euclidean realization is used only in the proof and imposes no additional metric or operator hypothesis. -/ noncomputable section set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set Filter open scoped Manifold ContDiff Topology Bundle InnerProductSpace namespace PoincareMT.RicciFlow.Splitting.MaximumPrinciple variable {n : β„•} {M : Type*} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] def chartMetric (g : RiemannianMetric n M) (p : M) := g.pullbackCoefficients (extChartAt (𝓑 n) p).symm def chartDrift (g : RiemannianMetric n M) (p : M) (y : EuclideanSpace ℝ (Fin n)) : EuclideanSpace ℝ (Fin n) := βˆ‘ i, CoordinateExponential.christoffelBilinear (chartMetric g p) y (EuclideanSpace.basisFun (Fin n) ℝ i) ((chartMetric g p y).inverse (EuclideanSpace.proj i)) def chartOperator (g : RiemannianMetric n M) (p : M) (f : EuclideanSpace ℝ (Fin n) β†’ ℝ) (y : EuclideanSpace ℝ (Fin n)) : ℝ := (βˆ‘ i, fderiv ℝ (fderiv ℝ f) y (EuclideanSpace.basisFun (Fin n) ℝ i) ((chartMetric g p y).inverse (EuclideanSpace.proj i))) - fderiv ℝ f y (chartDrift g p y) /-- The fixed-chart expression agrees with the canonical retained Laplacian. -/ theorem laplacian_in_chart {g : RiemannianMetric n M} (D : LeviCivitaData g) {f : M β†’ ℝ} (p : M) {y : EuclideanSpace ℝ (Fin n)} (hy : y ∈ (extChartAt (𝓑 n) p).target) (hf : ContMDiffAt (𝓑 n) π“˜(ℝ, ℝ) ∞ f ((extChartAt (𝓑 n) p).symm y)) : D.laplacian f ((extChartAt (𝓑 n) p).symm y) = chartOperator g p (f ∘ (extChartAt (𝓑 n) p).symm) y := by let c := extChartAt (𝓑 n) p have hc (x : EuclideanSpace ℝ (Fin n)) (hx : x ∈ c.target) : ContMDiffAt (𝓑 n) (𝓑 n) ∞ c.symm x := (contMDiffWithinAt_extChartAt_symm_target (n := ∞) p hx).contMDiffAt (extChartAt_target_mem_nhds' hx) have hi (x : EuclideanSpace ℝ (Fin n)) (hx : x ∈ c.target) : (mfderiv (𝓑 n) (𝓑 n) c.symm x).IsInvertible := by simpa only [ModelWithCorners.range_eq_univ, mfderivWithin_univ] using isInvertible_mfderivWithin_extChartAt_symm hx obtain ⟨gE, DE, V, hVo, hyV, _, hE⟩ := RiemannianMetric.exists_local_realization (isOpen_extChartAt_target p) hy (g.pullbackCoefficients c.symm) (g.contDiffOn_chartCoefficients p) (fun x _ v w => g.symm _ _ _) (fun x hx v hv => by apply g.pos (c.symm x) intro hz apply hv apply (hi x hx).injective rw [map_zero] exact hz) have heq : gE.euclideanCoefficients =αΆ [𝓝 y] chartMetric g p := by filter_upwards [hVo.mem_nhds hyV] with x hx exact hE x hx have hinv : βˆ€αΆ  x in 𝓝 y, (mfderiv (𝓑 n) (𝓑 n) c.symm x).IsInvertible := Filter.mem_of_superset (extChartAt_target_mem_nhds' hy) hi have hmetric : βˆ€αΆ  x in 𝓝 y, βˆ€ v w : EuclideanSpace ℝ (Fin n), gE.inner x v w = g.inner (c.symm x) (mfderiv (𝓑 n) (𝓑 n) c.symm x v) (mfderiv (𝓑 n) (𝓑 n) c.symm x w) := by filter_upwards [heq] with x hx v w exact congrArg (fun B => B v w) hx have hΞ“ : CoordinateExponential.christoffelBilinear gE.euclideanCoefficients y = CoordinateExponential.christoffelBilinear (chartMetric g p) y := by simp only [CoordinateExponential.christoffelBilinear, heq.self_of_nhds, heq.fderiv_eq] rw [← DE.laplacian_comp_of_metric_pullback D (hc y hy) hinv hmetric hf, DE.laplacian_eq_sum_fderiv_sub_christoffel (contMDiffAt_iff_contDiffAt.mp (hf.comp y (hc y hy))), hΞ“] change (βˆ‘ i, fderiv ℝ (fderiv ℝ (f ∘ c.symm)) y (EuclideanSpace.basisFun (Fin n) ℝ i) ((gE.euclideanCoefficients y).inverse (EuclideanSpace.proj i))) - fderiv ℝ (f ∘ c.symm) y (βˆ‘ i, CoordinateExponential.christoffelBilinear (chartMetric g p) y (EuclideanSpace.basisFun (Fin n) ℝ i) ((gE.euclideanCoefficients y).inverse (EuclideanSpace.proj i))) = _ rw [heq.self_of_nhds] rfl theorem chartOperator_congr (g : RiemannianMetric n M) (p : M) {f h : EuclideanSpace ℝ (Fin n) β†’ ℝ} {y : EuclideanSpace ℝ (Fin n)} (he : f =αΆ [𝓝 y] h) : chartOperator g p f y = chartOperator g p h y := by unfold chartOperator rw [he.fderiv_eq, he.fderiv.fderiv_eq] end PoincareMT.RicciFlow.Splitting.MaximumPrinciple