import Mathlib import OAI.Analysis.FreeWords.MatrixConditionalExpectation import OAI.Analysis.FreeWords.ProjectionSmall namespace OAI noncomputable section namespace KKFreeLiftFrontier open KKTraceTransfer KKMatrixExpectation noncomputable section variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] abbrev MatrixAlgebra (n : ℕ) (M : VonNeumannAlgebra H) := Matrix (Fin n) (Fin n) (ConcreteAlgebra M) def matrixTrace {M : VonNeumannAlgebra H} (τ : FaithfulNormalTrace M) (n : ℕ) (x : MatrixAlgebra n M) : ℂ := (n : ℂ)⁻¹ * ∑ i, τ.map (x i i) def FiniteAmplifiedNumericalModel : Prop := ∀ (M : VonNeumannAlgebra H) (τ : FaithfulNormalTrace M), IsFactor M → IsDiffuse M → ∀ n : ℕ, 0 (U^z.1).val*numericalHom (A := ConcreteAlgebra M) n z.2)).prod)‖<ε) end end KKFreeLiftFrontier end end OAI