import PoincareLib.Geometry.Spacetime.Interval import PoincareLib.Geometry.Riemannian.Connection import Mathlib.Geometry.Manifold.VectorField.LieBracket import Mathlib.Geometry.Manifold.LocalDiffeomorph /-! Ported from Mapher06/Poincare-MorganTian, `PoincareMT/Definitions/M11GeneralizedFlow.lean`, revision `b2c3c64781fee22edfd683a224d4f8d280e2e9ce`. Declaration bodies are unchanged; only imports and module placement differ. See `references/ricci-flow/mapher/spacetime-port.json`. -/ /-! # Actual generalized spacetime geometry Morgan-Tian Definitions 3.34-3.35, pp. 59-60. The horizontal fibers are literally the kernels of the differential of time in the actual tangent bundle. A selected smooth positive metric lives on that bundle. This file contains geometric data only; M12 owns the intrinsic Ricci equation. -/ set_option autoImplicit false open scoped Manifold ContDiff Bundle Topology universe u namespace PoincareMT /-- The half-space time model times the boundaryless spatial model. -/ noncomputable abbrev spacetimeModel (n : โ„•) := (๐“กโˆ‚ 1).prod (๐“ก n) /-- Vector model of the genuine (n+1)-dimensional tangent bundle. -/ abbrev SpacetimeModelVector (n : โ„•) := EuclideanSpace โ„ (Fin 1) ร— EuclideanSpace โ„ (Fin n) /-- Literal horizontal kernel, using the given charts and actual time map. -/ noncomputable def spacetimeHorizontal {n : โ„•} {X : Type u} [TopologicalSpace X] [ChartedSpace (ModelProd (EuclideanHalfSpace 1) (EuclideanSpace โ„ (Fin n))) X] (time : X โ†’ โ„) (p : X) : Submodule โ„ (TangentSpace (spacetimeModel n) p) := (mfderiv (spacetimeModel n) ๐“˜(โ„) time p).toLinearMap.ker /-- The actual level set, with its inherited topology. -/ abbrev spacetimeSlice {X : Type u} (time : X โ†’ โ„) (t : โ„) := {p : X // time p = t} /-- Smooth spacetime, normalized time vector, and a smooth horizontal metric on the exact carrier/topology/time supplied by the atlas. Existence of these data is a conclusion of M11, never a premise of its raw atlas. -/ structure GeneralizedFlowSpacetime (n : โ„•) (X : Type u) [TopologicalSpace X] (time : X โ†’ โ„) (I : SpacetimeInterval) where chartedSpace : ChartedSpace (ModelProd (EuclideanHalfSpace 1) (EuclideanSpace โ„ (Fin n))) X isManifold : IsManifold (spacetimeModel n) โˆž X t2Space : T2Space X t3Space : T3Space X secondCountable : SecondCountableTopology X time_smooth : ContMDiff (spacetimeModel n) ๐“˜(โ„) โˆž time time_range : Set.range time = I.domain boundary_eq : (spacetimeModel n).boundary X = {p | time p โˆˆ frontier I.domain} timeVector : โˆ€ p : X, TangentSpace (spacetimeModel n) p timeVector_smooth : ContMDiff (spacetimeModel n) ((spacetimeModel n).prod ๐“˜(โ„, SpacetimeModelVector n)) โˆž (fun p : X โ†ฆ Bundle.TotalSpace.mk' (SpacetimeModelVector n) (E := (TangentSpace (spacetimeModel n) : X โ†’ Type _)) p (timeVector p)) timeVector_normalized : โˆ€ p, mfderiv (spacetimeModel n) ๐“˜(โ„) time p (timeVector p) = 1 horizontalTopology : TopologicalSpace (Bundle.TotalSpace (EuclideanSpace โ„ (Fin n)) (fun p โ†ฆ spacetimeHorizontal (n := n) time p)) horizontalFiberBundle : FiberBundle (EuclideanSpace โ„ (Fin n)) (fun p โ†ฆ spacetimeHorizontal (n := n) time p) horizontalVectorBundle : VectorBundle โ„ (EuclideanSpace โ„ (Fin n)) (fun p โ†ฆ spacetimeHorizontal (n := n) time p) horizontalSmoothBundle : ContMDiffVectorBundle โˆž (EuclideanSpace โ„ (Fin n)) (fun p โ†ฆ spacetimeHorizontal (n := n) time p) (spacetimeModel n) horizontal_inclusion_smooth : ContMDiff ((spacetimeModel n).prod ๐“˜(โ„, EuclideanSpace โ„ (Fin n))) ((spacetimeModel n).prod ๐“˜(โ„, SpacetimeModelVector n)) โˆž (fun v : Bundle.TotalSpace (EuclideanSpace โ„ (Fin n)) (fun p โ†ฆ spacetimeHorizontal (n := n) time p) โ†ฆ Bundle.TotalSpace.mk' (SpacetimeModelVector n) (E := (TangentSpace (spacetimeModel n) : X โ†’ Type _)) v.proj v.2.val) horizontalProjection : โˆ€ p, TangentSpace (spacetimeModel n) p โ†’L[โ„] spacetimeHorizontal (n := n) time p horizontalProjection_eq : โˆ€ p v, (horizontalProjection p v).val = v - (show โ„ from mfderiv (spacetimeModel n) ๐“˜(โ„) time p v) โ€ข timeVector p horizontalProjection_identity : โˆ€ p (v : spacetimeHorizontal (n := n) time p), horizontalProjection p v.val = v tangent_decomposition : โˆ€ p v, v = (show โ„ from mfderiv (spacetimeModel n) ๐“˜(โ„) time p v) โ€ข timeVector p + (horizontalProjection p v).val horizontalProjection_smooth : ContMDiff ((spacetimeModel n).prod ๐“˜(โ„, SpacetimeModelVector n)) ((spacetimeModel n).prod ๐“˜(โ„, EuclideanSpace โ„ (Fin n))) โˆž (fun v : TangentBundle (spacetimeModel n) X โ†ฆ Bundle.TotalSpace.mk' (EuclideanSpace โ„ (Fin n)) (E := fun p โ†ฆ spacetimeHorizontal (n := n) time p) v.proj (horizontalProjection v.proj v.2)) metric : Bundle.ContMDiffRiemannianMetric (spacetimeModel n) โˆž (EuclideanSpace โ„ (Fin n)) (fun p โ†ฆ spacetimeHorizontal (n := n) time p) namespace GeneralizedFlowSpacetime variable {n : โ„•} {X : Type u} [TopologicalSpace X] {time : X โ†’ โ„} {I : SpacetimeInterval} /-- The original carrier, indexed to retain this witness's chart instances. -/ abbrev Point (_F : GeneralizedFlowSpacetime n X time I) := X instance (F : GeneralizedFlowSpacetime n X time I) : ChartedSpace (ModelProd (EuclideanHalfSpace 1) (EuclideanSpace โ„ (Fin n))) F.Point := F.chartedSpace instance (F : GeneralizedFlowSpacetime n X time I) : IsManifold (spacetimeModel n) โˆž F.Point := F.isManifold instance (F : GeneralizedFlowSpacetime n X time I) : T2Space F.Point := F.t2Space instance (F : GeneralizedFlowSpacetime n X time I) : T3Space F.Point := F.t3Space instance (F : GeneralizedFlowSpacetime n X time I) : SecondCountableTopology F.Point := F.secondCountable /-- The unchanged, specified time map. -/ def timeFunction (F : GeneralizedFlowSpacetime n X time I) : F.Point โ†’ โ„ := time /-- The kernel fiber in this particular tangent-bundle realization. -/ noncomputable abbrev Horizontal (F : GeneralizedFlowSpacetime n X time I) (p : F.Point) : Type := spacetimeHorizontal (n := n) F.timeFunction p instance (F : GeneralizedFlowSpacetime n X time I) : TopologicalSpace (Bundle.TotalSpace (EuclideanSpace โ„ (Fin n)) F.Horizontal) := F.horizontalTopology instance (F : GeneralizedFlowSpacetime n X time I) : FiberBundle (EuclideanSpace โ„ (Fin n)) F.Horizontal := F.horizontalFiberBundle instance (F : GeneralizedFlowSpacetime n X time I) : VectorBundle โ„ (EuclideanSpace โ„ (Fin n)) F.Horizontal := F.horizontalVectorBundle instance (F : GeneralizedFlowSpacetime n X time I) : ContMDiffVectorBundle โˆž (EuclideanSpace โ„ (Fin n)) F.Horizontal (spacetimeModel n) := F.horizontalSmoothBundle /-- The selected metric with this witness's base and bundle instances explicit. -/ noncomputable abbrev horizontalMetric (F : GeneralizedFlowSpacetime n X time I) : Bundle.ContMDiffRiemannianMetric (B := F.Point) (spacetimeModel n) โˆž (EuclideanSpace โ„ (Fin n)) F.Horizontal := F.metric /-- The actual time slice; its charts and metric are separate construction outputs. -/ abbrev Slice (F : GeneralizedFlowSpacetime n X time I) (t : โ„) := spacetimeSlice F.timeFunction t end GeneralizedFlowSpacetime end PoincareMT