import PoincareLib.Geometry.Spacetime.Realization.OrdinaryProduct.Atlas import PoincareLib.Geometry.Spacetime.Realization.OrdinaryProduct.Chart.Homeomorph import PoincareLib.Geometry.Spacetime.Realization.Geometry /-! # Identity diffeomorphism between product charts and the realized atlas -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set Function open scoped Manifold ContDiff Topology open PoincareMT namespace Poincare.Spacetime.Realization variable {n : โ„•} {M : Type*} [TopologicalSpace M] [ChartedSpace (EuclideanSpace โ„ (Fin n)) M] [IsManifold (๐“ก n) โˆž M] [T2Space M] [SecondCountableTopology M] [Nonempty M] theorem ordinaryProduct_forward_smooth (g : โ„ โ†’ RiemannianMetric n M) (I : SpacetimeInterval) (hg : RiemannianMetric.IsSmoothFamilyOn g I.domain) : ContMDiff (M := (smoothInterval I).Point ร— M) (M' := (adaptedSpacetime (ordinaryAtlas g I hg)).Point) (spacetimeModel n) (spacetimeModel n) โˆž (fun p : (smoothInterval I).Point ร— M โ†ฆ (p : (adaptedSpacetime (ordinaryAtlas g I hg)).Point)) := by intro p let A := ordinaryAtlas g I hg let := intervalChartedSpace I let e := spatialChartHomeomorph (n := n) p.2 have hp : p.2 โˆˆ e.target := by rw [spatialChartHomeomorph_target] exact mem_chart_source _ p.2 have hi := (spatialChartHomeomorph_inverse_smooth p.2).contMDiffAt (e.open_target.mem_nhds hp) have hbox : ContMDiff (M := (smoothInterval I).Point ร— spatialChartDomain (n := n) p.2) (M' := (adaptedSpacetime A).Point) (spacetimeModel n) (spacetimeModel n) โˆž (fun q โ†ฆ (ordinaryBox g I hg p.2).toSpacetime q) := by let := intervalChartedSpace (A.box p.2).interval let := adaptedChartedSpace A exact (adapted_box_localDiffeomorph A p.2).contMDiff have hlocal := hbox.contMDiffAt.comp p (contMDiffAt_fst.prodMk (hi.comp p contMDiffAt_snd)) apply hlocal.congr_of_eventuallyEq filter_upwards [(e.open_target.preimage continuous_snd).mem_nhds hp] with q hq apply Prod.ext ยท rfl ยท exact (e.right_inv hq).symm theorem ordinaryProduct_inverse_smooth (g : โ„ โ†’ RiemannianMetric n M) (I : SpacetimeInterval) (hg : RiemannianMetric.IsSmoothFamilyOn g I.domain) : ContMDiff (M := (adaptedSpacetime (ordinaryAtlas g I hg)).Point) (M' := (smoothInterval I).Point ร— M) (spacetimeModel n) (spacetimeModel n) โˆž (fun p : (adaptedSpacetime (ordinaryAtlas g I hg)).Point โ†ฆ (p : (smoothInterval I).Point ร— M)) := by let A := ordinaryAtlas g I hg let := intervalChartedSpace I apply (cover_smooth_iff (J := spacetimeModel n) (L := spacetimeModel n) (N := (smoothInterval I).Point ร— M) (fun b โ†ฆ boxHomeomorph (A.box b)) (box_targets_cover A) (box_transition_smooth A) _).mpr intro b change M at b change ContMDiffOn (spacetimeModel n) (spacetimeModel n) โˆž (fun q : (smoothInterval I).Point ร— spatialChartDomain (n := n) b โ†ฆ (q.1, spatialChartInverse b q.2)) univ exact (contMDiff_fst.prodMk ((spatialChartInverse_smooth b).comp contMDiff_snd)).contMDiffOn noncomputable def ordinaryProductIdentification (g : โ„ โ†’ RiemannianMetric n M) (I : SpacetimeInterval) (hg : RiemannianMetric.IsSmoothFamilyOn g I.domain) : Diffeomorph (spacetimeModel n) (spacetimeModel n) ((smoothInterval I).Point ร— M) (adaptedSpacetime (ordinaryAtlas g I hg)).Point โˆž where toEquiv := Equiv.refl _ contMDiff_toFun := ordinaryProduct_forward_smooth g I hg contMDiff_invFun := ordinaryProduct_inverse_smooth g I hg end Poincare.Spacetime.Realization