import PoincareLib.Geometry.Spacetime.Realization.Geometry import PoincareLib.Geometry.Spacetime.Cylinder.Basic /-! # The prescribed boxes are compatible smooth cylinders -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open scoped Manifold ContDiff Bundle Topology open PoincareMT namespace Poincare.Spacetime.Realization variable {n : โ„•} {X : Type*} [TopologicalSpace X] [T2Space X] [SecondCountableTopology X] noncomputable def adaptedBoxCylinder (A : AdaptedMetricAtlas n X) (b : A.box_index) : CompatibleSpacetimeCylinder (adaptedSpacetime A) (intervalSystem.interval (A.box b).interval) (A.box b).spatial where interval_subset := (A.box b).interval_subset toSpacetime := (A.box b).toSpacetime embedding := (A.box b).openEmbedding.isEmbedding time_eq := (A.box b).time_toSpacetime worldline_smooth := by intro x let := intervalChartedSpace (A.box b).interval let := adaptedChartedSpace A exact (adapted_box_localDiffeomorph A b).contMDiff.comp (contMDiff_id.prodMk contMDiff_const) worldline_derivative := by intro t x let := intervalChartedSpace (A.box b).interval let := adaptedChartedSpace A have h := mfderiv_comp_apply t (((adapted_box_localDiffeomorph A b).contMDiff (t, x)).mdifferentiableAt (by simp)) ((contMDiff_id.prodMk contMDiff_const : ContMDiff (๐“กโˆ‚ 1) (spacetimeModel n) โˆž (fun s : (smoothInterval (A.box b).interval).Point โ†ฆ (s, x))) t |>.mdifferentiableAt (by simp)) ((smoothInterval (A.box b).interval).positiveTangent t) simp only [id_eq] at h rw [mfderiv_prod_left] at h exact h.trans (adaptedTimeVector_box A b (t, x)).symm smooth := by let := intervalChartedSpace (A.box b).interval let := adaptedChartedSpace A exact (adapted_box_localDiffeomorph A b).contMDiff differential_injective := by let := intervalChartedSpace (A.box b).interval let := adaptedChartedSpace A exact fun p โ†ฆ (boxTangentEquiv A b p).injective end Poincare.Spacetime.Realization