import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Terminal.Curvature.TerminalCurvaturePartialInverse /-! # The unchanged atlas map in an actual ordinary source Actual compact capture allows composition with the real terminal source inverse. The full original atlas map and its exhaustion domain are kept. MT Theorem 5.11; terminal-regular-atlas-inverse.md, F2. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set open scoped Manifold ContDiff Topology universe u v w namespace PoincareMT.M47 local notation "E" => EuclideanSpace ℝ (Fin 3) /-- The captured original atlas embedding factors through the actual source inverse, retaining its full map and literal exhaustion domain. -/ theorem terminalSource_atlas_actual_inverse {X : Type u} {Y : Type v} {M : Type w} [TopologicalSpace X] [TopologicalSpace Y] [TopologicalSpace M] [ChartedSpace E X] [ChartedSpace E Y] [ChartedSpace E M] [IsManifold (𝓑 3) ∞ X] [IsManifold (𝓑 3) ∞ Y] [IsManifold (𝓑 3) ∞ M] [Nonempty X] (j : PartialDiffeomorph (𝓑 3) (𝓑 3) Y M ∞) (hj : j.source = univ) {V : Set X} (hV : IsOpen V) (f : X β†’ M) (hembed : Topology.IsOpenEmbedding (fun x : V => f x)) (hsmooth : IsLocalDiffeomorphOn (𝓑 3) (𝓑 3) ∞ f V) (hcapture : MapsTo f V j.target) : βˆƒ phi : PartialDiffeomorph (𝓑 3) (𝓑 3) X Y ∞, (phi : X β†’ Y) = j.symm ∘ f ∧ phi.source = V ∧ (βˆ€ x ∈ V, j (phi x) = f x) ∧ βˆ€ p ∈ V, βˆ€ y0 : Y, f p = j y0 β†’ phi p = y0 := by obtain ⟨q, hq, hsource, _htarget⟩ := terminalCurvature_exists_actual_partial_inverse hV hembed hsmooth let phi := q.trans j.symm have hphi : (phi : X β†’ Y) = j.symm ∘ f := by change j.symm ∘ (q : X β†’ M) = j.symm ∘ f rw [hq] have hdomain : phi.source = V := by ext x change (x ∈ q.source ∧ q x ∈ j.target) ↔ x ∈ V rw [hsource, hq] exact ⟨And.left, fun hx => ⟨hx, hcapture hx⟩⟩ refine ⟨phi, hphi, hdomain, ?_, ?_⟩ Β· intro x hx rw [hphi] exact j.right_inv (hcapture hx) Β· intro p _hp y0 heq rw [hphi] change j.symm (f p) = y0 rw [heq] exact j.left_inv (hj.symm β–Έ mem_univ y0) end PoincareMT.M47