import PoincareLib.Geometry.Manifold.RegularFiber.SliceChart /-! # The smooth manifold structure of a regular fiber The slices of adapted product charts form the actual atlas on the subtype fiber. Their transitions are smooth compositions of ambient chart maps. -/ noncomputable section set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set Function open scoped Manifold ContDiff Topology namespace Poincare.Geometry.Manifold.RegularFiber variable {m k : โ„•} {E : Type*} [NormedAddCommGroup E] [NormedSpace โ„ E] [FiniteDimensional โ„ E] [Fact (Module.finrank โ„ E = m + k)] {M : Type*} [TopologicalSpace M] [ChartedSpace E M] [IsManifold ๐“˜(โ„, E) โˆž M] {f : M โ†’ Fin k โ†’ โ„} (hf : ContMDiff ๐“˜(โ„, E) ๐“˜(โ„, Fin k โ†’ โ„) โˆž f) (c : Fin k โ†’ โ„) (hreg : โˆ€ x : M, f x = c โ†’ Surjective (mfderiv ๐“˜(โ„, E) ๐“˜(โ„, Fin k โ†’ โ„) f x)) /-- The slice chart centered at a point of the simultaneous fiber. -/ def fiberChart (z : (f โปยน' {c} : Set M)) : OpenPartialHomeomorph (f โปยน' {c} : Set M) (EuclideanSpace โ„ (Fin m)) := sliceChart f c (adaptedChart (m := m) hf z (hreg z z.2)) (fun _ hy => comp_adaptedChart_symm hf z (hreg z z.2) hy) z theorem mem_fiberChart_source (z : (f โปยน' {c} : Set M)) : z โˆˆ (fiberChart (m := m) hf c hreg z).source := mem_adaptedChart_source hf z (hreg z z.2) @[simp] theorem fiberChart_apply (z w : (f โปยน' {c} : Set M)) : fiberChart (m := m) hf c hreg z w = (adaptedChart (m := m) hf z (hreg z z.2) w).2 := rfl theorem fiberChart_symm_val (z : (f โปยน' {c} : Set M)) {y : EuclideanSpace โ„ (Fin m)} (hy : y โˆˆ (fiberChart (m := m) hf c hreg z).target) : ((fiberChart (m := m) hf c hreg z).symm y : M) = (adaptedChart (m := m) hf z (hreg z z.2)).symm (c, y) := sliceChart_symm_val f c _ _ z hy /-- The charted-space structure on an actual simultaneous regular fiber. -/ @[reducible] def fiberChartedSpace : ChartedSpace (EuclideanSpace โ„ (Fin m)) (f โปยน' {c} : Set M) where atlas := โ‹ƒ z : (f โปยน' {c} : Set M), {fiberChart (m := m) hf c hreg z} chartAt := fiberChart (m := m) hf c hreg mem_chart_source := mem_fiberChart_source hf c hreg chart_mem_atlas z := mem_iUnion.mpr โŸจz, rflโŸฉ theorem contDiffOn_fiberChart_trans (z w : (f โปยน' {c} : Set M)) : ContDiffOn โ„ โˆž ((fiberChart (m := m) hf c hreg z).symm.trans (fiberChart (m := m) hf c hreg w)) ((fiberChart (m := m) hf c hreg z).symm.trans (fiberChart (m := m) hf c hreg w)).source := by intro y hy let e := adaptedChart (m := m) hf z (hreg z z.2) let e' := adaptedChart (m := m) hf w (hreg w w.2) have hyT : (c, y) โˆˆ e.target := hy.1 have hyS : e.symm (c, y) โˆˆ e'.source := by have h := hy.2 change ((fiberChart (m := m) hf c hreg z).symm y : M) โˆˆ e'.source at h rwa [fiberChart_symm_val hf c hreg z hy.1] at h have hpair : ContMDiffAt (๐“ก m) ๐“˜(โ„, (Fin k โ†’ โ„) ร— EuclideanSpace โ„ (Fin m)) โˆž (fun v => (c, v)) y := (contDiff_const.prodMk contDiff_id).contDiffAt.contMDiffAt have hinv := (contMDiffOn_adaptedChart_symm hf z (hreg z z.2)).contMDiffAt (e.open_target.mem_nhds hyT) have hforward := (contMDiffOn_adaptedChart hf w (hreg w w.2)).contMDiffAt (e'.open_source.mem_nhds hyS) have hcomp : ContMDiffAt (๐“ก m) (๐“ก m) โˆž (fun v => (e' (e.symm (c, v))).2) y := contDiff_snd.contDiffAt.contMDiffAt.comp y (hforward.comp y (hinv.comp y hpair)) refine (contMDiffAt_iff_contDiffAt.mp hcomp).contDiffWithinAt.congr ?_ ?_ ยท intro v hv rw [OpenPartialHomeomorph.trans_apply, fiberChart_apply, fiberChart_symm_val hf c hreg z hv.1] ยท rw [OpenPartialHomeomorph.trans_apply, fiberChart_apply, fiberChart_symm_val hf c hreg z hy.1] /-- A simultaneous regular fiber is a smooth manifold of the expected dimension. -/ theorem isManifold_fiber : let := fiberChartedSpace (m := m) hf c hreg IsManifold (๐“ก m) โˆž (f โปยน' {c} : Set M) := by let := fiberChartedSpace (m := m) hf c hreg refine isManifold_of_contDiffOn (๐“ก m) โˆž (f โปยน' {c} : Set M) ?_ intro e e' he he' obtain โŸจz, hzโŸฉ := mem_iUnion.mp he obtain โŸจw, hwโŸฉ := mem_iUnion.mp he' rw [mem_singleton_iff] at hz hw subst e e' simp only [modelWithCornersSelf_coe, modelWithCornersSelf_coe_symm, Set.range_id, Set.inter_univ, Set.preimage_id, Function.comp_def, id_eq] exact contDiffOn_fiberChart_trans hf c hreg z w end Poincare.Geometry.Manifold.RegularFiber