import PoincareLib.Geometry.Spacetime.Atlas import Mathlib.Geometry.Manifold.Instances.Icc import Mathlib.Geometry.Manifold.IsManifold.InteriorBoundary /-! Ported from Mapher06/Poincare-MorganTian, `PoincareMT/Definitions/M11TimeInterval.lean`, revision `b2c3c64781fee22edfd683a224d4f8d280e2e9ce`. Declaration bodies are unchanged; only imports and module placement differ. See `references/ricci-flow/mapher/spacetime-port.json`. -/ /-! # Smooth time intervals These are construction outputs of M11 on the exact interval subtype. The positive time tangent is defined by the actual differential of its inclusion in the real line; at a right boundary it is not the positive chart coordinate. No interval atlas or inverse differential is constructed by an admission here. -/ set_option autoImplicit false open scoped Manifold ContDiff Bundle Topology namespace PoincareMT /-- Smooth interval data with the standard inclusion and exact endpoint boundary. -/ structure SmoothSpacetimeInterval (I : SpacetimeInterval) where chartedSpace : ChartedSpace (EuclideanHalfSpace 1) I.domain isManifold : IsManifold (π“‘βˆ‚ 1) ∞ I.domain inclusion_smooth : ContMDiff (π“‘βˆ‚ 1) π“˜(ℝ) ∞ (Subtype.val : I.domain β†’ ℝ) boundary_eq : (π“‘βˆ‚ 1).boundary I.domain = {t : I.domain | (t : ℝ) ∈ frontier I.domain} inclusionDerivative : βˆ€ t : I.domain, TangentSpace (π“‘βˆ‚ 1) t ≃L[ℝ] ℝ inclusionDerivative_eq : βˆ€ t, (inclusionDerivative t).toContinuousLinearMap = mfderiv (π“‘βˆ‚ 1) π“˜(ℝ) (Subtype.val : I.domain β†’ ℝ) t positive_tangent_smooth : ContMDiff (π“‘βˆ‚ 1) ((π“‘βˆ‚ 1).prod π“˜(ℝ, EuclideanSpace ℝ (Fin 1))) ∞ (fun t : I.domain ↦ Bundle.TotalSpace.mk' (EuclideanSpace ℝ (Fin 1)) (E := (TangentSpace (π“‘βˆ‚ 1) : I.domain β†’ Type _)) t ((inclusionDerivative t).symm 1)) namespace SmoothSpacetimeInterval variable {I : SpacetimeInterval} /-- The exact interval subtype, with this realization's chart instances. -/ abbrev Point (_D : SmoothSpacetimeInterval I) := I.domain instance (D : SmoothSpacetimeInterval I) : ChartedSpace (EuclideanHalfSpace 1) D.Point := D.chartedSpace instance (D : SmoothSpacetimeInterval I) : IsManifold (π“‘βˆ‚ 1) ∞ D.Point := D.isManifold /-- The tangent normalized by the actual time inclusion. -/ noncomputable def positiveTangent (D : SmoothSpacetimeInterval I) (t : D.Point) : TangentSpace (π“‘βˆ‚ 1) t := (D.inclusionDerivative t).symm 1 end SmoothSpacetimeInterval /-- The actual inclusion between two interval subtypes, with their selected charts. -/ def spacetimeIntervalInclusion {I J : SpacetimeInterval} (D : SmoothSpacetimeInterval I) (E : SmoothSpacetimeInterval J) (h : I.domain βŠ† J.domain) : D.Point β†’ E.Point := fun t ↦ ⟨t.val, h t.property⟩ /-- Coherent interval realizations and actual restriction differentials. This whole family is an M11 construction output, not raw atlas input. -/ structure SpacetimeIntervalSystem where interval : βˆ€ I : SpacetimeInterval, SmoothSpacetimeInterval I inclusion_smooth : βˆ€ I J (h : I.domain βŠ† J.domain), ContMDiff (π“‘βˆ‚ 1) (π“‘βˆ‚ 1) ∞ (spacetimeIntervalInclusion (interval I) (interval J) h) inclusion_derivative : βˆ€ I J (h : I.domain βŠ† J.domain) (t : (interval I).Point), mfderiv (π“‘βˆ‚ 1) (π“‘βˆ‚ 1) (spacetimeIntervalInclusion (interval I) (interval J) h) t ((interval I).positiveTangent t) = (interval J).positiveTangent (spacetimeIntervalInclusion (interval I) (interval J) h t) end PoincareMT