import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Analysis.Compactness.CompactTimeLimit import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Collar.Coordinates.ClosedTimeJets import PoincareLib.Geometry.RicciFlow.Harnack.Regularity /-! # The birth endpoint of a coordinate compactness limit The compactness window is open in time. Its actual birth slice is attached using the uniform closed-time spatial-jet modulus. Time reflection applies the existing compact-uniform endpoint theorem. Morgan--Tian, Claim 16.6 and Corollary 16.9, pp. 371-373; M44 derivation 80. -/ set_option autoImplicit false open Set Filter open scoped Manifold ContDiff Topology namespace PoincareMT.M44 /-- Restriction of the actual half-open flow supplies continuous spatial pullback jets on every closed birth subslab. Source: Claim 16.6 and Corollary 16.9; M44 derivation 80. -/ theorem continuousOn_birth_spatialJet {n : β„•} {M : Type*} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] {B T : ℝ} (hT : 0 < T) (hTB : T < B) (F : RicciFlow n M (Ico 0 B)) {U : Set (EuclideanSpace ℝ (Fin n))} (hU : IsOpen U) {e : EuclideanSpace ℝ (Fin n) β†’ M} (he : ContMDiffOn (𝓑 n) (𝓑 n) ∞ e U) (m : β„•) : ContinuousOn (fun p : ℝ Γ— EuclideanSpace ℝ (Fin n) => iteratedFDeriv ℝ m ((F.metric p.1).pullbackCoefficients e) p.2) (Icc 0 T Γ—Λ’ U) := by let G := Poincare.Geometry.RicciFlow.Harnack.restrictFlow F (show Icc (0 : ℝ) T βŠ† Ico 0 B from fun _ hs => ⟨hs.1, hs.2.trans_lt hTB⟩) ordConnected_Icc (Icc_infinite hT).nontrivial exact continuousOn_pullback_spatialJet hT G hU he m /-- Compact-uniform convergence to the birth slice gives joint continuity from positive times. Source: the endpoint extension in Corollary 16.9; M44 derivation 80. -/ theorem continuousWithinAt_birth_of_compact_uniform {X Y : Type*} [MetricSpace X] [ProperSpace X] [PseudoMetricSpace Y] {f : ℝ Γ— X β†’ Y} {U : Set X} (hU : IsOpen U) (hslice : ContinuousOn (fun x => f (0, x)) U) (hlim : βˆ€ K : Set X, IsCompact K β†’ K βŠ† U β†’ βˆ€ eta : ℝ, 0 < eta β†’ βˆƒ d : ℝ, 0 < d ∧ βˆ€ t : ℝ, 0 < t β†’ t < d β†’ βˆ€ x ∈ K, dist (f (t, x)) (f (0, x)) < eta) {x : X} (hx : x ∈ U) : ContinuousWithinAt f (Ici 0 Γ—Λ’ U) (0, x) := by have hleft : ContinuousWithinAt (fun p : ℝ Γ— X => f (-p.1, p.2)) (Iic 0 Γ—Λ’ U) (0, x) := by apply Poincare.continuousWithinAt_time_left_of_compact_uniform hU (by simpa only [neg_zero] using hslice) ?_ hx intro K hK hKU eta heta obtain ⟨d, hd, hbound⟩ := hlim K hK hKU eta heta refine ⟨d, hd, fun t ht ht0 y hy => ?_⟩ simpa only [neg_zero] using hbound (-t) (by linarith) (by linarith) y hy have hreflect : Continuous (fun p : ℝ Γ— X => (-p.1, p.2)) := continuous_fst.neg.prodMk continuous_snd have hmap : MapsTo (fun p : ℝ Γ— X => (-p.1, p.2)) (Ici 0 Γ—Λ’ U) (Iic 0 Γ—Λ’ U) := by intro p hp change -p.1 ≀ 0 ∧ p.2 ∈ U exact ⟨neg_nonpos.mpr hp.1, hp.2⟩ have hleft' : ContinuousWithinAt (fun p : ℝ Γ— X => f (-p.1, p.2)) (Iic 0 Γ—Λ’ U) (-0, x) := by simpa only [neg_zero] using hleft simpa only [Function.comp_def, neg_neg] using hleft'.comp (f := fun p : ℝ Γ— X => (-p.1, p.2)) (x := (0, x)) hreflect.continuousWithinAt hmap /-- A common spatially uniform time modulus passes to the limit and attaches its prescribed birth slice. The lemma applies to each spatial jet, as well as to the metric coefficients themselves. Source: Claim 16.6 and Corollary 16.9; M44 derivation 80. -/ theorem continuousWithinAt_birth_of_uniform_modulus {E V : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [ProperSpace E] [NormedAddCommGroup V] [NormedSpace ℝ V] {fseq : β„• β†’ ℝ Γ— E β†’ V} {f : ℝ Γ— E β†’ V} {U : Set E} {T : ℝ} (hT : 0 < T) (hU : IsOpen U) (hslice : ContinuousOn (fun x => f (0, x)) U) (hbirth : βˆ€ x ∈ U, Tendsto (fun k => fseq k (0, x)) atTop (𝓝 (f (0, x)))) (hinterior : βˆ€ t ∈ Ioo 0 T, βˆ€ x ∈ U, Tendsto (fun k => fseq k (t, x)) atTop (𝓝 (f (t, x)))) (hmodulus : βˆ€ K : Set E, IsCompact K β†’ K βŠ† U β†’ βˆƒ L : ℝ, 0 ≀ L ∧ βˆ€ t ∈ Ioo 0 T, βˆ€ x ∈ K, βˆ€αΆ  k in atTop, β€–fseq k (t, x) - fseq k (0, x)β€– ≀ L * t) {x : E} (hx : x ∈ U) : ContinuousWithinAt f (Ici 0 Γ—Λ’ U) (0, x) := by apply continuousWithinAt_birth_of_compact_uniform hU hslice ?_ hx intro K hK hKU eta heta obtain ⟨L, hL, hbound⟩ := hmodulus K hK hKU have hL1 : 0 < L + 1 := by linarith refine ⟨min T (eta / (L + 1)), lt_min hT (div_pos heta hL1), ?_⟩ intro t ht0 htd y hy have ht : t ∈ Ioo 0 T := ⟨ht0, htd.trans_le (min_le_left _ _)⟩ have hlimit : β€–f (t, y) - f (0, y)β€– ≀ L * t := le_of_tendsto (((hinterior t ht y (hKU hy)).sub (hbirth y (hKU hy))).norm) (hbound t ht y hy) rw [dist_eq_norm] calc β€–f (t, y) - f (0, y)β€– ≀ L * t := hlimit _ ≀ (L + 1) * t := mul_le_mul_of_nonneg_right (by linarith) ht0.le _ < eta := by have hsmall := htd.trans_le (min_le_right T (eta / (L + 1))) nlinarith [(lt_div_iffβ‚€ hL1).mp hsmall] end PoincareMT.M44