import PoincareLib.Geometry.RicciFlow.Soliton.TwoDimensional.Compact.Identities import PoincareLib.Geometry.Riemannian.ScalarOperators.Gradient /-! # The gradient of the frozen soliton potential The soliton datum assumes a `C2` potential. Its gradient is `C1`, and metric compatibility identifies its covariant derivative with the pure-trace Hessian. No additional smoothness hypothesis on the potential is used. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open scoped Manifold ContDiff Bundle Topology open Bundle universe u namespace PoincareMT variable {n : β„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] private lemma contMDiffAt_one_of_metricDual (g : RiemannianMetric n M) {Z : (x : M) β†’ TangentSpace (𝓑 n) x} {x : M} (hZ : ContMDiffAt (𝓑 n) ((𝓑 n).prod π“˜(ℝ, EuclideanSpace ℝ (Fin n) β†’L[ℝ] ℝ)) 1 (fun y => TotalSpace.mk' (EuclideanSpace ℝ (Fin n) β†’L[ℝ] ℝ) y (g.inner y (Z y))) x) : ContMDiffAt (𝓑 n) ((𝓑 n).prod π“˜(ℝ, EuclideanSpace ℝ (Fin n))) 1 (T% Z) x := by let E := EuclideanSpace ℝ (Fin n) let V := TangentSpace (𝓑 n) (M := M) let e := trivializationAt E V x let e' := trivializationAt (E β†’L[ℝ] ℝ) (fun y => V y β†’L[ℝ] ℝ) x let G (y : M) := ContinuousLinearMap.inCoordinates E V (E β†’L[ℝ] ℝ) (fun y => V y β†’L[ℝ] ℝ) x y x y (g.inner y) have hG : ContMDiffAt (𝓑 n) π“˜(ℝ, E β†’L[ℝ] (E β†’L[ℝ] ℝ)) ∞ G x := (contMDiffAt_hom_bundle _).mp (g.contMDiff x) |>.2 have hGinv (y : M) (hy : y ∈ e.baseSet) (hy' : y ∈ e'.baseSet) : (G y).IsInvertible := by dsimp only [G] rw [ContinuousLinearMap.inCoordinates_eq hy hy'] exact ContinuousLinearMap.isInvertible_equiv.comp ((g.inner_isInvertible y).comp ContinuousLinearMap.isInvertible_equiv) have hi := (hGinv x (FiberBundle.mem_baseSet_trivializationAt E V x) (FiberBundle.mem_baseSet_trivializationAt (E β†’L[ℝ] ℝ) (fun y => V y β†’L[ℝ] ℝ) x)).contDiffAt_map_inverse (n := 1) have hinv := hi.contMDiffAt.comp x (hG.of_le (by simp)) have hcoord := (contMDiffAt_totalSpace.mp hZ).2 have hresult := hinv.clm_apply hcoord rw [contMDiffAt_section] apply hresult.congr_of_eventuallyEq filter_upwards [e.open_baseSet.mem_nhds (FiberBundle.mem_baseSet_trivializationAt E V x), e'.open_baseSet.mem_nhds (FiberBundle.mem_baseSet_trivializationAt (E β†’L[ℝ] ℝ) (fun y => V y β†’L[ℝ] ℝ) x)] with y hy hy' change (e ⟨y, Z y⟩).2 = (G y).inverse ((e' ⟨y, g.inner y (Z y)⟩).2) symm apply (hGinv y hy hy').inverse_apply_eq.mpr symm dsimp only [G] rw [ContinuousLinearMap.inCoordinates_eq hy hy'] change (e'.continuousLinearEquivAt ℝ y hy') (g.inner y ((e.continuousLinearEquivAt ℝ y hy).symm ((e.continuousLinearEquivAt ℝ y hy) (Z y)))) = _ rw [ContinuousLinearEquiv.symm_apply_apply] rfl namespace LeviCivitaData variable {g : RiemannianMetric n M} /-- Two derivatives of a scalar function give one derivative of its metric gradient. -/ theorem contMDiffAt_one_gradient_of_C2 (D : LeviCivitaData g) {f : M β†’ ℝ} {x : M} (hf : ContMDiffAt (𝓑 n) π“˜(ℝ, ℝ) 2 f x) : ContMDiffAt (𝓑 n) ((𝓑 n).prod π“˜(ℝ, EuclideanSpace ℝ (Fin n))) 1 (T% (D.gradient f)) x := by apply contMDiffAt_one_of_metricDual g have heq (y : M) : g.inner y (D.gradient f y) = mvfderiv (𝓑 n) f y := by ext v exact D.inner_gradient f y v simp_rw [heq] rw [contMDiffAt_hom_bundle] refine ⟨contMDiffAt_id, ?_⟩ convert hf.mfderiv_const (m := 1) (by norm_num) using 1 funext y simp [inTangentCoordinates, ContinuousLinearMap.inCoordinates, mvfderiv, NormedSpace.fromTangentSpace] rfl /-- The Hessian-gradient identity only needs the two derivatives in the frozen datum. -/ theorem hessian_eq_inner_connection_gradient_of_C2 (D : LeviCivitaData g) {f : M β†’ ℝ} {x : M} (hf : ContMDiffAt (𝓑 n) π“˜(ℝ, ℝ) 2 f x) (u v : TangentSpace (𝓑 n) x) : D.hessian f x u v = g.inner x (D.connection (D.gradient f) x u) v := by let : Bundle.RiemannianBundle (TangentSpace (𝓑 n) : M β†’ Type _) := ⟨g.toRiemannianMetric⟩ have h := D.metricCompatible.mvfderiv_inner_eq (FiberBundle.extend (EuclideanSpace ℝ (Fin n)) u) ((D.contMDiffAt_one_gradient_of_C2 hf).mdifferentiableAt (by norm_num)) (FiberBundle.mdifferentiableAt_extend (𝓑 n) (EuclideanSpace ℝ (Fin n)) v) change mvfderiv (𝓑 n) (fun y => g.inner y (D.gradient f y) (FiberBundle.extend (EuclideanSpace ℝ (Fin n)) v y)) x (FiberBundle.extend (EuclideanSpace ℝ (Fin n)) u x) = g.inner x (D.connection (D.gradient f) x (FiberBundle.extend (EuclideanSpace ℝ (Fin n)) u x)) (FiberBundle.extend (EuclideanSpace ℝ (Fin n)) v x) + g.inner x (D.gradient f x) (D.connection (FiberBundle.extend (EuclideanSpace ℝ (Fin n)) v) x (FiberBundle.extend (EuclideanSpace ℝ (Fin n)) u x)) at h simp only [D.inner_gradient, FiberBundle.extend_apply_self] at h simpa only [hessian, hessianOnFields, FiberBundle.extend_apply_self] using sub_eq_iff_eq_add.mpr h /-- Differentiating the squared gradient uses only two derivatives of the potential. -/ theorem mvfderiv_gradient_normSq_of_C2 (D : LeviCivitaData g) {f : M β†’ ℝ} {x : M} (hf : ContMDiffAt (𝓑 n) π“˜(ℝ, ℝ) 2 f x) (v : TangentSpace (𝓑 n) x) : mvfderiv (𝓑 n) (fun y => g.inner y (D.gradient f y) (D.gradient f y)) x v = 2 * D.hessian f x v (D.gradient f x) := by let : Bundle.RiemannianBundle (TangentSpace (𝓑 n) : M β†’ Type _) := ⟨g.toRiemannianMetric⟩ have hgrad := (D.contMDiffAt_one_gradient_of_C2 hf).mdifferentiableAt (by norm_num) have h := D.metricCompatible.mvfderiv_inner_eq (FiberBundle.extend (EuclideanSpace ℝ (Fin n)) v) hgrad hgrad change mvfderiv (𝓑 n) (fun y => g.inner y (D.gradient f y) (D.gradient f y)) x (FiberBundle.extend (EuclideanSpace ℝ (Fin n)) v x) = g.inner x (D.connection (D.gradient f) x (FiberBundle.extend (EuclideanSpace ℝ (Fin n)) v x)) (D.gradient f x) + g.inner x (D.gradient f x) (D.connection (D.gradient f) x (FiberBundle.extend (EuclideanSpace ℝ (Fin n)) v x)) at h simp only [FiberBundle.extend_apply_self] at h rw [D.hessian_eq_inner_connection_gradient_of_C2 hf] rw [g.symm x (D.gradient f x)] at h linarith end LeviCivitaData namespace GradientShrinkingSolitonData variable [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] [SecondCountableTopology M] [ConnectedSpace M] /-- The frozen potential defines a continuously differentiable gradient field. -/ theorem potential_gradient_C1 (S : GradientShrinkingSolitonData n M) : ContMDiff (𝓑 n) ((𝓑 n).prod π“˜(ℝ, EuclideanSpace ℝ (Fin n))) 1 (T% (S.connection.gradient S.potential)) := fun x => S.connection.contMDiffAt_one_gradient_of_C2 (S.potential_C2 x) end GradientShrinkingSolitonData namespace 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 gradient of a shrinking surface potential is a conformal vector field. -/ theorem connection_gradient_potential (S : GradientShrinkingSolitonData 2 Mβ‚‚) (x : Mβ‚‚) (v : TangentSpace (𝓑 2) x) : S.connection.connection (S.connection.gradient S.potential) x v = ((1 - S.connection.scalarCurvature x) / 2) β€’ v := by apply (S.metric.inner_isInvertible x).injective ext w rw [← S.connection.hessian_eq_inner_connection_gradient_of_C2 (S.potential_C2 x), S.hessian_potential_eq_scalar] simp /-- The soliton equation computes the differential of its squared gradient norm. -/ theorem mvfderiv_potential_gradient_normSq (S : GradientShrinkingSolitonData 2 Mβ‚‚) (x : Mβ‚‚) (v : TangentSpace (𝓑 2) x) : mvfderiv (𝓑 2) (fun y => S.metric.inner y (S.connection.gradient S.potential y) (S.connection.gradient S.potential y)) x v = (1 - S.connection.scalarCurvature x) * mvfderiv (𝓑 2) S.potential x v := by rw [S.connection.mvfderiv_gradient_normSq_of_C2 (S.potential_C2 x), S.hessian_potential_eq_scalar, S.metric.symm x v, S.connection.inner_gradient] ring end GradientShrinkingSolitonData end PoincareMT