import OAI.Dynamics.SmoothObstruction.ShortDerivative 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.EuclideanSplitting open scoped Matrix.Norms.L2Operator variable {d : ℕ} noncomputable def gaugeEquiv (U V : Matrix (Fin d) (Fin d) ℝ) (hUV : U*V=1) (hVU : V*U=1) : EuclideanSpace ℝ (Fin d) ≃L[ℝ] EuclideanSpace ℝ (Fin d) := (LinearEquiv.ofLinearMap (Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ) U).toLinearMap (Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ) V).toLinearMap (by apply LinearMap.ext intro x change Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ) U (Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ) V x)=x rw [←mul_apply_eq_comp,←map_mul,hUV,map_one] rfl) (by apply LinearMap.ext intro x change Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ) V (Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ) U x)=x rw [←mul_apply_eq_comp,←map_mul,hVU,map_one] rfl)).toContinuousLinearEquiv @[simp] lemma gaugeEquiv_apply (U V : Matrix (Fin d) (Fin d) ℝ) (hUV : U*V=1) (hVU : V*U=1) (x : EuclideanSpace ℝ (Fin d)) : gaugeEquiv U V hUV hVU x=Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ) U x := rfl @[simp] lemma gaugeEquiv_symm_apply (U V : Matrix (Fin d) (Fin d) ℝ) (hUV : U*V=1) (hVU : V*U=1) (x : EuclideanSpace ℝ (Fin d)) : (gaugeEquiv U V hUV hVU).symm x=Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ) V x := rfl noncomputable def coordinateSpace (S : Finset (Fin d)) : Submodule ℝ (EuclideanSpace ℝ (Fin d)) := (Pi.spanSubset ℝ (S:Set (Fin d))).map (WithLp.linearEquiv 2 ℝ (Fin d→ℝ)).symm.toLinearMap lemma mem_coordinateSpace (S : Finset (Fin d)) (x : EuclideanSpace ℝ (Fin d)) : x∈coordinateSpace S ↔ ∀ j∉S,x j=0 := by rw [coordinateSpace,Submodule.map_equiv_eq_comap_symm] exact Pi.mem_spanSubset_iff lemma finrank_coordinateSpace (S : Finset (Fin d)) : Module.finrank ℝ (coordinateSpace S)=S.card := by rw [coordinateSpace,LinearEquiv.finrank_map_eq,Pi.dim_spanSubset,Set.ncard_coe_finset] lemma mask_apply (S : Finset (Fin d)) (x : EuclideanSpace ℝ (Fin d)) (j : Fin d) : (Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ) (mask S) x) j=if j∈S then x j else 0 := by change ((mask S)*ᵥ (WithLp.ofLp x)) j=_ rw [mask,Matrix.mulVec_diagonal] split <;> simp_all lemma coordinateSpace_fixed (S : Finset (Fin d)) (x : EuclideanSpace ℝ (Fin d)) : x∈coordinateSpace S ↔ Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ) (mask S) x=x := by rw [mem_coordinateSpace] constructor · intro hx ext j rw [mask_apply] split_ifs with hj · rfl · exact (hx j hj).symm · intro hx j hj have he := congrArg (fun x : EuclideanSpace ℝ (Fin d) => x j) hx rw [mask_apply,ite_eq_right hj] at he exact he.symm noncomputable def groupSpace (U V : Matrix (Fin d) (Fin d) ℝ) (hUV : U*V=1) (hVU : V*U=1) (S : Finset (Fin d)) : Submodule ℝ (EuclideanSpace ℝ (Fin d)) := (coordinateSpace S).map (gaugeEquiv U V hUV hVU).toLinearEquiv.toLinearMap lemma finrank_groupSpace (U V : Matrix (Fin d) (Fin d) ℝ) (hUV : U*V=1) (hVU : V*U=1) (S : Finset (Fin d)) : Module.finrank ℝ (groupSpace U V hUV hVU S)=S.card := by rw [groupSpace,LinearEquiv.finrank_map_eq,finrank_coordinateSpace] lemma groupSpace_fixed (U V : Matrix (Fin d) (Fin d) ℝ) (hUV : U*V=1) (hVU : V*U=1) (S : Finset (Fin d)) (x : EuclideanSpace ℝ (Fin d)) : x∈groupSpace U V hUV hVU S ↔ Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ) (U*mask S*V) x=x := by rw [groupSpace,Submodule.map_equiv_eq_comap_symm] change (gaugeEquiv U V hUV hVU).symm x∈coordinateSpace S ↔ _ rw [coordinateSpace_fixed] constructor · intro hx have he := congrArg (gaugeEquiv U V hUV hVU) hx rw [(gaugeEquiv U V hUV hVU).apply_symm_apply] at he simpa only [gaugeEquiv_apply,gaugeEquiv_symm_apply,map_mul, mul_apply_eq_comp] using he · intro hx apply (gaugeEquiv U V hUV hVU).injective rw [(gaugeEquiv U V hUV hVU).apply_symm_apply] simpa only [gaugeEquiv_apply,gaugeEquiv_symm_apply,map_mul, mul_apply_eq_comp] using hx end SmoothObstruction.EuclideanSplitting namespace SmoothObstruction.EuclideanSplitting open scoped Matrix.Norms.L2Operator variable {d : ℕ} lemma groupSpace_forward (U V : ℕ → Matrix (Fin d) (Fin d) ℝ) (hUV : ∀ t,U t*V t=1) (hVU : ∀ t,V t*U t=1) (lam : Fin d → ℝ) (S : Finset (Fin d)) {K c : ℝ} {s t : ℕ} (hst : s≤t) (hU : ‖U t‖≤Real.exp K) (hV : ‖V s‖≤Real.exp K) (hc : ∀ j∈S,lam j≤c) (x : groupSpace (U s) (V s) (hUV s) (hVU s) S) : ‖Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ) (transition U V lam s t) x‖ ≤ Real.exp (c*((t:ℝ)-s)+2*K)*‖x‖ := by have hx := (groupSpace_fixed (U s) (V s) (hUV s) (hVU s) S x).mp x.property have hb := norm_transition_projection U V hVU lam S s t hst hU hV hc have hn := (Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ) (transition U V lam s t*projection U V S s)).le_opNorm (x:EuclideanSpace ℝ (Fin d)) rw [Matrix.l2_opNorm_toEuclideanCLM,map_mul,mul_apply_eq_comp] at hn change Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ) (projection U V S s) x=x at hx rw [hx] at hn exact hn.trans (mul_le_mul_of_nonneg_right hb (norm_nonneg _)) lemma inverse_fast_product (U V : ℕ → Matrix (Fin d) (Fin d) ℝ) (hUV : ∀ t,U t*V t=1) (hVU : ∀ t,V t*U t=1) (lam : Fin d → ℝ) (S : Finset (Fin d)) (s t : ℕ) : (transition U V lam t s*projection U V S t)*transition U V lam s t= projection U V S s := by rw [mul_assoc,←transition_projection U V lam hVU, ←mul_assoc (transition U V lam t s),transition_comp U V lam hVU, transition_self U V lam hUV,one_mul] lemma groupSpace_backward_lower (U V : ℕ → Matrix (Fin d) (Fin d) ℝ) (hUV : ∀ t,U t*V t=1) (hVU : ∀ t,V t*U t=1) (lam : Fin d → ℝ) (S : Finset (Fin d)) {K c : ℝ} {s t : ℕ} (hst : s≤t) (hU : ‖U s‖≤Real.exp K) (hV : ‖V t‖≤Real.exp K) (hc : ∀ j∈S,c≤lam j) (x : groupSpace (U s) (V s) (hUV s) (hVU s) S) : Real.exp (c*((t:ℝ)-s)-2*K)*‖x‖ ≤ ‖Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ) (transition U V lam s t) x‖ := by have hx := (groupSpace_fixed (U s) (V s) (hUV s) (hVU s) S x).mp x.property have hb := norm_backward_projection U V hVU lam S s t hst hU hV hc let P := Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ) (transition U V lam s t) let B := Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ) (transition U V lam t s*projection U V S t) have hBP : B (P x)=x := by dsimp [B,P] rw [←mul_apply_eq_comp,←map_mul,inverse_fast_product U V hUV hVU] exact hx have hn := B.le_opNorm (P x) rw [hBP] at hn have hBn : ‖B‖≤Real.exp (-c*((t:ℝ)-s)+2*K) := by dsimp [B] rw [Matrix.l2_opNorm_toEuclideanCLM] exact hb have hxn : ‖(x:EuclideanSpace ℝ (Fin d))‖ ≤ Real.exp (-c*((t:ℝ)-s)+2*K)*‖P x‖ := hn.trans (mul_le_mul_of_nonneg_right hBn (norm_nonneg _)) have hm := mul_le_mul_of_nonneg_left hxn (Real.exp_nonneg (c*((t:ℝ)-s)-2*K)) have he : Real.exp (c*((t:ℝ)-s)-2*K)*Real.exp (-c*((t:ℝ)-s)+2*K)=1 := by rw [←Real.exp_add] rw [show (c*((t:ℝ)-s)-2*K)+(-c*((t:ℝ)-s)+2*K)=0 by ring,Real.exp_zero] rw [←mul_assoc,he,one_mul] at hm exact hm end SmoothObstruction.EuclideanSplitting namespace SmoothObstruction.SubspaceComparison variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] omit [FiniteDimensional ℝ E] in /-- The elementary dimension/count comparison underlying finite singular rate comparison. Actual operator closeness and stretch bounds force disjointness. -/ lemma disjoint_of_stretch (P Q : E →L[ℝ] E) (U V : Submodule ℝ E) {a b δ : ℝ} (hgap : b+δ norm_nonneg _⟩ (⟨(x:E)-K x,hV x⟩:V) _ = ‖K x‖ := by rw [sub_sub_cancel] _ ≤ _ := hKx end SmoothObstruction.SubspaceComparison namespace SmoothObstruction.ShortBin open EuclideanSplitting open scoped Matrix.Norms.L2Operator variable {d L : ℕ} {K : ℝ} noncomputable def Gauge.product (A : Gauge d L K) : EuclideanSpace ℝ (Fin d) →L[ℝ] EuclideanSpace ℝ (Fin d) := Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ) (transition A.U A.V A.lam 0 L) noncomputable def Gauge.space (A : Gauge d L K) (S : Finset (Fin d)) : Submodule ℝ (EuclideanSpace ℝ (Fin d)) := groupSpace (A.U 0) (A.V 0) (A.UV 0) (A.VU 0) S lemma Gauge.rank (A : Gauge d L K) (S : Finset (Fin d)) : Module.finrank ℝ (A.space S)=S.card := finrank_groupSpace _ _ _ _ _ lemma Gauge.upper (A : Gauge d L K) (S : Finset (Fin d)) {c : ℝ} (hc : ∀ j∈S,A.lam j≤c) (x : A.space S) : ‖A.product x‖≤Real.exp (c*L+2*K)*‖x‖ := by convert! groupSpace_forward A.U A.V A.UV A.VU A.lam S (Nat.zero_le L) (A.normU L le_rfl) (A.normV 0 (Nat.zero_le L)) hc x using 1 simp rfl lemma Gauge.lower (A : Gauge d L K) (S : Finset (Fin d)) {c : ℝ} (hc : ∀ j∈S,c≤A.lam j) (x : A.space S) : Real.exp (c*L-2*K)*‖x‖≤‖A.product x‖ := by convert! groupSpace_backward_lower A.U A.V A.UV A.VU A.lam S (Nat.zero_le L) (A.normU 0 (Nat.zero_le L)) (A.normV L le_rfl) hc x using 1 simp rfl /-- A count comparison from actual product closeness. -/ lemma count_le (A B : Gauge d L K) {a b δ : ℝ} (hclose : ‖A.product-B.product‖≤δ) (hgap : Real.exp (b*L+2*K)+δ a≤A.lam j)).card ≤ (Finset.univ.filter (fun j => b a≤A.lam j) let T := Finset.univ.filter (fun j => B.lam j≤b) have hd := SubspaceComparison.dimension_of_stretch A.product B.product (A.space S) (B.space T) hgap hclose (A.lower S (by intro j hj; exact (Finset.mem_filter.mp hj).2)) (B.upper T (by intro j hj; exact (Finset.mem_filter.mp hj).2)) rw [A.rank,B.rank,finrank_euclideanSpace_fin] at hd have he : (Finset.univ.filter (fun j => b hne (Fin.ext h) rcases lt_or_gt_of_ne hv with hh | hh · have ha : (j.val:ℝ)+1≤k.val := by exact_mod_cast hh nlinarith · have ha : (k.val:ℝ)+1≤j.val := by exact_mod_cast hh nlinarith have hh := Fintype.card_le_of_injective f hinj simp only [Fintype.card_fin] at hh omega /-- Two dimension comparisons exclude the whole intermediate rate band; no singular-value decomposition or arbitrary sorted-rate choice is needed. -/ lemma of_sandwich {d p : ℕ} (lam : Fin d → ℝ) {γ g : ℝ} (hg : 0 γ-g≤lam j)).card≤p) (hhi : p≤(Finset.univ.filter (fun j => γ+g γ γ-g≤lam j) let B := Finset.univ.filter (fun j : Fin d => γ+g γ γ<(A i).lam k)).card= (Finset.univ.filter (fun k => γ<(A e).lam k)).card := by classical obtain ⟨j,hj⟩ := RateThreshold.exists_candidate d (A e).lam hg refine ⟨j,?_⟩ dsimp only let γ := (1+8*(j.val:ℝ))*g have hγ : g≤γ := by dsimp [γ] nlinarith [Nat.cast_nonneg (α:=ℝ) j.val] have hrep : ∀ k,(A e).lam k<γ-3*g ∨ γ+3*g<(A e).lam k := by intro k have hh := hj k change 3*g < |(A e).lam k-γ| at hh rcases le_total ((A e).lam k) γ with hh' | hh' · rw [abs_of_nonpos (sub_nonpos.mpr hh')] at hh left; linarith · rw [abs_of_nonneg (sub_nonneg.mpr hh')] at hh right; linarith have hflo : Finset.univ.filter (fun k => γ-3*g<(A e).lam k)= Finset.univ.filter (fun k => γ<(A e).lam k) := by ext k simp only [Finset.mem_filter,Finset.mem_univ,true_and] rcases hrep k with hh | hh <;> constructor <;> intro hh' <;> linarith have hfhi : Finset.univ.filter (fun k => γ+3*g≤(A e).lam k)= Finset.univ.filter (fun k => γ<(A e).lam k) := by ext k simp only [Finset.mem_filter,Finset.mem_univ,true_and] rcases hrep k with hh | hh <;> constructor <;> intro hh' <;> linarith intro i have hlo := count_le (A i) (A e) (a:=γ-g) (b:=γ-3*g) (hclose i) (by convert exponential_separation (c:=γ-g) (l:=(L:ℝ)) (by linarith) (Nat.cast_nonneg L) hdecay hnoise using 1 congr 2 ring) have hclose' : ‖(A e).product-(A i).product‖≤δ := by rw [norm_sub_rev]; exact hclose i have hhi := count_le (A e) (A i) (a:=γ+3*g) (b:=γ+g) hclose' (by convert exponential_separation (c:=γ+3*g) (l:=(L:ℝ)) (by linarith) (Nat.cast_nonneg L) hdecay hnoise using 1 congr 2 ring) rw [hflo] at hlo rw [hfhi] at hhi exact RateThreshold.of_sandwich (A i).lam hg hlo hhi end SmoothObstruction.ShortBin namespace SmoothObstruction.ManifoldCoordinates open Bundle Set Filter Topology open scoped Manifold ContDiff Matrix.Norms.L2Operator variable {d : ℕ} {H : Type*} [TopologicalSpace H] (I : ModelWithCorners ℝ (EuclideanSpace ℝ (Fin d)) H) {M : Type*} [TopologicalSpace M] [ChartedSpace H M] [IsManifold I ∞ M] /-- Exact identification of the diagonal-gauge propagator with the derivative of the genuine nonautonomous chart expression. No product identity is assumed. -/ lemma actual_gauge_product (S : Diffeomorph I I M M ∞) (a : ℕ → M) (x : M) {N : ℕ} {K : ℝ} (A : ShortBin.Gauge d N K) (hchart : ∀ t≤N,S^[t] x∈(chartAt H (a t)).source) (hint : I.IsInteriorPoint x) (hEq : ∀ t localMap I S (a t) (a (t+1))) N) ((extChartAt I (a 0)) x)=A.product := by let F := Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ) let D (t : ℕ) := coord I S (a t) (a (t+1)) (S^[t] x) let f (t : ℕ) := localMap I S (a t) (a (t+1)) let X (t : ℕ) := (extChartAt I (a t)) (S^[t] x) have hi : ∀ t,I.IsInteriorPoint (S^[t] x) := by intro t induction t with | zero => exact hint | succ t ih => rw [Function.iterate_succ_apply'] exact ((S.isLocalDiffeomorph _).isInteriorPoint_iff (by simp)).mp ih have hx : ∀ t F.symm (D t)) 0 l)= RelativeProduct.segment D 0 l := by intro l induction l with | zero => simp only [EuclideanSplitting.propagator,RelativeProduct.segment_zero,map_one] | succ l ih => simp only [EuclideanSplitting.propagator,RelativeProduct.segment_succ,Nat.zero_add, map_mul,StarAlgEquiv.apply_symm_apply,ih] have ht := EuclideanSplitting.propagator_eq_transition (fun t => F.symm (D t)) A.U A.V A.lam A.UV A.VU N hEq 0 N (by omega) rw [←hp N,ht] at hder simpa only [f,X,Function.iterate_zero_apply,Nat.zero_add,ShortBin.Gauge.product,F] using hder end SmoothObstruction.ManifoldCoordinates namespace SmoothObstruction.ManifoldCoordinates open Bundle Set Filter Topology open scoped Manifold ContDiff Matrix.Norms.L2Operator variable {d : ℕ} {H : Type*} [TopologicalSpace H] (I : ModelWithCorners ℝ (EuclideanSpace ℝ (Fin d)) H) {M : Type*} [TopologicalSpace M] [T2Space M] [ChartedSpace H M] [IsManifold I ∞ M] {ι : Type*} [Fintype ι] /-- A bin threshold for an arbitrary family of actual manifold witnesses, including multiple gauges over one point. The constants are chosen uniformly from the finite compact atlas, before any bin, witness or frame is chosen. Short derivative closeness and chart carrying are proved, not assumed. Only the available finite gauge equations and the explicit scale inequalities remain as inputs. -/ theorem uniform_actual_bin_threshold (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) : ∃ r C : ℝ,0 γ<(A i).lam k)).card= (Finset.univ.filter (fun k => γ<(A e).lam k)).card := by classical obtain ⟨r,C,hr,hC,hh⟩ := actual_short_comparison I hclosed S a K hK hKU refine ⟨r,C,hr,hC,fun J x e c N B g h A hxs hint hsource hdist hsmall hEq hg hdecay hnoise => ?_⟩ have hC0 : 0≤C := le_trans (by norm_num) hC have hs (i : J) := hh c (x e) (x i) N hxs (hint e) (hint i) (hsource i) ((mul_le_mul_of_nonneg_left (hdist i) (pow_nonneg hC0 N)).trans hsmall) have hprod (i : J) := actual_gauge_product I S (fun t => a (c t)) (x i) (A i) (fun t ht => (hs i).1 t ht |>.1) (hint i) (hEq i) apply ShortBin.common_gap A e hg (δ:=N*C*C ^ (2*N)*h) ?_ hdecay hnoise intro i rw [←hprod i,←hprod e] exact ((hs i).2).trans (mul_le_mul_of_nonneg_left (hdist i) (by positivity)) end SmoothObstruction.ManifoldCoordinates namespace SmoothObstruction.DirectedProjection variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] noncomputable def restrictProjection (U V : Submodule ℝ E) : U →L[ℝ] V := V.orthogonalProjectionOnto.comp U.subtypeL lemma lower (U V : Submodule ℝ E) {ε : ℝ} (hε : ε ≤ 1/2) (h : ∀ x : U, ‖(x:E)-V.starProjection x‖ ≤ ε*‖x‖) (x : U) : ‖x‖ ≤ 2*‖restrictProjection U V x‖ := by have hh : ‖x‖ ≤ ‖(x:E)-V.starProjection x‖+‖V.starProjection x‖ := by calc _ = ‖((x:E)-V.starProjection x)+V.starProjection x‖ := by rw [sub_add_cancel]; rfl _ ≤ _ := norm_add_le _ _ have he := (h x).trans (mul_le_mul_of_nonneg_right hε (norm_nonneg _)) change ‖x‖ ≤ 2*‖V.starProjection x‖ linarith noncomputable def equiv (U V : Submodule ℝ E) (hdim : Module.finrank ℝ U=Module.finrank ℝ V) {ε : ℝ} (hε : ε ≤ 1/2) (h : ∀ x : U, ‖(x:E)-V.starProjection x‖ ≤ ε*‖x‖) : U ≃L[ℝ] V := (LinearMap.linearEquivOfInjective (restrictProjection U V).toLinearMap (by intro x y hxy change restrictProjection U V x=restrictProjection U V y at hxy apply sub_eq_zero.mp apply norm_eq_zero.mp have hh := lower U V hε h (x-y) rw [map_sub,hxy,sub_self,norm_zero,mul_zero] at hh exact le_antisymm hh (norm_nonneg _)) hdim).toContinuousLinearEquiv @[simp] lemma equiv_apply (U V : Submodule ℝ E) (hdim : Module.finrank ℝ U=Module.finrank ℝ V) {ε : ℝ} (hε : ε ≤ 1/2) (h : ∀ x : U, ‖(x:E)-V.starProjection x‖ ≤ ε*‖x‖) (x : U) : equiv U V hdim hε h x=restrictProjection U V x := rfl lemma reverse_directed (U V : Submodule ℝ E) (hdim : Module.finrank ℝ U=Module.finrank ℝ V) {ε : ℝ} (hε0 : 0≤ε) (hε : ε ≤ 1/2) (h : ∀ x : U, ‖(x:E)-V.starProjection x‖ ≤ ε*‖x‖) (y : V) : ‖(y:E)-U.starProjection y‖ ≤ 2*ε*‖y‖ := by let e := equiv U V hdim hε h let x := e.symm y have hxy : V.starProjection x=(y:E) := by have hh := congrArg (fun v : V => (v:E)) (e.apply_symm_apply y) exact hh have hn : ‖x‖ ≤ 2*‖y‖ := by have hh := lower U V hε h x change ‖x‖ ≤ 2*‖V.starProjection x‖ at hh rwa [hxy] at hh calc ‖(y:E)-U.starProjection y‖ ≤ ‖(y:E)-x‖ := by rw [Submodule.starProjection_minimal] exact ciInf_le ⟨0, Set.forall_mem_range.mpr fun _ => norm_nonneg _⟩ x _ = ‖(x:E)-V.starProjection x‖ := by rw [hxy,norm_sub_rev] _ ≤ ε*‖x‖ := h x _ ≤ ε*(2*‖y‖) := mul_le_mul_of_nonneg_left hn hε0 _ = _ := by ring lemma one_sided_norm (U V : Submodule ℝ E) {ε : ℝ} (hε : 0≤ε) (h : ∀ x : U, ‖(x:E)-V.starProjection x‖ ≤ ε*‖x‖) : ‖(1-V.starProjection)*U.starProjection‖ ≤ ε := by apply ContinuousLinearMap.opNorm_le_bound _ hε intro x change ‖U.starProjection x-V.starProjection (U.starProjection x)‖ ≤ ε*‖x‖ exact (h (U.orthogonalProjectionOnto x)).trans (mul_le_mul_of_nonneg_left (U.norm_starProjection_apply_le x) hε) /-- A directed subspace estimate and equality of dimensions imply a full projector-distance bound. No chosen singular-vector continuity is assumed. -/ theorem projector_distance (U V : Submodule ℝ E) (hdim : Module.finrank ℝ U=Module.finrank ℝ V) {ε : ℝ} (hε0 : 0≤ε) (hε : ε ≤ 1/2) (h : ∀ x : U, ‖(x:E)-V.starProjection x‖ ≤ ε*‖x‖) : ‖U.starProjection-V.starProjection‖ ≤ 3*ε := by have hA := one_sided_norm U V hε0 h have hB := one_sided_norm V U (by positivity : 0≤2*ε) (reverse_directed U V hdim hε0 hε h) have he : U.starProjection-V.starProjection = (1-V.starProjection)*U.starProjection-star ((1-U.starProjection)*V.starProjection) := by rw [star_mul,star_sub,star_one,(isSelfAdjoint_starProjection U).star_eq, (isSelfAdjoint_starProjection V).star_eq] noncomm_ring rw [he] calc _ ≤ ‖(1-V.starProjection)*U.starProjection‖+ ‖star ((1-U.starProjection)*V.starProjection)‖ := norm_sub_le _ _ _ = ‖(1-V.starProjection)*U.starProjection‖+ ‖(1-U.starProjection)*V.starProjection‖ := by congr 1 exact ContinuousLinearMap.adjoint.norm_map _ _ ≤ ε+2*ε := add_le_add hA hB _ = _ := by ring end SmoothObstruction.DirectedProjection namespace SmoothObstruction.ShortBin open EuclideanSplitting open scoped Matrix.Norms.L2Operator variable {d L : ℕ} {K : ℝ} lemma Gauge.complement_mem (A : Gauge d L K) (S : Finset (Fin d)) (x : EuclideanSpace ℝ (Fin d)) : x-Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ) (projection A.U A.V Sᶜ 0) x∈A.space S := by have he := congrArg (fun M : Matrix (Fin d) (Fin d) ℝ => Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ) M x) (projection_compl A.U A.V A.UV S 0) rw [map_add,_root_.add_apply,map_one] at he change Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ) (projection A.U A.V S 0) x+ Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ) (projection A.U A.V Sᶜ 0) x=x at he rw [←eq_sub_iff_add_eq.mpr he] apply (groupSpace_fixed _ _ _ _ _ _).mpr change Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ) (projection A.U A.V S 0) (Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ) (projection A.U A.V S 0) x)=_ rw [←mul_apply_eq_comp,←map_mul,projection_idem A.U A.V A.VU] /-- Actual short-product control of the slow subspace. The inverse fast propagator is constructed, rather than supplied as a desired estimate. -/ lemma slow_directed (A B : Gauge d L K) (S T : Finset (Fin d)) {γ g δ : ℝ} (hclose : ‖A.product-B.product‖≤δ) (hAf : ∀ j∈Sᶜ,γ+g≤A.lam j) (hBs : ∀ j∈T,B.lam j≤γ-g) : ∀ x : B.space T, ‖(x:EuclideanSpace ℝ (Fin d))-(A.space S).starProjection x‖ ≤ Real.exp (-(γ+g)*L+2*K)*(Real.exp ((γ-g)*L+2*K)+δ)*‖x‖ := by let J := Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ) (transition A.U A.V A.lam L 0*projection A.U A.V Sᶜ L) let P := Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ) (projection A.U A.V Sᶜ 0) have hJP : J.comp A.product=P := by change Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ) (transition A.U A.V A.lam L 0*projection A.U A.V Sᶜ L)* Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ) (transition A.U A.V A.lam 0 L)=_ rw [←map_mul,inverse_fast_product A.U A.V A.UV A.VU] have hJ : ‖J‖≤Real.exp (-(γ+g)*L+2*K) := by dsimp only [J] rw [Matrix.l2_opNorm_toEuclideanCLM] simpa only [Nat.cast_zero,sub_zero] using norm_backward_projection A.U A.V A.VU A.lam Sᶜ 0 L (Nat.zero_le L) (A.normU 0 (Nat.zero_le L)) (A.normV L le_rfl) hAf exact SubspaceComparison.directed_of_product A.product B.product J P (B.space T) (A.space S) (Real.exp_nonneg _) hJP hJ hclose (B.upper T hBs) (A.complement_mem S) lemma slow_projector_distance (A B : Gauge d L K) (S T : Finset (Fin d)) {γ g δ : ℝ} (hdim : S.card=T.card) (hclose : ‖A.product-B.product‖≤δ) (hAf : ∀ j∈Sᶜ,γ+g≤A.lam j) (hBs : ∀ j∈T,B.lam j≤γ-g) (hδ : 0≤δ) (hsmall : Real.exp (-(γ+g)*L+2*K)*(Real.exp ((γ-g)*L+2*K)+δ)≤1/2) : ‖(B.space T).starProjection-(A.space S).starProjection‖ ≤ 3*(Real.exp (-(γ+g)*L+2*K)*(Real.exp ((γ-g)*L+2*K)+δ)) := by apply DirectedProjection.projector_distance _ _ (by rw [A.rank,B.rank,hdim]) (by positivity) hsmall exact slow_directed A B S T hclose hAf hBs end SmoothObstruction.ShortBin namespace SmoothObstruction.ShortBin open EuclideanSplitting open scoped Matrix.Norms.L2Operator variable {d L : ℕ} {K : ℝ} /-- A simultaneous fixed threshold and two common reference subspaces for all two-sided finite gauges in a bin. The two backward gauges are compared through their actual products, not through continuity of frame choices. -/ theorem common_splittings {ι : Type*} (A Z : ι → Gauge d L K) (e : ι) {g δ : ℝ} (hg : 0 γ<(A i).lam k)).card= (Finset.univ.filter (fun k => γ<(A e).lam k)).card) ∧ let ε := Real.exp (-2*g*L+4*K)+δ*Real.exp ((1+8*(d:ℝ))*g*L+2*K) (∀ i,‖((A i).space (Finset.univ.filter (fun k => (A i).lam k≤γ))).starProjection- ((A e).space (Finset.univ.filter (fun k => (A e).lam k≤γ))).starProjection‖≤3*ε) ∧ ∀ i,‖((A i).space (Finset.univ.filter (fun k => γ<(A i).lam k))).starProjection- ((A e).space (Finset.univ.filter (fun k => γ<(A e).lam k))).starProjection‖≤3*ε := by classical obtain ⟨j,hj⟩ := common_gap A e hg hforward hdecay hnoise refine ⟨j,hj,?_⟩ let γ := (1+8*(j.val:ℝ))*g let Γ := (1+8*(d:ℝ))*g let ε := Real.exp (-2*g*L+4*K)+δ*Real.exp (Γ*L+2*K) let slow (i : ι) := Finset.univ.filter (fun k => (A i).lam k≤γ) let fast (i : ι) := Finset.univ.filter (fun k => γ<(A i).lam k) have hγ : g≤γ ∧ γ≤Γ := by have hval : (j.val:ℝ)≤d := by exact_mod_cast (show j.val≤d by omega) dsimp [γ,Γ] constructor <;> nlinarith [Nat.cast_nonneg (α:=ℝ) j.val] have hf (i : ι) (k : Fin d) (hk : k∈fast i) : γ+g≤(A i).lam k := by have hh : γ<(A i).lam k := by simpa only [fast,Finset.mem_filter,Finset.mem_univ,true_and] using hk rcases (hj i).1 k with h | h <;> linarith have hs (i : ι) (k : Fin d) (hk : k∈slow i) : (A i).lam k≤γ-g := by have hh : (A i).lam k≤γ := by simpa only [slow,Finset.mem_filter,Finset.mem_univ,true_and] using hk rcases (hj i).1 k with h | h <;> linarith have hsc (i : ι) : (slow i)ᶜ=fast i := by ext k; simp [slow,fast] have hfc (i : ι) : (fast i)ᶜ=slow i := by ext k; simp [slow,fast] have hfdim (i : ι) : (fast e).card=(fast i).card := (hj i).2.symm have hsdim (i : ι) : (slow e).card=(slow i).card := by rw [←hfc e,←hfc i,Finset.card_compl,Finset.card_compl,hfdim i] have hbound (a : ℝ) (ha : a≤Γ) : Real.exp (a*L+2*K)*(Real.exp ((-2*g-a)*L+2*K)+δ)≤ε := by rw [mul_add,←Real.exp_add] have hE : a*(L:ℝ)+2*K+((-2*g-a)*L+2*K)= -2*g*L+4*K := by ring rw [hE] change Real.exp (-2*g*L+4*K)+Real.exp (a*L+2*K)*δ ≤ Real.exp (-2*g*L+4*K)+δ*Real.exp (Γ*L+2*K) apply add_le_add (le_refl _) rw [mul_comm] apply mul_le_mul_of_nonneg_left _ hδ apply Real.exp_le_exp.mpr exact add_le_add (mul_le_mul_of_nonneg_right ha (Nat.cast_nonneg L)) (le_refl _) have hp : Real.exp (-(γ+g)*L+2*K)*(Real.exp ((γ-g)*L+2*K)+δ)≤ε := by have heq : -2*g- (-(γ+g))=γ-g := by ring simpa only [heq] using hbound (-(γ+g)) (by linarith) have hm : Real.exp ((γ-g)*L+2*K)*(Real.exp ((-γ-g)*L+2*K)+δ)≤ε := by have heq : -2*g-(γ-g)= -γ-g := by ring simpa only [heq] using hbound (γ-g) (by linarith) have hZ (i : ι) (S : Finset (Fin d)) : (Z i).space S=(A i).space S := by simp only [Gauge.space,hU,hV] constructor · intro i apply (slow_projector_distance (A e) (A i) (slow e) (slow i) (hsdim i) (by rw [norm_sub_rev]; exact hforward i) (by rw [hsc]; exact hf e) (hs i) hδ (hp.trans hsmall)).trans exact mul_le_mul_of_nonneg_left hp (by norm_num) · intro i have hneg : -(-γ+g)=γ-g := by ring have ht := slow_projector_distance (Z e) (Z i) (fast e) (fast i) (γ:=-γ) (g:=g) (δ:=δ) (hfdim i) (by rw [norm_sub_rev]; exact hbackward i) (by intro k hk; rw [hlam]; have hh := hs e k (hfc e ▸ hk); linarith) (by intro k hk; rw [hlam]; have hh := hf i k hk; linarith) hδ (by simpa only [hneg] using hm.trans hsmall) rw [hZ i,hZ e,hneg] at ht exact ht.trans (mul_le_mul_of_nonneg_left hm (by norm_num)) end SmoothObstruction.ShortBin namespace SmoothObstruction.ManifoldCoordinates open Bundle Set Filter Topology open scoped Manifold ContDiff Matrix.Norms.L2Operator variable {d : ℕ} {H : Type*} [TopologicalSpace H] (I : ModelWithCorners ℝ (EuclideanSpace ℝ (Fin d)) H) {M : Type*} [TopologicalSpace M] [T2Space M] [ChartedSpace H M] [IsManifold I ∞ M] {ι : Type*} [Fintype ι] /-- Uniform common reference spaces for actual two-sided smooth orbit witnesses in one bin. Neither continuity of frame choices nor short-product closeness is assumed: both comparisons are taken along the genuine forward and backward orbits, with chart carrying proved from initial closeness. -/ theorem uniform_actual_bin_splitting (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 : ℝ,0 γ<(A i).lam k)).card= (Finset.univ.filter (fun k => γ<(A e).lam k)).card) ∧ let ε := Real.exp (-2*g*N+4*B)+δ*Real.exp ((1+8*(d:ℝ))*g*N+2*B) (∀ i,‖((A i).space (Finset.univ.filter (fun k => (A i).lam k≤γ))).starProjection- ((A e).space (Finset.univ.filter (fun k => (A e).lam k≤γ))).starProjection‖≤3*ε) ∧ ∀ i,‖((A i).space (Finset.univ.filter (fun k => γ<(A i).lam k))).starProjection- ((A e).space (Finset.univ.filter (fun k => γ<(A e).lam k))).starProjection‖≤3*ε := by classical obtain ⟨rF,CF,hrF,hCF,hhF⟩ := actual_short_comparison I hclosed S a K hK hKU obtain ⟨rB,CB,hrB,hCB,hhB⟩ := actual_short_comparison I hclosed S.symm a K hK hKU refine ⟨rF,CF,rB,CB,hrF,hCF,hrB,hCB, fun J x e cF cB N B g h A Z h0 hxsF hxsB hint hsource hdist hsF hsB hEqF hEqB hU hV hlam hg hdecay hnoise hsmall => ?_⟩ have hCF0 : 0≤CF := le_trans (by norm_num) hCF have hCB0 : 0≤CB := le_trans (by norm_num) hCB have hh0 : 0≤h := (norm_nonneg _).trans (hdist e) 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 hcF (i : J) := hhF cF (x e) (x i) N hxsF (hint e) (hint i) (hsource i) ((mul_le_mul_of_nonneg_left (hdist i) (pow_nonneg hCF0 N)).trans hsF) have hcB (i : J) := hhB cB (x e) (x i) N hxsB (hint e) (hint i) (hsourceB i) ((mul_le_mul_of_nonneg_left (hdistB i) (pow_nonneg hCB0 N)).trans hsB) have hpF (i : J) := actual_gauge_product I S (fun t => a (cF t)) (x i) (A i) (fun t ht => (hcF i).1 t ht |>.1) (hint i) (hEqF i) have hpB (i : J) := actual_gauge_product I S.symm (fun t => a (cB t)) (x i) (Z i) (fun t ht => (hcB i).1 t ht |>.1) (hint i) (hEqB i) apply ShortBin.common_splittings A Z e hg (by positivity) _ _ hU hV hlam hdecay hnoise hsmall · intro i rw [←hpF i,←hpF e] apply ((hcF i).2).trans apply (mul_le_mul_of_nonneg_left (hdist i) (by positivity)).trans apply mul_le_mul_of_nonneg_right _ hh0 exact le_add_of_nonneg_right (by positivity) · intro i rw [←hpB i,←hpB e] apply ((hcB i).2).trans apply (mul_le_mul_of_nonneg_left (hdistB i) (by positivity)).trans apply mul_le_mul_of_nonneg_right _ hh0 exact le_add_of_nonneg_left (by positivity) end SmoothObstruction.ManifoldCoordinates end end OAI