import PoincareLib.Geometry.RicciFlow.Soliton.TwoDimensional.Compact.Regularity.Euclidean import PoincareLib.Geometry.RicciFlow.Soliton.TwoDimensional.Compact.Regularity.Pullback import PoincareLib.Geometry.Riemannian.Metric.LocalExtension import PoincareLib.Geometry.Riemannian.Coordinates.Coefficients import PoincareLib.Geometry.Riemannian.Surface.Regularity /-! # Smoothness of a shrinking surface potential The frozen potential starts with two derivatives. Its pure-trace Hessian has smooth coefficients, so local metric realization and the coordinate bootstrap prove smoothness of the original potential. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false set_option maxSynthPendingDepth 8 open scoped Manifold ContDiff Bundle Topology open Set Filter universe u namespace PoincareMT.LeviCivitaData attribute [local instance] normedAddCommGroupTangentSpaceVectorSpace normedSpaceTangentSpaceVectorSpace variable {n : β„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] {g : RiemannianMetric n M} /-- A C2 function with a smooth pure-trace Hessian is smooth. -/ theorem contMDiff_of_C2_hessian_eq_smooth_mul_metric (D : LeviCivitaData g) {f a : M β†’ ℝ} (hf : ContMDiff (𝓑 n) π“˜(ℝ, ℝ) 2 f) (ha : ContMDiff (𝓑 n) π“˜(ℝ, ℝ) ∞ a) (hess : βˆ€ x, βˆ€ v w : TangentSpace (𝓑 n) x, D.hessian f x v w = a x * g.inner x v w) : ContMDiff (𝓑 n) π“˜(ℝ, ℝ) ∞ f := by intro p let c := extChartAt (𝓑 n) p have hc : IsOpen c.target := isOpen_extChartAt_target p have hpc : c p ∈ c.target := mem_extChartAt_target p have hcs : ContMDiffOn (𝓑 n) (𝓑 n) ∞ c.symm c.target := contMDiffOn_extChartAt_symm p have hcinv (y : EuclideanSpace ℝ (Fin n)) (hy : y ∈ c.target) : (mfderiv (𝓑 n) (𝓑 n) c.symm y).IsInvertible := by simpa only [ModelWithCorners.range_eq_univ, mfderivWithin_univ] using (isInvertible_mfderivWithin_extChartAt_symm (I := 𝓑 n) (x := p) hy) have hpos : βˆ€ y ∈ c.target, βˆ€ v : EuclideanSpace ℝ (Fin n), v β‰  0 β†’ 0 < g.pullbackCoefficients c.symm y v v := by intro y hy v hv change 0 < g.inner (c.symm y) (mfderiv (𝓑 n) (𝓑 n) c.symm y v) (mfderiv (𝓑 n) (𝓑 n) c.symm y v) apply g.pos intro hz exact hv ((hcinv y hy).injective (by simpa using hz)) obtain ⟨gE, DE, V, hV, hpV, hVc, hmetric⟩ := RiemannianMetric.exists_local_realization hc hpc (g.pullbackCoefficients c.symm) (g.contDiffOn_chartCoefficients p) (fun y _ v w => g.symm (c.symm y) _ _) hpos have hfcomp : ContDiffOn ℝ 2 (f ∘ c.symm) V := by intro y hy exact ((hf (c.symm y)).comp y ((hcs.contMDiffAt (hc.mem_nhds (hVc hy))).of_le (by norm_cast : (2 : β„•βˆžΟ‰) ≀ ∞))).contDiffAt.contDiffWithinAt have hacomp : ContDiffOn ℝ ∞ (a ∘ c.symm) V := by intro y hy exact ((ha (c.symm y)).comp y (hcs.contMDiffAt (hc.mem_nhds (hVc hy)))).contDiffAt.contDiffWithinAt have heq (y : EuclideanSpace ℝ (Fin n)) (hy : y ∈ V) (v w : TangentSpace (𝓑 n) y) : gE.inner y v w = g.inner (c.symm y) (mfderiv (𝓑 n) (𝓑 n) c.symm y v) (mfderiv (𝓑 n) (𝓑 n) c.symm y w) := by change gE.euclideanCoefficients y v w = _ rw [hmetric y hy] rfl have hesscomp : βˆ€ y ∈ V, βˆ€ v w, DE.hessian (f ∘ c.symm) y v w = (a ∘ c.symm) y * gE.inner y v w := by intro y hy v w have hnat := DE.hessian_comp_of_metric_pullback_of_C2 D (hcs.contMDiffAt (hc.mem_nhds (hVc hy))) (Filter.eventually_of_mem (hV.mem_nhds hy) fun z hz => hcinv z (hVc hz)) (Filter.eventually_of_mem (hV.mem_nhds hy) fun z hz => heq z hz) (hf (c.symm y)) v w rw [hnat, hess, ← heq y hy v w] rfl have hs := DE.contDiffOn_of_C2_hessian_eq_smooth_mul_metric hV hfcomp hacomp hesscomp rw [contMDiffAt_iff_source] simpa only [ModelWithCorners.range_eq_univ, contMDiffWithinAt_univ] using (hs.contDiffAt (hV.mem_nhds hpV)).contMDiffAt end PoincareMT.LeviCivitaData namespace PoincareMT.GradientShrinkingSolitonData variable {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin 2)) M] [IsManifold (𝓑 2) ∞ M] [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] [SecondCountableTopology M] [ConnectedSpace M] /-- The twice differentiable potential of a shrinking surface is smooth. -/ theorem potential_smooth (S : GradientShrinkingSolitonData 2 M) : ContMDiff (𝓑 2) π“˜(ℝ, ℝ) ∞ S.potential := by apply S.connection.contMDiff_of_C2_hessian_eq_smooth_mul_metric S.potential_C2 (a := fun x => (1 - S.connection.scalarCurvature x) / 2) Β· exact (contMDiff_const.sub S.connection.contMDiff_scalarCurvature).div_const 2 Β· exact S.hessian_potential_eq_scalar end PoincareMT.GradientShrinkingSolitonData