import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.LGeometry.Variation.PhaseCluster import Mathlib.Topology.Connected.Clopen import Mathlib.Topology.Order.IntermediateValue import Mathlib.Topology.Sequences /-! # Compact actual phase bounds close the survival domain Proposition 16.4 and Corollary 6.67, pp. 389-391 and 140-141. A fixed actual point-and-velocity cage makes survival sequentially closed in a compact physical time interval. Relative openness and connectedness then give survival on the entire interval. In particular, uniformly confined exponential branches survive at limiting initial data. -/ set_option autoImplicit false -- Actual phases use the same horizontal metric and selected square paths. set_option backward.isDefEq.respectTransparency false open Set Filter Bundle open scoped Topology Manifold ContDiff universe u namespace PoincareMT.Proofs.M46 variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} {T : ℝ} {x : G.Point} /-- Uniform compact bounds on every surviving actual phase force survival through the full admissible target time. Source: Proposition 16.4 and Corollary 6.67, pp. 389-391 and 140-141. -/ theorem exponential_survival_of_confined_phase (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) (E : M14ExponentialFamily G T x) (Z : G.Horizontal x) {b : ℝ} (hb : 0 < b) (hbtime : T - b ^ 2 ∈ I.domain) {K : Set G.Point} (hK : IsCompact K) (C : ℝ) (hbound : ∀ s ∈ Ioc 0 b, (Z, s) ∈ E.domain → (exponentialPhase E Z s).proj ∈ K ∧ G.spacetime.horizontalMetric.inner (exponentialPhase E Z s).proj (exponentialPhase E Z s).2 (exponentialPhase E Z s).2 ≤ C) : (Z, b) ∈ E.domain := by let S : Set (Icc (0 : ℝ) b) := {s | (Z, s.val) ∈ E.domain} have hT : T ∈ I.domain := by rw [← G.spacetime.time_range] exact ⟨x, E.base_time⟩ have htime := M14.squareClock_admissible_prefix hT hb.le hbtime have hopen : IsOpen S := by rw [isOpen_iff_mem_nhds] intro s hs obtain ⟨U, hU, hsU, hsub⟩ := E.domain_relative_open (Z, s.val) hs have hnear : {t : Icc (0 : ℝ) b | (Z, t.val) ∈ U} ∈ 𝓝 s := (hU.preimage (continuous_const.prodMk continuous_subtype_val)).mem_nhds hsU apply mem_of_superset hnear intro t ht exact hsub ⟨ht, t.property.1, htime t.val t.property⟩ have hclosed : IsClosed S := by apply IsSeqClosed.isClosed intro u s hu hlimit by_cases hs0 : s.val = 0 · change (Z, s.val) ∈ E.domain rw [hs0] exact E.domain_zero Z have hs : 0 < s.val := lt_of_le_of_ne s.property.1 (Ne.symm hs0) by_cases hlater : ∃ k, s.val ≤ (u k).val · obtain ⟨k, hk⟩ := hlater exact (E.maximal_lifetime Z).out (E.domain_zero Z) (hu k) ⟨s.property.1, hk⟩ have hbefore (k : ℕ) : (u k).val < s.val := lt_of_not_ge (fun hk => hlater ⟨k, hk⟩) have hsk : Tendsto (fun k => (u k).val) atTop (𝓝 s.val) := continuous_subtype_val.continuousAt.tendsto.comp hlimit have hbelow : ∀ᶠ k in atTop, 0 < (u k).val ∧ (u k).val < s.val := (hsk.eventually (Ioi_mem_nhds hs)).and (Eventually.of_forall hbefore) have hphase : ∀ᶠ k in atTop, (exponentialPhase E Z (u k).val).proj ∈ K ∧ G.spacetime.horizontalMetric.inner (exponentialPhase E Z (u k).val).proj (exponentialPhase E Z (u k).val).2 (exponentialPhase E Z (u k).val).2 ≤ C := by filter_upwards [hbelow] with k hk exact hbound (u k).val ⟨hk.1, (u k).property.2⟩ (hu k) obtain ⟨z, _, hcluster⟩ := (isCompact_horizontalDisk G hK C).exists_mapClusterPt (tendsto_principal.mpr hphase) obtain ⟨r, hsr, _, hsurv⟩ := exponential_survival_of_phase_cluster hM04 hM12 E Z hs hsk (fun k => hu k) hbelow z hcluster exact (E.maximal_lifetime Z).out (E.domain_zero Z) hsurv ⟨s.property.1, hsr⟩ let : PreconnectedSpace (Icc (0 : ℝ) b) := Subtype.preconnectedSpace isPreconnected_Icc have hSuniv : S = univ := (show IsClopen S from ⟨hclosed, hopen⟩).eq_univ ⟨⟨0, le_rfl, hb.le⟩, E.domain_zero Z⟩ exact (Set.ext_iff.mp hSuniv ⟨b, hb.le, le_rfl⟩).mpr (mem_univ _) /-- The actual short-prefix derivative agrees with the selected long square-path velocity at every positive time of that prefix. Source: Proposition 16.4 and Lemma 6.18, pp. 389-391 and 113-114. -/ theorem exponentialPhase_eq_squarePath_of_le (E : M14ExponentialFamily G T x) {Z : G.Horizontal x} {b s : ℝ} (hZ : (Z, b) ∈ E.domain) (hb : 0 < b) (hs : 0 < s) (hsb : s ≤ b) : exponentialPhase E Z s = TotalSpace.mk' (EuclideanSpace ℝ (Fin n)) (E := G.Horizontal) ((E.square_path Z b hZ hb).curve s) ((E.square_path Z b hZ hb).horizontal_velocity s) := by let R := E.square_path Z b hZ hb have hC : M14SqrtParameterInterval 0 (b ^ 2) = Icc 0 b := by rw [M14SqrtParameterInterval, Real.sqrt_zero, Real.sqrt_sq hb.le] have hsub : Icc 0 s ⊆ M14SqrtParameterInterval 0 (b ^ 2) := by rw [hC] exact Icc_subset_Icc_right hsb have hpoint : EqOn (E.gamma Z) R.curve (Icc 0 s) := by intro r hr exact (M14.exponential_square_curve_eq E Z hZ hb (hsub hr)).symm have hsC : s ∈ Icc 0 s := ⟨hs.le, le_rfl⟩ have hvel := M14.projectedCurveVelocityWithin_congrOn (G := G) hpoint hsC rw [M14.squareRoot_projectedVelocityWithin_subset R hsub hsC (uniqueDiffOn_Icc hs s hsC)] at hvel exact TotalSpace.ext (hpoint hsC) hvel /-- Uniform compact actual curve and square-speed bounds pass survival to the limiting initial vector. No minimizing hypothesis is used. This is the compact-phase endpoint required by Corollary 6.67 and Proposition 16.4, pp. 140-141 and 389-391. -/ theorem exponential_survival_of_uniform_phase_limit (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) (E : M14ExponentialFamily G T x) {b : ℝ} (hb : 0 < b) {Zk : ℕ → G.Horizontal x} {Z : G.Horizontal x} (hZk : Tendsto Zk atTop (𝓝 Z)) (hsurv : ∀ k, (Zk k, b) ∈ E.domain) {K : Set G.Point} (hK : IsCompact K) (C : ℝ) (hcurve : ∀ k s, s ∈ Icc 0 b → E.gamma (Zk k) s ∈ K) (hspeed : ∀ k s, s ∈ Icc 0 b → G.spacetime.horizontalMetric.inner ((E.square_path (Zk k) b (hsurv k) hb).curve s) ((E.square_path (Zk k) b (hsurv k) hb).horizontal_velocity s) ((E.square_path (Zk k) b (hsurv k) hb).horizontal_velocity s) ≤ C) : (Z, b) ∈ E.domain := by apply exponential_survival_of_confined_phase hM04 hM12 E Z hb (E.domain_admissible (hsurv 0)).2 hK C intro s hs hZ have hprefix (k : ℕ) : (Zk k, s) ∈ E.domain := (E.maximal_lifetime (Zk k)).out (E.domain_zero (Zk k)) (hsurv k) ⟨hs.1.le, hs.2⟩ apply exponentialPhase_mem_compactDisk_of_tendsto E hK C hZk hs.1 hZ hprefix intro k rw [exponentialPhase_eq_squarePath_of_le E (hsurv k) hb hs.1 hs.2] refine ⟨?_, hspeed k s ⟨hs.1.le, hs.2⟩⟩ change (E.square_path (Zk k) b (hsurv k) hb).curve s ∈ K rw [M14.exponential_square_curve_eq E (Zk k) (hsurv k) hb (by simpa only [M14SqrtParameterInterval, Real.sqrt_zero, Real.sqrt_sq hb.le] using (show s ∈ Icc 0 b from ⟨hs.1.le, hs.2⟩))] exact hcurve k s ⟨hs.1.le, hs.2⟩ end PoincareMT.Proofs.M46