import PoincareLib.Geometry.Manifold.RegularFiber.OpenSubset import PoincareLib.Geometry.Manifold.RegularLevel.UniversalProperty /-! # Smooth maps into simultaneous regular fibers The constructed fiber atlas has the expected universal property: a map is smooth precisely when its composition with the ambient inclusion is smooth. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set Function TopologicalSpace 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] {E' : Type*} [NormedAddCommGroup E'] [NormedSpace ℝ E'] {H' : Type*} [TopologicalSpace H'] {J : ModelWithCorners ℝ E' H'} {N : Type*} [TopologicalSpace N] [ChartedSpace H' N] {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)) /-- Smoothness into the actual fiber is detected by its ambient inclusion. -/ theorem contMDiffAt_into_fiber_iff (F : N β†’ (f ⁻¹' {c} : Set M)) (x : N) : let := fiberChartedSpace (m := m) hf c hreg ContMDiffAt J (𝓑 m) ∞ F x ↔ ContMDiffAt J π“˜(ℝ, E) ∞ (fun y => (F y : M)) x := by let := fiberChartedSpace (m := m) hf c hreg constructor Β· intro hF exact (contMDiff_fiber_val hf c hreg (F x)).comp x hF Β· intro hF rw [contMDiffAt_iff_target] refine ⟨Topology.IsInducing.subtypeVal.continuousAt_iff.mpr hF.continuousAt, ?_⟩ have hc := (contMDiffOn_adaptedChart (m := m) hf (F x) (hreg (F x) (F x).2)).contMDiffAt ((adaptedChart (m := m) hf (F x) (hreg (F x) (F x).2)).open_source.mem_nhds (mem_adaptedChart_source hf (F x) (hreg (F x) (F x).2))) have hproj := contDiff_snd.contDiffAt.contMDiffAt.comp x (hc.comp x hF) convert! hproj using 1 /-- The same universal property holds for simultaneous fibers in an open region. -/ theorem contMDiffAt_into_openFiber_iff (U : Opens M) (hregU : βˆ€ x ∈ U, Surjective (mfderiv π“˜(ℝ, E) π“˜(ℝ, Fin k β†’ ℝ) f x)) (F : N β†’ openFiber f U c) (x : N) : let := openFiberChartedSpace (m := m) hf U hregU c ContMDiffAt J (𝓑 m) ∞ F x ↔ ContMDiffAt J π“˜(ℝ, E) ∞ (openFiberIncl f U c ∘ F) x := by let := openFiberChartedSpace (m := m) hf U hregU c have h := contMDiffAt_into_fiber_iff (m := m) (J := J) (hf.comp contMDiff_subtype_val) c (fun y _ => openFiberRestrict_regular hf U hregU y) F x exact h.trans (ContMDiffAt.subtypeVal_comp_iff U (fun y => (F y : U)) x).symm /-- Smoothness into an open regular fiber on an open source domain. -/ theorem contMDiffOn_into_openFiber_iff (U : Opens M) (hregU : βˆ€ x ∈ U, Surjective (mfderiv π“˜(ℝ, E) π“˜(ℝ, Fin k β†’ ℝ) f x)) (F : N β†’ openFiber f U c) {V : Set N} (hV : IsOpen V) : let := openFiberChartedSpace (m := m) hf U hregU c ContMDiffOn J (𝓑 m) ∞ F V ↔ ContMDiffOn J π“˜(ℝ, E) ∞ (openFiberIncl f U c ∘ F) V := by let := openFiberChartedSpace (m := m) hf U hregU c constructor Β· intro hF x hx exact ((contMDiffAt_into_openFiber_iff hf c U hregU F x).mp ((hF x hx).contMDiffAt (hV.mem_nhds hx))).contMDiffWithinAt Β· intro hF x hx exact ((contMDiffAt_into_openFiber_iff hf c U hregU F x).mpr ((hF x hx).contMDiffAt (hV.mem_nhds hx))).contMDiffWithinAt end Poincare.Geometry.Manifold.RegularFiber