import OAI.Dynamics.SmoothObstruction.ManifoldMatching 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.FiniteBins open Set variable {X C : Type*} (P : X → C) (G : Set X) /-- Only bins meeting the original good set require a reference. -/ def Active := {c : C // ∃ x∈G,P x=c} def Fiber (c : Active P G) := {x : G // P x=c.val} noncomputable def reference (c : Active P G) : Fiber P G c := by classical apply Classical.choice obtain ⟨x,hx,hP⟩ := c.property exact ⟨⟨⟨x,hx⟩,hP⟩⟩ instance [Finite C] : Finite (Active P G) := inferInstanceAs (Finite {category : C // ∃ point∈G,P point=category}) end SmoothObstruction.FiniteBins namespace SmoothObstruction.ManifoldCoordinates open Set Filter Topology Metric MeasureTheory FiniteBins 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] {ι C : Type*} [Fintype ι] /-- The original genuine finite-window estimates produce all starting-bin thresholds simultaneously. Only finite bin reference choices survive: no measurable choice of frame, exponent, or orbit chart code is used. -/ theorem finite_starting_references (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 γ<(A x).lam k)).card= (Finset.univ.filter (fun k => γ<(A x₀).lam k)).card ∧ ‖(((A x).forward I S a c).space (Finset.univ.filter (fun k => (A x).lam k≤γ))).starProjection- (((A x₀).forward I S a c).space (Finset.univ.filter (fun k => (A x₀).lam k≤γ))).starProjection‖≤3*ε ∧ ‖(((A x).forward I S a c).space (Finset.univ.filter (fun k => γ<(A x).lam k))).starProjection- (((A x₀).forward I S a c).space (Finset.univ.filter (fun k => γ<(A x₀).lam k))).starProjection‖≤3*ε := by classical obtain ⟨rF,CF,rB,CB,D,hrF,hCF,hrB,hCB,hD,hh⟩ := uniform_genuine_bin_splitting I hclosed S a K hK hKU refine ⟨rF,CF,rB,CB,D,hrF,hCF,hrB,hCB,hD,?_⟩ intro c P G n N B R h g A hc hN hco hint hdiam hsF hsB hg hdec hsmall have hex (Q : Active P G) := hh c (Fiber P G Q) (fun x => x.val.val) (reference P G Q) n N B R h g (fun x => A x.val) hc hN (fun x => hco _ _ (x.property.trans (reference P G Q).property.symm)) (fun x => hint _ x.val.property) (fun x => hdiam _ _ (x.property.trans (reference P G Q).property.symm)) hsF hsB hg hdec hsmall.1 hsmall.2 choose j hj using hex refine ⟨j,?_⟩ intro Q x₀ γ ε x hx have hgx := (hj Q).1 (⟨x,hx⟩ : Fiber P G Q) exact ⟨hgx.1,hgx.2,(hj Q).2.1 ⟨x,hx⟩,(hj Q).2.2 ⟨x,hx⟩⟩ end SmoothObstruction.ManifoldCoordinates namespace SmoothObstruction.ManifoldCoordinates open Set Filter Topology Metric MeasureTheory FiniteBins 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] {ι C : Type*} [Fintype ι] /-- The endpoint reference is indexed only by starting and endpoint coarse bins. The common starting rank and threshold are retained unchanged. Inactive endpoint keys are not part of the construction or the partition count. -/ theorem finite_endpoint_references (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₁ D : ℝ,0 (P x,P (S^[n] x)) ∃ W : Active EKey G → Submodule ℝ (EuclideanSpace ℝ (Fin d)), ∀ Q : Active EKey G,∀ x:G,EKey x=Q.val → Module.finrank ℝ (W Q)=(T x).card ∧ ‖((A x).forwardSpace I S a c n (T x)).starProjection-(W Q).starProjection‖≤ 3*(Real.exp ((γ (P x)-g)*N+2*(B+Real.log D))* (Real.exp ((-γ (P x)-g)*N+2*(B+Real.log D))+N*C₁*C₁^(2*N)*h)) := by classical obtain ⟨r,C₁,D,hr,hC,hD,hh⟩ := uniform_original_endpoint_fast_comparison I hclosed S a K hK hKU refine ⟨r,C₁,D,hr,hC,hD,?_⟩ intro c P G n N B R h g γ T A hc hN hco hint hdiam ht hn hdim hslow hfast hsmall EKey let ref (Q : Active EKey G) : G := (reference EKey G Q).val let W (Q : Active EKey G) := (A (ref Q)).forwardSpace I S a c n (T (ref Q)) refine ⟨W,?_⟩ intro Q x hx have hp (y : Fiber EKey G Q) : EKey y.val=EKey (ref Q) := y.property.trans (reference EKey G Q).property.symm have hq (y : Fiber EKey G Q) : P y.val=P (ref Q) := congrArg Prod.fst (hp y) have hend (y : Fiber EKey G Q) : P (S^[n] y.val.val)=P (S^[n] (ref Q).val) := congrArg Prod.snd (hp y) have he : P x=P (ref Q) := hq ⟨x,hx⟩ constructor · exact (EuclideanSplitting.finrank_groupSpace ((A (ref Q)).UF n) ((A (ref Q)).VF n) ((A (ref Q)).invF n).1 ((A (ref Q)).invF n).2 (T (ref Q))).trans (hdim _ _ he.symm) · have hb := hh c (Fiber EKey G Q) (fun y => y.val.val) (reference EKey G Q) n N B R h (γ (P (ref Q))) g (fun y => T y.val) (fun y => A y.val) hc hN (fun y => hco _ _ (hend y)) (fun y => hint _ y.val.property) (fun y => hdiam _ _ (hend y)) ht hn (fun y => hdim _ _ (hq y).symm) (fun y j hj => by simpa only [←hq y] using hslow y.val j hj) (fun y j hj => by simpa only [←hq y] using hfast y.val j hj) (hsmall (P (ref Q))) (⟨x,hx⟩ : Fiber EKey G Q) simpa only [W,ref,he] using hb end SmoothObstruction.ManifoldCoordinates namespace SmoothObstruction.ManifoldCoordinates open scoped Manifold ContDiff Matrix.Norms.L2Operator variable {d : ℕ} {H : Type*} [TopologicalSpace H] (I : ModelWithCorners ℝ (EuclideanSpace ℝ (Fin d)) H) {M : Type*} [MetricSpace M] [ChartedSpace H M] [IsManifold I ∞ M] {ι : Type*} (S : Diffeomorph I I M M ∞) (a : ι → M) (c : M → ι) {n : ℕ} {B R : ℝ} {x : M} /-- Time reversal keeps the original gauge and negates its rates; it is not an independently selected certificate. -/ noncomputable def BilateralGauge.reverse (A : BilateralGauge I S a c n B R x) : BilateralGauge I S.symm a c n B R x where lam := fun j => -A.lam j rate_bound j := by simpa only [abs_neg] using A.rate_bound j UF := A.UB VF := A.VB UB := A.UF VB := A.VF invF := A.invB invB := A.invF centerU := A.centerU.symm centerV := A.centerV.symm normF := A.normB normB := A.normF stepF := A.stepB stepB t ht := by have he : S.symm.symm = S := by ext x; rfl simpa only [he,neg_neg] using A.stepF t ht @[simp] lemma BilateralGauge.reverse_forwardSpace (A : BilateralGauge I S a c n B R x) (t : ℕ) (T : Finset (Fin d)) : (A.reverse I S a c).forwardSpace I S.symm a c t T=A.backwardSpace I S a c t T := rfl /-- The two true middle subspaces agree exactly. -/ lemma BilateralGauge.backwardSpace_zero (A : BilateralGauge I S a c n B R x) (T : Finset (Fin d)) : A.backwardSpace I S a c 0 T=A.forwardSpace I S a c 0 T := by simp only [BilateralGauge.backwardSpace,BilateralGauge.forwardSpace,A.centerU,A.centerV] end SmoothObstruction.ManifoldCoordinates namespace SmoothObstruction.FiniteBins open Set variable {X C Z : Type*} (P : X → C) (G : Set X) def key (x : G) : Active P G := ⟨P x,⟨x,x.property,rfl⟩⟩ noncomputable def extend (f : Active P G → Z) (z₀ : Z) (c : C) : Z := by classical exact if h : ∃ x∈G,P x=c then f ⟨c,h⟩ else z₀ @[simp] lemma extend_active (f : Active P G → Z) (z₀ : Z) (c : Active P G) : extend P G f z₀ c.val=f c := by classical simp only [extend,dite_eq_left c.property] congr 1 @[simp] lemma extend_key (f : Active P G → Z) (z₀ : Z) (x : G) : extend P G f z₀ (P x)=f (key P G x) := extend_active P G f z₀ (key P G x) end SmoothObstruction.FiniteBins namespace SmoothObstruction.ManifoldCoordinates open Set Filter Topology Metric MeasureTheory FiniteBins 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] {ι C : Type*} [Fintype ι] /-- All future and past reference projectors are selected from the same original good inputs. Their labels are exactly (starting bin, endpoint bin). Time reversal is the original bilateral gauge, so its endpoint rank is the complementary original rank, not a new threshold or a separately chosen frame. -/ theorem bilateral_endpoint_references (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 DF rB CB DB : ℝ,0 (hint x hx).1) hdiam htF hh hcard hslow hfast hsmallF have hcardB (x y : G) (hxy : P x=P y) : (T x)ᶜ.card=(T y)ᶜ.card := by simp only [Finset.card_compl,Fintype.card_fin,hcard x y hxy] have hsB (x : G) (j : Fin d) (hj : j∈((T x)ᶜ)ᶜ) : -((A x).lam j)≤(-γ (P x))-g := by simp only [compl_compl] at hj linarith [hfast x j hj] have hfB (x : G) (j : Fin d) (hj : j∈(T x)ᶜ) : (-γ (P x))+g≤-((A x).lam j) := by linarith [hslow x j hj] obtain ⟨WB,hWB⟩ := hB c P G n N B R h g (fun q => -γ q) (fun x => (T x)ᶜ) (fun x => (A x).reverse I S a c) hc hN hco (fun x hx => (hint x hx).2) hdiam htB hh hcardB hsB hfB (by simpa only [neg_neg] using hsmallB) let PF (x : M) := (P x,P (S^[n] x)) let PB (x : M) := (P x,P (S.symm^[n] x)) refine ⟨extend PF G WF ⊥,extend PB G WB ⊥,?_⟩ intro x have hFx := hWF (key PF G x) x rfl have hBx := hWB (key PB G x) x rfl have eF := extend_key PF G WF (⊥ : Submodule ℝ (EuclideanSpace ℝ (Fin d))) x have eB := extend_key PB G WB (⊥ : Submodule ℝ (EuclideanSpace ℝ (Fin d))) x dsimp only [PF,PB] at eF eB hFx hBx ⊢ rw [eF,eB] refine ⟨hFx.1,?_,hFx.2,?_⟩ · simpa only [Finset.card_compl,Fintype.card_fin] using hBx.1 · simpa only [BilateralGauge.reverse_forwardSpace,neg_neg] using hBx.2 end SmoothObstruction.ManifoldCoordinates namespace SmoothObstruction.ManifoldCoordinates open Set Filter Topology Metric MeasureTheory FiniteBins 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] {ι C : Type*} [Fintype ι] noncomputable def fastSet (v : Fin d → ℝ) (γ : ℝ) : Finset (Fin d) := by classical exact Finset.univ.filter (fun j => γ v j≤γ) lemma slowSet_eq_compl (v : Fin d → ℝ) (γ : ℝ) : slowSet v γ=(fastSet v γ)ᶜ := by classical ext j simp only [fastSet,slowSet,Finset.mem_filter,Finset.mem_univ,true_and,Finset.mem_compl,not_lt] /-- Simultaneous starting and two endpoint references derived from the ORIGINAL bilateral good gauges. All choices are finite bin choices: the pointwise frames and rate lists are never made into a measurable refinement. -/ theorem finite_references (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₁ r₂ C₂ D r₃ C₃ D₃ r₄ C₄ D₄ : ℝ, 0 exact hx | succ t ih => rw [Function.iterate_succ_apply'] exact ((F.isLocalDiffeomorph _).isInteriorPoint_iff (by simp)).mp ih obtain ⟨Wf,Wb,hW⟩ := he c P G n N B R h g γ T A hc hN hco (fun x hx => ⟨hi S x (hint x hx) n,hi S.symm x (hint x hx) n⟩) hdiam ht₃ ht₄ hh hcard hsc hfc (fun q => hfml (j q)) (fun q => hbml (j q)) refine ⟨j,Wf,Wb,hsc,hfc,hcard,?_,hW⟩ intro x y have hy : P y=P x := (reference P G (key P G x)).property have hxs := (hj₀ (key P G x) x rfl).2.2 dsimp only [T] rw [←slowSet_eq_compl,←slowSet_eq_compl] simpa only [γ,hy,hj x,slowSet,fastSet] using hxs end SmoothObstruction.ManifoldCoordinates namespace SmoothObstruction.ManifoldCoordinates open Set Filter Topology Metric MeasureTheory FiniteBins 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 ι] theorem finite_starting_references_uniform (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 γ<(A x).lam k)).card= (Finset.univ.filter (fun k => γ<(A x₀).lam k)).card ∧ ‖(((A x).forward I S a c).space (Finset.univ.filter (fun k => (A x).lam k≤γ))).starProjection- (((A x₀).forward I S a c).space (Finset.univ.filter (fun k => (A x₀).lam k≤γ))).starProjection‖≤3*ε ∧ ‖(((A x).forward I S a c).space (Finset.univ.filter (fun k => γ<(A x).lam k))).starProjection- (((A x₀).forward I S a c).space (Finset.univ.filter (fun k => γ<(A x₀).lam k))).starProjection‖≤3*ε := by classical obtain ⟨rF,CF,rB,CB,D,hrF,hCF,hrB,hCB,hD,hh⟩ := uniform_genuine_bin_splitting I hclosed S a K hK hKU refine ⟨rF,CF,rB,CB,D,hrF,hCF,hrB,hCB,hD,?_⟩ intro C c P G n N B R h g A hc hN hco hint hdiam hsF hsB hg hdec hsmall have hex (Q : Active P G) := hh c (Fiber P G Q) (fun x => x.val.val) (reference P G Q) n N B R h g (fun x => A x.val) hc hN (fun x => hco _ _ (x.property.trans (reference P G Q).property.symm)) (fun x => hint _ x.val.property) (fun x => hdiam _ _ (x.property.trans (reference P G Q).property.symm)) hsF hsB hg hdec hsmall.1 hsmall.2 choose j hj using hex refine ⟨j,?_⟩ intro Q x₀ γ ε x hx have hgx := (hj Q).1 (⟨x,hx⟩ : Fiber P G Q) exact ⟨hgx.1,hgx.2,(hj Q).2.1 ⟨x,hx⟩,(hj Q).2.2 ⟨x,hx⟩⟩ end SmoothObstruction.ManifoldCoordinates namespace SmoothObstruction.ManifoldCoordinates open Set Filter Topology Metric MeasureTheory FiniteBins 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 ι] theorem finite_endpoint_references_uniform (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₁ D : ℝ,0 (P x,P (S^[n] x)) ∃ W : Active EKey G → Submodule ℝ (EuclideanSpace ℝ (Fin d)), ∀ Q : Active EKey G,∀ x:G,EKey x=Q.val → Module.finrank ℝ (W Q)=(T x).card ∧ ‖((A x).forwardSpace I S a c n (T x)).starProjection-(W Q).starProjection‖≤ 3*(Real.exp ((γ (P x)-g)*N+2*(B+Real.log D))* (Real.exp ((-γ (P x)-g)*N+2*(B+Real.log D))+N*C₁*C₁^(2*N)*h)) := by classical obtain ⟨r,C₁,D,hr,hC,hD,hh⟩ := uniform_original_endpoint_fast_comparison I hclosed S a K hK hKU refine ⟨r,C₁,D,hr,hC,hD,?_⟩ intro C c P G n N B R h g γ T A hc hN hco hint hdiam ht hn hdim hslow hfast hsmall EKey let ref (Q : Active EKey G) : G := (reference EKey G Q).val let W (Q : Active EKey G) := (A (ref Q)).forwardSpace I S a c n (T (ref Q)) refine ⟨W,?_⟩ intro Q x hx have hp (y : Fiber EKey G Q) : EKey y.val=EKey (ref Q) := y.property.trans (reference EKey G Q).property.symm have hq (y : Fiber EKey G Q) : P y.val=P (ref Q) := congrArg Prod.fst (hp y) have hend (y : Fiber EKey G Q) : P (S^[n] y.val.val)=P (S^[n] (ref Q).val) := congrArg Prod.snd (hp y) have he : P x=P (ref Q) := hq ⟨x,hx⟩ constructor · exact (EuclideanSplitting.finrank_groupSpace ((A (ref Q)).UF n) ((A (ref Q)).VF n) ((A (ref Q)).invF n).1 ((A (ref Q)).invF n).2 (T (ref Q))).trans (hdim _ _ he.symm) · have hb := hh c (Fiber EKey G Q) (fun y => y.val.val) (reference EKey G Q) n N B R h (γ (P (ref Q))) g (fun y => T y.val) (fun y => A y.val) hc hN (fun y => hco _ _ (hend y)) (fun y => hint _ y.val.property) (fun y => hdiam _ _ (hend y)) ht hn (fun y => hdim _ _ (hq y).symm) (fun y j hj => by simpa only [←hq y] using hslow y.val j hj) (fun y j hj => by simpa only [←hq y] using hfast y.val j hj) (hsmall (P (ref Q))) (⟨x,hx⟩ : Fiber EKey G Q) simpa only [W,ref,he] using hb end SmoothObstruction.ManifoldCoordinates namespace SmoothObstruction.ManifoldCoordinates open Set Filter Topology Metric MeasureTheory FiniteBins 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 ι] theorem bilateral_endpoint_references_uniform (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 DF rB CB DB : ℝ,0 (hint x hx).1) hdiam htF hh hcard hslow hfast hsmallF have hcardB (x y : G) (hxy : P x=P y) : (T x)ᶜ.card=(T y)ᶜ.card := by simp only [Finset.card_compl,Fintype.card_fin,hcard x y hxy] have hsB (x : G) (j : Fin d) (hj : j∈((T x)ᶜ)ᶜ) : -((A x).lam j)≤(-γ (P x))-g := by simp only [compl_compl] at hj linarith [hfast x j hj] have hfB (x : G) (j : Fin d) (hj : j∈(T x)ᶜ) : (-γ (P x))+g≤-((A x).lam j) := by linarith [hslow x j hj] obtain ⟨WB,hWB⟩ := hB C c P G n N B R h g (fun q => -γ q) (fun x => (T x)ᶜ) (fun x => (A x).reverse I S a c) hc hN hco (fun x hx => (hint x hx).2) hdiam htB hh hcardB hsB hfB (by simpa only [neg_neg] using hsmallB) let PF (x : M) := (P x,P (S^[n] x)) let PB (x : M) := (P x,P (S.symm^[n] x)) refine ⟨extend PF G WF ⊥,extend PB G WB ⊥,?_⟩ intro x have hFx := hWF (key PF G x) x rfl have hBx := hWB (key PB G x) x rfl have eF := extend_key PF G WF (⊥ : Submodule ℝ (EuclideanSpace ℝ (Fin d))) x have eB := extend_key PB G WB (⊥ : Submodule ℝ (EuclideanSpace ℝ (Fin d))) x dsimp only [PF,PB] at eF eB hFx hBx ⊢ rw [eF,eB] refine ⟨hFx.1,?_,hFx.2,?_⟩ · simpa only [Finset.card_compl,Fintype.card_fin] using hBx.1 · simpa only [BilateralGauge.reverse_forwardSpace,neg_neg] using hBx.2 end SmoothObstruction.ManifoldCoordinates namespace SmoothObstruction.ManifoldCoordinates open Set Filter Topology Metric MeasureTheory FiniteBins 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 ι] theorem finite_references_uniform (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₁ r₂ C₂ D r₃ C₃ D₃ r₄ C₄ D₄ : ℝ, 0 exact hx | succ t ih => rw [Function.iterate_succ_apply'] exact ((F.isLocalDiffeomorph _).isInteriorPoint_iff (by simp)).mp ih obtain ⟨Wf,Wb,hW⟩ := he C c P G n N B R h g γ T A hc hN hco (fun x hx => ⟨hi S x (hint x hx) n,hi S.symm x (hint x hx) n⟩) hdiam ht₃ ht₄ hh hcard hsc hfc (fun q => hfml (j q)) (fun q => hbml (j q)) refine ⟨j,Wf,Wb,hsc,hfc,hcard,?_,hW⟩ intro x y have hy : P y=P x := (reference P G (key P G x)).property have hxs := (hj₀ (key P G x) x rfl).2.2 dsimp only [T] rw [←slowSet_eq_compl,←slowSet_eq_compl] simpa only [γ,hy,hj x,slowSet,fastSet] using hxs end SmoothObstruction.ManifoldCoordinates namespace SmoothObstruction.ManifoldCoordinates open Set Metric Filter Topology open scoped Manifold ContDiff 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 ι] /-- All the one-step tube/Taylor hypotheses used by the boundary-value solver follow from actual one-step smoothness on the finite compact atlas. The only variable-domain input is the literal avoidance of the boundary. -/ theorem actual_tube_data (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 ?_⟩ have hball := closedBall_subset_closedBall hδr (x:=(extChartAt I (a i)) x) have hdat := hh i j x hx hSx have hdom := hball.trans hdat.1 refine ⟨?_,hdom,fun y hy => ?_⟩ · intro y hy rw [extChartAt,OpenPartialHomeomorph.extend_target] exact ⟨(hdom hy).1,interior_subset (hsafe hy)⟩ · have hyd := hdat.2 y (hball hy) (hsafe hy) refine ⟨hyd.1,hyd.2.1,?_⟩ apply (convex_closedBall ((extChartAt I (a i)) x) δ).norm_image_sub_le_of_norm_fderiv_le (𝕜:=ℝ) · intro z hz exact ((hdat.2 z (hball hz) (hsafe hz)).1.fderiv_right (m:=∞) (by simp)).differentiableAt (by simp) · intro z hz exact (hdat.2 z (hball hz) (hsafe hz)).2.2 · exact mem_closedBall_self hδ · exact hy end SmoothObstruction.ManifoldCoordinates namespace SmoothObstruction.ManifoldCoordinates open Set Metric open scoped Manifold ContDiff Matrix.Norms.L2Operator variable {d : ℕ} {H : Type*} [TopologicalSpace H] (I : ModelWithCorners ℝ (EuclideanSpace ℝ (Fin d)) H) {M : Type*} [MetricSpace M] [ChartedSpace H M] [IsManifold I ∞ M] {ι : Type*} (S : Diffeomorph I I M M ∞) (a : ι → M) (c : M → ι) {n : ℕ} {B R : ℝ} {x : M} open FiniteGreen ShortBin lemma BilateralGauge.forward_space (A : BilateralGauge I S a c n B R x) (T : Finset (Fin d)) : (A.forward I S a c).space T=A.forwardSpace I S a c 0 T := by simp only [Gauge.space,BilateralGauge.forward,BilateralGauge.forwardSpace, Gauge.ofFinite,Nat.zero_min] lemma BilateralGauge.backward_space (A : BilateralGauge I S a c n B R x) (T : Finset (Fin d)) : (A.backward I S a c).space T=A.forwardSpace I S a c 0 T := by simp only [Gauge.space,BilateralGauge.backward,BilateralGauge.forwardSpace, Gauge.ofFinite,Nat.zero_min,A.centerU,A.centerV] lemma BilateralGauge.forward_fast (A : BilateralGauge I S a c n B R x) (T : Finset (Fin d)) : (((A.forward I S a c).splitting T).fast n).range= A.forwardSpace I S a c n Tᶜ := by rw [Gauge.splitting,EuclideanSplitting.splitting_fast_range] simp only [BilateralGauge.forward,BilateralGauge.forwardSpace,Gauge.ofFinite,Nat.min_self] lemma BilateralGauge.backward_fast (A : BilateralGauge I S a c n B R x) (T : Finset (Fin d)) : (((A.backward I S a c).splitting T).fast n).range= A.backwardSpace I S a c n Tᶜ := by rw [Gauge.splitting,EuclideanSplitting.splitting_fast_range] simp only [BilateralGauge.backward,BilateralGauge.backwardSpace,Gauge.ofFinite,Nat.min_self] /-- An old tube tests the candidate in the original input's selected charts. The candidate is not required to belong to the good set. -/ def originalTube (δ : ℝ) (x z : M) : Prop := ∀ t : Fin (n+1),S^[t.val] z∈(chartAt H (a (c (S^[t.val] x)))).source ∧ ‖(extChartAt I (a (c (S^[t.val] x)))) (S^[t.val] z)- (extChartAt I (a (c (S^[t.val] x)))) (S^[t.val] x)‖≤δ /-- Fixed endpoint projection, still based on the old input's endpoint chart. -/ def originalEndpoint (V : Submodule ℝ (EuclideanSpace ℝ (Fin d))) (x z : M) : Prop := V.starProjection ((extChartAt I (a (c (S^[n] x)))) (S^[n] z))= V.starProjection ((extChartAt I (a (c (S^[n] x)))) (S^[n] x)) end SmoothObstruction.ManifoldCoordinates namespace SmoothObstruction.ManifoldCoordinates open Set Metric open scoped Manifold ContDiff Matrix.Norms.L2Operator variable {d : ℕ} {H : Type*} [TopologicalSpace H] (I : ModelWithCorners ℝ (EuclideanSpace ℝ (Fin d)) H) {M : Type*} [MetricSpace M] [ChartedSpace H M] [IsManifold I ∞ M] {ι : Type*} [Fintype ι] open FiniteGreen ShortBin private lemma projection_diff_iff (V : Submodule ℝ (EuclideanSpace ℝ (Fin d))) (u v : EuclideanSpace ℝ (Fin d)) : V.orthogonalProjectionOnto (u-v)=0 ↔ V.starProjection u=V.starProjection v := by constructor · intro h have hh := congrArg Subtype.val h change V.starProjection (u-v)=0 at hh simpa only [map_sub,sub_eq_zero] using hh · intro h apply Subtype.ext change V.starProjection (u-v)=0 simpa only [map_sub,sub_eq_zero] using h /-- An actual two-sided joining. The uniform geometry is chosen BEFORE the window, good gauges, cells, thresholds, or endpoint ranks. Every tube and Taylor hypothesis is derived here from the source finite atlas; the only tube-domain condition retained is the literal avoidance of the manifold boundary. -/ theorem original_gauged_join (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 (c (S^[t.val] x)) let ab : Fin (n+1) → M := fun t => a (c (S.symm^[t.val] y)) have hgeomF (t : Fin (n+1)) := hF (c (S^[t.val] x)) (c (S (S^[t.val] x))) (S^[t.val] x) δ (hc _) (hc _) hδ.le (hδr.trans (min_le_left _ _)) (hsafeF t) have hgeomB (t : Fin (n+1)) := hB (c (S.symm^[t.val] y)) (c (S.symm (S.symm^[t.val] y))) (S.symm^[t.val] y) δ (hc _) (hc _) hδ.le (hδr.trans (min_le_right _ _)) (hsafeB t) have hstepF (t : Fin n) : (Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ)).symm (coord I S (af t.castSucc) (af t.succ) (S^[t.val] x))*(Ax.forward I S a c).U t= (Ax.forward I S a c).U (t+1)*EuclideanSplitting.rate (Ax.forward I S a c).lam 1 := by simpa only [af,Fin.val_castSucc,Fin.val_succ,BilateralGauge.forward,Gauge.ofFinite, Nat.min_eq_left t.isLt.le,Nat.min_eq_left (Nat.succ_le_of_lt t.isLt)] using Ax.stepF t t.isLt have hstepB (t : Fin n) : (Matrix.toEuclideanCLM (n:=Fin d) (𝕜:=ℝ)).symm (coord I S.symm (ab t.castSucc) (ab t.succ) (S.symm^[t.val] y))*(Ay.backward I S a c).U t= (Ay.backward I S a c).U (t+1)*EuclideanSplitting.rate (Ay.backward I S a c).lam 1 := by simpa only [ab,Fin.val_castSucc,Fin.val_succ,BilateralGauge.backward,Gauge.ofFinite, Nat.min_eq_left t.isLt.le,Nat.min_eq_left (Nat.succ_le_of_lt t.isLt)] using Ay.stepB t t.isLt have hdV' : Module.finrank ℝ (((Ax.forward I S a c).splitting Txᶜ).fast n).range= Module.finrank ℝ V := by have he := Ax.forward_fast I S a c Txᶜ simp only [compl_compl] at he exact (congrArg (fun Z : Submodule ℝ (EuclideanSpace ℝ (Fin d)) => Module.finrank ℝ Z) he).trans hdV have hcV' : ‖(((Ax.forward I S a c).splitting Txᶜ).fast n).range.starProjection- V.starProjection‖≤1/2 := by simpa only [Ax.forward_fast,compl_compl] using hcV have hdW' : Module.finrank ℝ (((Ay.backward I S a c).splitting Ty).fast n).range= Module.finrank ℝ W := by exact (congrArg (fun Z : Submodule ℝ (EuclideanSpace ℝ (Fin d)) => Module.finrank ℝ Z) (Ay.backward_fast I S a c Ty)).trans hdW have hcW' : ‖(((Ay.backward I S a c).splitting Ty).fast n).range.starProjection- W.starProjection‖≤1/2 := by simpa only [Ay.backward_fast] using hcW have hjoin := gauged_join_ideal I S af ab x y (by simp only [af,ab,Fin.val_zero,Function.iterate_zero_apply,hxy]) (fun t => hKU _ (hc _)) (fun t => hKU _ (hc _)) hix hiy (A₀.forward I S a c) (Ax.forward I S a c) (Ay.backward I S a c) T₀ᶜ Txᶜ Ty V W hdV' hdW' hcV' hcW' hε hεhalf (by simp only [Finset.card_compl,hdS]) (by simpa only [compl_compl] using hdT) (by simpa only [BilateralGauge.forward_space] using hcS) (by simpa only [BilateralGauge.forward_space,BilateralGauge.backward_space,compl_compl] using hcT) hsmall hsx (by simpa only [compl_compl,BilateralGauge.forward,Gauge.ofFinite] using hfx) (by intro j hj; change -Ay.lam j≤ -γ-g; linarith [hfy j hj]) (by intro j hj; change -γ+g≤ -Ay.lam j; linarith [hsy j hj]) hgap hα hstepF hstepB (show 0≤C by linarith) hr hδ (by intro t z hz; simpa only [af,Fin.val_castSucc,Fin.val_succ,Function.iterate_succ_apply'] using ((hgeomF t.castSucc).2.2 z hz).1.differentiableAt (by simp)) (by intro t z hz; simpa only [ab,Fin.val_castSucc,Fin.val_succ,Function.iterate_succ_apply'] using ((hgeomB t.castSucc).2.2 z hz).1.differentiableAt (by simp)) (by intro t z hz simpa only [af,Fin.val_castSucc,Fin.val_succ,Function.iterate_succ_apply'] using (((hgeomF t.castSucc).2.2 z hz).2.2).trans (mul_le_mul_of_nonneg_right hFC (norm_nonneg _))) (by intro t z hz simpa only [ab,Fin.val_castSucc,Fin.val_succ,Function.iterate_succ_apply'] using (((hgeomB t.castSucc).2.2 z hz).2.2).trans (mul_le_mul_of_nonneg_right hBC (norm_nonneg _))) (fun t => (hgeomF t).1) (fun t => (hgeomB t).1) (by intro t; simpa only [af,Fin.val_castSucc,Fin.val_succ,Function.iterate_succ_apply'] using (hgeomF t.castSucc).2.1) (by intro t; simpa only [ab,Fin.val_castSucc,Fin.val_succ,Function.iterate_succ_apply'] using (hgeomB t.castSucc).2.1) (by simpa only [af,ab,Fin.val_zero,Function.iterate_zero_apply] using hnear) hcontract hdata obtain ⟨z,hzF,hzB,hzV,hzW,hsharpF,hsharpB,hideal,hunique⟩ := hjoin have hV (z' : M) : (((Ax.forward I S a c).splitting Txᶜ).terminalProjection n V hdV' hcV').P ((extChartAt I (af (Fin.last n))) (S^[n] z')- (extChartAt I (af (Fin.last n))) (S^[n] x))=0 ↔ originalEndpoint I S a c (n:=n) V x z' := by exact projection_diff_iff V _ _ have hW (z' : M) : (((Ay.backward I S a c).splitting Ty).terminalProjection n W hdW' hcW').P ((extChartAt I (ab (Fin.last n))) (S.symm^[n] z')- (extChartAt I (ab (Fin.last n))) (S.symm^[n] y))=0 ↔ originalEndpoint I S.symm a c (n:=n) W y z' := by exact projection_diff_iff W _ _ refine ⟨z,hzF,hzB,(hV z).mp hzV,(hW z).mp hzW,?_,?_,hideal,?_⟩ · exact fun t => ⟨(hzF t).1,hsharpF t⟩ · exact fun t => ⟨(hzB t).1,hsharpB t⟩ · intro z' hzF' hzB' hzV' hzW' exact hunique z' hzF' hzB' ((hV z').mpr hzV') ((hW z').mpr hzW') end SmoothObstruction.ManifoldCoordinates end end OAI