import PoincareLib.Geometry.Spacetime.Realization.Cylinder.Tangent import Mathlib.Geometry.Manifold.ContMDiffMFDeriv /-! # Joint smoothness of the spatial tangent map of a compatible cylinder -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open 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] theorem cylinder_spatial_lift_smooth (D : SmoothSpacetimeInterval K) : ContMDiff ((๐“กโˆ‚ 1).prod ((๐“ก n).prod (๐“ก n))) ((spacetimeModel n).prod ๐“˜(โ„, SpacetimeModelVector n)) โˆž (fun q : D.Point ร— TangentBundle (๐“ก n) C โ†ฆ TotalSpace.mk' (SpacetimeModelVector n) (E := (TangentSpace (spacetimeModel n) : D.Point ร— C โ†’ Type _)) (q.1, q.2.proj) (0, q.2.2)) := by have ht : ContMDiff ((๐“กโˆ‚ 1).prod ((๐“ก n).prod (๐“ก n))) ((๐“กโˆ‚ 1).prod ๐“˜(โ„, EuclideanSpace โ„ (Fin 1))) โˆž (fun q : D.Point ร— TangentBundle (๐“ก n) C โ†ฆ TotalSpace.mk' (EuclideanSpace โ„ (Fin 1)) (E := (TangentSpace (๐“กโˆ‚ 1) : D.Point โ†’ Type _)) q.1 0) := (contMDiff_zeroSection โ„ (TangentSpace (๐“กโˆ‚ 1) : D.Point โ†’ Type _)).comp contMDiff_fst exact contMDiff_equivTangentBundleProd_symm.comp (ht.prodMk contMDiff_snd) noncomputable def cylinderSpatialTangentMap (e : CompatibleSpacetimeCylinder F D C) (q : D.Point ร— TangentBundle (๐“ก n) C) : TotalSpace (EuclideanSpace โ„ (Fin n)) F.Horizontal := โŸจe.toSpacetime (q.1, q.2.proj), cylinderSpatialEquiv e q.1 q.2.proj q.2.2โŸฉ theorem cylinderSpatialTangentMap_smooth (e : CompatibleSpacetimeCylinder F D C) : ContMDiff ((๐“กโˆ‚ 1).prod ((๐“ก n).prod (๐“ก n))) ((spacetimeModel n).prod (๐“ก n)) โˆž (cylinderSpatialTangentMap e) := by let := F.chartedSpace let := F.isManifold let := F.horizontalTopology let := F.horizontalFiberBundle let := F.horizontalVectorBundle let := F.horizontalSmoothBundle have hpush := (e.smooth.contMDiff_tangentMap (m := โˆž) (by simp)).comp (cylinder_spatial_lift_smooth (C := C) D) have hproj := F.horizontalProjection_smooth.comp hpush apply hproj.congr intro q apply TotalSpace.ext ยท rfl ยท apply heq_of_eq exact (F.horizontalProjection_identity _ (cylinderSpatialEquiv e q.1 q.2.proj q.2.2)).symm end Poincare.Spacetime.Realization