import PoincareLib.Geometry.CurveShortening.Comparison.Compatibility.SourceNames import PoincareLib.Geometry.CurveShortening.Ramp.LocalFlow.Embedding.HessianVector import PoincareLib.Geometry.RicciFlow.CurveShortening.Estimates.Ambient import PoincareLib.Geometry.RicciFlow.CurveShortening.Estimates.Pointwise /-! # Compact bounds for the actual embedding derivatives Closed-time tensor regularity and compactness supply the differential, Hessian and third tensor constants before a curve is chosen. MT2007 Claim 19.1, p. 437; MT2015Correction Corollary 0.3, p. 6. See the compact-embedding-bounds derivation of 2026-09-22. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set Bundle Manifold open scoped Manifold ContDiff Bundle BigOperators universe u v namespace PoincareMT.M63 variable {n : β„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] {ΞΉ : Type v} [Fintype ΞΉ] {a b : ℝ} local notation "W" => EuclideanSpace ℝ ΞΉ /-- The fixed smooth ambient map has uniform bounds for its first three actual covariant derivatives through both included time faces. Constants depend on the compact flow and map, before any curve is chosen. MT2007 Claim 19.1, p. 437; correction Corollary 0.3, p. 6; compact-embedding-bounds derivation. -/ theorem exists_uniform_embedding_derivative_bounds (F : RicciFlow n M (Icc a b)) (hcompact : IsCompact (univ : Set M)) {e : M β†’ W} (he : ContMDiff (𝓑 n) π“˜(ℝ, W) ∞ e) : βˆƒ E1 E2 E3 : ℝ, (0 ≀ E1 ∧ 0 ≀ E2 ∧ 0 ≀ E3) ∧ βˆ€ t ∈ Icc a b, βˆ€ p : M, βˆ€ V Y Z : TangentSpace (𝓑 n) p, Norm.norm (E := W) (mfderiv (𝓑 n) π“˜(ℝ, W) e p V) ≀ E1 * (F.metric t).tangentNorm p V ∧ β€–coordinateHessian (F.connection t) e p V Yβ€– ≀ E2 * (F.metric t).tangentNorm p V * (F.metric t).tangentNorm p Y ∧ β€–WithLp.toLp 2 (fun i : ΞΉ => (F.connection t).covariantTensorDerivative (fun q w => (F.connection t).hessian (fun z => e z i) q (w 0) (w 1)) p ![V, Y, Z])β€– ≀ E3 * (F.metric t).tangentNorm p V * (F.metric t).tangentNorm p Y * (F.metric t).tangentNorm p Z := by classical let TimeRegular : {k : β„•} β†’ (ℝ β†’ CovariantTensorEvaluation n M k) β†’ Prop := fun {k} T => βˆ€ U : Set M, IsOpen U β†’ βˆ€ X : Fin k β†’ (p : M) β†’ TangentSpace (𝓑 n) p, (βˆ€ j, ContMDiffOn (𝓑 n) (𝓑 n).tangent ∞ (T% (X j)) U) β†’ ContMDiffOn (π“˜(ℝ, ℝ).prod (𝓑 n)) π“˜(ℝ, ℝ) ∞ (fun p : ℝ Γ— M => T p.1 p.2 (fun j => X j p.2)) (Icc a b Γ—Λ’ U) have hstep {k : β„•} (T : ℝ β†’ CovariantTensorEvaluation n M k) (hT : βˆ€ t, IsSmoothCovariantTensor (T t)) (hTime : TimeRegular T) : TimeRegular (fun t => (F.connection t).covariantTensorDerivative (T t)) := by intro U hU X hX exact M04.contMDiffOn_flow_covariantTensorDerivative F hT hTime hU hX have hconstants (i : ΞΉ) : βˆƒ K1 K2 K3 : ℝ, (0 ≀ K1 ∧ 0 ≀ K2 ∧ 0 ≀ K3) ∧ βˆ€ t ∈ Icc a b, βˆ€ p : M, βˆ€ V Y Z : TangentSpace (𝓑 n) p, |EuclideanSpace.proj i (mfderiv (𝓑 n) π“˜(ℝ, W) e p V)| ≀ K1 * (F.metric t).tangentNorm p V ∧ |(F.connection t).hessian (fun z => e z i) p V Y| ≀ K2 * (F.metric t).tangentNorm p V * (F.metric t).tangentNorm p Y ∧ |(F.connection t).covariantTensorDerivative (fun q w => (F.connection t).hessian (fun z => e z i) q (w 0) (w 1)) p ![V, Y, Z]| ≀ K3 * (F.metric t).tangentNorm p V * (F.metric t).tangentNorm p Y * (F.metric t).tangentNorm p Z := by let f : M β†’ ℝ := fun p => e p i have hf : ContMDiff (𝓑 n) π“˜(ℝ, ℝ) ∞ f := (EuclideanSpace.proj i).contDiff.contMDiff.comp he let T0 : ℝ β†’ CovariantTensorEvaluation n M 0 := fun _ p _ => f p let T1 : ℝ β†’ CovariantTensorEvaluation n M 1 := fun t => (F.connection t).covariantTensorDerivative (T0 t) let T2 : ℝ β†’ CovariantTensorEvaluation n M 2 := fun t => (F.connection t).covariantTensorDerivative (T1 t) let T3 : ℝ β†’ CovariantTensorEvaluation n M 3 := fun t => (F.connection t).covariantTensorDerivative (T2 t) have hs0 (t : ℝ) : IsSmoothCovariantTensor (T0 t) := by constructor Β· intro p exact ⟨MultilinearMap.constOfIsEmpty ℝ (fun _ : Fin 0 => TangentSpace (𝓑 n) p) (f p), fun _ => rfl⟩ Β· intro U _hU _X _hX exact hf.contMDiffOn have ht0 : TimeRegular T0 := by intro U _hU _X _hX exact (hf.comp contMDiff_snd).contMDiffOn have hs1 (t : ℝ) : IsSmoothCovariantTensor (T1 t) := M04.isSmoothCovariantTensor_covariantTensorDerivative (F.connection t) (hs0 t) have ht1 : TimeRegular T1 := hstep T0 hs0 ht0 have hs2 (t : ℝ) : IsSmoothCovariantTensor (T2 t) := M04.isSmoothCovariantTensor_covariantTensorDerivative (F.connection t) (hs1 t) have ht2 : TimeRegular T2 := hstep T1 hs1 ht1 have hs3 (t : ℝ) : IsSmoothCovariantTensor (T3 t) := M04.isSmoothCovariantTensor_covariantTensorDerivative (F.connection t) (hs2 t) have ht3 : TimeRegular T3 := hstep T2 hs2 ht2 have hdf (t : ℝ) (p : M) (w : Fin 1 β†’ TangentSpace (𝓑 n) p) : T1 t p w = mvfderiv (𝓑 n) f p (w 0) := by simp [T1, T0, LeviCivitaData.covariantTensorDerivative] have hhess (t : ℝ) (p : M) (w : Fin 2 β†’ TangentSpace (𝓑 n) p) : T2 t p w = (F.connection t).hessian f p (w 0) (w 1) := by have h01 : (Fin.succ 0 : Fin 2) = 1 := by decide change (F.connection t).covariantTensorDerivative (T1 t) p w = _ rw [LeviCivitaData.covariantTensorDerivative] simp only [hdf, Fin.sum_univ_succ, Fin.sum_univ_zero, Function.update_self, LeviCivitaData.hessian, LeviCivitaData.hessianOnFields, FiberBundle.extend_apply_self, add_zero, h01] have hT2 (t : ℝ) : T2 t = (fun p w => (F.connection t).hessian f p (w 0) (w 1)) := by funext p w exact hhess t p w have hproj (p : M) (V : TangentSpace (𝓑 n) p) : mvfderiv (𝓑 n) f p V = EuclideanSpace.proj i (mfderiv (𝓑 n) π“˜(ℝ, W) e p V) := by let L : W β†’L[ℝ] ℝ := EuclideanSpace.proj i change mvfderiv (𝓑 n) (L ∘ e) p V = _ rw [mvfderiv_comp_apply p L.differentiableAt.mdifferentiableAt (he.mdifferentiable (by simp) p) V] simpa only [mvfderiv, mfderiv_eq_fderiv, NormedSpace.fromTangentSpace, ContinuousLinearMap.comp_apply] using! congrArg (fun K : W β†’L[ℝ] ℝ => K (mfderiv (𝓑 n) π“˜(ℝ, W) e p V)) (L.fderiv (x := e p)) obtain ⟨K1, hK1, h1⟩ := M62.exists_uniform_tensor_bound F hcompact T1 hs1 ht1 obtain ⟨K2, hK2, h2⟩ := M62.exists_uniform_tensor_bound F hcompact T2 hs2 ht2 obtain ⟨K3, hK3, h3⟩ := M62.exists_uniform_tensor_bound F hcompact T3 hs3 ht3 refine ⟨K1, K2, K3, ⟨hK1, hK2, hK3⟩, ?_⟩ intro t ht p V Y Z refine ⟨?_, ?_, ?_⟩ Β· simpa [hdf, hproj, Fin.prod_univ_succ] using M62.tensor_abs_le_of_unit_bound (F.metric t) (T1 t) (hs1 t) p (h1 t ht p) ![V] Β· simpa [hhess, f, Fin.prod_univ_succ, mul_assoc] using M62.tensor_abs_le_of_unit_bound (F.metric t) (T2 t) (hs2 t) p (h2 t ht p) ![V, Y] Β· simpa [T3, hT2, f, Fin.prod_univ_succ, mul_assoc] using M62.tensor_abs_le_of_unit_bound (F.metric t) (T3 t) (hs3 t) p (h3 t ht p) ![V, Y, Z] choose K1 K2 K3 hK hcoeff using hconstants let L : (ΞΉ β†’ ℝ) β†’L[ℝ] W := (PiLp.continuousLinearEquiv 2 ℝ (fun _ : ΞΉ => ℝ)).symm.toContinuousLinearMap have hnorm {f : ΞΉ β†’ ℝ} {K : ΞΉ β†’ ℝ} (hK : βˆ€ i, 0 ≀ K i) {r : ℝ} (hr : 0 ≀ r) (hbound : βˆ€ i, |f i| ≀ K i * r) : β€–L fβ€– ≀ (β€–Lβ€– * βˆ‘ i, K i) * r := by have hsum : 0 ≀ βˆ‘ i, K i := Finset.sum_nonneg (fun i _ => hK i) have hfnorm : β€–fβ€– ≀ (βˆ‘ i, K i) * r := by apply (pi_norm_le_iff_of_nonneg (mul_nonneg hsum hr)).mpr intro i rw [Real.norm_eq_abs] exact (hbound i).trans (mul_le_mul_of_nonneg_right (Finset.single_le_sum (fun j _ => hK j) (Finset.mem_univ i)) hr) calc β€–L fβ€– ≀ β€–Lβ€– * β€–fβ€– := L.le_opNorm f _ ≀ β€–Lβ€– * ((βˆ‘ i, K i) * r) := mul_le_mul_of_nonneg_left hfnorm (norm_nonneg _) _ = _ := (mul_assoc _ _ _).symm refine βŸ¨β€–Lβ€– * βˆ‘ i, K1 i, β€–Lβ€– * βˆ‘ i, K2 i, β€–Lβ€– * βˆ‘ i, K3 i, ?_, ?_⟩ Β· exact ⟨mul_nonneg (norm_nonneg _) (Finset.sum_nonneg fun i _ => (hK i).1), mul_nonneg (norm_nonneg _) (Finset.sum_nonneg fun i _ => (hK i).2.1), mul_nonneg (norm_nonneg _) (Finset.sum_nonneg fun i _ => (hK i).2.2)⟩ Β· intro t ht p V Y Z have hV : 0 ≀ (F.metric t).tangentNorm p V := Real.sqrt_nonneg _ have hY : 0 ≀ (F.metric t).tangentNorm p Y := Real.sqrt_nonneg _ have hZ : 0 ≀ (F.metric t).tangentNorm p Z := Real.sqrt_nonneg _ refine ⟨?_, ?_, ?_⟩ Β· exact hnorm (fun i => (hK i).1) hV (fun i => (hcoeff i t ht p V Y Z).1) Β· have h := hnorm (fun i => (hK i).2.1) (mul_nonneg hV hY) (fun i => by simpa only [mul_assoc] using (hcoeff i t ht p V Y Z).2.1) simpa only [coordinateHessian, L, mul_assoc] using! h Β· have h := hnorm (fun i => (hK i).2.2) (mul_nonneg (mul_nonneg hV hY) hZ) (fun i => by simpa only [mul_assoc] using (hcoeff i t ht p V Y Z).2.2) simpa only [L, mul_assoc] using! h end PoincareMT.M63