import PoincareLib.Geometry.RicciFlow.Blowup.Construction.CompactCylinder.FiniteCylinder import PoincareLib.Geometry.RicciFlow.Blowup.Construction.CompactCylinder.CompactBuffer /-! # Curvature derivatives on any buffered terminal subwindow The positive time margin T - tau allows any closed target window strictly inside the supplied source window. The spatial compact buffer and Shi estimate retain the original flow and connection at both target endpoints. This is Morgan--Tian Theorem 3.28, p. 51, used in Corollaries 11.3-11.4, pp. 269-270, and the finite-horizon assembly of Theorem 11.8, pp. 272-279. -/ set_option autoImplicit false open Set open scoped Manifold ContDiff Bundle ENNReal Topology universe u namespace PoincareMT.M30 /-- A positive earlier-time margin and compact terminal spatial buffer give uniform spatial curvature derivatives on the actual closed later window (Theorems 3.28 and 11.8, pp. 51 and 272-279). The bound is chosen before the manifold, metric, source flow and tested point. -/ theorem exists_uniform_curvatureDerivativeNorm_bound_on_terminal_subwindow (hShi : LocalCurvatureDerivativeEstimates.{u}) (n m : ℕ) (B T tau A R : ℝ) (htau : 0 < tau) (htauT : tau < T) (hA : 0 < A) (hAR : A < R) : ∃ D : ℝ, 0 < D ∧ ∀ (M : Type u) [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] [T2Space M] [SecondCountableTopology M], ∀ (g : RiemannianMetric n M) (p : M) (U : TopologicalSpace.Opens M), (U : Set M) = g.ball p R → ∀ (G : RicciFlow n U (Icc (-T) 0)), (∀ (x : U) (v w : TangentSpace (𝓡 n) x), (G.metric 0).inner x v w = g.inner x.val (mfderiv (𝓡 n) (𝓡 n) (Subtype.val : U → M) x v) (mfderiv (𝓡 n) (𝓡 n) (Subtype.val : U → M) x w)) → (∀ s ∈ Icc (-T) 0, ∀ y : U, (G.connection s).curvatureTensorNorm y ≤ B) → IsCompact (closure (g.ball p ((A + R) / 2))) → ∀ s ∈ Icc (-tau) 0, ∀ x : U, x.val ∈ g.ball p A → (G.connection s).curvatureDerivativeNorm m x ≤ D := by have hT : 0 < T := htau.trans htauT let r : ℝ := (R - A) / (2 * Real.exp ((n : ℝ) ^ 3 * max B 1 * T)) have hr : 0 < r := div_pos (sub_pos.mpr hAR) (by positivity) obtain ⟨D, hD, hbound⟩ := exists_uniform_curvatureDerivativeNorm_bound_on_buffered_cylinders hShi n m B T r (T - tau) hT hr (sub_pos.mpr htauT) refine ⟨D, hD, ?_⟩ intro M _ _ _ _ _ g p U hU G hmetric hcurv hcompact let V : Set U := (Subtype.val : U → M) ⁻¹' g.ball p A have hprecompact (x : U) (hx : x ∈ V) : IsCompact (closure ((G.metric (-T)).ball x r)) := isCompact_closure_initial_ball_of_terminal_buffer g p U hT hA hAR hU G hmetric hcurv hcompact x hx intro s hs x hx exact hbound U G V hprecompact hcurv s ⟨by linarith [hs.1], hs.2⟩ x hx end PoincareMT.M30