import Mathlib import OAI.Analysis.TracialSplitting.PreparedBlocks import OAI.Analysis.JiangSu.Nonunital.NormMaps import OAI.Analysis.JiangSu.CentralSequences.NormUltrapowerUnitaryLift import OAI.Analysis.JiangSu.CStarAlgebras.AmbientIdealConjugation import OAI.Analysis.JiangSu.Nonunital.IsometricHomLimit namespace OAI noncomputable section namespace NonunitalIntertwining open Filter Topology open scoped CStarAlgebra variable {A B : Type*} [NonUnitalCStarAlgebra A] [NonUnitalCStarAlgebra B] def error (n : ℕ) : ℝ := (1/2)^n lemma error_pos (n : ℕ) : 0 φ n x) := by apply (cauchySeq_shift N).mp apply cauchySeq_of_le_geometric (1/2:ℝ) (error N) (by norm_num) intro k have hh := hstep (k+N) x (hS (Nat.le_add_left N k) hx) simpa only [Nat.add_right_comm k 1 N, error, pow_add, mul_comm] using hh lemma controlled_limit_distance (φ : ℕ → A →⋆ₙₐ[ℂ] B) (S : ℕ → Finset A) (hS : Monotone S) (hstep : ∀ n x,x∈S n → dist (φ n x) (φ (n+1) x)≤error n) (ψ : A →⋆ₙₐ[ℂ] B) (hψ : ∀ x,Tendsto (fun n => φ n x) atTop (𝓝 (ψ x))) {N : ℕ} {x : A} (hx : x∈S N) : dist (φ N x) (ψ x)≤2*error N := by have hs (k : ℕ) : dist (φ (k+N) x) (φ ((k+1)+N) x)≤error N*(1/2:ℝ)^k := by have hh := hstep (k+N) x (hS (Nat.le_add_left N k) hx) simpa only [Nat.add_right_comm k 1 N, error, pow_add, mul_comm] using hh have ht : Tendsto (fun k => φ (k+N) x) atTop (𝓝 (ψ x)) := (hψ x).comp (tendsto_add_atTop_nat N) have h := dist_le_of_le_geometric_of_tendsto₀ (1/2:ℝ) (error N) (by norm_num) hs ht norm_num only [Nat.zero_add,show 1-(1/2:ℝ)=1/2 by norm_num] at h convert h using 1 ring theorem equiv_of_chain (φ : ℕ → A →⋆ₙₐ[ℂ] B) (hφ : ∀ n,Isometry (φ n)) (S : ℕ → Finset A) (hS : Monotone S) (a : ℕ → A) (ha : DenseRange a) (b : ℕ → B) (hb : DenseRange b) (hamem : ∀ j,a j∈S j) (hstep : ∀ n x,x∈S n → dist (φ n x) (φ (n+1) x)≤error n) (hpreimage : ∀ n j,j≤n → ∃ x∈S (n+1),dist (φ (n+1) x) (b j)≤error n) : Nonempty (A ≃⋆ₐ[ℂ] B) := by obtain ⟨ψ,hψ⟩ := exists_limit_hom φ a ha (fun j => controlled_cauchy φ S hS hstep (hamem j)) have hi : Isometry ψ := limit_hom_isometry φ hφ ψ hψ have hc : IsClosed (Set.range ψ) := hi.isClosedEmbedding.isClosed_range have hbm (j : ℕ) : b j∈Set.range ψ := by rw [←hc.closure_eq] apply Metric.mem_closure_iff.mpr intro ε hε have ht : Tendsto (fun n => 3*error n) atTop (𝓝 0) := by simpa using error_tendsto.const_mul 3 obtain ⟨N,hN⟩ := eventually_atTop.mp (ht.eventually (gt_mem_nhds hε)) let n := max N j obtain ⟨x,hx,hxb⟩ := hpreimage n j (le_max_right N j) refine ⟨ψ x,⟨x,rfl⟩,?_⟩ have hlim := controlled_limit_distance φ S hS hstep ψ hψ hx have he : error (n+1)=error n/2 := by simp [error,pow_succ]; ring have hbnd := dist_triangle (b j) (φ (n+1) x) (ψ x) rw [dist_comm (b j) (φ (n+1) x)] at hbnd have hn := hN n (le_max_left N j) have hp := error_pos n rw [he] at hlim linarith have hd : DenseRange ψ := hb.mono (by rintro _ ⟨j,rfl⟩; exact hbm j) have hsur : Function.Surjective ψ := by intro y have hh := hd y rwa [hc.closure_eq] at hh exact ⟨StarAlgEquiv.ofBijective ψ ⟨hi.injective,hsur⟩⟩ end NonunitalIntertwining namespace NonunitalIntertwining open scoped CStarAlgebra variable {A B : Type*} [NonUnitalCStarAlgebra A] [NonUnitalCStarAlgebra B] def LocalApproximation (ι : A →⋆ₙₐ[ℂ] B) : Prop := ∀ (F : Finset A) (G : Finset B) (ε : ℝ),0<ε → ∃ β : B ≃⋆ₐ[ℂ] B, (∀ x∈F,dist (β (ι x)) (ι x)<ε) ∧ ∀ y∈G,∃ x : A,dist (β (ι x)) y<ε structure ProtectedEmbedding (A B : Type*) [NonUnitalCStarAlgebra A] [NonUnitalCStarAlgebra B] where automorphism : B ≃⋆ₐ[ℂ] B tracked : Finset A def ProtectedEmbedding.hom (ι : A →⋆ₙₐ[ℂ] B) (P : ProtectedEmbedding A B) : A →⋆ₙₐ[ℂ] B := P.automorphism.toNonUnitalStarAlgHom.comp ι def Transition (ι : A →⋆ₙₐ[ℂ] B) (a : ℕ → A) (b : ℕ → B) (n : ℕ) (P Q : ProtectedEmbedding A B) : Prop := P.tracked⊆Q.tracked ∧ a (n+1)∈Q.tracked ∧ (∀ x∈P.tracked,dist (P.hom ι x) (Q.hom ι x)≤error n) ∧ ∀ j≤n,∃ x∈Q.tracked,dist (Q.hom ι x) (b j)≤error n lemma transition_exists (ι : A →⋆ₙₐ[ℂ] B) (h : LocalApproximation ι) (a : ℕ → A) (b : ℕ → B) (n : ℕ) (P : ProtectedEmbedding A B) : ∃ Q,Transition ι a b n P Q := by classical let G := (Finset.range (n+1)).image (fun j => P.automorphism.symm (b j)) obtain ⟨β,hβ,hb⟩ := h P.tracked G (error n) (error_pos n) have hx (j : Fin (n+1)) : ∃ x : A,dist (β (ι x)) (P.automorphism.symm (b j)) (P n).tracked) := monotone_nat_of_le_succ (fun n => (hP n).1) have hamem (j : ℕ) : a j∈(P j).tracked := by cases j with | zero => exact Finset.mem_singleton_self _ | succ j => exact (hP j).2.1 apply equiv_of_chain (fun n => (P n).hom ι) (fun n => (StarAlgEquiv.isometry (P n).automorphism).comp hi) (fun n => (P n).tracked) hS a ha b hb hamem · intro n x hx exact (hP n).2.2.1 x hx · intro n j hj exact (hP n).2.2.2 j hj end NonunitalIntertwining namespace NonunitalIntertwining open Filter Topology NormUltra NormUltra.QuotientAlgebra NonunitalGamma open scoped CStarAlgebra ENNReal variable {A B E : Type*} [NonUnitalCStarAlgebra A] [NonUnitalCStarAlgebra B] [CStarAlgebra E] variable (k : B →⋆ₙₐ[ℂ] E) (hk : Isometry k) variable (hl : ∀ (e : E) (b : B),e*k b∈Set.range k) variable (hr : ∀ (b : B) (e : E),k b*e∈Set.range k) private lemma norm_eventually_lt (U : Ultrafilter ℕ) (x : BoundedFamilies (fun _ : ℕ => E)) {ε : ℝ} (h : ‖mk U x‖<ε) : ∀ᶠ n in (U : Filter ℕ),‖x n‖<ε := by rw [norm_mk_eq_limsup] at h exact eventually_lt_of_limsup_lt h (BoundedFamilies.norm_bounded U x) def AmbientQuotientConjugacy (U : Ultrafilter ℕ) (ι : A →⋆ₙₐ[ℂ] B) : Prop := ∀ (F : Finset A) (G : Finset B) (ε : ℝ),0<ε → ∃ u : unitary (QuotientAlgebra (fun _ : ℕ => E) U), (∀ x∈F,‖(u : QuotientAlgebra (fun _ : ℕ => E) U)* normInclusion U (k (ι x))*star (u : QuotientAlgebra (fun _ : ℕ => E) U)- normInclusion U (k (ι x))‖<ε) ∧ ∀ y∈G,∃ x : QuotientAlgebra (fun _ : ℕ => A) U, ‖(u : QuotientAlgebra (fun _ : ℕ => E) U)* NonunitalNormMaps.quotientMap U (k.comp ι) x* star (u : QuotientAlgebra (fun _ : ℕ => E) U)-normInclusion U (k y)‖<ε include hk hl hr in theorem local_approximation_of_ambient_quotient (U : Ultrafilter ℕ) (ι : A →⋆ₙₐ[ℂ] B) (h : AmbientQuotientConjugacy k U ι) : LocalApproximation ι := by classical intro F G ε hε obtain ⟨u,hu,hG⟩ := h F G ε hε obtain ⟨v,hv⟩ := unitary_representative U u let f := k.comp ι have htransfer (a : BoundedFamilies (fun _ : ℕ => A)) (b : B) (hh : ‖(u : QuotientAlgebra (fun _ : ℕ => E) U)* mk U (NonunitalNormMaps.boundedMap f a)*star (u : QuotientAlgebra (fun _ : ℕ => E) U)- normInclusion U (k b)‖<ε) : ∀ᶠ n in (U : Filter ℕ),‖ambientConj k hl hr (v n) (ι (a n))-b‖<ε := by let z := boundedUnitary v*NonunitalNormMaps.boundedMap f a* star (boundedUnitary v)-boundedConstant (A := E) (k b) have hz : ‖mk U z‖<ε := by change ‖(u : QuotientAlgebra (fun _ : ℕ => E) U)* mk U (NonunitalNormMaps.boundedMap f a)*star (u : QuotientAlgebra (fun _ : ℕ => E) U)- mk U (boundedConstant (A := E) (k b))‖<ε at hh simpa only [z,mk_sub,mk_mul,mk_star,hv,Unitary.coe_star] using hh have he := norm_eventually_lt U z hz filter_upwards [he] with n hn have hz' : ‖z n‖=‖ambientConj k hl hr (v n) (ι (a n))-b‖ := by change ‖(v n : E)*k (ι (a n))*star (v n : E)- k b‖=_ have he := hk.dist_eq (ambientConj k hl hr (v n) (ι (a n))) b simpa only [dist_eq_norm,ambientConj_spec] using he rwa [hz'] at hn have hf : ∀ᶠ n in (U : Filter ℕ),∀ x∈F,‖ambientConj k hl hr (v n) (ι x)-ι x‖<ε := by apply (Filter.eventually_all_finset F).mpr intro x hx apply htransfer (boundedConstant (A := A) x) (ι x) rw [NonunitalNormMaps.boundedMap_constant] change ‖(u : QuotientAlgebra (fun _ : ℕ => E) U)* normInclusion U (k (ι x))*star (u : QuotientAlgebra (fun _ : ℕ => E) U)- normInclusion U (k (ι x))‖<ε exact hu x hx have hg (y : G) : ∃ x : BoundedFamilies (fun _ : ℕ => A), ∀ᶠ n in (U : Filter ℕ),‖ambientConj k hl hr (v n) (ι (x n))-(y:B)‖<ε := by obtain ⟨x,hx⟩ := hG y y.2 obtain ⟨a,rfl⟩ := mk_surjective x exact ⟨a,htransfer a y hx⟩ choose x hx using hg have hg' : ∀ᶠ n in (U : Filter ℕ),∀ y : G,‖ambientConj k hl hr (v n) (ι (x y n))-(y:B)‖<ε := Filter.eventually_all.mpr hx obtain ⟨n,hfn,hgn⟩ := (hf.and hg').exists refine ⟨ambientConjAut k hk.injective hl hr (v n),?_,?_⟩ · intro x hx simpa only [ambientConjAut_apply,dist_eq_norm] using hfn x hx · intro y hy refine ⟨x ⟨y,hy⟩ n,?_⟩ simpa only [ambientConjAut_apply,dist_eq_norm] using hgn ⟨y,hy⟩ include hk hl hr in theorem equiv_of_ambient_quotient_conjugacy [TopologicalSpace.SeparableSpace A] [TopologicalSpace.SeparableSpace B] (U : Ultrafilter ℕ) (ι : A →⋆ₙₐ[ℂ] B) (hi : Isometry ι) (h : AmbientQuotientConjugacy k U ι) : Nonempty (A ≃⋆ₐ[ℂ] B) := equiv_of_local_approximation ι hi (local_approximation_of_ambient_quotient k hk hl hr U ι h) end NonunitalIntertwining end end OAI