import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Calculus.Differential.RectanglePartialTangent import Mathlib.Analysis.Normed.Group.Bounded /-! # Uniform closed-time partial derivative bounds on compact parameters The actual within time derivative of a smooth parameter family is continuous through both closed endpoints. Compactness then gives one bound for all parameter values. This is the compact-family estimate used in Morgan-Tian Lemma 6.22 and Corollary 6.79, pp. 115-116, 144-145. -/ set_option autoImplicit false -- The product self-model and its charted-space instance are identified together. set_option backward.isDefEq.respectTransparency false open Set open scoped Manifold ContDiff variable {π•œ P F : Type*} [NontriviallyNormedField π•œ] [NormedAddCommGroup P] [NormedSpace π•œ P] [NormedAddCommGroup F] [NormedSpace π•œ F] {S : Set π•œ} {U : Set P} {q : π•œ Γ— P β†’ F} {m k : β„•βˆžΟ‰} /-- Within time derivatives depend smoothly on an arbitrary parameter on a rectangle with unique derivatives, including closed time endpoints; Lemma 6.22, pp. 115-116. -/ theorem ContDiffOn.contDiffOn_derivWithin_fst_param (hq : ContDiffOn π•œ m q (S Γ—Λ’ U)) (hS : UniqueDiffOn π•œ S) (hU : UniqueDiffOn π•œ U) (hkm : k + 1 ≀ m) : ContDiffOn π•œ k (fun z => derivWithin (fun r => q (r, z.2)) S z.1) (S Γ—Λ’ U) := by have hM : ContMDiffOn ((π“˜(π•œ, π•œ)).prod (π“˜(π•œ, P))) π“˜(π•œ, F) m q (S Γ—Λ’ U) := by rw [← modelWithCornersSelf_prod, chartedSpaceSelf_prod] exact hq.contMDiffOn have htan := hM.contMDiffOn_partialTangentWithin_fst_prod hS hU (1 : π•œ) hkm have h := (contMDiff_snd_tangentBundle_modelSpace F π“˜(π•œ, F) (n := k)).comp_contMDiffOn htan rw [← modelWithCornersSelf_prod, chartedSpaceSelf_prod] at h convert h.contDiffOn using 1 funext z simp only [Function.comp_def, mfderivWithin_eq_fderivWithin, derivWithin] rfl /-- One compact parameter set gives a uniform bound for every actual closed-interval within derivative, the estimate used in Corollary 6.79, pp. 144-145. -/ theorem ContDiffOn.exists_uniform_derivWithin_bound_fst (hq : ContDiffOn π•œ ∞ q (S Γ—Λ’ U)) (hS : UniqueDiffOn π•œ S) (hSc : IsCompact S) (hU : IsOpen U) {K : Set P} (hK : IsCompact K) (hKU : K βŠ† U) : βˆƒ M : ℝ, 0 ≀ M ∧ βˆ€ W ∈ K, βˆ€ r ∈ S, β€–derivWithin (fun t => q (t, W)) S rβ€– ≀ M := by have hd := hq.contDiffOn_derivWithin_fst_param hS hU.uniqueDiffOn (k := ∞) (by simp) obtain ⟨M, hM⟩ := (hSc.prod hK).exists_bound_of_continuousOn (hd.continuousOn.mono (fun _ hz => ⟨hz.1, hKU hz.2⟩)) exact ⟨max M 0, le_max_right _ _, fun W hW r hr => (hM (r, W) ⟨hr, hW⟩).trans (le_max_left _ _)⟩