import PoincareLib.Geometry.RicciFlow.Spacetime.Product.Charts import Mathlib.Geometry.Manifold.ContMDiffMFDeriv import Mathlib.Geometry.Manifold.VectorField.Pullback /-! # The actual horizontal and time directions in spacetime The differential split gives the smooth time field and transports spatial fields on the genuine product. The metric formula gives their pairings. These are the horizontal/vertical conventions in MT2015Correction p. 2, before equations (0.1)-(0.2). -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Bundle Manifold Set Topology open scoped Manifold ContDiff Bundle noncomputable section namespace PoincareMT.M62 variable {n : β„•} {M : Type*} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] {a b : ℝ} namespace SpacetimeCharts /-- The actual spatial projection is smooth; MT2015Correction p. 2. -/ theorem contMDiff_space (C : SpacetimeCharts n M a b) : ContMDiff (𝓑 (n + 1)) (𝓑 n) ∞ (fun q : C.Point => q.1) := by let := C.chartedSpace exact contMDiff_fst.comp C.to_product_smooth /-- The actual open-time clock is smooth; MT2015Correction p. 2. -/ theorem contMDiff_clock (C : SpacetimeCharts n M a b) : ContMDiff (𝓑 (n + 1)) π“˜(ℝ, ℝ) ∞ (fun q : C.Point => (q.2 : ℝ)) := by let := C.chartedSpace exact (contMDiff_subtype_val.comp contMDiff_snd).comp C.to_product_smooth /-- The reverse identity differential is the inverse of the genuine split; MT2015Correction p. 2, the actual horizontal/vertical decomposition. -/ theorem split_mfderiv_from_product (C : SpacetimeCharts n M a b) (q : C.Point) (V : TangentSpace ((𝓑 n).prod π“˜(ℝ, ℝ)) q) : C.split q (mfderiv (M' := C.Point) ((𝓑 n).prod π“˜(ℝ, ℝ)) (𝓑 (n + 1)) (id : SpacetimeCarrier M a b β†’ C.Point) q V) = (V.1, V.2) := by let := C.chartedSpace apply Prod.ext Β· rw [C.split_space] have h := mfderiv_comp_apply (f := (id : SpacetimeCarrier M a b β†’ C.Point)) (g := (Prod.fst : C.Point β†’ M)) q (C.contMDiff_space.mdifferentiableAt (by simp)) (C.from_product_smooth.mdifferentiableAt (by simp)) V simpa +instances only [Function.comp_def, id_eq, mfderiv_fst, ContinuousLinearMap.coe_fst'] using! h.symm Β· rw [C.split_time] have h := mfderiv_comp_apply (f := (id : SpacetimeCarrier M a b β†’ C.Point)) (g := fun p : C.Point => (p.2 : ℝ)) q (C.contMDiff_clock.mdifferentiableAt (by simp)) (C.from_product_smooth.mdifferentiableAt (by simp)) V have ht := mfderiv_comp_apply (I := (𝓑 n).prod π“˜(ℝ, ℝ)) (I' := π“˜(ℝ, ℝ)) (I'' := π“˜(ℝ, ℝ)) (f := (Prod.snd : SpacetimeCarrier M a b β†’ OpenTime a b)) (g := (Subtype.val : OpenTime a b β†’ ℝ)) q (contMDiff_subtype_val.mdifferentiableAt (n := ∞) (by simp)) mdifferentiableAt_snd V rw [Poincare.Spacetime.Realization.mfderiv_openSubtype_val, mfderiv_snd] at ht exact h.symm.trans ht /-- The actual unit time vector is smooth on open spacetime; MT2015Correction p. 2, the vertical direction preceding (0.1)-(0.2). -/ theorem timeVector_smooth (C : SpacetimeCharts n M a b) : C.IsSmoothField C.timeVector := by let := C.chartedSpace have hreal : ContMDiff π“˜(ℝ, ℝ) (π“˜(ℝ, ℝ)).tangent ∞ (fun t : ℝ => (⟨t, 1⟩ : TangentBundle π“˜(ℝ, ℝ) ℝ)) := contMDiff_vectorSpace_iff_contDiff.mpr contDiff_const have hinc : ContMDiff π“˜(ℝ, ℝ) π“˜(ℝ, ℝ) ∞ (Subtype.val : OpenTime a b β†’ ℝ) := contMDiff_subtype_val have hinv (t : OpenTime a b) : (mfderiv π“˜(ℝ, ℝ) π“˜(ℝ, ℝ) (Subtype.val : OpenTime a b β†’ ℝ) t).IsInvertible := by rw [Poincare.Spacetime.Realization.mfderiv_openSubtype_val] exact ⟨ContinuousLinearEquiv.refl ℝ ℝ, rfl⟩ have hunit : ContMDiff π“˜(ℝ, ℝ) (π“˜(ℝ, ℝ)).tangent ∞ (fun t : OpenTime a b => (⟨t, (1 : ℝ)⟩ : TangentBundle π“˜(ℝ, ℝ) (OpenTime a b))) := by have h := hreal.mpullback_vectorField hinc hinv (by simp) apply h.congr intro t dsimp only [VectorField.mpullback] rw [Poincare.Spacetime.Realization.mfderiv_openSubtype_val] congr 1 change (1 : ℝ) = (ContinuousLinearMap.id ℝ ℝ).inverse 1 simp have hzero : ContMDiff ((𝓑 n).prod π“˜(ℝ, ℝ)) ((𝓑 n).prod π“˜(ℝ, EuclideanSpace ℝ (Fin n))) ∞ (fun q : SpacetimeCarrier M a b => (⟨q.1, 0⟩ : TangentBundle (𝓑 n) M)) := (contMDiff_zeroSection ℝ (TangentSpace (𝓑 n) : M β†’ Type _)).comp contMDiff_fst have hprod : ContMDiff ((𝓑 n).prod π“˜(ℝ, ℝ)) ((𝓑 n).prod π“˜(ℝ, ℝ)).tangent ∞ (fun q : SpacetimeCarrier M a b => (⟨q, (0, 1)⟩ : TangentBundle ((𝓑 n).prod π“˜(ℝ, ℝ)) (SpacetimeCarrier M a b))) := contMDiff_equivTangentBundleProd_symm.comp (hzero.prodMk (hunit.comp contMDiff_snd)) have h := ((C.from_product_smooth.contMDiff_tangentMap (m := ∞) (by simp)).comp hprod).comp C.to_product_smooth apply h.congr intro q dsimp only [Function.comp_apply, id_eq, tangentMap] rw [TotalSpace.mk_inj] apply (C.split q).injective erw [C.split_mfderiv_from_product] exact (C.split q).apply_symm_apply (0, 1) /-- Smooth horizontal lifts are exactly smooth spatial fields on the actual open product; MT2015Correction p. 2, before (0.1). -/ theorem liftSpatialField_smooth_iff (C : SpacetimeCharts n M a b) (B : ℝ β†’ (p : M) β†’ TangentSpace (𝓑 n) p) : C.IsSmoothField (C.liftSpatialField B) ↔ ContMDiff ((𝓑 n).prod π“˜(ℝ, ℝ)) ((𝓑 n).prod π“˜(ℝ, EuclideanSpace ℝ (Fin n))) ∞ (fun q : SpacetimeCarrier M a b => (⟨q.1, B q.2 q.1⟩ : TangentBundle (𝓑 n) M)) := by let := C.chartedSpace constructor Β· intro hB have h := ((C.contMDiff_space.contMDiff_tangentMap (m := ∞) (by simp)).comp hB).comp C.from_product_smooth apply h.congr intro q dsimp only [Function.comp_apply, id_eq, tangentMap] rw [TotalSpace.mk_inj] symm change mfderiv (𝓑 (n + 1)) (𝓑 n) (Prod.fst : C.Point β†’ M) q (C.horizontal q (B q.2 q.1)) = B q.2 q.1 rw [← C.split_space] exact congrArg Prod.fst ((C.split q).apply_symm_apply (B q.2 q.1, 0)) Β· intro hB have hzero : ContMDiff ((𝓑 n).prod π“˜(ℝ, ℝ)) (π“˜(ℝ, ℝ)).tangent ∞ (fun q : SpacetimeCarrier M a b => (⟨q.2, 0⟩ : TangentBundle π“˜(ℝ, ℝ) (OpenTime a b))) := (contMDiff_zeroSection ℝ (TangentSpace π“˜(ℝ, ℝ) : OpenTime a b β†’ Type _)).comp contMDiff_snd have hprod : ContMDiff ((𝓑 n).prod π“˜(ℝ, ℝ)) ((𝓑 n).prod π“˜(ℝ, ℝ)).tangent ∞ (fun q : SpacetimeCarrier M a b => (⟨q, (B q.2 q.1, 0)⟩ : TangentBundle ((𝓑 n).prod π“˜(ℝ, ℝ)) (SpacetimeCarrier M a b))) := contMDiff_equivTangentBundleProd_symm.comp (hB.prodMk hzero) have h := ((C.from_product_smooth.contMDiff_tangentMap (m := ∞) (by simp)).comp hprod).comp C.to_product_smooth apply h.congr intro q dsimp only [Function.comp_apply, id_eq, tangentMap] rw [TotalSpace.mk_inj] apply (C.split q).injective erw [C.split_mfderiv_from_product] exact (C.split q).apply_symm_apply (B q.2 q.1, 0) /-- Every vector is its horizontal part plus its clock component times the time field; MT2015Correction p. 2, horizontal/vertical decomposition. -/ theorem horizontal_time_decomposition (C : SpacetimeCharts n M a b) (q : C.Point) (V : TangentSpace (𝓑 (n + 1)) q) : C.horizontal q (C.split q V).1 + (C.split q V).2 β€’ C.timeVector q = V := by apply (C.split q).injective simp [horizontal, timeVector] end SpacetimeCharts namespace SpacetimeData /-- The horizontal metric is the actual flow metric; MT2015Correction p. 2. -/ theorem inner_horizontal {F : RicciFlow n M (Set.Icc a b)} (G : SpacetimeData F) (q : G.charts.Point) (V W : TangentSpace (𝓑 n) q.1) : G.metric.inner q (G.charts.horizontal q V) (G.charts.horizontal q W) = (F.metric q.2).inner q.1 V W := by simp [G.metric_eq, SpacetimeCharts.horizontal] /-- Pairing with time extracts the actual clock component; MT2015Correction p. 2, the orthogonal metric g(t) + dt^2. -/ theorem inner_time {F : RicciFlow n M (Set.Icc a b)} (G : SpacetimeData F) (q : G.charts.Point) (V : TangentSpace (𝓑 (n + 1)) q) : G.metric.inner q V (G.charts.timeVector q) = (G.charts.split q V).2 := by simp [G.metric_eq, SpacetimeCharts.timeVector] /-- The actual time vector has unit length; MT2015Correction p. 2. -/ theorem time_unit {F : RicciFlow n M (Set.Icc a b)} (G : SpacetimeData F) (q : G.charts.Point) : G.metric.inner q (G.charts.timeVector q) (G.charts.timeVector q) = 1 := by rw [G.inner_time] simp [SpacetimeCharts.timeVector] end SpacetimeData end PoincareMT.M62