import PoincareLib.Geometry.RicciFlow.Surgery.Comparison.Smoothing.Charts.Distance import PoincareLib.Geometry.RicciFlow.Surgery.Comparison.Distance.LocalSmoothLipschitz import PoincareLib.Geometry.RicciFlow.Surgery.Comparison.Smoothing.Local.FiniteControls import Mathlib.Topology.Compactness.LocallyCompact /-! # Estimating neighborhoods for one fixed chart convolution Normalize the fixed source and target charts at each point of the compact smoothing support. Small compact neighborhoods then carry near-unit forward and inverse chart estimates and a finite cutoff Lipschitz bound. The charts being convolved do not change when these estimating neighborhoods are shrunk. This implements the local metric step of the SurgeryComparison.Transport full contract, Morgan--Tian Claim 18.22, printed p. 433. -/ set_option autoImplicit false open Bundle Set Filter Metric open scoped Topology Manifold ContDiff NNReal namespace PoincareMT.SurgeryComparison.Transport variable {E F M N : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] [FiniteDimensional ℝ F] [MetricSpace M] [ChartedSpace E M] [IsManifold π“˜(ℝ, E) ∞ M] [LocallyCompactSpace M] [RiemannianBundle (TangentSpace π“˜(ℝ, E) : M β†’ Type _)] [IsContinuousRiemannianBundle E (TangentSpace π“˜(ℝ, E) : M β†’ Type _)] [IsRiemannianManifold π“˜(ℝ, E) M] [MetricSpace N] [ChartedSpace F N] [IsManifold π“˜(ℝ, F) ∞ N] [RiemannianBundle (TangentSpace π“˜(ℝ, F) : N β†’ Type _)] [IsContinuousRiemannianBundle F (TangentSpace π“˜(ℝ, F) : N β†’ Type _)] [IsRiemannianManifold π“˜(ℝ, F) N] /-- Around a point in a fixed chart patch, choose a compact estimating neighborhood and affine normalizations of those same charts. Both chart directions cost at most the prescribed `C > 1`; the cutoff has a finite local bound. SurgeryComparison.Transport quantitative smoothing, Claim 18.22, p. 433. -/ theorem exists_chart_smoothing_estimate_neighborhood (e : OpenPartialHomeomorph M E) (h : OpenPartialHomeomorph N F) (he : e.MDifferentiable π“˜(ℝ, E) π“˜(ℝ, E)) (hh : h.MDifferentiable π“˜(ℝ, F) π“˜(ℝ, F)) (hes : ContMDiffOn π“˜(ℝ, E) π“˜(ℝ, E) ∞ e e.source) (hei : ContMDiffOn π“˜(ℝ, E) π“˜(ℝ, E) ∞ e.symm e.target) (hhs : ContMDiffOn π“˜(ℝ, F) π“˜(ℝ, F) ∞ h h.source) (hhi : ContMDiffOn π“˜(ℝ, F) π“˜(ℝ, F) ∞ h.symm h.target) {f : M β†’ N} (hf : Continuous f) {ρ : M β†’ ℝ} (hρ : ContMDiff π“˜(ℝ, E) π“˜(ℝ) ∞ ρ) {U : Set M} (hU : IsOpen U) (hUe : U βŠ† e.source) (hfU : MapsTo f U h.source) {x : M} (hx : x ∈ U) {C : ℝβ‰₯0} (hC : 1 < C) : βˆƒ (A : E ≃L[ℝ] TangentSpace π“˜(ℝ, E) x) (B : F ≃L[ℝ] TangentSpace π“˜(ℝ, F) (f x)) (V : Set (TangentSpace π“˜(ℝ, E) x)) (W : Set (TangentSpace π“˜(ℝ, F) (f x))) (O K : Set M) (D : ℝβ‰₯0), IsOpen V ∧ IsOpen W ∧ IsOpen O ∧ IsCompact K ∧ x ∈ interior K ∧ K βŠ† O ∧ O βŠ† U ∧ 0 < D ∧ MapsTo A.symm V e.target ∧ MapsTo B.symm W h.target ∧ MapsTo (fun y => A (e y)) O V ∧ LipschitzOnWith C (fun y => A (e y)) O ∧ LipschitzOnWith C (fun v => e.symm (A.symm v)) V ∧ MapsTo (fun y => B (h (f y))) O W ∧ LipschitzOnWith C (fun z => B (h z)) (f '' O) ∧ LipschitzOnWith C (fun v => h.symm (B.symm v)) W ∧ LipschitzOnWith D ρ O := by let ns := normalizedSmoothChart e he (hUe hx) let nt := normalizedSmoothChart h hh (hfU hx) let A := (chartNormalizationLinearEquiv e he (hUe hx)).symm let B := (chartNormalizationLinearEquiv h hh (hfU hx)).symm have hxs : x ∈ ns.source := by simpa only [ns, normalizedSmoothChart_source] using hUe hx have hxt : f x ∈ nt.source := by simpa only [nt, normalizedSmoothChart_source] using hfU hx obtain ⟨r, hr, hrs, hsInv, hsFwd⟩ := normalizedSmoothChart_exists_lipschitz_ball e he (hUe hx) hes hei C hC obtain ⟨s, hs, hst, htInv, htFwd⟩ := normalizedSmoothChart_exists_lipschitz_ball h hh (hfU hx) hhs hhi C hC let V := ball (ns x) r let W := ball (nt (f x)) s have hVtarget : V βŠ† ns.target := hrs have hWtarget : W βŠ† nt.target := hst have hsourceOpen : IsOpen (ns.symm '' V) := ns.isOpen_image_symm_of_subset_target isOpen_ball hVtarget have htargetOpen : IsOpen (nt.symm '' W) := nt.isOpen_image_symm_of_subset_target isOpen_ball hWtarget have hxSource : x ∈ ns.symm '' V := ⟨ns x, mem_ball_self hr, ns.left_inv hxs⟩ have hxTarget : f x ∈ nt.symm '' W := ⟨nt (f x), mem_ball_self hs, nt.left_inv hxt⟩ obtain ⟨D, hD, Z, hZ, hρZ⟩ := exists_lipschitzOn_nhds_of_contMDiffAt ((hρ x).of_le (by norm_num)) obtain ⟨Z', hZ'sub, hZ'open, hxZ'⟩ := _root_.mem_nhds_iff.mp hZ let O := U ∩ ((ns.symm '' V) ∩ (f ⁻¹' (nt.symm '' W) ∩ Z')) have hO : IsOpen O := hU.inter (hsourceOpen.inter ((htargetOpen.preimage hf).inter hZ'open)) have hxO : x ∈ O := ⟨hx, hxSource, hxTarget, hxZ'⟩ obtain ⟨K, hK, hxK, hKO⟩ := exists_compact_subset hO hxO refine ⟨A, B, V, W, O, K, D, isOpen_ball, isOpen_ball, hO, hK, hxK, hKO, fun _ hy => hy.1, hD, ?_, ?_, ?_, ?_, ?_, ?_, ?_, ?_, ?_⟩ Β· intro v hv simpa only [ns, normalizedSmoothChart_target, mem_preimage, A, ContinuousLinearEquiv.symm_symm] using hVtarget hv Β· intro v hv simpa only [nt, normalizedSmoothChart_target, mem_preimage, B, ContinuousLinearEquiv.symm_symm] using hWtarget hv Β· rintro y ⟨_, ⟨z, hz, rfl⟩, _⟩ change ns (ns.symm z) ∈ V simpa only [ns.right_inv (hVtarget hz)] using hz Β· exact hsFwd.mono (fun _ hy => hy.2.1) Β· exact hsInv Β· intro y hy rcases hy.2.2.1 with ⟨z, hz, hfyz⟩ change nt (f y) ∈ W rw [← hfyz, nt.right_inv (hWtarget hz)] exact hz Β· apply htFwd.mono rintro z ⟨y, hy, rfl⟩ exact hy.2.2.1 Β· exact htInv Β· exact hρZ.mono (fun _ hy => hZ'sub hy.2.2.2) /-- Finitely many compact estimating neighborhoods of a compact support admit one translation radius. Every translated coordinate copy of the original map has the same normalized bound `C * L * (C * C)` on its estimating set. The family only selects a common radius; its size does not multiply the distortion. SurgeryComparison.Transport quantitative smoothing, Morgan--Tian Claim 18.22, p. 433. -/ theorem exists_finite_chart_smoothing_estimates (e : OpenPartialHomeomorph M E) (h : OpenPartialHomeomorph N F) (he : e.MDifferentiable π“˜(ℝ, E) π“˜(ℝ, E)) (hh : h.MDifferentiable π“˜(ℝ, F) π“˜(ℝ, F)) (hes : ContMDiffOn π“˜(ℝ, E) π“˜(ℝ, E) ∞ e e.source) (hei : ContMDiffOn π“˜(ℝ, E) π“˜(ℝ, E) ∞ e.symm e.target) (hhs : ContMDiffOn π“˜(ℝ, F) π“˜(ℝ, F) ∞ h h.source) (hhi : ContMDiffOn π“˜(ℝ, F) π“˜(ℝ, F) ∞ h.symm h.target) {f : M β†’ N} {L : ℝβ‰₯0} (hf : LipschitzWith L f) {ρ : M β†’ ℝ} (hρ : ContMDiff π“˜(ℝ, E) π“˜(ℝ) ∞ ρ) {U S : Set M} (hU : IsOpen U) (hUe : U βŠ† e.source) (hfU : MapsTo f U h.source) (hS : IsCompact S) (hSU : S βŠ† U) {fext : E β†’ F} (hext : βˆ€ y ∈ U, fext (e y) = h (f y)) {C : ℝβ‰₯0} (hC : 1 < C) : βˆƒ s : Finset S, βˆƒ (B : βˆ€ i : s, F ≃L[ℝ] TangentSpace π“˜(ℝ, F) (f i.1.1)) (K : s β†’ Set M) (W : βˆ€ i : s, Set (TangentSpace π“˜(ℝ, F) (f i.1.1))) (D : s β†’ ℝβ‰₯0) (R : ℝ), 0 < R ∧ (βˆ€ i, IsCompact (K i)) ∧ (βˆ€ i, K i βŠ† U) ∧ (βˆ€ x ∈ S, βˆƒ i, x ∈ interior (K i)) ∧ (βˆ€ i, IsOpen (W i)) ∧ (βˆ€ i, 0 < D i) ∧ (βˆ€ i, MapsTo (B i).symm (W i) h.target) ∧ (βˆ€ i, MapsTo (fun x => B i (fext (e x))) (K i) (W i)) ∧ (βˆ€ i, LipschitzOnWith C (fun v => h.symm ((B i).symm v)) (W i)) ∧ (βˆ€ i, LipschitzOnWith (D i) ρ (K i)) ∧ (βˆ€ i, βˆ€ x ∈ K i, βˆ€ y ∈ K i, βˆ€ t ∈ ball (0 : E) R, dist (B i (fext (e x - t))) (B i (fext (e y - t))) ≀ (C * L * (C * C) : ℝβ‰₯0) * dist x y) := by classical have hlocal (p : S) := exists_chart_smoothing_estimate_neighborhood e h he hh hes hei hhs hhi hf.continuous hρ hU hUe hfU (hSU p.2) hC choose A B V W O K D hV hW hO hK hpK hKO hOU hD hA hB hsourceMap hsourceFwd hsourceInv htargetMap htargetFwd htargetInv hρLip using hlocal obtain ⟨s, hs⟩ := hS.elim_finite_subcover (fun p : S => interior (K p)) (fun _ => isOpen_interior) (fun x hx => mem_iUnion.mpr ⟨⟨x, hx⟩, hpK ⟨x, hx⟩⟩) obtain ⟨R, hR, hshift⟩ := exists_finite_chart_translation_radius e (fun i : s => K i.1) (fun i : s => O i.1) (fun i => hK i.1) (fun i => hO i.1) (fun i => hKO i.1) (fun i => (hOU i.1).trans hUe) refine ⟨s, (fun i => B i.1), (fun i => K i.1), (fun i => W i.1), (fun i => D i.1), R, hR, (fun i => hK i.1), (fun i => (hKO i.1).trans (hOU i.1)), ?_, (fun i => hW i.1), (fun i => hD i.1), (fun i => hB i.1), ?_, (fun i => htargetInv i.1), (fun i => (hρLip i.1).mono (hKO i.1)), ?_⟩ Β· intro x hx obtain ⟨p, hps, hxp⟩ := mem_iUnionβ‚‚.mp (hs hx) exact ⟨⟨p, hps⟩, hxp⟩ Β· intro i x hx change B i.1 (fext (e x)) ∈ W i.1 rw [hext x (hOU i.1 (hKO i.1 hx))] exact htargetMap i.1 (hKO i.1 hx) Β· intro i apply chartCoordinates_translated_dist_le e h (B i.1).toContinuousLinearMap hf (htargetFwd i.1) Β· intro t ht apply chartTranslation_lipschitzOn e (A i.1) t ((hsourceFwd i.1).mono (hKO i.1)) (hsourceInv i.1) intro x hx have hxt := hshift i x hx t ht simpa only [e.right_inv hxt.1] using hsourceMap i.1 hxt.2 Β· intro x hx t ht exact mem_image_of_mem f (hshift i x hx t ht).2 Β· intro x hx t ht have hxt := hshift i x hx t ht simpa only [e.right_inv hxt.1] using hext (e.symm (e x - t)) (hOU i.1 hxt.2) end PoincareMT.SurgeryComparison.Transport