import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Range import OAI.Analysis.FactorGeneration.SpectralTruncation import OAI.Analysis.FactorGeneration.Subfactors namespace OAI noncomputable section namespace Generator.Tracial /-! The orthogonal subalgebra representative of a self-adjoint ambient operator is constructed, with its operator norm bound. -/ section open scoped ComplexStarModule open UltrapowerBridge variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] variable {N M : VonNeumannAlgebra H} theorem selfAdjoint_pairing_im (τ : TracialRepresentation M) (a b : M.toStarSubalgebra) (ha : IsSelfAdjoint a) (hb : IsSelfAdjoint b) : (τ.trace (a*b)).im=0 := by apply Complex.conj_eq_iff_im.mp have hi := inner_conj_symm (𝕜 := ℂ) (baseVector τ a) (baseVector τ b) rw [baseVector_inner_trace,baseVector_inner_trace,ha.star_eq,hb.star_eq] at hi simpa only [τ.trace_mul_comm b a] using hi theorem exists_selfAdjoint_expectation (τ : TracialRepresentation M) (hNM : N ≤ M) (x : M.toStarSubalgebra) (hx : IsSelfAdjoint x) : ∃ c : N.toStarSubalgebra, IsSelfAdjoint c ∧ ‖c‖ ≤ ‖x‖ ∧ TraceOrthogonal τ (insideAlgebra (M := M) (P := N)) (x-coordinateInclusion hNM c) := by obtain ⟨c,hc,hcR,hmin,hvar⟩ := exists_selfAdjoint_ball_variational τ hNM x (‖x‖+1) (by positivity) have hcn := selfAdjoint_ball_minimum_norm τ hNM x hx (‖x‖+1) c hc hcR hmin let r := x-coordinateInclusion hNM c have hr : IsSelfAdjoint r := hx.sub (included_selfAdjoint hNM c hc) have hreal (a : N.toStarSubalgebra) (ha : IsSelfAdjoint a) : (τ.trace (coordinateInclusion hNM a*r)).re=0 := by let t : ℝ := 1/(‖a‖+1) have ht : 0 t⁻) hc theorem conditionalExpectation_nonneg (hNM : N ≤ M) (x : M.toStarSubalgebra) (hx : 0 ≤ x) : 0 ≤ conditionalExpectation τ hNM x := by let c := conditionalExpectation τ hNM x have hc : IsSelfAdjoint c := (conditionalExpectation_selfAdjoint τ hNM x hx.isSelfAdjoint).1 have hd := CFC.negPart_nonneg c have hmem := negPart_mem_inside c (conditionalExpectation_mem τ hNM x) have ho := conditionalExpectation_orthogonal τ hNM x ⟨c⁻,hmem⟩ change τ.trace (c⁻*(x-c))=0 at ho rw [mul_sub,trace_sub,sub_eq_zero] at ho have hprod : c⁻*c= -(c⁻*c⁻) := by nth_rw 2 [← CFC.posPart_sub_negPart c hc] rw [mul_sub,CFC.negPart_mul_posPart,zero_sub] have hp := trace_mul_nonneg τ c⁻ x hd hx rw [ho,hprod] at hp have htrace : τ.trace (-(c⁻*c⁻))= -τ.trace (c⁻*c⁻) := map_neg (coordinateTraceLinear τ) _ have hsq : (τ.trace (c⁻*c⁻)).re=τ.norm₂ c⁻^2 := by rw [norm₂_sq_trace τ,hd.isSelfAdjoint.star_eq] rw [htrace,Complex.neg_re,hsq] at hp have hz := (τ.norm₂_eq_zero_iff c⁻).mp (sq_eq_zero_iff.mp (by nlinarith [sq_nonneg (τ.norm₂ c⁻)])) exact (CFC.negPart_eq_zero_iff c hc).mp hz theorem conditionalExpectation_mono (hNM : N ≤ M) (x y : M.toStarSubalgebra) (hxy : x ≤ y) : conditionalExpectation τ hNM x ≤ conditionalExpectation τ hNM y := by have h := conditionalExpectation_nonneg τ hNM (y-x) (sub_nonneg.mpr hxy) change 0 ≤ conditionalExpectationCLM τ hNM (y-x) at h rw [map_sub] at h exact sub_nonneg.mp h end /-! The constructed expectation satisfies the Schwarz inequality and is contractive in operator norm. -/ section open scoped CStarAlgebra open UltrapowerBridge variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] variable {N M : VonNeumannAlgebra H} (τ : TracialRepresentation M) local instance expectationContractiveCStar : CStarAlgebra M.toStarSubalgebra := {} local instance expectationContractiveOrder : PartialOrder M.toStarSubalgebra := CStarAlgebra.spectralOrder _ local instance expectationContractivePreorder : Preorder M.toStarSubalgebra := (CStarAlgebra.spectralOrder _).toPreorder local instance expectationContractiveLE : LE M.toStarSubalgebra := (CStarAlgebra.spectralOrder _).toLE local instance expectationContractiveStarOrder : StarOrderedRing M.toStarSubalgebra := CStarAlgebra.spectralOrderedRing _ theorem conditionalExpectation_schwarz (hNM : N ≤ M) (x : M.toStarSubalgebra) : star (conditionalExpectation τ hNM x)*conditionalExpectation τ hNM x ≤ conditionalExpectation τ hNM (star x*x) := by let y := conditionalExpectation τ hNM x have hy : y.val ∈ N := conditionalExpectation_mem τ hNM x have hys : (star y).val ∈ N := star_mem hy have hp := conditionalExpectation_nonneg τ hNM (star (x-y)*(x-y)) (star_mul_self_nonneg _) have he : conditionalExpectation τ hNM (star (x-y)*(x-y))= conditionalExpectation τ hNM (star x*x)-star y*y := by simp only [star_sub,sub_mul,mul_sub] change conditionalExpectationCLM τ hNM _= _ rw [map_sub,map_sub,map_sub] change conditionalExpectation τ hNM (star x*x)-conditionalExpectation τ hNM (star y*x)- (conditionalExpectation τ hNM (star x*y)-conditionalExpectation τ hNM (star y*y))= _ rw [conditionalExpectation_mul_right τ hNM y (star x) hy, conditionalExpectation_star τ hNM, conditionalExpectation_mul_left τ hNM (star y) x hys, conditionalExpectation_fixed τ hNM (star y*y) (N.mul_mem hys hy)] change conditionalExpectation τ hNM (star x*x)-star y*y-(star y*y-star y*y)= conditionalExpectation τ hNM (star x*x)-star y*y abel rw [he] at hp exact sub_nonneg.mp hp theorem conditionalExpectation_norm_le (hNM : N ≤ M) (x : M.toStarSubalgebra) : ‖conditionalExpectation τ hNM x‖ ≤ ‖x‖ := by have h := CStarAlgebra.norm_le_norm_of_le_of_nonneg (conditionalExpectation_schwarz τ hNM x) (star_mul_self_nonneg (conditionalExpectation τ hNM x)) have hn := (conditionalExpectation_selfAdjoint τ hNM (star x*x) (star_mul_self_nonneg x).isSelfAdjoint).2 rw [CStarRing.norm_star_mul_self] at h hn nlinarith [norm_nonneg x,norm_nonneg (conditionalExpectation τ hNM x)] theorem conditionalExpectation_opNorm_le (hNM : N ≤ M) : ‖conditionalExpectationCLM τ hNM‖ ≤ 1 := by apply (conditionalExpectationCLM τ hNM).opNorm_le_bound (by norm_num : (0 : ℝ) ≤ 1) intro x change ‖conditionalExpectation τ hNM x‖ ≤ 1*‖x‖ rw [one_mul] exact conditionalExpectation_norm_le τ hNM x theorem conditionalExpectation_idempotent (hNM : N ≤ M) (x : M.toStarSubalgebra) : conditionalExpectation τ hNM (conditionalExpectation τ hNM x)=conditionalExpectation τ hNM x := conditionalExpectation_fixed τ hNM _ (conditionalExpectation_mem τ hNM x) end /-! Actual nested subalgebras satisfy the expectation tower identity. The resulting energy identity is the decreasing-subfactor step of A.1.2. -/ section open UltrapowerBridge variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] variable {N P M : VonNeumannAlgebra H} (τ : TracialRepresentation M) theorem conditionalExpectation_tower (hNM : N ≤ M) (hPM : P ≤ M) (hNP : N ≤ P) (x : M.toStarSubalgebra) : conditionalExpectation τ hNM (conditionalExpectation τ hPM x)=conditionalExpectation τ hNM x := by apply conditionalExpectation_eq_of_orthogonal τ hNM · exact conditionalExpectation_mem τ hNM x · have hP : TraceOrthogonal τ (insideAlgebra (M := M) (P := N)) (x-conditionalExpectation τ hPM x) := by intro a exact conditionalExpectation_orthogonal τ hPM x ⟨(a : M.toStarSubalgebra),hNP a.property⟩ have h := (conditionalExpectation_orthogonal τ hNM x).sub τ hP convert h using 1 abel theorem conditionalExpectation_nested_energy (hNM : N ≤ M) (hPM : P ≤ M) (hNP : N ≤ P) (x : M.toStarSubalgebra) : τ.norm₂ (conditionalExpectation τ hNM x)^2+ τ.norm₂ (conditionalExpectation τ hPM x-conditionalExpectation τ hNM x)^2= τ.norm₂ (conditionalExpectation τ hPM x)^2 := by have h := conditionalExpectation_pythagoras τ hNM (conditionalExpectation τ hPM x) rwa [conditionalExpectation_tower τ hNM hPM hNP x] at h theorem conditionalExpectation_nested_norm₂ (hNM : N ≤ M) (hPM : P ≤ M) (hNP : N ≤ P) (x : M.toStarSubalgebra) : τ.norm₂ (conditionalExpectation τ hNM x) ≤ τ.norm₂ (conditionalExpectation τ hPM x) := by rw [← conditionalExpectation_tower τ hNM hPM hNP x] exact conditionalExpectation_norm₂_le τ hNM _ end /-! Conditional expectations onto a decreasing sequence of actual subalgebras converge in L2. This supplies the limiting argument in A.1.2; it does not construct that source's decreasing subfactors. -/ open Filter open scoped Topology BigOperators open UltrapowerBridge variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] variable {N M : VonNeumannAlgebra H} (τ : TracialRepresentation M) theorem bounded_trace_limit_inside (hNM : N ≤ M) (a : ℕ → M.toStarSubalgebra) (C : ℝ) (hC : 0 ≤ C) (ha : ∀ n,‖a n‖ ≤ C) (hN : ∀ᶠ n in atTop,(a n).val ∈ N) (ξ : H) (hξ : Tendsto (fun n => baseVector τ (a n)) atTop (𝓝 ξ)) : ∃ b : M.toStarSubalgebra,b.val ∈ N ∧ ‖b‖ ≤ C ∧ baseVector τ b=ξ := by classical let aN : ℕ → N.toStarSubalgebra := fun n => if h : (a n).val ∈ N then ⟨(a n).val,h⟩ else 0 have hb : ∀ n,‖aN n‖ ≤ C := by intro n dsimp [aN] split_ifs with h · exact ha n · change ‖(0 : H →L[ℂ] H)‖ ≤ C simpa only [norm_zero] using hC have he : ∀ᶠ n in atTop,baseVector (restrictedTrace τ hNM) (aN n)=baseVector τ (a n) := by filter_upwards [hN] with n hn simp only [aN,dite_eq_left hn] rfl obtain ⟨b,hb,hbe⟩ := bounded_trace_limit (restrictedTrace τ hNM) aN C hC hb ξ (hξ.congr' (by filter_upwards [he] with n hn; exact hn.symm)) exact ⟨coordinateInclusion hNM b,b.property,hb,hbe⟩ theorem decreasing_expectations_converge (A : ℕ → VonNeumannAlgebra H) (hAM : ∀ n,A n ≤ M) (hA : Antitone A) (x : M.toStarSubalgebra) : ∃ c : M.toStarSubalgebra,(∀ n,c.val ∈ A n) ∧ ‖c‖ ≤ ‖x‖ ∧ τ.trace c=τ.trace x ∧ Tendsto (fun n => τ.norm₂ (conditionalExpectation τ (hAM n) x-c)) atTop (𝓝 0) := by let e : ℕ → M.toStarSubalgebra := fun n => conditionalExpectation τ (hAM n) x let f : ℕ → ℝ := fun n => τ.norm₂ (e n)^2 have hf : Antitone f := by intro m n hmn have h := conditionalExpectation_nested_energy τ (hAM n) (hAM m) (hA hmn) x change f n+τ.norm₂ (e m-e n)^2=f m at h linarith [sq_nonneg (τ.norm₂ (e m-e n))] have hft : Tendsto f atTop (𝓝 (⨅ n,f n)) := tendsto_atTop_ciInf hf ⟨0,by rintro _ ⟨n,rfl⟩; exact sq_nonneg _⟩ have hfc := hft.cauchySeq have hcv : CauchySeq (fun n => baseVector τ (e n)) := by rw [Metric.cauchySeq_iff] at hfc ⊢ intro ε hε obtain ⟨k,hk⟩ := hfc (ε^2) (sq_pos_of_pos hε) have hb (m n : ℕ) (hm : k ≤ m) (hn : k ≤ n) (hmn : m ≤ n) : dist (baseVector τ (e m)) (baseVector τ (e n)) < ε := by have hdist := hk m hm n hn have hid := conditionalExpectation_nested_energy τ (hAM n) (hAM m) (hA hmn) x change f n+τ.norm₂ (e m-e n)^2=f m at hid rw [Real.dist_eq] at hdist rw [dist_eq_norm,← map_sub] change τ.norm₂ (e m-e n)<ε nlinarith [le_abs_self (f m-f n),show 0 ≤ τ.norm₂ (e m-e n) from norm_nonneg _] refine ⟨k,fun m hm n hn => ?_⟩ rcases le_total m n with h | h · exact hb m n hm hn h · simpa only [dist_comm] using hb n m hn hm h obtain ⟨ξ,hξ⟩ := cauchySeq_tendsto_of_complete hcv obtain ⟨c,hcn,hcξ⟩ := bounded_trace_limit τ e ‖x‖ (norm_nonneg x) (fun n => conditionalExpectation_norm_le τ (hAM n) x) ξ hξ have hcN (n : ℕ) : c.val ∈ A n := by have hmem : ∀ᶠ k in atTop,(e k).val ∈ A n := by filter_upwards [eventually_ge_atTop n] with k hk exact hA hk (conditionalExpectation_mem τ (hAM k) x) obtain ⟨b,hb,_,hbξ⟩ := bounded_trace_limit_inside τ (hAM n) e ‖x‖ (norm_nonneg _) (fun k => conditionalExpectation_norm_le τ (hAM k) x) hmem ξ hξ have he : c=b := baseVector_injective τ (hcξ.trans hbξ.symm) rw [he] exact hb have hlim : Tendsto (fun n => τ.norm₂ (e n-c)) atTop (𝓝 0) := (tendsto_vector_iff_norm₂ τ atTop e c).mp (by rw [hcξ]; exact hξ) refine ⟨c,hcN,hcn,?_,hlim⟩ have ht := norm₂_limit_trace τ e c hlim have he : ∀ n,τ.trace (e n)=τ.trace x := fun n => conditionalExpectation_trace τ (hAM n) x simp only [he] at ht exact tendsto_nhds_unique ht tendsto_const_nhds theorem decreasing_expectations_scalar_limit (A : ℕ → VonNeumannAlgebra H) (hAM : ∀ n,A n ≤ M) (hA : Antitone A) (hscalar : ∀ c : M.toStarSubalgebra,(∀ n,c.val ∈ A n) → ∃ z : ℂ,c=z • (1 : M.toStarSubalgebra)) (x : M.toStarSubalgebra) : Tendsto (fun n => τ.norm₂ (conditionalExpectation τ (hAM n) x- τ.trace x • (1 : M.toStarSubalgebra))) atTop (𝓝 0) := by obtain ⟨c,hc,_,htrace,hlim⟩ := decreasing_expectations_converge τ A hAM hA x obtain ⟨z,hz⟩ := hscalar c hc rw [hz,cornerTrace_smul,τ.trace_one,mul_one] at htrace simpa only [hz,htrace] using hlim theorem decreasing_expectations_finite_centered_budget (A : ℕ → VonNeumannAlgebra H) (hAM : ∀ n,A n ≤ M) (hA : Antitone A) (hscalar : ∀ c : M.toStarSubalgebra,(∀ n,c.val ∈ A n) → ∃ z : ℂ,c=z • (1 : M.toStarSubalgebra)) {ι : Type*} (F : Finset ι) (x : ι → M.toStarSubalgebra) (hx : ∀ i ∈ F,τ.trace (x i)=0) (ε : ℝ) (hε : 0 < ε) : ∃ n,(∑ i ∈ F,τ.norm₂ (conditionalExpectation τ (hAM n) (x i))^2) < ε := by have hi (i : ι) (hi : i ∈ F) : Tendsto (fun n => τ.norm₂ (conditionalExpectation τ (hAM n) (x i))^2) atTop (𝓝 0) := by have h := decreasing_expectations_scalar_limit τ A hAM hA hscalar (x i) rw [hx i hi] at h simpa only [zero_smul,sub_zero,zero_pow (by decide : 2 ≠ 0)] using h.pow 2 have ht : Tendsto (fun n => ∑ i ∈ F,τ.norm₂ (conditionalExpectation τ (hAM n) (x i))^2) atTop (𝓝 0) := by simpa only [Finset.sum_const_zero] using tendsto_finsetSum F hi exact (ht.eventually (gt_mem_nhds hε)).exists end Generator.Tracial end end OAI