import PoincareLib.Geometry.RicciFlow.Spacetime.Product.Frame import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Variation.Fields.ChartVectorField /-! # Commuting local product fields on actual spacetime Lift the spatial coordinate fields and adjoin the actual time direction. These are the local coordinate fields of MT2015Correction p. 2, used in the Christoffel calculations before (0.1)-(0.2). Their bracket vanishes only on the actual chart source. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Bundle Manifold Set Topology Filter open scoped Manifold ContDiff Bundle noncomputable section namespace PoincareMT.M62.SpacetimeCharts variable {n : โ„•} {M : Type*} [TopologicalSpace M] [ChartedSpace (EuclideanSpace โ„ (Fin n)) M] [IsManifold (๐“ก n) โˆž M] {a b : โ„} /-- A spatial chart direction and a fixed time component, as in the actual product coordinates of MT2015Correction p. 2. -/ def productChartField (C : SpacetimeCharts n M a b) (p : M) (v : EuclideanSpace โ„ (Fin n)) (r : โ„) (q : C.Point) : TangentSpace (๐“ก (n + 1)) q := C.horizontal q (PoincareMT.ReducedLengthMinimum.Variation.Geometry.chartVectorField p v q.1) + r โ€ข C.timeVector q /-- The exact components of the local product field; MT2015Correction p. 2. -/ theorem productChartField_split (C : SpacetimeCharts n M a b) (p : M) (v : EuclideanSpace โ„ (Fin n)) (r : โ„) (q : C.Point) : C.split q (C.productChartField p v r q) = (PoincareMT.ReducedLengthMinimum.Variation.Geometry.chartVectorField p v q.1, r) := by simp [productChartField, horizontal, timeVector] /-- The local product field is the actual pullback of a constant coordinate field on its chart source; MT2015Correction p. 2, before (0.1)-(0.2). -/ theorem productChartField_eq_mpullback (C : SpacetimeCharts n M a b) (p : M) (v : EuclideanSpace โ„ (Fin n)) (r : โ„) (q : C.Point) (hq : q.1 โˆˆ (chartAt (EuclideanSpace โ„ (Fin n)) p).source) : C.productChartField p v r q = VectorField.mpullback (๐“ก (n + 1)) ๐“˜(โ„, EuclideanSpace โ„ (Fin n) ร— โ„) (fun z : C.Point => ((chartAt (EuclideanSpace โ„ (Fin n)) p) z.1, (z.2 : โ„))) (fun _ => (v, r)) q := by let := C.chartedSpace let E := EuclideanSpace โ„ (Fin n) let psi : C.Point โ†’ E ร— โ„ := fun z => ((chartAt E p) z.1, (z.2 : โ„)) have hc : ContMDiffAt (๐“ก n) (๐“ก n) โˆž (chartAt E p) q.1 := contMDiffOn_chart.contMDiffAt ((chartAt E p).open_source.mem_nhds hq) have hpsi : ContMDiffAt (๐“ก (n + 1)) ๐“˜(โ„, E ร— โ„) โˆž psi q := (hc.comp q (C.contMDiff_space q)).prodMk_space (C.contMDiff_clock q) let L := (mdifferentiable_chart (I := ๐“ก n) p).mfderiv hq let D : TangentSpace (๐“ก (n + 1)) q โ‰ƒL[โ„] E ร— โ„ := (C.split q).trans (L.prodCongr (ContinuousLinearEquiv.refl โ„ โ„)) have hD : mfderiv (๐“ก (n + 1)) ๐“˜(โ„, E ร— โ„) psi q = D.toContinuousLinearMap := by ext V apply Prod.ext ยท have hfst : MDifferentiableAt ๐“˜(โ„, E ร— โ„) (๐“ก n) (Prod.fst : E ร— โ„ โ†’ E) (psi q) := differentiableAt_fst.mdifferentiableAt have h := mfderiv_comp_apply (f := psi) (g := (Prod.fst : E ร— โ„ โ†’ E)) q hfst (hpsi.mdifferentiableAt (by simp)) V have hsp := mfderiv_comp_apply (f := fun z : C.Point => z.1) (g := chartAt E p) q (hc.mdifferentiableAt (by simp)) (C.contMDiff_space.mdifferentiableAt (by simp)) V have hfst' : (mfderiv (๐“ก (n + 1)) ๐“˜(โ„, E ร— โ„) psi q V).1 = mfderiv (๐“ก (n + 1)) (๐“ก n) (fun z : C.Point => (chartAt E p) z.1) q V := by simpa +instances only [mfderiv_eq_fderiv, fderiv_fst, ContinuousLinearMap.coe_fst', Function.comp_def, psi] using! h.symm rw [hfst'] change _ = mfderiv (๐“ก n) (๐“ก n) (chartAt E p) q.1 (C.split q V).1 rw [C.split_space] exact hsp ยท have hsnd : MDifferentiableAt ๐“˜(โ„, E ร— โ„) ๐“˜(โ„, โ„) (Prod.snd : E ร— โ„ โ†’ โ„) (psi q) := differentiableAt_snd.mdifferentiableAt have h := mfderiv_comp_apply (f := psi) (g := (Prod.snd : E ร— โ„ โ†’ โ„)) q hsnd (hpsi.mdifferentiableAt (by simp)) V change (mfderiv (๐“ก (n + 1)) ๐“˜(โ„, E ร— โ„) psi q V).2 = (C.split q V).2 rw [C.split_time] simpa +instances only [mfderiv_eq_fderiv, fderiv_snd, ContinuousLinearMap.coe_snd', Function.comp_def, psi] using! h.symm change C.productChartField p v r q = (mfderiv (๐“ก (n + 1)) ๐“˜(โ„, E ร— โ„) psi q).inverse (v, r) rw [hD, ContinuousLinearMap.inverse_equiv] apply D.injective erw [D.apply_symm_apply] change (L (C.split q (C.productChartField p v r q)).1, (C.split q (C.productChartField p v r q)).2) = (v, r) rw [C.productChartField_split] have hi : (mfderiv (๐“ก n) (๐“ก n) (chartAt E p) q.1).IsInvertible := โŸจL, rflโŸฉ change ((mfderiv (๐“ก n) (๐“ก n) (chartAt E p) q.1) ((mfderiv (๐“ก n) (๐“ก n) (chartAt E p) q.1).inverse v), r) = (v, r) rw [hi.self_apply_inverse] /-- The actual product coordinate field is smooth on its open chart source; MT2015Correction p. 2, the coordinate fields preceding (0.1)-(0.2). -/ theorem productChartField_contMDiffOn (C : SpacetimeCharts n M a b) (p : M) (v : EuclideanSpace โ„ (Fin n)) (r : โ„) : ContMDiffOn (๐“ก (n + 1)) (๐“ก (n + 1)).tangent โˆž (fun q : C.Point => (โŸจq, C.productChartField p v r qโŸฉ : TangentBundle (๐“ก (n + 1)) C.Point)) {q : C.Point | q.1 โˆˆ (chartAt (EuclideanSpace โ„ (Fin n)) p).source} := by let := C.chartedSpace intro q hq let B := PoincareMT.ReducedLengthMinimum.Variation.Geometry.chartVectorField p v have hB : ContMDiffAt (๐“ก n) (๐“ก n).tangent โˆž (T% B) q.1 := (PoincareMT.ReducedLengthMinimum.Variation.Geometry.chartVectorField_smooth p v).contMDiffAt ((chartAt (EuclideanSpace โ„ (Fin n)) p).open_source.mem_nhds hq) have hzero : ContMDiff ((๐“ก n).prod ๐“˜(โ„, โ„)) (๐“˜(โ„, โ„)).tangent โˆž (fun z : SpacetimeCarrier M a b => (โŸจz.2, 0โŸฉ : TangentBundle ๐“˜(โ„, โ„) (OpenTime a b))) := (contMDiff_zeroSection โ„ (TangentSpace ๐“˜(โ„, โ„) : OpenTime a b โ†’ Type _)).comp contMDiff_snd have hprod : ContMDiffAt ((๐“ก n).prod ๐“˜(โ„, โ„)) ((๐“ก n).prod ๐“˜(โ„, โ„)).tangent โˆž (fun z : SpacetimeCarrier M a b => (โŸจz, (B z.1, 0)โŸฉ : TangentBundle ((๐“ก n).prod ๐“˜(โ„, โ„)) (SpacetimeCarrier M a b))) q := contMDiff_equivTangentBundleProd_symm.contMDiffAt.comp q ((hB.comp q contMDiffAt_fst).prodMk (hzero q)) have h := ((C.from_product_smooth.contMDiff_tangentMap (m := โˆž) (by simp)).contMDiffAt.comp q hprod).comp q (C.to_product_smooth q) have hH : ContMDiffAt (๐“ก (n + 1)) (๐“ก (n + 1)).tangent โˆž (fun z : C.Point => (โŸจz, C.horizontal z (B z.1)โŸฉ : TangentBundle (๐“ก (n + 1)) C.Point)) q := by apply h.congr_of_eventuallyEq filter_upwards [] with z dsimp only [Function.comp_apply, id_eq, tangentMap] rw [TotalSpace.mk_inj] apply (C.split z).injective erw [C.split_mfderiv_from_product] exact (C.split z).apply_symm_apply (B z.1, 0) exact (hH.add_section ((C.timeVector_smooth q).const_smul_section (a := r))).contMDiffWithinAt /-- The actual local product coordinate fields commute on their chart source; MT2015Correction p. 2, the Christoffel calculation. -/ theorem productChartField_bracket (C : SpacetimeCharts n M a b) (p : M) (v w : EuclideanSpace โ„ (Fin n)) (r s : โ„) (q : C.Point) (hq : q.1 โˆˆ (chartAt (EuclideanSpace โ„ (Fin n)) p).source) : VectorField.mlieBracket (๐“ก (n + 1)) (C.productChartField p v r) (C.productChartField p w s) q = 0 := by let := C.chartedSpace let E := EuclideanSpace โ„ (Fin n) let psi : C.Point โ†’ E ร— โ„ := fun z => ((chartAt E p) z.1, (z.2 : โ„)) have hc : ContMDiffAt (๐“ก n) (๐“ก n) โˆž (chartAt E p) q.1 := contMDiffOn_chart.contMDiffAt ((chartAt E p).open_source.mem_nhds hq) have hpsi : ContMDiffAt (๐“ก (n + 1)) ๐“˜(โ„, E ร— โ„) โˆž psi q := (hc.comp q (C.contMDiff_space q)).prodMk_space (C.contMDiff_clock q) have horder : minSmoothness โ„ 2 โ‰ค (โˆž : โ„•โˆžฯ‰) := by rw [minSmoothness_of_isRCLikeNormedField] exact ENat.natCast_le_of_coe_top_le_withTop le_rfl 2 let : IsManifold (๐“ก (n + 1)) (minSmoothness โ„ 2) C.Point := IsManifold.of_le (n := โˆž) horder have hconst (u : E ร— โ„) : ContMDiff ๐“˜(โ„, E ร— โ„) (๐“˜(โ„, E ร— โ„)).tangent โˆž (fun z : E ร— โ„ => (โŸจz, uโŸฉ : TangentBundle ๐“˜(โ„, E ร— โ„) (E ร— โ„))) := contMDiff_vectorSpace_iff_contDiff.mpr contDiff_const have h := VectorField.mpullback_mlieBracket ((hconst (v, r) (psi q)).mdifferentiableAt (by simp)) ((hconst (w, s) (psi q)).mdifferentiableAt (by simp)) hpsi horder have hz : VectorField.mlieBracket ๐“˜(โ„, E ร— โ„) (fun _ : E ร— โ„ => (v, r)) (fun _ : E ร— โ„ => (w, s)) = 0 := by change VectorField.mlieBracketWithin ๐“˜(โ„, E ร— โ„) (fun _ : E ร— โ„ => (v, r)) (fun _ : E ร— โ„ => (w, s)) univ = 0 rw [VectorField.mlieBracketWithin_eq_lieBracketWithin] ext z <;> simp [VectorField.lieBracketWithin] have hnear : โˆ€แถ  z : C.Point in ๐“ q, z.1 โˆˆ (chartAt E p).source := C.contMDiff_space.continuous.continuousAt ((chartAt E p).open_source.mem_nhds hq) have heq (u : E) (t : โ„) : C.productChartField p u t =แถ [๐“ q] VectorField.mpullback (๐“ก (n + 1)) ๐“˜(โ„, E ร— โ„) psi (fun _ => (u, t)) := by filter_upwards [hnear] with z hz exact C.productChartField_eq_mpullback p u t z hz rw [(heq v r).mlieBracket_vectorField_eq (heq w s), โ† h, hz, VectorField.mpullback_zero] rfl end PoincareMT.M62.SpacetimeCharts