import PoincareLib.Geometry.RicciFlow.Basic import Mathlib.Geometry.Manifold.ContMDiff.NormedSpace /-! # Smooth backward metrics in one fixed tangent frame Interior metric smoothness passes to the backward time variable and to the preferred tangent frame at a fixed point. The coordinate bilinear form is identified with the actual metric on the whole frame domain. -/ 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 Ο„max : ℝ} /-- The backward-time metric section is smooth at every strict interior point. -/ theorem backward_metric_contMDiffAt (hwindow : Icc (T - Ο„max) T βŠ† J) (z : M Γ— ℝ) (hz : z ∈ univ Γ—Λ’ Ioo 0 Ο„max) : ContMDiffAt ((𝓑 n).prod (π“˜(ℝ, ℝ))) ((𝓑 n).prod π“˜(ℝ, EuclideanSpace ℝ (Fin n) β†’L[ℝ] EuclideanSpace ℝ (Fin n) β†’L[ℝ] ℝ)) ∞ (fun w : M Γ— ℝ ↦ Bundle.TotalSpace.mk' (EuclideanSpace ℝ (Fin n) β†’L[ℝ] EuclideanSpace ℝ (Fin n) β†’L[ℝ] ℝ) (E := fun q : M ↦ TangentSpace (𝓑 n) q β†’L[ℝ] TangentSpace (𝓑 n) q β†’L[ℝ] ℝ) w.1 ((F.metric (T - w.2)).inner w.1)) z := by have htime : T - z.2 ∈ Ioo (T - Ο„max) T := by constructor <;> linarith [hz.2.1, hz.2.2] have hnhds : J Γ—Λ’ (univ : Set M) ∈ 𝓝 (T - z.2, z.1) := Filter.mem_of_superset ((isOpen_Ioo.prod isOpen_univ).mem_nhds ⟨htime, mem_univ _⟩) (fun _ hw ↦ ⟨hwindow ⟨hw.1.1.le, hw.1.2.le⟩, hw.2⟩) have hmetric := F.smooth.contMDiffAt hnhds exact hmetric.comp z ((contMDiffAt_const.sub contMDiffAt_snd).prodMk contMDiffAt_fst) /-- The actual backward metric expressed in the preferred tangent frame at a fixed point. -/ noncomputable def backwardMetricCoordinates (F : RicciFlow n M J) (T : ℝ) (qβ‚€ : M) (w : M Γ— ℝ) : EuclideanSpace ℝ (Fin n) β†’L[ℝ] EuclideanSpace ℝ (Fin n) β†’L[ℝ] ℝ := inCoordinates (EuclideanSpace ℝ (Fin n)) (TangentSpace (𝓑 n)) (EuclideanSpace ℝ (Fin n) β†’L[ℝ] ℝ) (fun q ↦ TangentSpace (𝓑 n) q β†’L[ℝ] ℝ) qβ‚€ w.1 qβ‚€ w.1 ((F.metric (T - w.2)).inner w.1) set_option backward.isDefEq.respectTransparency false in /-- The actual bilinear operator in the fixed frame has a smooth spacetime germ. -/ theorem backwardMetricCoordinates_contMDiffAt (hwindow : Icc (T - Ο„max) T βŠ† J) (z : M Γ— ℝ) (hz : z ∈ univ Γ—Λ’ Ioo 0 Ο„max) : ContMDiffAt ((𝓑 n).prod (π“˜(ℝ, ℝ))) π“˜(ℝ, EuclideanSpace ℝ (Fin n) β†’L[ℝ] EuclideanSpace ℝ (Fin n) β†’L[ℝ] ℝ) ∞ (backwardMetricCoordinates F T z.1) z := by have h := backward_metric_contMDiffAt (F := F) hwindow z hz rw [contMDiffAt_hom_bundle] at h exact h.2 set_option backward.isDefEq.respectTransparency false in /-- Frame evaluation preserves both arguments of the selected metric exactly. -/ theorem backwardMetricCoordinates_apply (qβ‚€ : M) (w : M Γ— ℝ) (hw : w.1 ∈ (trivializationAt (EuclideanSpace ℝ (Fin n)) (TangentSpace (𝓑 n)) qβ‚€).baseSet) (v v' : TangentSpace (𝓑 n) w.1) : backwardMetricCoordinates F T qβ‚€ w ((trivializationAt (EuclideanSpace ℝ (Fin n)) (TangentSpace (𝓑 n)) qβ‚€).continuousLinearMapAt ℝ w.1 v) ((trivializationAt (EuclideanSpace ℝ (Fin n)) (TangentSpace (𝓑 n)) qβ‚€).continuousLinearMapAt ℝ w.1 v') = (F.metric (T - w.2)).inner w.1 v v' := by unfold backwardMetricCoordinates rw [inCoordinates_apply_eqβ‚‚ hw hw (mem_univ _)] simp only [Trivialization.continuousLinearMapAt_apply, Trivialization.symm_linearMapAt _ hw] change (Bundle.Trivial.trivialization M ℝ).linearMapAt ℝ w.1 _ = _ simp only [Bundle.Trivial.linearMapAt_trivialization, LinearMap.id_apply] /-- The same metric in the preferred manifold chart and backward time. -/ noncomputable def coordinateBackwardMetric (F : RicciFlow n M J) (T : ℝ) (qβ‚€ : M) (z : EuclideanSpace ℝ (Fin n) Γ— ℝ) : EuclideanSpace ℝ (Fin n) β†’L[ℝ] EuclideanSpace ℝ (Fin n) β†’L[ℝ] ℝ := backwardMetricCoordinates F T qβ‚€ ((extChartAt (𝓑 n) qβ‚€).symm z.1, z.2) set_option backward.isDefEq.respectTransparency false in /-- In chart coordinates the actual backward metric is an ordinary smooth operator germ. -/ theorem coordinateBackwardMetric_contDiffAt (hwindow : Icc (T - Ο„max) T βŠ† J) (qβ‚€ : M) {Ο„ : ℝ} (hΟ„ : 0 < Ο„) (hmax : Ο„ < Ο„max) : ContDiffAt ℝ ∞ (coordinateBackwardMetric F T qβ‚€) (extChartAt (𝓑 n) qβ‚€ qβ‚€, Ο„) := by have hi : ContMDiffAt (𝓑 n) (𝓑 n) ∞ (extChartAt (𝓑 n) qβ‚€).symm (extChartAt (𝓑 n) qβ‚€ qβ‚€) := (contMDiffOn_extChartAt_symm qβ‚€).contMDiffAt (extChartAt_target_mem_nhds (I := 𝓑 n) qβ‚€) have h := backwardMetricCoordinates_contMDiffAt (F := F) hwindow (qβ‚€, Ο„) ⟨mem_univ _, hΟ„, hmax⟩ have hpre : ContMDiffAt ((𝓑 n).prod (π“˜(ℝ, ℝ))) ((𝓑 n).prod (π“˜(ℝ, ℝ))) ∞ (fun w : EuclideanSpace ℝ (Fin n) Γ— ℝ ↦ ((extChartAt (𝓑 n) qβ‚€).symm w.1, w.2)) (extChartAt (𝓑 n) qβ‚€ qβ‚€, Ο„) := (hi.comp (f := fun w : EuclideanSpace ℝ (Fin n) Γ— ℝ ↦ w.1) (extChartAt (𝓑 n) qβ‚€ qβ‚€, Ο„) contMDiffAt_fst).prodMk contMDiffAt_snd have h' : ContMDiffAt ((𝓑 n).prod (π“˜(ℝ, ℝ))) π“˜(ℝ, EuclideanSpace ℝ (Fin n) β†’L[ℝ] EuclideanSpace ℝ (Fin n) β†’L[ℝ] ℝ) ∞ (backwardMetricCoordinates F T qβ‚€) ((extChartAt (𝓑 n) qβ‚€).symm (extChartAt (𝓑 n) qβ‚€ qβ‚€), Ο„) := by simpa only [extChartAt_to_inv] using h have hcomp := h'.comp (f := fun w : EuclideanSpace ℝ (Fin n) Γ— ℝ ↦ ((extChartAt (𝓑 n) qβ‚€).symm w.1, w.2)) (extChartAt (𝓑 n) qβ‚€ qβ‚€, Ο„) hpre rw [← modelWithCornersSelf_prod, chartedSpaceSelf_prod] at hcomp exact hcomp.contDiffAt end PoincareMT.ReducedVolume