import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Analysis.Geometry.SpatialJetsWithin /-! # Spatial jets with varying time domains Uniform convergence of within jets restricts to ordinary spatial jets without identifying the source time domains with the target time domain. This retains the included endpoints of the cylinders in Morgan--Tian Definition 5.12, Proposition 5.14 and Theorem 11.8, pp. 90--91 and 272. See M30 derivation `generalized-uniform-curvature.md`, Section 2. -/ set_option autoImplicit false open Set Filter open scoped ContDiff Topology /-- Restrict uniformly convergent within jets on varying time products to spatial jets on the same test set, including time endpoints (Definition 5.12 and Proposition 5.14, pp. 90--91). -/ theorem TendstoUniformlyOn.iteratedFDeriv_spatial_slice_varying_domain {๐•œ T E F ฮน : Type*} [NontriviallyNormedField ๐•œ] [NormedAddCommGroup T] [NormedSpace ๐•œ T] [NormedAddCommGroup E] [NormedSpace ๐•œ E] [NormedAddCommGroup F] [NormedSpace ๐•œ F] {l : Filter ฮน} {Jk : ฮน โ†’ Set T} {J : Set T} {U : Set E} {K : Set (T ร— E)} {f : ฮน โ†’ T ร— E โ†’ F} {g : T ร— E โ†’ F} {n : โ„•โˆžฯ‰} {r : โ„•} (hjet : TendstoUniformlyOn (fun k => iteratedFDerivWithin ๐•œ r (f k) (Jk k ร—หข U)) (iteratedFDerivWithin ๐•œ r g (J ร—หข U)) l K) (hJ : UniqueDiffOn ๐•œ J) (hU : IsOpen U) (hK : K โІ J ร—หข U) (hJk : โˆ€แถ  k in l, UniqueDiffOn ๐•œ (Jk k)) (hKk : โˆ€แถ  k in l, K โІ Jk k ร—หข U) (hf : โˆ€แถ  k in l, ContDiffOn ๐•œ n (f k) (Jk k ร—หข U)) (hg : ContDiffOn ๐•œ n g (J ร—หข U)) (hr : r โ‰ค n) : TendstoUniformlyOn (fun k p => iteratedFDeriv ๐•œ r (fun y => f k (p.1, y)) p.2) (fun p => iteratedFDeriv ๐•œ r (fun y => g (p.1, y)) p.2) l K := by let R := ContinuousMultilinearMap.compContinuousLinearMapL (F := F) (fun _ : Fin r => ContinuousLinearMap.inr ๐•œ T E) have h := R.uniformContinuous.comp_tendstoUniformlyOn hjet apply (h.congr ?_).congr_right ?_ ยท filter_upwards [hJk, hKk, hf] with k hkJ hkK hkf p hp exact (iteratedFDeriv_spatial_slice_eq_within hkJ hU hkf (hkK hp).1 (hkK hp).2 hr).symm ยท intro p hp exact (iteratedFDeriv_spatial_slice_eq_within hJ hU hg (hK hp).1 (hK hp).2 hr).symm