import OAI.Analysis.FactorGeneration.SpectralStates namespace OAI noncomputable section namespace Generator.Tracial /-! Localization of actual signed vector/dimension values. Fixed strict sublevel sets, rather than a limiting strict inequality, supply Zorn bounds. -/ open Filter open scoped Topology section universe u variable {H : Type u} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] variable {M : VonNeumannAlgebra H} namespace AlgebraProjection /-- A continuous orthogonally additive real charge nonnegative on G admits a nonzero corner all of whose subprojections have nonnegative charge. -/ theorem exists_nonnegative_corner (μ : AlgebraProjection M → ℝ) (hadd : ∀ p q (ho : p.val*q.val=0), μ (orthogonalSum p q ho)=μ p+μ q) (hcont : ∀ (I : Type u) [Preorder I] [IsDirected I (· ≤ ·)] [Nonempty I] (a : I → AlgebraProjection M), Monotone a → ∀ p, IsLUB (Set.range a) p → Tendsto (fun i => μ (a i)) atTop (𝓝 (μ p))) (G : AlgebraProjection M) (hG : G.val≠0) (hμG : 0 ≤ μ G) : ∃ F : AlgebraProjection M, F ≤ G ∧ F.val≠0 ∧ ∀ p, p ≤ F → 0 ≤ μ p := by classical by_cases hall : ∀ p : AlgebraProjection M, p ≤ G → 0 ≤ μ p · exact ⟨G,le_rfl,hG,hall⟩ push Not at hall obtain ⟨r,hrG,hr⟩ := hall let S : Set (AlgebraProjection M) := {p | p ≤ G ∧ μ p ≤ μ r} obtain ⟨v,hv⟩ := zorn_le₀ S (by intro c hc hchain by_cases hne : c.Nonempty · let : Nonempty c := hne.to_subtype let : IsDirected c (· ≤ ·) := ⟨by intro a b rcases hchain.total a.property b.property with h | h · exact ⟨b,h,le_rfl⟩ · exact ⟨a,le_rfl,h⟩⟩ obtain ⟨p,hp⟩ := exists_isLUB_monotone (fun q : c => q.val) (fun _ _ h => h) refine ⟨p,⟨?_,?_⟩,fun q hq => hp.1 ⟨⟨q,hq⟩,rfl⟩⟩ · exact hp.2 (by rintro _ ⟨q,rfl⟩; exact (hc q.property).1) · exact le_of_tendsto (hcont c (fun q : c => q.val) (fun _ _ h => h) p hp) (Eventually.of_forall (fun q => (hc q.property).2)) · exact ⟨r,⟨hrG,le_rfl⟩,fun q hq => (hne ⟨q,hq⟩).elim⟩) have hvG : v ≤ G := hv.1.1 have hvneg : μ v < 0 := hv.1.2.trans_lt hr let F := remainder v G hvG have hF : F.val≠0 := by intro hz have he : G=v := Subtype.ext (sub_eq_zero.mp hz) rw [he] at hμG exact (not_lt_of_ge hμG) hvneg refine ⟨F,remainder_le v G hvG,hF,?_⟩ intro p hp by_contra hnot have hpneg : μ p<0 := lt_of_not_ge hnot have ho : v.val*p.val=0 := projection_orthogonal_of_le (remainder_orthogonal v G hvG) le_rfl hp let q := orthogonalSum v p ho have hqG : q ≤ G := orthogonalSum_le ho hvG (hp.trans (remainder_le v G hvG)) have he : μ q=μ v+μ p := hadd v p ho have hqμ : μ q ≤ μ r := by linarith [hv.1.2] have hqv : q ≤ v := hv.2 ⟨hqG,hqμ⟩ (le_orthogonalSum_left _ _ ho) have hqeq : q=v := le_antisymm hqv (le_orthogonalSum_left _ _ ho) rw [hqeq] at he linarith end AlgebraProjection variable (hfactor : ∀ c : M.toStarSubalgebra, (∀ a : M.toStarSubalgebra, a*c=c*a) → ∃ z : ℂ, c=z • (1 : M.toStarSubalgebra)) variable (hdiff : ∀ p : M.toStarSubalgebra, IsStarProjection p → p ≠ 0 → ∃ q : M.toStarSubalgebra, IsStarProjection q ∧ q ≠ 0 ∧ q ≠ p ∧ p*q=q ∧ q*p=q) variable (hfinite : ∀ a : M.toStarSubalgebra, star a*a=1 → a*star a=1) include hfinite in theorem traceFreeDimension_tendsto_monotone (hunit : (1 : M.toStarSubalgebra) ≠ 0) {I : Type*} [Preorder I] [IsDirected I (· ≤ ·)] [Nonempty I] (q : I → AlgebraProjection M) (hq : Monotone q) (p : AlgebraProjection M) (hp : IsLUB (Set.range q) p) : Tendsto (fun i => traceFreeDimension hfactor hdiff (q i)) atTop (𝓝 (traceFreeDimension hfactor hdiff p)) := by rw [traceFreeDimension_isLUB_monotone hfactor hdiff hfinite hunit q hq p hp] exact tendsto_atTop_isLUB ((traceFreeDimension_mono hfactor hdiff).comp hq) (isLUB_csSup (Set.range_nonempty _) (traceFreeDimension_range_bddAbove hfactor hdiff q)) include hfinite in /-- Concrete localization for a real linear combination of the actual vector functional and the already constructed dimension; no linear trace is assumed. -/ theorem exists_signed_vector_dimension_corner (hunit : (1 : M.toStarSubalgebra) ≠ 0) (ξ : H) (c d : ℝ) (G : AlgebraProjection M) (hG : G.val≠0) (hμG : 0 ≤ c*G.vectorValue ξ+d*traceFreeDimension hfactor hdiff G) : ∃ F : AlgebraProjection M, F ≤ G ∧ F.val≠0 ∧ ∀ p, p ≤ F → 0 ≤ c*p.vectorValue ξ+d*traceFreeDimension hfactor hdiff p := by apply AlgebraProjection.exists_nonnegative_corner (fun p => c*p.vectorValue ξ+d*traceFreeDimension hfactor hdiff p) ?_ ?_ G hG hμG · intro p q ho have hν : (orthogonalSum p q ho).vectorValue ξ=p.vectorValue ξ+q.vectorValue ξ := by change (inner ℂ ξ (p.val.val ξ+q.val.val ξ)).re=_ rw [inner_add_right,Complex.add_re] rfl have hD := traceFreeDyadicSup_orthogonal_add hfactor hdiff hfinite ⟨1,IsStarProjection.one _⟩ p q hunit (one_mul _) (one_mul _) ho change traceFreeDimension hfactor hdiff (orthogonalSum p q ho)= traceFreeDimension hfactor hdiff p+traceFreeDimension hfactor hdiff q at hD rw [hν,hD] ring · intro I _ _ _ a ha p hp exact ((AlgebraProjection.vectorValue_tendsto_monotone a ha p hp ξ).const_mul c).add ((traceFreeDimension_tendsto_monotone hfactor hdiff hfinite hunit a ha p hp).const_mul d) include hfinite in theorem exists_vector_dimension_lower_corner (hunit : (1 : M.toStarSubalgebra) ≠ 0) (ξ : H) (G : AlgebraProjection M) (hG : G.val≠0) : ∃ F : AlgebraProjection M, F ≤ G ∧ F.val≠0 ∧ ∀ p, p ≤ F → G.vectorValue ξ*traceFreeDimension hfactor hdiff p ≤ p.vectorValue ξ*traceFreeDimension hfactor hdiff G := by obtain ⟨F,hFG,hF,h⟩ := exists_signed_vector_dimension_corner hfactor hdiff hfinite hunit ξ (traceFreeDimension hfactor hdiff G) (-G.vectorValue ξ) G hG (by nlinarith) exact ⟨F,hFG,hF,fun p hp => by have hh := h p hp; nlinarith⟩ include hfinite in theorem exists_vector_dimension_upper_corner (hunit : (1 : M.toStarSubalgebra) ≠ 0) (ξ : H) (G : AlgebraProjection M) (hG : G.val≠0) : ∃ F : AlgebraProjection M, F ≤ G ∧ F.val≠0 ∧ ∀ p, p ≤ F → p.vectorValue ξ*traceFreeDimension hfactor hdiff G ≤ G.vectorValue ξ*traceFreeDimension hfactor hdiff p := by obtain ⟨F,hFG,hF,h⟩ := exists_signed_vector_dimension_corner hfactor hdiff hfinite hunit ξ (-traceFreeDimension hfactor hdiff G) (G.vectorValue ξ) G hG (by nlinarith) exact ⟨F,hFG,hF,fun p hp => by have hh := h p hp; nlinarith⟩ end /-! Tight multiplicative localization of an actual Hilbert vector functional against the constructed projection dimension. The corner is constructed. -/ section variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] variable {M : VonNeumannAlgebra H} variable (hfactor : ∀ c : M.toStarSubalgebra, (∀ a : M.toStarSubalgebra, a*c=c*a) → ∃ z : ℂ, c=z • (1 : M.toStarSubalgebra)) variable (hdiff : ∀ p : M.toStarSubalgebra, IsStarProjection p → p ≠ 0 → ∃ q : M.toStarSubalgebra, IsStarProjection q ∧ q ≠ 0 ∧ q ≠ p ∧ p*q=q ∧ q*p=q) variable (hfinite : ∀ a : M.toStarSubalgebra, star a*a=1 → a*star a=1) include hfinite in /-- An actual unit vector admits a nonzero corner on which every projection value is between a D(p) and (1+ε)a D(p), with a strictly positive. -/ theorem exists_vector_dimension_localization (hunit : (1 : M.toStarSubalgebra) ≠ 0) (ξ : H) (hξ : ‖ξ‖=1) (ε : ℝ) (hε : 0<ε) : ∃ (E : AlgebraProjection M) (a : ℝ), E.val≠0 ∧ 0 inner ℂ ξ (x.val ξ) map_add' := fun x y => inner_add_right _ _ _ map_smul' := fun c x => inner_smul_right _ _ _ } (‖ξ‖^2) (fun x => by calc ‖inner ℂ ξ (x.val ξ)‖ ≤ ‖ξ‖*‖x.val ξ‖ := norm_inner_le_norm _ _ _ ≤ ‖ξ‖*(‖x.val‖*‖ξ‖) := mul_le_mul_of_nonneg_left (x.val.le_opNorm ξ) (norm_nonneg _) _ = ‖ξ‖^2*‖x‖ := by change ‖ξ‖*(‖x‖*‖ξ‖)=_; ring) theorem vectorFunctional_apply (ξ : H) (x : M.toStarSubalgebra) : vectorFunctional ξ x=inner ℂ ξ (x.val ξ) := rfl theorem vectorFunctional_norm_le (ξ : H) : ‖vectorFunctional (M := M) ξ‖ ≤ ‖ξ‖^2 := LinearMap.mkContinuous_norm_le _ (by positivity) _ /-- A positive operator supported by p is approximated inside that same corner. -/ theorem exists_positive_corner_spectral_approximation (p : AlgebraProjection M) (x : M.toStarSubalgebra) (hx : 0 ≤ x) (hpx : p.val*x=x) (ε : ℝ) (hε : 0<ε) : ∃ (Q : CornerPartition p) (c : Fin Q.size → ℝ), (∀ i, 0 ≤ c i) ∧ (∀ i, Commute (Q.piece i).val x) ∧ ‖x-∑ i, (c i : ℂ) • (Q.piece i).val‖ < ε := by have hxp : x*p.val=x := by simpa only [star_mul,p.property.isSelfAdjoint.star_eq,hx.isSelfAdjoint.star_eq] using congrArg star hpx let I : SpectralInterval x := { proj := p lo := 0 hi := ‖x‖ lower := by simpa only [hpx,hxp,Complex.ofReal_zero,zero_smul,sub_zero] using hx upper := (initialSpectralInterval p x hx.isSelfAdjoint).upper } have hI : I.lo ≤ I.hi := norm_nonneg x obtain ⟨n,hn⟩ := I.exists_approximant hx.isSelfAdjoint hI ε hε let e := (Fintype.equivFin (DyadicIndex n)).symm refine ⟨I.partition hx.isSelfAdjoint n,fun i => (I.level hx.isSelfAdjoint n (e i)).lo,?_,?_,?_⟩ · intro i exact (I.level_endpoints hx.isSelfAdjoint hI n (e i)).1 · intro i exact I.partition_commutes hx.isSelfAdjoint (Commute.refl x) (hpx.trans hxp.symm) n i · change ‖x-∑ i, ((I.level hx.isSelfAdjoint n (e i)).lo : ℂ) • (I.level hx.isSelfAdjoint n (e i)).proj.val‖ < ε rw [Equiv.sum_comp e (fun i => ((I.level hx.isSelfAdjoint n i).lo : ℂ) • (I.level hx.isSelfAdjoint n i).proj.val)] change ‖p.val*x*p.val-∑ i, ((I.level hx.isSelfAdjoint n i).lo : ℂ) • (I.level hx.isSelfAdjoint n i).proj.val‖ < ε at hn simpa only [hpx,hxp] using hn variable (hfactor : ∀ c : M.toStarSubalgebra, (∀ a : M.toStarSubalgebra, a*c=c*a) → ∃ z : ℂ, c=z • (1 : M.toStarSubalgebra)) variable (hdiff : ∀ p : M.toStarSubalgebra, IsStarProjection p → p ≠ 0 → ∃ q : M.toStarSubalgebra, IsStarProjection q ∧ q ≠ 0 ∧ q ≠ p ∧ p*q=q ∧ q*p=q) variable (hfinite : ∀ a : M.toStarSubalgebra, star a*a=1 → a*star a=1) theorem IsDimensionSpectralValue.corner_bound {x : M.toStarSubalgebra} {t : ℂ} (ht : IsDimensionSpectralValue hfactor hdiff x t) (p : AlgebraProjection M) (hpx : Commute p.val x) (Q : CornerPartition p) (c : Fin Q.size → ℂ) (hc : ∀ i, Commute (Q.piece i).val x) : ‖t-∑ i, c i*(traceFreeDimension hfactor hdiff (Q.piece i) : ℂ)‖ ≤ ‖x-∑ i, c i • (Q.piece i).val‖ := by classical let r : AlgebraProjection M := ⟨1-p.val,p.property.one_sub⟩ let q : Fin Q.size ⊕ Unit → AlgebraProjection M := Sum.elim Q.piece (fun _ => r) let d : Fin Q.size ⊕ Unit → ℂ := Sum.elim c (fun _ => 0) have ho (i j : Fin Q.size ⊕ Unit) (h : i≠j) : (q i).val*(q j).val=0 := by cases i with | inl i => cases j with | inl j => exact Q.orthogonal i j (fun he => h (congrArg Sum.inl he)) | inr j => change (Q.piece i).val*(1-p.val)=0 rw [mul_sub,mul_one,projection_mul_of_le (Q.piece_le i),sub_self] | inr i => cases j with | inl j => change (1-p.val)*(Q.piece j).val=0 rw [sub_mul,one_mul,show p.val*(Q.piece j).val=(Q.piece j).val from Q.piece_le j,sub_self] | inr j => exact (h (congrArg Sum.inr (Subsingleton.elim i j))).elim have hs : (∑ i, (q i).val)=(1 : M.toStarSubalgebra) := by simp only [q,Fintype.sum_sum_type,Sum.elim_inl,Sum.elim_inr,Fintype.sum_unique,Q.total] change p.val+(1-p.val)=1 abel have hqc (i : Fin Q.size ⊕ Unit) : Commute (q i).val x := by cases i with | inl i => exact hc i | inr i => exact (Commute.one_left x).sub_left hpx have hh := ht.family_bound hfactor hdiff q ho hs d hqc simpa only [q,d,Fintype.sum_sum_type,Sum.elim_inl,Sum.elim_inr,zero_mul,zero_smul, Finset.sum_const_zero,add_zero] using hh end /-! Projection localization yields actual positive-operator inequalities for bounded linear functionals, and a nearly cyclic functional on the corner. -/ open scoped BigOperators CStarAlgebra section variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] variable {M : VonNeumannAlgebra H} local instance localizedCStar : CStarAlgebra M.toStarSubalgebra := {} local instance localizedOrder : PartialOrder M.toStarSubalgebra := CStarAlgebra.spectralOrder _ local instance localizedPreorder : Preorder M.toStarSubalgebra := (CStarAlgebra.spectralOrder _).toPreorder local instance localizedLE : LE M.toStarSubalgebra := (CStarAlgebra.spectralOrder _).toLE local instance localizedStarOrder : StarOrderedRing M.toStarSubalgebra := CStarAlgebra.spectralOrderedRing _ variable (hfactor : ∀ c : M.toStarSubalgebra, (∀ a : M.toStarSubalgebra, a*c=c*a) → ∃ z : ℂ, c=z • (1 : M.toStarSubalgebra)) variable (hdiff : ∀ p : M.toStarSubalgebra, IsStarProjection p → p ≠ 0 → ∃ q : M.toStarSubalgebra, IsStarProjection q ∧ q ≠ 0 ∧ q ≠ p ∧ p*q=q ∧ q*p=q) variable (hfinite : ∀ a : M.toStarSubalgebra, star a*a=1 → a*star a=1) theorem positive_functional_bounds_of_projection_bounds (hunit : (1 : M.toStarSubalgebra) ≠ 0) (φ : M.toStarSubalgebra →L[ℂ] ℂ) (E : AlgebraProjection M) (a b : ℝ) (ha : 0 ≤ a) (hb : 0 ≤ b) (hproj : ∀ p : AlgebraProjection M, p ≤ E → a*traceFreeDimension hfactor hdiff p ≤ (φ p.val).re ∧ (φ p.val).re ≤ b*traceFreeDimension hfactor hdiff p) (x : M.toStarSubalgebra) (hx : 0 ≤ x) (hEx : E.val*x=x) : a*(dimensionSpectralValue hfactor hdiff hfinite hunit x hx.isSelfAdjoint).re ≤ (φ x).re ∧ (φ x).re ≤ b*(dimensionSpectralValue hfactor hdiff hfinite hunit x hx.isSelfAdjoint).re := by let t := dimensionSpectralValue hfactor hdiff hfinite hunit x hx.isSelfAdjoint have hxE : x*E.val=x := by simpa only [star_mul,E.property.isSelfAdjoint.star_eq,hx.isSelfAdjoint.star_eq] using congrArg star hEx have happrox (ε : ℝ) (hε : 0<ε) : a*t.re ≤ (φ x).re+ε ∧ (φ x).re ≤ b*t.re+ε := by let C := a+b+‖φ‖+1 have hC : 0 mul_le_mul_of_nonneg_left (hproj (Q.piece i) (Q.piece_le i)).1 (hc i)) have hvb : v ≤ b*w := by rw [hv,show b*w=∑ i, c i*(b*traceFreeDimension hfactor hdiff (Q.piece i)) by simp only [w,Finset.mul_sum]; apply Finset.sum_congr rfl; intro i _; ring] exact Finset.sum_le_sum (fun i _ => mul_le_mul_of_nonneg_left (hproj (Q.piece i) (Q.piece_le i)).2 (hc i)) have hspec := (dimensionSpectralValue_spec hfactor hdiff hfinite hunit x hx.isSelfAdjoint).2.corner_bound hfactor hdiff E (hEx.trans hxE.symm) Q (fun i => (c i : ℂ)) hQ have htw : |t.re-w| ≤ δ := by have h := Complex.abs_re_le_norm (t-(w : ℂ)) rw [Complex.sub_re,Complex.ofReal_re] at h apply h.trans rw [hw] exact hspec.trans herr.le have hφ : |(φ x).re-v| ≤ ‖φ‖*δ := by have he : (φ x).re-v=(φ (x-y)).re := by rw [map_sub,Complex.sub_re] rw [he] exact (Complex.abs_re_le_norm _).trans ((φ.le_opNorm _).trans (mul_le_mul_of_nonneg_left herr.le (norm_nonneg φ))) have htw' := abs_le.mp htw have hφ' := abs_le.mp hφ have had := mul_nonneg ha hδ.le have hbd := mul_nonneg hb hδ.le dsimp only [C] at hCδ constructor <;> nlinarith constructor · apply le_of_forall_pos_le_add intro ε hε exact (happrox ε hε).1 · apply le_of_forall_pos_le_add intro ε hε exact (happrox ε hε).2 /-- Concrete projection and positive-operator localization, with an actual bounded complex-linear functional and a nonzero constructed corner. -/ theorem exists_localized_vector_functional (hunit : (1 : M.toStarSubalgebra) ≠ 0) (ξ : H) (hξ : ‖ξ‖=1) (ε : ℝ) (hε : 0<ε) : ∃ (E : AlgebraProjection M) (a : ℝ), E.val≠0 ∧ 0 hz' i)] at ht exact hp ht.symm end EquivalentPartition variable (hfactor : ∀ c : M.toStarSubalgebra, (∀ a : M.toStarSubalgebra, a*c=c*a) → ∃ z : ℂ, c=z • (1 : M.toStarSubalgebra)) variable (hdiff : ∀ p : M.toStarSubalgebra, IsStarProjection p → p ≠ 0 → ∃ q : M.toStarSubalgebra, IsStarProjection q ∧ q ≠ 0 ∧ q ≠ p ∧ p*q=q ∧ q*p=q) variable (hfinite : ∀ a : M.toStarSubalgebra, star a*a=1 → a*star a=1) include hfactor hdiff hfinite in /-- Every actual finite equivalent partition has the expected base dimension. -/ theorem EquivalentPartition.dimension_base (hunit : (1 : M.toStarSubalgebra) ≠ 0) {p : AlgebraProjection M} {ι : Type*} [Fintype ι] [Nonempty ι] (E : EquivalentPartition p ι) : traceFreeDimension hfactor hdiff E.base=traceFreeDimension hfactor hdiff p/Fintype.card ι := by have he (i : ι) : traceFreeDimension hfactor hdiff (E.leg i).target= traceFreeDimension hfactor hdiff E.base := (traceFreeDyadicSup_equivalent hfactor hdiff ⟨1,IsStarProjection.one _⟩ (show E.base.Equivalent (E.leg i).target from ⟨E.leg i,E.initial i,rfl⟩)).symm have h := traceFreeDimension_sum_of_total hfactor hdiff hfinite hunit (fun i => (E.leg i).target) E.orthogonal p E.total simp only [he,Finset.sum_const,Finset.card_univ,nsmul_eq_mul] at h apply (eq_div_iff (by exact_mod_cast Fintype.card_ne_zero : (Fintype.card ι : ℝ)≠0)).mpr linarith include hfactor hdiff hfinite in /-- A partition of 1 with common initial projection inside any given nonzero E. -/ theorem exists_equivalent_partition_base_le (hunit : (1 : M.toStarSubalgebra) ≠ 0) (E : AlgebraProjection M) (hE : E.val≠0) : ∃ (n : ℕ) (_hn : 0 vectorFunctional (M := M) ((Q.leg i).val.val ξ)) _ ≤ ∑ i, ‖(Q.leg i).val.val ξ‖^2 := Finset.sum_le_sum (fun i _ => vectorFunctional_norm_le (M := M) ((Q.leg i).val.val ξ)) theorem matrixVectorFunctional_nearly_cyclic (Q : EquivalentPartition p ι) (hp : p.val=1) (ξ : H) (ε : ℝ) (hcorner : ∀ x : M.toStarSubalgebra, Q.base.val*x=x → x*Q.base.val=x → (vectorFunctional ξ (star x*x)).re ≤ (1+ε)*(vectorFunctional ξ (x*star x)).re) (x : M.toStarSubalgebra) : (Q.matrixVectorFunctional ξ (star x*x)).re ≤ (1+ε)*(Q.matrixVectorFunctional ξ (x*star x)).re := by have hl : (Q.matrixVectorFunctional ξ (star x*x)).re= ∑ i, ∑ j, (vectorFunctional ξ (star (Q.stateCoefficient x j i)*Q.stateCoefficient x j i)).re := by rw [Q.matrixVectorFunctional_apply,Complex.re_sum] apply Finset.sum_congr rfl intro i _ rw [Q.stateCoefficient_mul hp,map_sum,Complex.re_sum] apply Finset.sum_congr rfl intro j _ rw [Q.stateCoefficient_star] have hr : (Q.matrixVectorFunctional ξ (x*star x)).re= ∑ i, ∑ j, (vectorFunctional ξ (Q.stateCoefficient x j i*star (Q.stateCoefficient x j i))).re := by rw [Q.matrixVectorFunctional_apply,Complex.re_sum] simp_rw [Q.stateCoefficient_mul hp,map_sum,Complex.re_sum] rw [Finset.sum_comm] apply Finset.sum_congr rfl intro j _ apply Finset.sum_congr rfl intro i _ rw [Q.stateCoefficient_star] rw [hl,hr,Finset.mul_sum] apply Finset.sum_le_sum intro i _ rw [Finset.mul_sum] exact Finset.sum_le_sum (fun j _ => hcorner (Q.stateCoefficient x j i) (Q.stateCoefficient_left x j i) (Q.stateCoefficient_right x j i)) end EquivalentPartition end /-! Globally defined positive unital linear functionals with arbitrarily small multiplicative quadratic trace error. -/ open scoped BigOperators CStarAlgebra variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] variable {M : VonNeumannAlgebra H} local instance approxTraceCStar : CStarAlgebra M.toStarSubalgebra := {} local instance approxTraceOrder : PartialOrder M.toStarSubalgebra := CStarAlgebra.spectralOrder _ local instance approxTracePreorder : Preorder M.toStarSubalgebra := (CStarAlgebra.spectralOrder _).toPreorder local instance approxTraceLE : LE M.toStarSubalgebra := (CStarAlgebra.spectralOrder _).toLE local instance approxTraceStarOrder : StarOrderedRing M.toStarSubalgebra := CStarAlgebra.spectralOrderedRing _ variable (hfactor : ∀ c : M.toStarSubalgebra, (∀ a : M.toStarSubalgebra, a*c=c*a) → ∃ z : ℂ, c=z • (1 : M.toStarSubalgebra)) variable (hdiff : ∀ p : M.toStarSubalgebra, IsStarProjection p → p ≠ 0 → ∃ q : M.toStarSubalgebra, IsStarProjection q ∧ q ≠ 0 ∧ q ≠ p ∧ p*q=q ∧ q*p=q) variable (hfinite : ∀ a : M.toStarSubalgebra, star a*a=1 → a*star a=1) include hfactor hdiff hfinite in /-- A constructed approximate tracial state on the entire original algebra. -/ theorem exists_approximately_tracial_state (hunit : (1 : M.toStarSubalgebra) ≠ 0) (ε : ℝ) (hε : 0<ε) : ∃ φ : M.toStarSubalgebra →L[ℂ] ℂ, ‖φ‖ ≤ 1 ∧ φ 1=1 ∧ (∀ x : M.toStarSubalgebra, 0 ≤ x → 0 ≤ (φ x).re) ∧ ∀ x : M.toStarSubalgebra, (φ (star x*x)).re ≤ (1+ε)*(φ (x*star x)).re := by classical obtain ⟨ξ,hξ⟩ := exists_unit_vector_of_unit_ne_zero hunit obtain ⟨E,hE,hfaith,hcorner⟩ := exists_corner_nearly_cyclic_vector hfactor hdiff hfinite hunit ξ hξ ε hε obtain ⟨n,hn,Q,hQE,hQ⟩ := exists_equivalent_partition_base_le hfactor hdiff hfinite hunit E hE have hbase : 0<(vectorFunctional ξ Q.base.val).re := hfaith Q.base hQE hQ let A : ℝ := ∑ i, ‖(Q.leg i).val.val ξ‖^2 have hi (i : Fin n) : ‖(Q.leg i).val.val ξ‖^2=(vectorFunctional ξ Q.base.val).re := by have h := congrArg Complex.re (vectorFunctional_star_mul_self ξ (Q.leg i).val) rw [(Q.leg i).initial,Q.initial] at h exact_mod_cast h.symm have hA : 0 vectorFunctional_positive _ x hx) have hFtrace (x : M.toStarSubalgebra) : (F (star x*x)).re ≤ (1+ε)*(F (x*star x)).re := by apply Q.matrixVectorFunctional_nearly_cyclic rfl ξ ε ?_ x intro y hly hry have hl : E.val*y=y := by calc E.val*y = E.val*(Q.base.val*y) := by rw [hly] _ = y := by rw [← mul_assoc,show E.val*Q.base.val=Q.base.val from hQE,hly] have hr : y*E.val=y := by calc y*E.val = (y*Q.base.val)*E.val := by rw [hry] _ = y := by rw [mul_assoc,projection_mul_of_le hQE,hry] exact hcorner y hl hr let φ : M.toStarSubalgebra →L[ℂ] ℂ := ((A⁻¹ : ℝ) : ℂ) • F have hφ (x : M.toStarSubalgebra) : (φ x).re=A⁻¹*(F x).re := by simp only [φ,smul_apply,smul_eq_mul,Complex.mul_re, Complex.ofReal_re,Complex.ofReal_im,zero_mul,sub_zero] refine ⟨φ,?_,?_,?_,?_⟩ · change ‖((A⁻¹ : ℝ) : ℂ) • F‖ ≤ 1 rw [norm_smul,Complex.norm_real,Real.norm_of_nonneg (inv_nonneg.mpr hA.le)] exact (mul_le_mul_of_nonneg_left hFnorm (inv_nonneg.mpr hA.le)).trans_eq (inv_mul_cancel₀ hA.ne') · change ((A⁻¹ : ℝ) : ℂ)*(F 1)=1 rw [hF1,← Complex.ofReal_mul,inv_mul_cancel₀ hA.ne',Complex.ofReal_one] · intro x hx rw [hφ] exact mul_nonneg (inv_nonneg.mpr hA.le) (hFpos x hx) · intro x rw [hφ,hφ] have h := mul_le_mul_of_nonneg_left (hFtrace x) (inv_nonneg.mpr hA.le) calc A⁻¹*(F (star x*x)).re ≤ A⁻¹*((1+ε)*(F (x*star x)).re) := h _ = (1+ε)*(A⁻¹*(F (x*star x)).re) := by ring end Generator.Tracial end end OAI