import OAI.Dynamics.SmoothObstruction.SpectralBins namespace OAI section open MeasureTheory Filter Topology TopologicalSpace Set Finset open scoped ENNReal NNReal BoundedContinuousFunction open Finset MeasureTheory Filter Topology open scoped BigOperators open Finset Matrix open scoped Matrix.Norms.L2Operator open Matrix namespace SmoothObstruction.CoordinateTubes open Set Metric open scoped Manifold ContDiff variable {d : ℕ} {H : Type*} [TopologicalSpace H] (I : ModelWithCorners ℝ (EuclideanSpace ℝ (Fin d)) H) {M : Type*} [TopologicalSpace M] [ChartedSpace H M] /-- Ambient open carrier of an arbitrary open subset of a chart source. It does not assert a smooth extension across a manifold boundary. -/ def carrier (a : M) (U : Set M) : Set (EuclideanSpace ℝ (Fin d)) := I.symm ⁻¹' ((chartAt H a).target∩(chartAt H a).symm ⁻¹' U) lemma isOpen_carrier (a : M) {U : Set M} (hU : IsOpen U) : IsOpen (carrier I a U) := ((chartAt H a).isOpen_inter_preimage_symm hU).preimage I.continuous_symm lemma coord_mem_carrier (a x : M) {U : Set M} (hx : x∈(chartAt H a).source) (hU : x∈U) : (extChartAt I a) x∈carrier I a U := by have ht := (extChartAt I a).map_source (by simpa only [extChartAt_source] using hx) have htar : I.symm ((extChartAt I a) x)∈(chartAt H a).target := by rw [extChartAt,OpenPartialHomeomorph.extend_target] at ht exact ht.1 refine ⟨htar,?_⟩ change (extChartAt I a).symm ((extChartAt I a) x)∈U rwa [(extChartAt I a).left_inv (by simpa only [extChartAt_source] using hx)] lemma mem_of_coord_mem_carrier (a y : M) {U : Set M} (hy : y∈(chartAt H a).source) (hu : (extChartAt I a) y∈carrier I a U) : y∈U := by have hh := hu.2 change (extChartAt I a).symm ((extChartAt I a) y)∈U at hh rwa [(extChartAt I a).left_inv (by simpa only [extChartAt_source] using hy)] at hh /-- Compact charts provide a uniform positive COORDINATE margin for any specified finite open enlargement, also in half-space models. -/ theorem uniform_margin {ι : Type*} [Fintype ι] (a : ι → M) (K U : ι → Set M) (hK : ∀ i,IsCompact (K i)) (hU : ∀ i,IsOpen (U i)) (hKU : ∀ i,K i⊆U i) (hKs : ∀ i,K i⊆(chartAt H (a i)).source) : ∃ δ : ℝ,0<δ ∧ ∀ i x,x∈K i → ∀ y,y∈(chartAt H (a i)).source → ‖(extChartAt I (a i)) y-(extChartAt I (a i)) x‖≤δ → y∈U i := by let L (i : ι) := (extChartAt I (a i)) '' K i have hL (i : ι) : IsCompact (L i) := (hK i).image_of_continuousOn ((continuousOn_extChartAt (I:=I) (a i)).mono (fun _ hx => by simpa only [extChartAt_source] using hKs i hx)) have hex (i : ι) : ∃ r : ℝ,0 ?_⟩ apply mem_of_coord_mem_carrier I _ _ hy apply hu i apply closedBall_subset_cthickening (E:=L i) ⟨x,hx,rfl⟩ (r i) simpa only [mem_closedBall,dist_eq_norm] using hxy.trans (hδr i) end SmoothObstruction.CoordinateTubes namespace SmoothObstruction.CoordinateTubes open Set Metric open scoped Manifold ContDiff variable {d : ℕ} {H : Type*} [TopologicalSpace H] (I : ModelWithCorners ℝ (EuclideanSpace ℝ (Fin d)) H) {M : Type*} [MetricSpace M] [ChartedSpace H M] /-- In a compatible metric, the same coordinate margin puts nearby carried points in any prescribed geometric atlas tube. -/ theorem uniform_metric_tube {ι : Type*} [Fintype ι] (a : ι → M) (K : ι → Set M) (hK : ∀ i,IsCompact (K i)) (hKs : ∀ i,K i⊆(chartAt H (a i)).source) {r : ℝ} (hr : 0 thickening r (K i)) hK (fun i => isOpen_thickening) (fun i => self_subset_thickening hr _) hKs exact ⟨δ,hδ,fun i x hx y hy hxy => thickening_subset_cthickening r _ (hh i x hx y hy hxy)⟩ end SmoothObstruction.CoordinateTubes namespace SmoothObstruction.CoordinateTubes open Set Metric open scoped Manifold ContDiff variable {d : ℕ} {H : Type*} [TopologicalSpace H] (I : ModelWithCorners ℝ (EuclideanSpace ℝ (Fin d)) H) {M : Type*} [MetricSpace M] [ChartedSpace H M] /-- Uniform inverse-chart modulus on finitely many compact patches. This works with a closed model range, so includes the closed half-space without postulating an ambient extension of an inverse chart. -/ theorem uniform_inverse_modulus {ι : Type*} [Fintype ι] (hclosed : IsClosed (range I)) (a : ι → M) (K : ι → Set M) (hK : ∀ i,IsCompact (K i)) (hKs : ∀ i,K i⊆(chartAt H (a i)).source) {ε : ℝ} (hε : 0<ε) : ∃ δ : ℝ,0<δ ∧ ∀ i x,x∈K i → ∀ y,y∈(chartAt H (a i)).source → ‖(extChartAt I (a i)) y-(extChartAt I (a i)) x‖≤δ → dist y x<ε := by let L (i : ι) := (extChartAt I (a i)) '' K i have hL (i : ι) : IsCompact (L i) := (hK i).image_of_continuousOn ((continuousOn_extChartAt (I:=I) (a i)).mono (fun _ hx => by simpa only [extChartAt_source] using hKs i hx)) have hex (i : ι) : ∃ r : ℝ,0 min (r i) (s i/2)) (fun i => lt_min (hr i) (div_pos (hs i) (by norm_num))) refine ⟨δ,hδ,fun i x hx y hy hxy => ?_⟩ have hxt : x∈(extChartAt I (a i)).source := by simpa only [extChartAt_source] using hKs i hx have hyt : y∈(extChartAt I (a i)).source := by simpa only [extChartAt_source] using hy have hxQ : (extChartAt I (a i)) x∈Q i := ⟨self_subset_cthickening (L i) ⟨x,hx,rfl⟩, by exact ⟨(chartAt H (a i)) x,rfl⟩⟩ have hyQ : (extChartAt I (a i)) y∈Q i := ⟨ mem_cthickening_of_dist_le _ _ _ _ ⟨x,hx,rfl⟩ (by simpa only [dist_eq_norm] using hxy.trans ((hδi i).trans (min_le_left _ _))), ⟨(chartAt H (a i)) y,rfl⟩⟩ have hh := hm i _ hyQ _ hxQ (show dist ((extChartAt I (a i)) y) ((extChartAt I (a i)) x) by simpa only [extChartAt_source] using hKs i hx)) have hex (i : ι) : ∃ r : ℝ,0 ?_⟩ rw [extChartAt,OpenPartialHomeomorph.extend_target] exact ⟨(hu i ((closedBall_subset_cthickening (E:=L i) ⟨x,hx,rfl⟩ (r i)) (closedBall_subset_closedBall (hδr i) hz.1))).1,hz.2⟩ end SmoothObstruction.CoordinateTubes namespace SmoothObstruction.ManifoldCoordinates open Bundle Set Filter Topology Metric MeasureTheory open scoped Manifold ContDiff Matrix.Norms.L2Operator variable {d : ℕ} {H : Type*} [TopologicalSpace H] (I : ModelWithCorners ℝ (EuclideanSpace ℝ (Fin d)) H) {M : Type*} [MetricSpace M] [ProperSpace M] [ChartedSpace H M] [IsManifold I ∞ M] {ι : Type*} [Fintype ι] /-- Restriction of an actual bilateral gauge keeps exactly the same bases, not a recomputed QR path or a newly chosen stationary witness. -/ def BilateralGauge.restrict (S : Diffeomorph I I M M ∞) (a : ι → M) (c : M → ι) {n N : ℕ} {B R : ℝ} {x : M} (A : BilateralGauge I S a c n B R x) (hN : N≤n) : BilateralGauge I S a c N B R x where lam := A.lam rate_bound := A.rate_bound UF := A.UF VF := A.VF UB := A.UB VB := A.VB invF := A.invF invB := A.invB centerU := A.centerU centerV := A.centerV normF t ht := A.normF t (ht.trans hN) normB t ht := A.normB t (ht.trans hN) stepF t ht := A.stepF t (ht.trans_le hN) stepB t ht := A.stepB t (ht.trans_le hN) omit [ProperSpace M] in /-- Strengthen actual short comparison by a prescribed uniform atlas tube. Membership of the nearby orbit at ALL intermediate times is a conclusion. -/ theorem actual_tube_comparison (hclosed : IsClosed (range I)) (S : Diffeomorph I I M M ∞) (a : ι → M) (K : ι → Set M) (hK : ∀ i,IsCompact (K i)) (hKU : ∀ i,K i⊆(chartAt H (a i)).source) {τ : ℝ} (hτ : 0<τ) : ∃ r C : ℝ,0 localMap I S (a (c t)) (a (c (t+1)))) N) ((extChartAt I (a (c 0))) y)- fderiv ℝ (ShortDerivative.iterate (fun t => localMap I S (a (c t)) (a (c (t+1)))) N) ((extChartAt I (a (c 0))) x)‖≤ N*C*C ^ (2*N)*‖(extChartAt I (a (c 0))) y-(extChartAt I (a (c 0))) x‖ := by obtain ⟨r,C,hr,hC,hh⟩ := actual_short_comparison I hclosed S a K hK hKU obtain ⟨δ,hδ,hmargin⟩ := CoordinateTubes.uniform_metric_tube I a K hK hKU hτ refine ⟨min r δ,C,lt_min hr hδ,hC,fun c x y N hx hxi hyi hys hsmall => ?_⟩ obtain ⟨ht,hd⟩ := hh c x y N hx hxi hyi hys (hsmall.trans (min_le_left _ _)) refine ⟨fun t htn => ⟨(ht t htn).1,?_⟩,hd⟩ apply hmargin (c t) (S^[t] x) (hx t htn) _ (ht t htn).1 apply (ht t htn).2.trans apply le_trans _ (hsmall.trans (min_le_right _ _)) exact mul_le_mul_of_nonneg_right (pow_le_pow_right₀ hC htn) (norm_nonneg _) /-- Genuine good-path gauges can be attached simultaneously to the two reference chart codes of a nearby orbit. No continued chart membership, frame continuity, or derivative comparison is an extra hypothesis. -/ theorem uniform_genuine_bin_gauges (hclosed : IsClosed (range I)) (S : Diffeomorph I I M M ∞) (a : ι → M) (K : ι → Set M) (hK : ∀ i,IsCompact (K i)) (hKU : ∀ i,K i⊆(chartAt H (a i)).source) : ∃ rF CF rB CB D : ℝ,0 ?_⟩ have hdistB (i : J) : ‖(extChartAt I (a (cB 0))) (x i)-(extChartAt I (a (cB 0))) (x e)‖≤h := by simpa only [h0] using hdist i have hsourceB (i : J) : x i∈(chartAt H (a (cB 0))).source := by simpa only [h0] using hsource i have htF (i : J) := hhF cF (x e) (x i) N hxF (hint e) (hint i) (hsource i) ((mul_le_mul_of_nonneg_left (hdist i) (pow_nonneg (zero_le_one.trans hCF) N)).trans hsF) have htB (i : J) := hhB cB (x e) (x i) N hxB (hint e) (hint i) (hsourceB i) ((mul_le_mul_of_nonneg_left (hdistB i) (pow_nonneg (zero_le_one.trans hCB) N)).trans hsB) choose F Z hFlam hZlam hU hV hstepF hstepB hform using fun i => hcarry S c (x i) N B R ((A i).restrict I S a c hN) cF cB hc h0 (fun t ht => ((htF i).1 t ht).2) (fun t ht => ((htB i).1 t ht).2) refine ⟨F,Z,fun i k => ⟨hFlam i k,hZlam i k⟩,fun i => ⟨hU i,hV i⟩,hstepF,hstepB,?_,?_,?_⟩ · intro i have hp (j : J) := actual_gauge_product I S (fun t => a (cF t)) (x j) (F j) (fun t ht => ((htF j).1 t ht).1) (hint j) (hstepF j) rw [←hp i,←hp e] exact ((htF i).2).trans (mul_le_mul_of_nonneg_left (hdist i) (by positivity)) · intro i have hp (j : J) := actual_gauge_product I S.symm (fun t => a (cB t)) (x j) (Z j) (fun t ht => ((htB j).1 t ht).1) (hint j) (hstepB j) rw [←hp i,←hp e] exact ((htB i).2).trans (mul_le_mul_of_nonneg_left (hdistB i) (by positivity)) · exact hform end SmoothObstruction.ManifoldCoordinates end end OAI