import PoincareLib.Geometry.Spacetime.Realization.Cylinder.SpatialSmooth import PoincareLib.Geometry.Spacetime.Realization.Bundle.BilinearSmooth import PoincareLib.Geometry.Spacetime.Realization.Bundle.PositiveFormBounded import PoincareLib.Geometry.Spacetime.Realization.Interval.Family /-! # Jointly smooth positive metric pulled back by a compatible cylinder -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set Bundle open scoped Manifold ContDiff Bundle Topology open PoincareMT namespace Poincare.Spacetime.Realization variable {n : β„•} {X : Type*} [TopologicalSpace X] {time : X β†’ ℝ} {I K : SpacetimeInterval} {F : GeneralizedFlowSpacetime n X time I} {D : SmoothSpacetimeInterval K} {C : Type*} [TopologicalSpace C] [ChartedSpace (EuclideanSpace ℝ (Fin n)) C] [IsManifold (𝓑 n) ∞ C] noncomputable def cylinderMetricForm (e : CompatibleSpacetimeCylinder F D C) (t : D.Point) (x : C) : EuclideanSpace ℝ (Fin n) β†’L[ℝ] EuclideanSpace ℝ (Fin n) β†’L[ℝ] ℝ := by let H : Submodule ℝ (SpacetimeModelVector n) := spacetimeHorizontal F.timeFunction (e.toSpacetime (t, x)) exact (show H β†’L[ℝ] H β†’L[ℝ] ℝ from F.horizontalMetric.inner (e.toSpacetime (t, x))).bilinearComp (show EuclideanSpace ℝ (Fin n) β†’L[ℝ] H from (cylinderSpatialEquiv e t x).toContinuousLinearMap) (show EuclideanSpace ℝ (Fin n) β†’L[ℝ] H from (cylinderSpatialEquiv e t x).toContinuousLinearMap) theorem cylinderMetricForm_pos (e : CompatibleSpacetimeCylinder F D C) (t : D.Point) (x : C) (v : EuclideanSpace ℝ (Fin n)) (hv : v β‰  0) : 0 < cylinderMetricForm e t x v v := by apply F.horizontalMetric.pos exact fun h ↦ hv ((cylinderSpatialEquiv e t x).injective (h.trans (map_zero _).symm)) theorem cylinderMetricForm_smooth (e : CompatibleSpacetimeCylinder F D C) : ContMDiff (spacetimeModel n) ((𝓑 n).prod π“˜(ℝ, EuclideanSpace ℝ (Fin n) β†’L[ℝ] EuclideanSpace ℝ (Fin n) β†’L[ℝ] ℝ)) ∞ (fun p : D.Point Γ— C ↦ TotalSpace.mk' (EuclideanSpace ℝ (Fin n) β†’L[ℝ] EuclideanSpace ℝ (Fin n) β†’L[ℝ] ℝ) (E := fun x : C ↦ TangentSpace (𝓑 n) x β†’L[ℝ] TangentSpace (𝓑 n) x β†’L[ℝ] ℝ) p.2 (cylinderMetricForm e p.1 p.2)) := by intro p rw [← contMDiffWithinAt_univ] apply contMDiffWithinAt_bilinear_of_eval (IB := 𝓑 n) (J := spacetimeModel n) (F := EuclideanSpace ℝ (Fin n)) (E := (TangentSpace (𝓑 n) : C β†’ Type _)) (b := Prod.snd) (g := fun p ↦ cylinderMetricForm e p.1 p.2) contMDiffWithinAt_snd intro v w have hg := F.horizontalMetric.contMDiff.contMDiffAt.comp p (e.smooth p) have hv := (cylinderSpatialTangentMap_smooth e).contMDiffAt.comp p (contMDiffAt_fst.prodMk ((frameVector_contMDiffAt (IB := 𝓑 n) (E := (TangentSpace (𝓑 n) : C β†’ Type _)) p.2 v).comp p contMDiffAt_snd)) have hw := (cylinderSpatialTangentMap_smooth e).contMDiffAt.comp p (contMDiffAt_fst.prodMk ((frameVector_contMDiffAt (IB := 𝓑 n) (E := (TangentSpace (𝓑 n) : C β†’ Type _)) p.2 w).comp p contMDiffAt_snd)) have h := ContMDiffAt.clm_bundle_applyβ‚‚ (F₃ := ℝ) (E₃ := fun _ : F.Point ↦ ℝ) (b := e.toSpacetime) (ψ := fun q ↦ F.horizontalMetric.inner (e.toSpacetime q)) hg hv hw exact (contMDiffAt_totalSpace.mp h).2.contMDiffWithinAt noncomputable def cylinderMetricAt (e : CompatibleSpacetimeCylinder F D C) (t : D.Point) : RiemannianMetric n C where inner := cylinderMetricForm e t symm := fun x v w ↦ F.horizontalMetric.symm (e.toSpacetime (t, x)) (cylinderSpatialEquiv e t x v) (cylinderSpatialEquiv e t x w) pos := cylinderMetricForm_pos e t isVonNBounded := fun x ↦ positiveForm_isVonNBounded (cylinderMetricForm e t x) (cylinderMetricForm_pos e t x) contMDiff := (cylinderMetricForm_smooth e).comp (contMDiff_const.prodMk contMDiff_id) noncomputable def cylinderMetricTime (K : SpacetimeInterval) (t : ℝ) : K.domain := by classical exact if ht : t ∈ K.domain then ⟨t, ht⟩ else ⟨K.nontrivial.nonempty.some, K.nontrivial.nonempty.some_mem⟩ theorem cylinderMetricTime_of_mem (K : SpacetimeInterval) (t : K.domain) : cylinderMetricTime K t.val = t := by simp [cylinderMetricTime, t.property] noncomputable def pulledCylinderMetric (e : CompatibleSpacetimeCylinder F (smoothInterval K) C) : SpacetimeCylinderMetric e where metric := fun t ↦ cylinderMetricAt e (cylinderMetricTime K t) smooth := by apply interval_family_smoothOn K (cylinderMetricForm_smooth e) intro t x simp only [cylinderMetricTime_of_mem] rfl spatialTangentEquiv := cylinderSpatialEquiv e spatialTangentEquiv_eq := cylinderSpatialEquiv_eq e metric_eq := by intro t x v w change cylinderMetricForm e (cylinderMetricTime K t.val) x v w = _ rw [cylinderMetricTime_of_mem] rfl end Poincare.Spacetime.Realization