import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Metric.Comparison.SmoothMetric import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Basic /-! # Extending one static Euclidean identification to the closed time interval The given flow is continuous within its closed time domain. Equality of each metric pairing with one fixed diffeomorphism on the open backward interval therefore extends to both endpoints by density. -/ set_option autoImplicit false open Bundle ContinuousLinearMap Filter Set open scoped Manifold ContDiff Bundle Topology universe u namespace PoincareMT.ReducedVolume variable {n : β„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] {J : Set ℝ} {F : RicciFlow n M J} {T b : ℝ} set_option backward.isDefEq.respectTransparency false in /-- Every actual fixed tangent pairing is continuous on the closed backward interval. -/ theorem metric_pairing_continuousOn_backward (hwindow : Icc (T - b) T βŠ† J) (q : M) (v w : TangentSpace (𝓑 n) q) : ContinuousOn (fun s : ℝ ↦ (F.metric (T - s)).inner q v w) (Icc 0 b) := by intro s hs have htime : T - s ∈ J := hwindow ⟨by linarith [hs.2], by linarith [hs.1]⟩ have hm := F.smooth.continuousOn (T - s, q) ⟨htime, mem_univ q⟩ rw [continuousWithinAt_hom_bundle] at hm have hc : ContinuousWithinAt (fun z : ℝ Γ— M ↦ inCoordinates (EuclideanSpace ℝ (Fin n)) (TangentSpace (𝓑 n)) (EuclideanSpace ℝ (Fin n) β†’L[ℝ] ℝ) (fun y ↦ TangentSpace (𝓑 n) y β†’L[ℝ] ℝ) q z.2 q z.2 ((F.metric z.1).inner z.2)) (J Γ—Λ’ univ) (T - s, q) := hm.2 have hcoord : ContinuousWithinAt (fun r : ℝ ↦ backwardMetricCoordinates F T q (q, r)) (Icc 0 b) s := by apply hc.comp (x := s) ((continuousAt_const.sub continuousAt_id).prodMk continuousAt_const).continuousWithinAt intro r hr change (T - r, q) ∈ J Γ—Λ’ univ exact ⟨hwindow ⟨by linarith [hr.2], by linarith [hr.1]⟩, mem_univ _⟩ let L := (trivializationAt (EuclideanSpace ℝ (Fin n)) (TangentSpace (𝓑 n)) q).continuousLinearMapAt ℝ q have heval := (hcoord.clm_apply (continuousWithinAt_const (b := L v))).clm_apply (continuousWithinAt_const (b := L w)) have heq : (fun r : ℝ ↦ backwardMetricCoordinates F T q (q, r) (L v) (L w)) = (fun r ↦ (F.metric (T - r)).inner q v w) := by funext r exact backwardMetricCoordinates_apply q (q, r) (mem_chart_source _ _) v w rwa [heq] at heval /-- The same interior Euclidean identification extends to both closed time endpoints. -/ theorem staticEuclideanFlowOn_of_interior_metric_eq (hb : 0 < b) (hwindow : Icc (T - b) T βŠ† J) (e : Diffeomorph (𝓑 n) (𝓑 n) M (EuclideanSpace ℝ (Fin n)) ∞) (heq : βˆ€ s ∈ Ioo 0 b, βˆ€ q : M, βˆ€ v w : TangentSpace (𝓑 n) q, (F.metric (T - s)).inner q v w = inner ℝ (mfderiv (𝓑 n) (𝓑 n) e q v) (mfderiv (𝓑 n) (𝓑 n) e q w)) : IsStaticEuclideanFlowOn F (Icc (T - b) T) := by refine ⟨e, ?_⟩ intro t ht q v w have hopen : EqOn (fun s : ℝ ↦ (F.metric (T - s)).inner q v w) (fun _ ↦ inner ℝ (mfderiv (𝓑 n) (𝓑 n) e q v) (mfderiv (𝓑 n) (𝓑 n) e q w)) (Ioo 0 b) := fun s hs ↦ heq s hs q v w have hclosed := hopen.of_subset_closure (metric_pairing_continuousOn_backward hwindow q v w) continuousOn_const Ioo_subset_Icc_self (by rw [closure_Ioo hb.ne]) have htime : T - t ∈ Icc 0 b := ⟨by linarith [ht.2], by linarith [ht.1]⟩ simpa only [sub_sub_cancel] using hclosed htime end PoincareMT.ReducedVolume