Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for A Generalization of Quantum Stein's Lemma

Definition
QAlgorithms_Papers_Independent_Intake100_P63

by Gohan · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

The objects the formalized statements of A Generalization of Quantum Stein's Lemma (arXiv:0904.0281) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • tensorBlocks: PDF p.5 property 4: tensor two consecutive blocks in their actual registers.
  • discardPrefix: PDF pp.3,13: trace out the first m copies, without renormalizing.
  • discardFirst: PDF p.5: first-copy partial trace, with codomain indexed by n rather than n+1-1.
  • stateSetAxioms: PDF p.5 properties 1--5. The first-copy trace together with all permutations is equivalent to every single-copy trace. M_0 is deliberately unconstrained.
  • setEntropy: PDF p.4 Eq.(6): extended infimum, including infinity for empty alternatives.
  • regularizedSetEntropy: PDF p.5 Eq.(10): positive-block infimum construction; its agreement with the limit and its finiteness are the conclusions of regularization_exists.
  • testingRate: PDF p.5 Eqs.(12),(13): -log_2(0)=infinity. Positive n is imposed at uses. EReal preserves subtraction of eta, without truncation at zero.
  • SteinClauses: PDF p.5 Eqs.(11)--(14): both clauses, with one effect sequence uniform over all alternatives, including all positive finite blocklengths.
  • maxBits: PDF p.4 Eqs.(7),(8): max-relative entropy on normalized states. For such states any feasible exponent is nonnegative, so an ENNReal infimum of nonnegative exponents is exactly the source's real-exponent infimum.
  • traceNormSmoothMax: PDF p.4 Eq.(9): closed balls of NORMALIZED states in the full trace norm.
  • SmoothFormula: PDF p.6 Eq.(16): both inner asymptotic envelopes and the right-hand smoothing limits, without assuming an inner ordinary limit.
  • diagonalSmooth: PDF p.10 Eq.(45): the entire nonnegative radius sequence is chosen before its limsup; zero radii and arbitrary decay rates are permitted.
  • thresholdProfile: PDF p.7 Eq.(20): the actual optimization profile. Attainment is stated separately, rather than pretending a real infimum is automatically a minimum.
  • separableFamily: PDF p.3 Eq.(3), p.6 Eq.(15): grouped-party fully separable alternatives. Each local state acts on ALL n copies of its party, allowing correlations among those copies. There is no restriction to a bipartition or to i.i.d. alternatives.
  • oneCopy: PDF p.3: identify the one-copy function register with its original space.
  • MultipartiteEntangled: PDF p.6: an entangled normalized multipartite state is outside Eq.(3).
  • CopySymmetric: PDF pp.12--13: permutation symmetry of a vector. This is stronger than permutation invariance of its rank-one projector, as the source requires.
  • discardEnvironment: PDF pp.12,18: trace every environmental factor, preserving paired-copy order.
  • AlmostPower: PDF p.13 Eq.(67): normalized symmetric vectors in the complex span of at-most-r defect tensors. No entropy inequality is a field of this predicate.
  • MixedMarginal: PDF pp.18,20: lambda_max(rho)<1, expressed on every eigenvalue.
  • Sublinear: PDF pp.4,18: a natural-valued sequence is o(n), with positive-copy asymptotics.
  • normalizedCopySymmetrization: PDF p.4 Eq.(4): normalized symmetrization; the zero-vector totalized value is zero. Active orthogonal-defect components have nonzero symmetrization.
  • tensorVectorFamily: PDF p.18: arbitrary tensor of k local vectors, used to define the full tensor power of the orthogonal subspace, rather than only product defects.
  • OrthogonalDefects: PDF pp.18,20: the k defective factors live in (theta-perp)^tensor k.
  • expansionComponent: PDF pp.18,20: symmetrized k-defect component with exactly N sites.
  • Expansion: PDF pp.18,20 Eqs.(103),(114): the original normalized expansion data. Zero-coefficient terms need no nonexistent normalized defect vector. The sum normalization and coefficient normalization are source assumptions.
  • cutoffVector: PDF p.20 Eq.(114): retain EXACTLY the coefficients of modulus at least 1/n; Phi is unnormalized. n=0 is totalized but never used in finite-copy claims.
  • retainedCoefficientIndices: PDF p.20: exact retainedCoefficientIndices finite index set, including equality at the cutoff.
  • cutoffReduction: PDF p.20 Eq.(115): normalized cutoff reduction; the zero-cutoff off-domain value is zero. Normalization is required only eventually, when automatic.
  • closest: PDF p.19 Eq.(107), p.20 before Eq.(122): choose an actual relative-entropy minimizer. Epsilon has a total off-domain value, and no optimality or tail bound is inserted as a hypothesis of the results using this construction.
  • regularizedAlternative: PDF p.20 Eq.(122): the specified full-rank regularization of the minimizer.
  • Extendible: PDF p.28: fixed-k extendibility, formulated as k equal B marginals. Averaging over B permutations gives the equivalent symmetric extension.
  • extendibleFamily: PDF p.28: the same k is fixed before the copy number n; the A and B copies are each grouped into a local block when forming the extension.
  • pptStateFamily: PDF p.28: PPT across grouped A:B blocks; NPPT means failure of PSD.
  • PartyReg: PDF p.6 Eq.(18), p.29: finite local basis dimensions, one for each party.
  • localKraus: PDF pp.6,29: rectangular local Kraus operator tensored with identities on all other parties. Equality of coordinate values implements their identity.
  • MultipartiteFiniteLOCC: PDF pp.6,29: arbitrary finite adaptive deterministic LOCC tree. Rectangular complete instruments include local ancillas, preparation and disposal; the continuation can depend on the communicated outcome and every branch is summed. There is no entanglement assistance and no assumed closure or optimal attainment.
  • groupedCopies: PDF p.6 Eq.(18): regroup each party's n copies as a local dimension d_j^n. The equivalence only changes coordinates and never transfers a quantum system.
  • conversionError: PDF p.6 Eq.(18): infimal trace-norm error over actual finite LOCC protocols, without asserting that LOCC is closed or that an optimizer exists.
  • conversionCost: PDF p.6 Eq.(18): INPUT copies per OUTPUT copy; empty feasible infima are infinity, so no convertibility assumption is needed.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_ExtendedQuantumEntropy
import Definitions.Def_QAlgorithms_Defs_Channel
import Definitions.Def_QAlgorithms_Defs_QuantumInformation
import Definitions.Def_QAlgorithms_Defs_Ensemble
import Definitions.Def_QAlgorithms_Defs_GradientMethods
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P60
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P07
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P30

/-!
Brandao--Plenio, arXiv:0904.0281v3. All locators are PDF pages.
Finite nonzero Hilbert spaces are arbitrary finite basis types, not qubit registers.
Copy counts in rate constraints are strictly positive. Entropy and rates use bits;
the exponential in Lemma III.5 is natural. Trace norm is the full Schatten 1-norm.
Accepted frozen constructions are imported; distinct paper-local constructions are fully specified.
The source's permutation-conjugation typo is corrected to conjugation by the adjoint.
Compilation and independent moderation are pending the batch handoff.
-/

noncomputable section

namespace QAlgorithms.Papers.Independent.Intake100.P63

open QAlgorithms Filter Topology
open QAlgorithms.Papers.Independent.Information100.P60 (Mat relativeBits)
open QAlgorithms.Papers.Independent.Information100.P07 (positivePart)
open QAlgorithms.Papers.Independent.Information100.P21 (Vec)
open QAlgorithms.Papers.Independent.Gap48.P20 (Copies)
open QAlgorithms.Papers.Independent.Advance50.P30 (joinCopies defectTensor)
open QAlgorithms.Papers.Independent.Information100.P69 (permute)
open scoped Matrix ComplexConjugate ENNReal ComplexOrder

attribute [local instance] Classical.propDecidable Classical.decEq

/-- PDF p.5 property 4: tensor two consecutive blocks in their actual registers. -/
def tensorBlocks {I : Type*} {n m : ℕ} (A : Mat (Copies I n))
    (B : Mat (Copies I m)) : Mat (Copies I (n + m)) :=
  fun x y => A (fun i => x (Fin.castAdd m i)) (fun i => y (Fin.castAdd m i)) *
    B (fun i => x (Fin.natAdd n i)) (fun i => y (Fin.natAdd n i))

/-- PDF pp.3,13: trace out the first m copies, without renormalizing. -/
def discardPrefix {I : Type} [Fintype I] {n : ℕ}
    (m : ℕ) (h : m ≤ n) (X : Mat (Copies I n)) : Mat (Copies I (n - m)) :=
  fun x y => ∑ z : Copies I m, X (joinCopies h z x) (joinCopies h z y)

/-- PDF p.5: first-copy partial trace, with codomain indexed by n rather than n+1-1. -/
def discardFirst {I : Type*} [Fintype I] {n : ℕ}
    (X : Mat (Copies I (n + 1))) : Mat (Copies I n) :=
  fun x y => ∑ a, X (Fin.cons a x) (Fin.cons a y)

/-- PDF p.5 properties 1--5. The first-copy trace together with all permutations
is equivalent to every single-copy trace. M_0 is deliberately unconstrained. -/
def stateSetAxioms {I : Type*} [Fintype I] [DecidableEq I]
    (M : (n : ℕ) → Set (Mat (Copies I n))) : Prop :=
  (∀ n, 0 < n → IsClosed (M n) ∧ Convex ℝ (M n) ∧
    ∀ X ∈ M n, IsDensityMatrix X) ∧
  (∃ sigma : Mat I, IsDensityMatrix sigma ∧ LinearMap.ker sigma.mulVecLin = ⊥ ∧
    ∀ n, 0 < n → piKron n sigma ∈ M n) ∧
  (∀ n, 0 < n → ∀ X ∈ M (n + 1), discardFirst X ∈ M n) ∧
  (∀ n m, 0 < n → 0 < m → ∀ X ∈ M n, ∀ Y ∈ M m,
    tensorBlocks X Y ∈ M (n + m)) ∧
  (∀ n, 0 < n → ∀ X ∈ M n, ∀ p, permute p X ∈ M n)

/-- PDF p.4 Eq.(6): extended infimum, including infinity for empty alternatives. -/
def setEntropy {I : Type*} [Fintype I] [DecidableEq I]
    (M : Set (Mat I)) (rho : Mat I) : ℝ≥0∞ :=
  ⨅ sigma : M, relativeBits rho sigma.val

/-- PDF p.5 Eq.(10): positive-block infimum construction; its agreement with
the limit and its finiteness are the conclusions of regularization_exists. -/
def regularizedSetEntropy {I : Type*} [Fintype I] [DecidableEq I]
    (M : (n : ℕ) → Set (Mat (Copies I n))) (rho : Mat I) : ℝ≥0∞ :=
  ⨅ n : {n : ℕ // 0 < n}, setEntropy (M n.val) (piKron n.val rho) / (n.val : ℝ≥0∞)

/-- PDF p.5 Eqs.(12),(13): -log_2(0)=infinity. Positive n is imposed at uses.
EReal preserves subtraction of eta, without truncation at zero. -/
def testingRate (n : ℕ) (p : ℝ) : EReal :=
  if p = 0 then ⊤ else ((-Real.logb 2 p / (n : ℝ) : ℝ) : EReal)

/-- PDF p.5 Eqs.(11)--(14): both clauses, with one effect sequence uniform over
all alternatives, including all positive finite blocklengths. -/
def SteinClauses {I : Type*} [Fintype I] [DecidableEq I]
    (M : (n : ℕ) → Set (Mat (Copies I n))) (rho : Mat I) : Prop :=
  (∀ eta : ℝ, 0 < eta → ∃ A : (n : ℕ) → Mat (Copies I n),
    (∀ n, 0 < n → IsEffect (A n)) ∧
    Tendsto (fun n => effectProb (1 - A n) (piKron n rho)) atTop (𝓝 0) ∧
    ∀ n, 0 < n → ∀ omega ∈ M n,
      (regularizedSetEntropy M rho : EReal) ≤ testingRate n (effectProb (A n) omega) + (eta : EReal)) ∧
  (∀ (eta : ℝ) (A : (n : ℕ) → Mat (Copies I n)), 0 < eta →
    (∀ n, 0 < n → IsEffect (A n)) →
    (∀ n, 0 < n → ∀ omega ∈ M n,
      (regularizedSetEntropy M rho : EReal) ≤ testingRate n (effectProb (A n) omega) - (eta : EReal)) →
    Tendsto (fun n => effectProb (1 - A n) (piKron n rho)) atTop (𝓝 1))

/-- PDF p.4 Eqs.(7),(8): max-relative entropy on normalized states.
For such states any feasible exponent is nonnegative, so an ENNReal infimum
of nonnegative exponents is exactly the source's real-exponent infimum. -/
def maxBits {I : Type*} [Fintype I] [DecidableEq I] (rho sigma : Mat I) : ℝ≥0∞ :=
  sInf {v : ℝ≥0∞ | ∃ s : ℝ, 0 ≤ s ∧ v = ENNReal.ofReal s ∧
    ((((2 : ℝ) ^ s : ℝ) : ℂ) • sigma - rho).PosSemidef}

/-- PDF p.4 Eq.(9): closed balls of NORMALIZED states in the full trace norm. -/
def traceNormSmoothMax {I : Type*} [Fintype I] [DecidableEq I]
    (M : Set (Mat I)) (rho : Mat I) (eps : ℝ) : ℝ≥0∞ :=
  ⨅ tau : {tau : Mat I // IsDensityMatrix tau ∧ traceNorm (rho - tau) ≤ eps},
    ⨅ sigma : M, maxBits tau.val sigma.val

/-- PDF p.6 Eq.(16): both inner asymptotic envelopes and the right-hand
smoothing limits, without assuming an inner ordinary limit. -/
def SmoothFormula {I : Type*} [Fintype I] [DecidableEq I]
    (M : (n : ℕ) → Set (Mat (Copies I n))) (rho : Mat I) : Prop :=
  Tendsto (fun eps => liminf
    (fun n => traceNormSmoothMax (M n) (piKron n rho) eps / (n : ℝ≥0∞)) atTop)
    (nhdsWithin 0 (Set.Ioi 0)) (𝓝 (regularizedSetEntropy M rho)) ∧
  Tendsto (fun eps => limsup
    (fun n => traceNormSmoothMax (M n) (piKron n rho) eps / (n : ℝ≥0∞)) atTop)
    (nhdsWithin 0 (Set.Ioi 0)) (𝓝 (regularizedSetEntropy M rho))

/-- PDF p.10 Eq.(45): the entire nonnegative radius sequence is chosen before
its limsup; zero radii and arbitrary decay rates are permitted. -/
def diagonalSmooth {I : Type*} [Fintype I] [DecidableEq I]
    (M : (n : ℕ) → Set (Mat (Copies I n))) (rho : Mat I) : ℝ≥0∞ :=
  ⨅ eps : {eps : ℕ → ℝ // (∀ n, 0 ≤ eps n) ∧ Tendsto eps atTop (𝓝 0)},
    limsup (fun n => traceNormSmoothMax (M n) (piKron n rho) (eps.val n) / (n : ℝ≥0∞)) atTop

/-- PDF p.7 Eq.(20): the actual optimization profile. Attainment is stated
separately, rather than pretending a real infimum is automatically a minimum. -/
def thresholdProfile {I : Type*} [Fintype I] [DecidableEq I]
    (M : (n : ℕ) → Set (Mat (Copies I n))) (rho : Mat I) (y : ℝ) (n : ℕ) : ℝ :=
  sInf {v : ℝ | ∃ omega ∈ M n,
    v = (positivePart (piKron n rho - (((2 : ℝ) ^ (y * n) : ℝ) : ℂ) • omega)).trace.re}

/-- PDF p.3 Eq.(3), p.6 Eq.(15): grouped-party fully separable alternatives.
Each local state acts on ALL n copies of its party, allowing correlations
among those copies. There is no restriction to a bipartition or to i.i.d. alternatives. -/
def separableFamily {P : Type*} [Fintype P] (d : P → ℕ) (n : ℕ) :
    Set (Mat (Copies ((j : P) → Fin (d j)) n)) :=
  {X | IsDensityMatrix X ∧ ∃ q : ℕ, ∃ w : Fin q → ℝ,
    ∃ tau : (a : Fin q) → (j : P) → Mat (Copies (Fin (d j)) n),
    (∀ a, 0 ≤ w a) ∧ (∑ a, w a) = 1 ∧ (∀ a j, IsDensityMatrix (tau a j)) ∧
    X = ∑ a, (w a : ℂ) • (fun x y => ∏ j, tau a j (fun i => x i j) (fun i => y i j))}

/-- PDF p.3: identify the one-copy function register with its original space. -/
def oneCopy {I : Type*} (rho : Mat I) : Mat (Copies I 1) :=
  fun x y => rho (x 0) (y 0)

/-- PDF p.6: an entangled normalized multipartite state is outside Eq.(3). -/
def MultipartiteEntangled {P : Type*} [Fintype P] (d : P → ℕ)
    (rho : Mat ((j : P) → Fin (d j))) : Prop :=
  IsDensityMatrix rho ∧ oneCopy rho ∉ separableFamily d 1

/-- PDF pp.12--13: permutation symmetry of a vector. This is stronger than
permutation invariance of its rank-one projector, as the source requires. -/
def CopySymmetric {I : Type*} {n : ℕ} (v : Vec (Copies I n)) : Prop :=
  ∀ (p : Equiv.Perm (Fin n)) (x : Copies I n), v (x ∘ p) = v x

/-- PDF pp.12,18: trace every environmental factor, preserving paired-copy order. -/
def discardEnvironment {I : Type*} [Fintype I] {n : ℕ}
    (X : Mat (Copies (I × I) n)) : Mat (Copies I n) :=
  fun x y => ∑ z : Copies I n,
    X (fun i => (x i, z i)) (fun i => (y i, z i))

/-- PDF p.13 Eq.(67): normalized symmetric vectors in the complex span of
at-most-r defect tensors. No entropy inequality is a field of this predicate. -/
def AlmostPower {I : Type} [Fintype I] (theta : Vec I) (n r : ℕ)
    (psi : Vec (Copies I n)) : Prop :=
  r ≤ n ∧ IsState theta ∧ IsState psi ∧ CopySymmetric psi ∧
  psi ∈ Submodule.span ℂ {v | ∃ (S : Finset (Fin n)) (chi : (S → I) → ℂ),
    S.card ≤ r ∧ v = defectTensor theta S chi}

/-- PDF pp.18,20: lambda_max(rho)<1, expressed on every eigenvalue. -/
def MixedMarginal {I : Type*} [Fintype I] [DecidableEq I] (theta : Vec (I × I)) : Prop :=
  ∀ k : Fin (Fintype.card I), ascEigenvalues (traceRight (pureDensity theta)) k < 1

/-- PDF pp.4,18: a natural-valued sequence is o(n), with positive-copy asymptotics. -/
def Sublinear (a : ℕ → ℕ) : Prop :=
  Tendsto (fun n => (a n : ℝ) / (n : ℝ)) atTop (𝓝 0)

/-- PDF p.4 Eq.(4): normalized symmetrization; the zero-vector totalized value
is zero. Active orthogonal-defect components have nonzero symmetrization. -/
def normalizedCopySymmetrization {I : Type*} [Fintype I] {n : ℕ}
    (v : Vec (Copies I n)) : Vec (Copies I n) :=
  let z : Vec (Copies I n) := ∑ p : Equiv.Perm (Fin n),
    WithLp.toLp 2 (fun x => v (x ∘ p))
  (‖z‖ : ℂ)⁻¹ • z

/-- PDF p.18: arbitrary tensor of k local vectors, used to define the full
tensor power of the orthogonal subspace, rather than only product defects. -/
def tensorVectorFamily {I : Type*} {k : ℕ} (v : Fin k → Vec I) : Vec (Copies I k) :=
  WithLp.toLp 2 fun x => ∏ j, v j (x j)

/-- PDF pp.18,20: the k defective factors live in (theta-perp)^tensor k. -/
def OrthogonalDefects {I : Type*} [Fintype I] (theta : Vec I) (k : ℕ)
    (eta : Vec (Copies I k)) : Prop :=
  eta ∈ Submodule.span ℂ {v | ∃ w : Fin k → Vec I,
    (∀ j, inner ℂ theta (w j) = 0) ∧ v = tensorVectorFamily w}

/-- PDF pp.18,20: symmetrized k-defect component with exactly N sites. -/
def expansionComponent {I : Type*} [Fintype I] (theta : Vec I)
    (N k : ℕ) (hk : k ≤ N) (eta : Vec (Copies I k)) : Vec (Copies I N) :=
  normalizedCopySymmetrization (WithLp.toLp 2 fun x =>
    eta (fun i => x ⟨i.val, by omega⟩) *
    ∏ i : Fin (N - k), theta (x ⟨k + i.val, by omega⟩))

/-- PDF pp.18,20 Eqs.(103),(114): the original normalized expansion data.
Zero-coefficient terms need no nonexistent normalized defect vector. The
sum normalization and coefficient normalization are source assumptions. -/
structure Expansion {I : Type*} [Fintype I] (theta : Vec I) (N r : ℕ) where
  range : r ≤ N
  beta : Fin (r + 1) → ℂ
  eta : (k : Fin (r + 1)) → Vec (Copies I k.val)
  coefficients : (∑ k, Complex.normSq (beta k)) = 1
  defects : ∀ k, beta k ≠ 0 → IsState (eta k) ∧ CopySymmetric (eta k) ∧
    OrthogonalDefects theta k.val (eta k)
  normalized : IsState (∑ k, beta k • expansionComponent theta N k.val
    (by have := k.isLt; omega) (eta k))

/-- PDF p.20 Eq.(114): retain EXACTLY the coefficients of modulus at least 1/n;
Phi is unnormalized. n=0 is totalized but never used in finite-copy claims. -/
def cutoffVector {I : Type*} [Fintype I] {theta : Vec I} {N r : ℕ}
    (D : Expansion theta N r) (n : ℕ) : Vec (Copies I N) :=
  ∑ k, if (n : ℝ)⁻¹ ≤ ‖D.beta k‖ then
    D.beta k • expansionComponent theta N k.val (by have := k.isLt; have := D.range; omega) (D.eta k)
  else 0

/-- PDF p.20: exact retainedCoefficientIndices finite index set, including equality at the cutoff. -/
def retainedCoefficientIndices {I : Type*} [Fintype I] {theta : Vec I} {N r : ℕ}
    (D : Expansion theta N r) (n : ℕ) : Finset (Fin (r + 1)) :=
  Finset.univ.filter fun k => (n : ℝ)⁻¹ ≤ ‖D.beta k‖

/-- PDF p.20 Eq.(115): normalized cutoff reduction; the zero-cutoff off-domain
value is zero. Normalization is required only eventually, when automatic. -/
def cutoffReduction {I : Type} [Fintype I] {theta : Vec (I × I)} {N r : ℕ}
    (D : Expansion theta N r) (n : ℕ) : Mat (Copies I (N - r)) :=
  let phi := cutoffVector D n
  let psi := (‖phi‖ : ℂ)⁻¹ • phi
  discardPrefix r D.range (discardEnvironment (pureDensity psi))

/-- PDF p.19 Eq.(107), p.20 before Eq.(122): choose an actual relative-entropy
minimizer. Epsilon has a total off-domain value, and no optimality or tail
bound is inserted as a hypothesis of the results using this construction. -/
def closest {I : Type*} [Fintype I] [DecidableEq I]
    (M : Set (Mat I)) (rho : Mat I) : Mat I :=
  Classical.epsilon fun omega => omega ∈ M ∧ relativeBits rho omega = setEntropy M rho

/-- PDF p.20 Eq.(122): the specified full-rank regularization of the minimizer. -/
def regularizedAlternative {I : Type*} [Fintype I] [DecidableEq I] {k : ℕ}
    (M : Set (Mat (Copies I k))) (pi : Mat (Copies I k)) (sigma : Mat I) (tau : ℝ) :
    Mat (Copies I k) :=
  ((1 / (1 + tau) : ℝ) : ℂ) • closest M pi +
    ((tau / (1 + tau) : ℝ) : ℂ) • piKron k sigma

/-- PDF p.28: fixed-k extendibility, formulated as k equal B marginals.
Averaging over B permutations gives the equivalent symmetric extension. -/
def Extendible {A B : Type*} [Fintype A] [Fintype B] (k : ℕ)
    (rho : Mat (A × B)) : Prop :=
  IsDensityMatrix rho ∧ ∃ ext : Mat (A × (Fin k → B)), IsDensityMatrix ext ∧
    ∀ j : Fin k, ∀ a a' b b', rho (a,b) (a',b') =
      ∑ z : ({i : Fin k // i ≠ j} → B),
        ext (a, fun i => if h : i = j then b else z ⟨i,h⟩)
          (a', fun i => if h : i = j then b' else z ⟨i,h⟩)

/-- PDF p.28: the same k is fixed before the copy number n; the A and B
copies are each grouped into a local block when forming the extension. -/
def extendibleFamily {A B : Type*} [Fintype A] [Fintype B] (k n : ℕ) :
    Set (Mat (Copies (A × B) n)) :=
  {X | Extendible (A := Copies A n) (B := Copies B n) k
    (fun (x y : Copies A n × Copies B n) =>
      X (fun i => (x.1 i,x.2 i)) (fun i => (y.1 i,y.2 i)))}

/-- PDF p.28: PPT across grouped A:B blocks; NPPT means failure of PSD. -/
def pptStateFamily {A B : Type*} [Fintype A] [Fintype B] (n : ℕ) :
    Set (Mat (Copies (A × B) n)) :=
  {X | IsDensityMatrix X ∧
    Matrix.PosSemidef (fun x y : Copies (A × B) n =>
      X (fun i => ((x i).1,(y i).2)) (fun i => ((y i).1,(x i).2)))}

/-- PDF p.6 Eq.(18), p.29: finite local basis dimensions, one for each party. -/
abbrev PartyReg {P : Type*} (d : P → ℕ) := (j : P) → Fin (d j)

/-- PDF pp.6,29: rectangular local Kraus operator tensored with identities on
all other parties. Equality of coordinate values implements their identity. -/
def localKraus {P : Type*} [Fintype P] [DecidableEq P] (d : P → ℕ)
    (j : P) (h : ℕ) (K : Matrix (Fin h) (Fin (d j)) ℂ) :
    Matrix (PartyReg (Function.update d j h)) (PartyReg d) ℂ :=
  fun y x => K ⟨(y j).val, by simpa using (y j).isLt⟩ (x j) *
    ∏ i ∈ Finset.univ.erase j, if (y i).val = (x i).val then 1 else 0

/-- PDF pp.6,29: arbitrary finite adaptive deterministic LOCC tree.
Rectangular complete instruments include local ancillas, preparation and disposal;
the continuation can depend on the communicated outcome and every branch is summed.
There is no entanglement assistance and no assumed closure or optimal attainment. -/
inductive MultipartiteFiniteLOCC {P : Type} [Fintype P] [DecidableEq P] :
    {d e : P → ℕ} → (Mat (PartyReg d) → Mat (PartyReg e)) → Prop
  | identity (d : P → ℕ) : MultipartiteFiniteLOCC (fun X : Mat (PartyReg d) => X)
  | step {d e : P → ℕ} (j : P) (h k : ℕ)
      (K : Fin k → Matrix (Fin h) (Fin (d j)) ℂ)
      (complete : (∑ a, (K a)ᴴ * K a) = 1)
      (next : Fin k → (Mat (PartyReg (Function.update d j h)) → Mat (PartyReg e)))
      (valid : ∀ a, MultipartiteFiniteLOCC (next a)) :
      MultipartiteFiniteLOCC (fun X : Mat (PartyReg d) =>
        ∑ a, next a (localKraus d j h (K a) * X * (localKraus d j h (K a))ᴴ))

/-- PDF p.6 Eq.(18): regroup each party's n copies as a local dimension d_j^n.
The equivalence only changes coordinates and never transfers a quantum system. -/
def groupedCopies {P : Type*} [Fintype P] (d : P → ℕ) (n : ℕ)
    (rho : Mat (PartyReg d)) : Mat (PartyReg (fun j => d j ^ n)) :=
  fun x y => piKron n rho
    (fun t j => (finFunctionFinEquiv.symm (x j)) t)
    (fun t j => (finFunctionFinEquiv.symm (y j)) t)

/-- PDF p.6 Eq.(18): infimal trace-norm error over actual finite LOCC protocols,
without asserting that LOCC is closed or that an optimizer exists. -/
def conversionError {P : Type} [Fintype P] [DecidableEq P] (d : P → ℕ)
    (rho sigma : Mat (PartyReg d)) (k n : ℕ) : ℝ≥0∞ :=
  ⨅ L : {L : Mat (PartyReg (fun j => d j ^ k)) → Mat (PartyReg (fun j => d j ^ n)) //
    MultipartiteFiniteLOCC L}, ENNReal.ofReal (traceNorm (L.val (groupedCopies d k rho) - groupedCopies d n sigma))

/-- PDF p.6 Eq.(18): INPUT copies per OUTPUT copy; empty feasible infima are
infinity, so no convertibility assumption is needed. -/
def conversionCost {P : Type} [Fintype P] [DecidableEq P] (d : P → ℕ)
    (rho sigma : Mat (PartyReg d)) : ℝ≥0∞ :=
  ⨅ k : {k : ℕ → ℕ // Tendsto (fun n => conversionError d rho sigma (k n) n) atTop (𝓝 0)},
    limsup (fun n => (k.val n : ℝ≥0∞) / (n : ℝ≥0∞)) atTop

/-! Sanity checks pin the totalized edges and the physical constructions. -/

example : testingRate 1 0 = ⊤ := by simp [testingRate]

example : testingRate 1 1 = 0 := by simp [testingRate]

example {I : Type*} (X : Mat I) (x y : Copies I 0) : piKron 0 X x y = 1 := by
  simp [piKron]

example {I : Type*} (rho : Mat I) (x y : Copies I 1) :
    oneCopy rho x y = rho (x 0) (y 0) := rfl

example {I : Type*} [Fintype I] [DecidableEq I] :
    setEntropy (∅ : Set (Mat I)) 0 = ⊤ := by simp [setEntropy]

example {P : Type} [Fintype P] [DecidableEq P] (d : P → ℕ) :
    MultipartiteFiniteLOCC (fun X : Mat (PartyReg d) => X) := MultipartiteFiniteLOCC.identity d

example {I : Type*} [Fintype I] [DecidableEq I] :
    (positivePart (0 : Mat I)).trace.re = 0 := by simp [positivePart, cfc_zero]

example {I : Type*} [Fintype I] [DecidableEq I] (rho sigma : Mat I)
    (h : IsDensityMatrix rho ∧ IsDensityMatrix sigma)
    (hs : ¬ LinearMap.ker sigma.mulVecLin ≤ LinearMap.ker rho.mulVecLin) :
    relativeBits rho sigma = ⊤ := by
  simp [relativeBits, h, QuantumLoss.umegakiEntropy, hs, ENNReal.div_eq_top]

end QAlgorithms.Papers.Independent.Intake100.P63
Source
A Generalization of Quantum Stein's Lemma, arXiv:0904.0281v3, https://arxiv.org/abs/0904.0281v3
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

QAlgorithms.Papers.Independent.Intake100.P63.AlmostPower

For a finite type III, a complex vector θ\thetaθ indexed by III, natural numbers n,rn,rn,r, and a complex vector ψ\psiψ indexed by InI^nIn, this predicate requires r≤nr\le nr≤n, ∥θ∥=∥ψ∥=1\|\theta\|=\|\psi\|=1∥θ∥=∥ψ∥=1, invariance ψ(x∘p)=ψ(x)\psi(x\circ p)=\psi(x)ψ(x∘p)=ψ(x) under every permutation ppp of the nnn coordinates, and membership of ψ\psiψ in the complex linear span of all vectors of the form

v(x)=(∏i∉Sθ(xi))χ(x∣S),v(x)=\left(\prod_{i\notin S}\theta(x_i)\right)\chi(x|_S),v(x)=​i∈/S∏​θ(xi​)​χ(x∣S​),

where S⊆{0,…,n−1}S\subseteq\{0,\ldots,n-1\}S⊆{0,…,n−1} has cardinality at most rrr, and χ\chiχ is any complex-valued function on assignments S→IS\to IS→I. The individual spanning vectors need not be normalized or symmetric. When r=0r=0r=0, this span is the span of x↦∏iθ(xi)x\mapsto\prod_i\theta(x_i)x↦∏i​θ(xi​); n=0n=0n=0 is allowed and forces r=0r=0r=0. If III is empty, the requirement ∥θ∥=1\|\theta\|=1∥θ∥=1 is impossible.

QAlgorithms.Papers.Independent.Intake100.P63.CopySymmetric

For any type III, any natural number nnn, and any complex vector vvv indexed by InI^nIn, this predicate requires

v(x∘p)=v(x)v(x\circ p)=v(x)v(x∘p)=v(x)

for every permutation ppp of {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1} and every function x:{0,…,n−1}→Ix:\{0,\ldots,n-1\}\to Ix:{0,…,n−1}→I. No normalization is required. For n=0n=0n=0 or n=1n=1n=1, every such vector satisfies the predicate; it also holds vacuously when InI^nIn is empty.

QAlgorithms.Papers.Independent.Intake100.P63.Expansion

For any finite type III, possibly empty, vector θ∈CI\theta\in\mathbb C^Iθ∈CI, and natural numbers N,rN,rN,r, an expansion consists of a condition r≤Nr\le Nr≤N, complex coefficients β0,…,βr\beta_0,\ldots,\beta_rβ0​,…,βr​, and vectors ηk∈CIk\eta_k\in\mathbb C^{I^k}ηk​∈CIk, subject to the following requirements: ∑k=0r∣βk∣2=1\sum_{k=0}^r|\beta_k|^2=1∑k=0r​∣βk​∣2=1; whenever βk≠0\beta_k\ne0βk​=0, the vector ηk\eta_kηk​ has Euclidean norm 111, satisfies ηk(x∘p)=ηk(x)\eta_k(x\circ p)=\eta_k(x)ηk​(x∘p)=ηk​(x) for every permutation ppp of its kkk coordinates and every x∈Ikx\in I^kx∈Ik, and belongs to the complex linear span of the vectors x↦∏j=0k−1wj(xj)x\mapsto\prod_{j=0}^{k-1}w_j(x_j)x↦∏j=0k−1​wj​(xj​) with ⟨θ,wj⟩=0\langle\theta,w_j\rangle=0⟨θ,wj​⟩=0 for every jjj; and the vector ∑k=0rβkCk\sum_{k=0}^r\beta_k C_k∑k=0r​βk​Ck​ has norm 111, where

zk(x)=∑p∈Sym⁡(N)ηk((x∘p)∣{0,…,k−1})∏i=0N−k−1θ(xp(k+i)),Ck=∥zk∥−1zk.z_k(x)=\sum_{p\in\operatorname{Sym}(N)} \eta_k\bigl((x\circ p)|_{\{0,\ldots,k-1\}}\bigr) \prod_{i=0}^{N-k-1}\theta(x_{p(k+i)}), \qquad C_k=\|z_k\|^{-1}z_k.zk​(x)=p∈Sym(N)∑​ηk​((x∘p)∣{0,…,k−1}​)i=0∏N−k−1​θ(xp(k+i)​),Ck​=∥zk​∥−1zk​.

Here IjI^jIj is the set of length-jjj configurations, all norms are Euclidean, and zero inverses are zero. There is no separate normalization assumption on θ\thetaθ, and the norm, symmetry, and orthogonality requirements on ηk\eta_kηk​ apply only when βk≠0\beta_k\ne0βk​=0. Zero values of N,r,kN,r,kN,r,k are included, with empty products equal to 111.

QAlgorithms.Papers.Independent.Intake100.P63.Extendible

For any finite types A,BA,BA,B, possibly empty, natural number kkk, and complex matrix ρ\rhoρ indexed by A×BA\times BA×B, this predicate requires that ρ\rhoρ be positive semidefinite with trace 111, and that there exist a positive semidefinite matrix EEE of trace 111, indexed by A×BkA\times B^kA×Bk, such that for every j∈{0,…,k−1}j\in\{0,\ldots,k-1\}j∈{0,…,k−1}, a,a′∈Aa,a'\in Aa,a′∈A, and b,b′∈Bb,b'\in Bb,b′∈B,

ρ(a,b),(a′,b′)=∑z:{0,…,k−1}∖{j}→BE(a,z[j←b]),(a′,z[j←b′]).\rho_{(a,b),(a',b')} = \sum_{z:\{0,\ldots,k-1\}\setminus\{j\}\to B} E_{(a,z[j\leftarrow b]),(a',z[j\leftarrow b'])}.ρ(a,b),(a′,b′)​=z:{0,…,k−1}∖{j}→B∑​E(a,z[j←b]),(a′,z[j←b′])​.

The notation z[j←b]z[j\leftarrow b]z[j←b] denotes the length-kkk configuration equal to bbb at jjj and to zzz elsewhere. No permutation invariance of EEE is required. For k=0k=0k=0, all displayed marginal equalities are vacuous, while the density requirements on ρ\rhoρ and on an extension indexed by A×B0A\times B^0A×B0 remain. If AAA or BBB is empty, the trace-111 requirement on ρ\rhoρ is impossible.

QAlgorithms.Papers.Independent.Intake100.P63.MixedMarginal

For a finite type III with decidable equality and an arbitrary complex vector θ\thetaθ indexed by I×II\times II×I, form the matrix

Ri,j=∑h∈Iθ(i,h)θ(j,h)‾.R_{i,j}=\sum_{h\in I}\theta(i,h)\overline{\theta(j,h)}.Ri,j​=h∈I∑​θ(i,h)θ(j,h)​.

This predicate requires every eigenvalue of RRR, listed in ascending order with multiplicity, to be strictly less than 111. No normalization of θ\thetaθ is assumed. In particular, the zero vector satisfies this predicate, and when III is empty the eigenvalue condition is vacuous.

QAlgorithms.Papers.Independent.Intake100.P63.MultipartiteEntangled

For a finite party type PPP, natural dimensions djd_jdj​, and a complex matrix ρ\rhoρ indexed by configurations in ∏j∈P{0,…,dj−1}\prod_{j\in P}\{0,\ldots,d_j-1\}∏j∈P​{0,…,dj​−1}, this predicate requires that ρ\rhoρ be positive semidefinite with trace 111, and that its relabeling ρ^x,y=ρx0,y0\widehat\rho_{x,y}=\rho_{x_0,y_0}ρ​x,y​=ρx0​,y0​​ on one-copy configurations admit no representation

ρ^x,y=∑a=0q−1wa∏j∈P(τa,j)(x0(j)),(y0(j)),\widehat\rho_{x,y} =\sum_{a=0}^{q-1}w_a \prod_{j\in P}(\tau_{a,j})_{(x_0(j)),(y_0(j))},ρ​x,y​=a=0∑q−1​wa​j∈P∏​(τa,j​)(x0​(j)),(y0​(j))​,

where qqq is a natural number, the real weights are nonnegative and sum to 111, and each τa,j\tau_{a,j}τa,j​, indexed by one-coordinate functions into {0,…,dj−1}\{0,\ldots,d_j-1\}{0,…,dj​−1}, is positive semidefinite with trace 111. For an empty party type this predicate is never satisfied; if any dimension is zero, the density-matrix requirement cannot be satisfied.

QAlgorithms.Papers.Independent.Intake100.P63.MultipartiteFiniteLOCC

For a finite type PPP of parties with decidable equality, and dimension functions d,e:P→Nd,e:P\to\mathbb Nd,e:P→N, write Hd=∏j∈P{0,…,dj−1}\mathcal H_d=\prod_{j\in P}\{0,\ldots,d_j-1\}Hd​=∏j∈P​{0,…,dj​−1} for the joint basis and Mat⁡(Hd)\operatorname{Mat}(\mathcal H_d)Mat(Hd​) for complex matrices indexed by that basis. This inductively defined predicate on functions Mat⁡(Hd)→Mat⁡(He)\operatorname{Mat}(\mathcal H_d)\to\operatorname{Mat}(\mathcal H_e)Mat(Hd​)→Mat(He​) has exactly two constructors: the identity function belongs to it for every ddd; and, given a party jjj, natural numbers h,kh,kh,k, matrices Ka:Cdj→ChK_a:\mathbb C^{d_j}\to\mathbb C^hKa​:Cdj​→Ch for 0≤a<k0\le a<k0≤a<k satisfying ∑aKa†Ka=Idj\sum_aK_a^\dagger K_a=I_{d_j}∑a​Ka†​Ka​=Idj​​, and functions La:Mat⁡(Hd[j↦h])→Mat⁡(He)L_a:\operatorname{Mat}(\mathcal H_{d[j\mapsto h]})\to\operatorname{Mat}(\mathcal H_e)La​:Mat(Hd[j↦h]​)→Mat(He​) that each already satisfy the predicate, the function

X⟼∑a=0k−1La(K~aXK~a†)X\longmapsto\sum_{a=0}^{k-1}L_a(\widetilde K_aX\widetilde K_a^\dagger)X⟼a=0∑k−1​La​(Ka​XKa†​)

also belongs to it. Here d[j↦h]d[j\mapsto h]d[j↦h] changes only party jjj's dimension, and the local extension is defined entrywise by

K~a(y,x)=(Ka)yj,xj∏i∈Pi≠j1val⁡(yi)=val⁡(xi).\widetilde K_a(y,x)=(K_a)_{y_j,x_j} \prod_{\substack{i\in P\\i\ne j}}\mathbf1_{\operatorname{val}(y_i)=\operatorname{val}(x_i)}.Ka​(y,x)=(Ka​)yj​,xj​​i∈Pi=j​∏​1val(yi​)=val(xi​)​.

Thus the continuation may depend on the local outcome aaa, while the resulting function sums all branches. Membership is generated by finite applications of these constructors. No positivity assumptions on the argument XXX, or positive lower bounds on dj,ej,h,kd_j,e_j,h,kdj​,ej​,h,k, are imposed. Zero-dimensional spaces and empty outcome families are included whenever the completeness equation holds; in particular, k=0k=0k=0 requires Idj=0I_{d_j}=0Idj​​=0. The party type itself may be empty, in which case no step constructor can choose a party.

QAlgorithms.Papers.Independent.Intake100.P63.OrthogonalDefects

For a finite type III, a complex vector θ\thetaθ indexed by III, a natural number kkk, and a complex vector η\etaη indexed by IkI^kIk, this predicate requires η\etaη to belong to the complex linear span of all vectors

x⟼∏j=0k−1wj(xj)x\longmapsto\prod_{j=0}^{k-1}w_j(x_j)x⟼j=0∏k−1​wj​(xj​)

obtained from families wjw_jwj​ satisfying ⟨θ,wj⟩=0\langle\theta,w_j\rangle=0⟨θ,wj​⟩=0 for every jjj, with the usual complex Euclidean inner product. Neither θ\thetaθ, η\etaη, nor the factors wjw_jwj​ are required to be normalized, and η=0\eta=0η=0 is allowed. For k=0k=0k=0, the orthogonality conditions are vacuous and the span is the entire one-dimensional space indexed by I0I^0I0.

QAlgorithms.Papers.Independent.Intake100.P63.PartyReg

For any type PPP and any function d:P→Nd:P\to\mathbb Nd:P→N, the party register is the type of assignments xxx that choose, for every j∈Pj\in Pj∈P, an integer xjx_jxj​ satisfying 0≤xj<dj0\le x_j<d_j0≤xj​<dj​. Neither finiteness nor nonemptiness of PPP, nor positivity of the dimensions, is assumed. If PPP is empty there is exactly one assignment; if dj=0d_j=0dj​=0 for some j∈Pj\in Pj∈P, there are no assignments.

QAlgorithms.Papers.Independent.Intake100.P63.SmoothFormula

For any finite type III with decidable equality, any family MnM_nMn​ of sets of complex matrices on InI^nIn, and any complex matrix ρ\rhoρ on III, let (ρ⊗n)x,y=∏i<nρxi,yi(\rho^{\otimes n})_{x,y}=\prod_{i<n}\rho_{x_i,y_i}(ρ⊗n)x,y​=∏i<n​ρxi​,yi​​, and define

Bn(ε)=inf⁡τ≥0, Tr⁡τ=1∥ρ⊗n−τ∥1≤εinf⁡σ∈Mninf⁡s∈R, s≥02sσ−τ≥0s,R=inf⁡k≥11kinf⁡σ∈MkD(ρ⊗k,σ),B_n(\varepsilon)= \inf_{\substack{\tau\ge0,\ \operatorname{Tr}\tau=1\\ \|\rho^{\otimes n}-\tau\|_1\le\varepsilon}} \inf_{\sigma\in M_n} \inf_{\substack{s\in\mathbb R,\ s\ge0\\2^s\sigma-\tau\ge0}}s, \qquad R=\inf_{k\ge1}\frac1k\inf_{\sigma\in M_k} \mathcal D(\rho^{\otimes k},\sigma),Bn​(ε)=τ≥0, Trτ=1∥ρ⊗n−τ∥1​≤ε​inf​σ∈Mn​inf​s∈R, s≥02sσ−τ≥0​inf​s,R=k≥1inf​k1​σ∈Mk​inf​D(ρ⊗k,σ),

with infima and quotients taken in [0,+∞][0,+\infty][0,+∞], matrix inequalities denoting positive semidefiniteness, and ∥X∥1=Re⁡Tr⁡X†X\|X\|_1=\operatorname{Re}\operatorname{Tr}\sqrt{X^\dagger X}∥X∥1​=ReTrX†X​. Here D(A,B)\mathcal D(A,B)D(A,B) is zero if either matrix is not positive semidefinite with trace 111, is +∞+\infty+∞ if both are density matrices and ker⁡B⊈ker⁡A\ker B\not\subseteq\ker AkerB⊆kerA, and otherwise equals [Re⁡Tr⁡(f(A)−Alog⁡B)]+/log⁡2[\operatorname{Re}\operatorname{Tr}(f(A)-A\log B)]_+/\log2[ReTr(f(A)−AlogB)]+​/log2, where f(t)=tlog⁡tf(t)=t\log tf(t)=tlogt, matrix functions use continuous functional calculus, log⁡0=0\log0=0log0=0, and [u]+=max⁡(u,0)[u]_+=\max(u,0)[u]+​=max(u,0). This predicate asserts both limits

lim⁡ε↓0lim inf⁡n→∞Bn(ε)n=R,lim⁡ε↓0lim sup⁡n→∞Bn(ε)n=R,\lim_{\varepsilon\downarrow0}\liminf_{n\to\infty}\frac{B_n(\varepsilon)}n=R, \qquad \lim_{\varepsilon\downarrow0}\limsup_{n\to\infty}\frac{B_n(\varepsilon)}n=R,ε↓0lim​n→∞liminf​nBn​(ε)​=R,ε↓0lim​n→∞limsup​nBn​(ε)​=R,

where ε\varepsilonε approaches zero through positive real values and convergence is in the topology of [0,+∞][0,+\infty][0,+∞], including when R=+∞R=+\inftyR=+∞. No density assumption on ρ\rhoρ or structural assumption on MnM_nMn​ is included. Empty infima are +∞+\infty+∞. The inner sequences include n=0n=0n=0, with extended nonnegative division, for which 0/0=00/0=00/0=0 and a/0=+∞a/0=+\inftya/0=+∞ for a>0a>0a>0; this initial term does not affect their limiting inferior or superior.

QAlgorithms.Papers.Independent.Intake100.P63.SteinClauses

For any finite type III with decidable equality, any family MnM_nMn​ of sets of complex matrices on InI^nIn, and any complex matrix ρ\rhoρ on III, put (ρ⊗n)x,y=∏i<nρxi,yi(\rho^{\otimes n})_{x,y}=\prod_{i<n}\rho_{x_i,y_i}(ρ⊗n)x,y​=∏i<n​ρxi​,yi​​ and

R=inf⁡n≥11ninf⁡σ∈MnD(ρ⊗n,σ)∈[0,+∞].R=\inf_{n\ge1}\frac1n\inf_{\sigma\in M_n}\mathcal D(\rho^{\otimes n},\sigma)\in[0,+\infty].R=n≥1inf​n1​σ∈Mn​inf​D(ρ⊗n,σ)∈[0,+∞].

Here D(A,B)\mathcal D(A,B)D(A,B) is zero if either matrix is not positive semidefinite with trace 111, is +∞+\infty+∞ if both are density matrices but ker⁡B⊈ker⁡A\ker B\not\subseteq\ker AkerB⊆kerA, and otherwise is [Re⁡Tr⁡(f(A)−Alog⁡B)]+/log⁡2[\operatorname{Re}\operatorname{Tr}(f(A)-A\log B)]_+/\log2[ReTr(f(A)−AlogB)]+​/log2, where f(t)=tlog⁡tf(t)=t\log tf(t)=tlogt, matrix functions use continuous functional calculus, log⁡0=0\log0=0log0=0, and [u]+=max⁡(u,0)[u]_+=\max(u,0)[u]+​=max(u,0); an infimum over an empty MnM_nMn​ is +∞+\infty+∞. Also write q(n,p)=+∞q(n,p)=+\inftyq(n,p)=+∞ for p=0p=0p=0, and q(n,p)=−log⁡2p/nq(n,p)=-\log_2p/nq(n,p)=−log2​p/n otherwise, using the total real logarithm and division. This predicate requires both of the following: for every real η>0\eta>0η>0, there exists a sequence of matrices AnA_nAn​ such that AnA_nAn​ and 1−An1-A_n1−An​ are positive semidefinite for every n>0n>0n>0,

Re⁡Tr⁡((1−An)ρ⊗n)⟶0,R≤q ⁣(n,Re⁡Tr⁡(Anω))+η(n>0, ω∈Mn);\operatorname{Re}\operatorname{Tr}\bigl((1-A_n)\rho^{\otimes n}\bigr)\longrightarrow0, \qquad R\le q\!\left(n,\operatorname{Re}\operatorname{Tr}(A_n\omega)\right)+\eta \quad(n>0,\ \omega\in M_n);ReTr((1−An​)ρ⊗n)⟶0,R≤q(n,ReTr(An​ω))+η(n>0, ω∈Mn​);

and for every real η>0\eta>0η>0 and every sequence AnA_nAn​, if AnA_nAn​ and 1−An1-A_n1−An​ are positive semidefinite for all n>0n>0n>0 and

R≤q ⁣(n,Re⁡Tr⁡(Anω))−η(n>0, ω∈Mn),R\le q\!\left(n,\operatorname{Re}\operatorname{Tr}(A_n\omega)\right)-\eta \quad(n>0,\ \omega\in M_n),R≤q(n,ReTr(An​ω))−η(n>0, ω∈Mn​),

then Re⁡Tr⁡((1−An)ρ⊗n)→1\operatorname{Re}\operatorname{Tr}((1-A_n)\rho^{\otimes n})\to1ReTr((1−An​)ρ⊗n)→1. The inequalities involving RRR and qqq are in the extended reals. No density hypothesis on ρ\rhoρ or axioms on MnM_nMn​ are included; conditions quantified over an empty MnM_nMn​ are vacuous, and A0A_0A0​ is unrestricted.

QAlgorithms.Papers.Independent.Intake100.P63.Sublinear

For a function a:N→Na:\mathbb N\to\mathbb Na:N→N, this predicate means that the real sequence

a(n)n\frac{a(n)}{n}na(n)​

converges to 000 as n→∞n\to\inftyn→∞. No monotonicity or further bound on aaa is required. Real division is totalized, so the term at n=0n=0n=0 is 000, regardless of a(0)a(0)a(0).

QAlgorithms.Papers.Independent.Intake100.P63.closest

For any finite type III with decidable equality, any set MMM of complex I×II\times II×I matrices, and any complex I×II\times II×I matrix ρ\rhoρ, this definition chooses a matrix ω\omegaω satisfying

ω∈M,D2(ρ,ω)=inf⁡σ∈MD2(ρ,σ)\omega\in M,\qquad D_2(\rho,\omega)=\inf_{\sigma\in M}D_2(\rho,\sigma)ω∈M,D2​(ρ,ω)=σ∈Minf​D2​(ρ,σ)

if such a matrix exists; if none exists, it returns an unspecified matrix without guaranteeing either condition. Here D2(ρ,σ)=0D_2(\rho,\sigma)=0D2​(ρ,σ)=0 if either argument fails to be positive semidefinite with trace 111. Otherwise,

D2(ρ,σ)={max⁡ ⁣{Re⁡tr⁡(f(ρ)−ρ log⁡(σ)),0}log⁡2,ker⁡σ⊆ker⁡ρ,+∞,otherwise,f(t)=tlog⁡t,D_2(\rho,\sigma)= \begin{cases} \displaystyle \frac{\max\!\left\{\operatorname{Re}\operatorname{tr} \bigl(f(\rho)-\rho\,\log(\sigma)\bigr),0\right\}}{\log2}, &\ker\sigma\subseteq\ker\rho,\\[4pt] +\infty,&\text{otherwise}, \end{cases} \qquad f(t)=t\log t,D2​(ρ,σ)=⎩⎨⎧​log2max{Retr(f(ρ)−ρlog(σ)),0}​,+∞,​kerσ⊆kerρ,otherwise,​f(t)=tlogt,

with matrix functions interpreted through the real continuous functional calculus and scalar logarithms using log⁡0=0\log0=0log0=0. The infimum is taken in [0,+∞][0,+\infty][0,+∞], so the infimum over an empty MMM is +∞+\infty+∞. No nonemptiness, attainment, or density assumption is imposed on MMM or ρ\rhoρ, and III may be empty.

QAlgorithms.Papers.Independent.Intake100.P63.conversionCost

For a finite party type PPP with decidable equality, dimensions d:P→Nd:P\to\mathbb Nd:P→N, and arbitrary complex matrices ρ,σ\rho,\sigmaρ,σ on Hd=∏j{0,…,dj−1}\mathcal H_d=\prod_j\{0,\ldots,d_j-1\}Hd​=∏j​{0,…,dj​−1}, this defines

inf⁡k:N→Ne(k(n),n)→0lim sup⁡n→∞k(n)nin [0,+∞].\inf_{\substack{k:\mathbb N\to\mathbb N\\ e(k(n),n)\to0}} \limsup_{n\to\infty}\frac{k(n)}{n} \quad\text{in }[0,+\infty].k:N→Ne(k(n),n)→0​inf​n→∞limsup​nk(n)​in [0,+∞].

Here e(s,n)e(s,n)e(s,n) is the infimum, over all functions LLL generated by finite local operations with outcome-dependent continuations, of the extended nonnegative version of ∥L(ρ[s])−σ[n]∥1\|L(\rho^{[s]})-\sigma^{[n]}\|_1∥L(ρ[s])−σ[n]∥1​. Precisely, allowed functions are generated from identities by steps X↦∑aLa(K~aXK~a†)X\mapsto\sum_aL_a(\widetilde K_aX\widetilde K_a^\dagger)X↦∑a​La​(Ka​XKa†​), where a chosen party changes dimension by matrices KaK_aKa​ satisfying ∑aKa†Ka=I\sum_aK_a^\dagger K_a=I∑a​Ka†​Ka​=I, every LaL_aLa​ is already allowed, and K~a\widetilde K_aKa​ has entries Ka(yj,xj)∏i≠j1val⁡(yi)=val⁡(xi)K_a(y_j,x_j)\prod_{i\ne j}\mathbf1_{\operatorname{val}(y_i)=\operatorname{val}(x_i)}Ka​(yj​,xj​)∏i=j​1val(yi​)=val(xi​)​. The matrices ρ[s]\rho^{[s]}ρ[s] and σ[n]\sigma^{[n]}σ[n] are tensor powers regrouped by party using the standard bijection between local sss-tuples and indices below djsd_j^sdjs​; their entries are the products of the corresponding single-copy entries. The trace norm is ∥Z∥1=Re⁡Tr⁡Z†Z\|Z\|_1=\operatorname{Re}\operatorname{Tr}\sqrt{Z^\dagger Z}∥Z∥1​=ReTrZ†Z​, and its extended nonnegative version is max⁡(∥Z∥1,0)\max(\|Z\|_1,0)max(∥Z∥1​,0). Convergence of e(k(n),n)e(k(n),n)e(k(n),n) is in the extended nonnegative real topology. The infimum is over integer-valued copy-count sequences, with no monotonicity or positivity requirement, and no attainment is asserted. If no such sequence exists, the cost is +∞+\infty+∞. The ratios use extended nonnegative division, including 0/0=00/0=00/0=0 and a positive numerator divided by zero equal to +∞+\infty+∞; the value at n=0n=0n=0 does not affect the limiting superior. No normalization of ρ,σ\rho,\sigmaρ,σ, positive dimensions, or nonempty party type is required.

QAlgorithms.Papers.Independent.Intake100.P63.conversionError

For a finite party type PPP with decidable equality, arbitrary dimensions d:P→Nd:P\to\mathbb Nd:P→N, arbitrary complex matrices ρ,σ\rho,\sigmaρ,σ on Hd=∏j{0,…,dj−1}\mathcal H_d=\prod_j\{0,\ldots,d_j-1\}Hd​=∏j​{0,…,dj​−1}, and natural numbers k,nk,nk,n, this defines the extended nonnegative number

inf⁡Lmax⁡ ⁣{Tr⁡(L(ρ[k])−σ[n])†(L(ρ[k])−σ[n]), 0},\inf_L\max\!\left\{ \operatorname{Tr}\sqrt{\bigl(L(\rho^{[k]})-\sigma^{[n]}\bigr)^\dagger \bigl(L(\rho^{[k]})-\sigma^{[n]}\bigr)},\,0 \right\},Linf​max{Tr(L(ρ[k])−σ[n])†(L(ρ[k])−σ[n])​,0},

where the trace is understood through its real part, and LLL ranges over functions from matrices on Hdk\mathcal H_{d^k}Hdk​ to matrices on Hdn\mathcal H_{d^n}Hdn​ generated by the following finite recursion: identities are allowed, and a party may apply finitely many local matrices KaK_aKa​ with ∑aKa†Ka=I\sum_aK_a^\dagger K_a=I∑a​Ka†​Ka​=I, change its local dimension to their output dimension, and use a separately allowed continuation LaL_aLa​ for each outcome, producing X↦∑aLa(K~aXK~a†)X\mapsto\sum_aL_a(\widetilde K_aX\widetilde K_a^\dagger)X↦∑a​La​(Ka​XKa†​). The matrix K~a\widetilde K_aKa​ acts as KaK_aKa​ on the chosen party and as the identity on every other party, with entries given by Ka(yj,xj)∏i≠j1val⁡(yi)=val⁡(xi)K_a(y_j,x_j)\prod_{i\ne j}\mathbf1_{\operatorname{val}(y_i)=\operatorname{val}(x_i)}Ka​(yj​,xj​)∏i=j​1val(yi​)=val(xi​)​. Here ρ[k]\rho^{[k]}ρ[k] and σ[n]\sigma^{[n]}σ[n] are their tensor powers regrouped by party: decoding each local index in {0,…,djs−1}\{0,\ldots,d_j^s-1\}{0,…,djs​−1} into an sss-tuple using the standard finite-function equivalence, their entries are products of the corresponding sss entries of ρ\rhoρ or σ\sigmaσ. The square root in the displayed expression is the continuous functional calculus square root, so the expression is precisely the defined trace norm followed by conversion to an extended nonnegative real. No density-matrix assumption is imposed, and the infimum need not be attained. The infimum of an empty collection is +∞+\infty+∞. Zero copies, zero dimensions, and an empty party type are included; a zeroth tensor power is the scalar matrix 111.

QAlgorithms.Papers.Independent.Intake100.P63.cutoffReduction

For any finite type III, possibly empty, vector θ∈CI×I\theta\in\mathbb C^{I\times I}θ∈CI×I, natural numbers N,rN,rN,r, expansion data D=(βk,ηk)k=0rD=(\beta_k,\eta_k)_{k=0}^rD=(βk​,ηk​)k=0r​, and natural number nnn, first form

ϕ=∑0≤k≤rn−1≤∣βk∣βkCk,ψ=∥ϕ∥−1ϕ.\phi=\sum_{\substack{0\le k\le r\\ n^{-1}\le|\beta_k|}}\beta_k C_k, \qquad \psi=\|\phi\|^{-1}\phi.ϕ=0≤k≤rn−1≤∣βk​∣​∑​βk​Ck​,ψ=∥ϕ∥−1ϕ.

Here r≤Nr\le Nr≤N, ∑k∣βk∣2=1\sum_k|\beta_k|^2=1∑k​∣βk​∣2=1, and CkC_kCk​ is the sum over all NNN-coordinate permutations of ηk⊗θ⊗(N−k)\eta_k\otimes\theta^{\otimes(N-k)}ηk​⊗θ⊗(N−k), divided by the norm of that sum. The expansion requires ∥∑kβkCk∥=1\|\sum_k\beta_k C_k\|=1∥∑k​βk​Ck​∥=1; whenever βk≠0\beta_k\ne0βk​=0, ηk∈C(I×I)k\eta_k\in\mathbb C^{(I\times I)^k}ηk​∈C(I×I)k is normalized, invariant under coordinate permutations, and in the complex span of tensors with every factor orthogonal to θ\thetaθ. The returned matrix, indexed by x,y∈IN−rx,y\in I^{N-r}x,y∈IN−r, is

∑a∈Ir∑e∈INψ(((a∥x)i,ei)i=0N−1)ψ(((a∥y)i,ei)i=0N−1)‾,\sum_{a\in I^r}\sum_{e\in I^N} \psi\bigl(((a\mathbin{\|}x)_i,e_i)_{i=0}^{N-1}\bigr) \overline{\psi\bigl(((a\mathbin{\|}y)_i,e_i)_{i=0}^{N-1}\bigr)},a∈Ir∑​e∈IN∑​ψ(((a∥x)i​,ei​)i=0N−1​)ψ(((a∥y)i​,ei​)i=0N−1​)​,

where a∥xa\mathbin{\|}xa∥x denotes concatenation. Thus the definition forms the matrix ψψ†\psi\psi^\daggerψψ†, sums out every second III-coordinate, and then sums out the first rrr remaining coordinates. Zero inverses are zero, so a zero cutoff vector produces the zero matrix; no assumption excludes that case. When n=0n=0n=0, every coefficient is retained.

QAlgorithms.Papers.Independent.Intake100.P63.cutoffVector

For any finite type III, vector θ∈CI\theta\in\mathbb C^Iθ∈CI, natural numbers N,rN,rN,r, expansion data D=(βk,ηk)k=0rD=(\beta_k,\eta_k)_{k=0}^rD=(βk​,ηk​)k=0r​, and natural number nnn, the cutoff vector is

∑0≤k≤rn−1≤∣βk∣βkCk,Ck=∥zk∥−1zk,zk(x)=∑p∈Sym⁡(N)ηk((x∘p)∣{0,…,k−1})∏i=0N−k−1θ(xp(k+i)).\sum_{\substack{0\le k\le r\\ n^{-1}\le|\beta_k|}}\beta_k C_k, \qquad C_k=\|z_k\|^{-1}z_k,\qquad z_k(x)=\sum_{p\in\operatorname{Sym}(N)} \eta_k\bigl((x\circ p)|_{\{0,\ldots,k-1\}}\bigr) \prod_{i=0}^{N-k-1}\theta(x_{p(k+i)}).0≤k≤rn−1≤∣βk​∣​∑​βk​Ck​,Ck​=∥zk​∥−1zk​,zk​(x)=p∈Sym(N)∑​ηk​((x∘p)∣{0,…,k−1}​)i=0∏N−k−1​θ(xp(k+i)​).

Here configurations in IjI^jIj are functions on {0,…,j−1}\{0,\ldots,j-1\}{0,…,j−1}, and the supplied expansion data satisfy r≤Nr\le Nr≤N, ∑k∣βk∣2=1\sum_k|\beta_k|^2=1∑k​∣βk​∣2=1, and ∥∑kβkCk∥=1\|\sum_k\beta_k C_k\|=1∥∑k​βk​Ck​∥=1; for every nonzero βk\beta_kβk​, ηk\eta_kηk​ is a unit vector invariant under coordinate permutations and lies in the complex span of tensors ∏jwj(xj)\prod_jw_j(x_j)∏j​wj​(xj​) with every wjw_jwj​ orthogonal to θ\thetaθ. No such conditions are required of ηk\eta_kηk​ when βk=0\beta_k=0βk​=0. All inverses of zero are zero, so Ck=0C_k=0Ck​=0 if zk=0z_k=0zk​=0. The cutoff uses a non-strict inequality; in particular, when n=0n=0n=0, every index is retained and the result is the full normalized expansion vector. The finite type III may be empty.

QAlgorithms.Papers.Independent.Intake100.P63.diagonalSmooth

For any finite type III with decidable equality, any family MnM_nMn​ of sets of complex matrices on InI^nIn, and any complex matrix ρ\rhoρ on III, this defines

inf⁡ε:N→R∀n, εn≥0, εn→0 lim sup⁡n→∞1ninf⁡τ≥0, Tr⁡τ=1∥ρ⊗n−τ∥1≤εninf⁡σ∈Mninf⁡s∈R, s≥02sσ−τ≥0sin [0,+∞].\inf_{\substack{\varepsilon:\mathbb N\to\mathbb R\\ \forall n,\ \varepsilon_n\ge0,\ \varepsilon_n\to0}} \ \limsup_{n\to\infty}\frac1n \inf_{\substack{\tau\ge0,\ \operatorname{Tr}\tau=1\\ \|\rho^{\otimes n}-\tau\|_1\le\varepsilon_n}} \inf_{\sigma\in M_n} \inf_{\substack{s\in\mathbb R,\ s\ge0\\ 2^s\sigma-\tau\ge0}}s \quad\text{in }[0,+\infty].ε:N→R∀n, εn​≥0, εn​→0​inf​ n→∞limsup​n1​τ≥0, Trτ=1∥ρ⊗n−τ∥1​≤εn​​inf​σ∈Mn​inf​s∈R, s≥02sσ−τ≥0​inf​sin [0,+∞].

Here InI^nIn consists of length-nnn strings, (ρ⊗n)x,y=∏i<nρxi,yi(\rho^{\otimes n})_{x,y}=\prod_{i<n}\rho_{x_i,y_i}(ρ⊗n)x,y​=∏i<n​ρxi​,yi​​, matrix inequalities mean positive semidefiniteness, and ∥X∥1=Re⁡Tr⁡X†X\|X\|_1=\operatorname{Re}\operatorname{Tr}\sqrt{X^\dagger X}∥X∥1​=ReTrX†X​, with the square root defined by continuous functional calculus. All infima and the division by nnn use extended nonnegative real arithmetic, and empty infima equal +∞+\infty+∞. No density assumption on ρ\rhoρ or condition on MnM_nMn​ is imposed. The tolerance sequence need not be positive or monotone; the identically zero sequence is allowed. The sequence inside the limiting superior includes n=0n=0n=0, using 0/0=00/0=00/0=0 and a/0=+∞a/0=+\inftya/0=+∞ for a>0a>0a>0, and no attainment of the outer infimum is asserted.

QAlgorithms.Papers.Independent.Intake100.P63.discardEnvironment

For a finite type III, any natural number nnn, and an arbitrary complex matrix XXX indexed by nnn-tuples of pairs from I×II\times II×I, this defines the matrix indexed by InI^nIn with entries

(discardEnvironment⁡(X))x,y=∑z∈InX((xi,zi))i<n, ((yi,zi))i<n.(\operatorname{discardEnvironment}(X))_{x,y} =\sum_{z\in I^n} X_{((x_i,z_i))_{i<n},\,((y_i,z_i))_{i<n}}.(discardEnvironment(X))x,y​=z∈In∑​X((xi​,zi​))i<n​,((yi​,zi​))i<n​​.

No density-matrix or positivity assumption is imposed on XXX. For n=0n=0n=0, the sum has one term and preserves the sole matrix entry.

QAlgorithms.Papers.Independent.Intake100.P63.discardFirst

For any finite type III, natural number nnn, and arbitrary complex matrix XXX indexed by length-(n+1)(n+1)(n+1) strings over III, this defines a matrix on length-nnn strings by

(discardFirst⁡X)x,y=∑a∈IX(a,x0,…,xn−1),  (a,y0,…,yn−1).(\operatorname{discardFirst}X)_{x,y} = \sum_{a\in I}X_{(a,x_0,\ldots,x_{n-1}),\;(a,y_0,\ldots,y_{n-1})}.(discardFirstX)x,y​=a∈I∑​X(a,x0​,…,xn−1​),(a,y0​,…,yn−1​)​.

Thus the first coordinate is summed out with the same value in the row and column indices. No positivity or normalization is required. The case n=0n=0n=0 gives the one-entry matrix with entry Tr⁡X\operatorname{Tr}XTrX; if III is empty, the sum equals zero.

QAlgorithms.Papers.Independent.Intake100.P63.discardPrefix

For any finite type III, natural number nnn, natural number mmm satisfying m≤nm\le nm≤n, and arbitrary complex matrix XXX indexed by InI^nIn, this defines a matrix indexed by In−mI^{n-m}In−m whose entries are

(discardPrefix⁡mX)x,y=∑z∈ImXz∥x,  z∥y.(\operatorname{discardPrefix}_m X)_{x,y} = \sum_{z\in I^m}X_{z\mathbin{\|}x,\;z\mathbin{\|}y}.(discardPrefixm​X)x,y​=z∈Im∑​Xz∥x,z∥y​.

Here IkI^kIk is the set of length-kkk strings over III, and z∥xz\mathbin{\|}xz∥x is the length-nnn string whose entry at i<mi<mi<m is ziz_izi​ and whose entry at i≥mi\ge mi≥m is xi−mx_{i-m}xi−m​; the same prefix zzz occurs in both matrix indices. No positivity or normalization is assumed. For m=0m=0m=0 this returns XXX, while for m=nm=nm=n its sole entry is Tr⁡X\operatorname{Tr}XTrX. If III is empty and m>0m>0m>0, the displayed sum is empty and equals zero.

QAlgorithms.Papers.Independent.Intake100.P63.expansionComponent

For any finite type III, possibly empty, any vector θ∈CI\theta\in\mathbb C^Iθ∈CI, natural numbers N,kN,kN,k with k≤Nk\le Nk≤N, and vector η∈CIk\eta\in\mathbb C^{I^k}η∈CIk, where IjI^jIj denotes the functions {0,…,j−1}→I\{0,\ldots,j-1\}\to I{0,…,j−1}→I, define

v(x)=η(x0,…,xk−1)∏i=0N−k−1θ(xk+i),z(x)=∑p∈Sym⁡(N)v(x∘p).v(x)=\eta(x_0,\ldots,x_{k-1})\prod_{i=0}^{N-k-1}\theta(x_{k+i}), \qquad z(x)=\sum_{p\in\operatorname{Sym}(N)}v(x\circ p).v(x)=η(x0​,…,xk−1​)i=0∏N−k−1​θ(xk+i​),z(x)=p∈Sym(N)∑​v(x∘p).

The expansion component is the vector ∥z∥−1z\|z\|^{-1}z∥z∥−1z, using the Euclidean norm. If z=0z=0z=0, the result is zero because the inverse of zero is defined to be zero. Neither θ\thetaθ nor η\etaη is assumed normalized or symmetric. The cases k=0k=0k=0, k=Nk=Nk=N, and N=0N=0N=0 are included, with empty products equal to 111.

QAlgorithms.Papers.Independent.Intake100.P63.extendibleFamily

For any finite types A,BA,BA,B, possibly empty, and natural numbers k,nk,nk,n, this is the set of complex matrices XXX indexed by (A×B)n(A\times B)^n(A×B)n for which the regrouped matrix

X~(a,b),(a′,b′)=X((ai,bi))i=0n−1, ((ai′,bi′))i=0n−1,a,a′∈An,b,b′∈Bn,\widetilde X_{(a,b),(a',b')} = X_{((a_i,b_i))_{i=0}^{n-1},\,((a'_i,b'_i))_{i=0}^{n-1}}, \qquad a,a'\in A^n,\quad b,b'\in B^n,X(a,b),(a′,b′)​=X((ai​,bi​))i=0n−1​,((ai′​,bi′​))i=0n−1​​,a,a′∈An,b,b′∈Bn,

is positive semidefinite with trace 111 and has a positive semidefinite trace-111 extension EEE indexed by An×(Bn)kA^n\times(B^n)^kAn×(Bn)k. Specifically, for every j∈{0,…,k−1}j\in\{0,\ldots,k-1\}j∈{0,…,k−1} and every a,a′,b,b′a,a',b,b'a,a′,b,b′ as above,

X~(a,b),(a′,b′)=∑z:{0,…,k−1}∖{j}→BnE(a,z[j←b]),(a′,z[j←b′]).\widetilde X_{(a,b),(a',b')} = \sum_{z:\{0,\ldots,k-1\}\setminus\{j\}\to B^n} E_{(a,z[j\leftarrow b]),(a',z[j\leftarrow b'])}.X(a,b),(a′,b′)​=z:{0,…,k−1}∖{j}→Bn∑​E(a,z[j←b]),(a′,z[j←b′])​.

No permutation symmetry of the extension is required. When k=0k=0k=0, these marginal equalities are vacuous but both density requirements remain. When n=0n=0n=0, all configuration spaces involved are singletons and membership requires the single entry of XXX to be 111.

QAlgorithms.Papers.Independent.Intake100.P63.groupedCopies

For any finite party type PPP, any dimensions d:P→Nd:P\to\mathbb Nd:P→N, any n∈Nn\in\mathbb Nn∈N, and any complex matrix ρ\rhoρ on the joint basis Hd=∏j∈P{0,…,dj−1}\mathcal H_d=\prod_{j\in P}\{0,\ldots,d_j-1\}Hd​=∏j∈P​{0,…,dj​−1}, this defines a matrix on Hdn=∏j∈P{0,…,djn−1}\mathcal H_{d^n}=\prod_{j\in P}\{0,\ldots,d_j^n-1\}Hdn​=∏j∈P​{0,…,djn​−1} by regrouping the entries of the nnn-fold tensor product party by party. Specifically, let dec⁡a,n:{0,…,an−1}→({0,…,n−1}→{0,…,a−1})\operatorname{dec}_{a,n}:\{0,\ldots,a^n-1\}\to(\{0,\ldots,n-1\}\to\{0,\ldots,a-1\})deca,n​:{0,…,an−1}→({0,…,n−1}→{0,…,a−1}) be the inverse of the standard finite-function encoding equivalence used in the definition. Then

groupedCopies⁡(d,n,ρ)x,y=∏t=0n−1ρ(j↦dec⁡dj,n(xj)(t)),(j↦dec⁡dj,n(yj)(t)).\operatorname{groupedCopies}(d,n,\rho)_{x,y} =\prod_{t=0}^{n-1} \rho_{\left(j\mapsto\operatorname{dec}_{d_j,n}(x_j)(t)\right), \left(j\mapsto\operatorname{dec}_{d_j,n}(y_j)(t)\right)}.groupedCopies(d,n,ρ)x,y​=t=0∏n−1​ρ(j↦decdj​,n​(xj​)(t)),(j↦decdj​,n​(yj​)(t))​.

There is no assumption that ρ\rhoρ is positive, Hermitian, or normalized. At n=0n=0n=0, each dj0=1d_j^0=1dj0​=1, including 00=10^0=100=1, and the empty product gives the unique matrix entry 111, independently of ρ\rhoρ. An empty party type is also allowed; a zero local dimension makes the joint basis empty for positive nnn.

QAlgorithms.Papers.Independent.Intake100.P63.localKraus

For any finite type PPP with decidable equality, function d:P→Nd:P\to\mathbb Nd:P→N, chosen party j∈Pj\in Pj∈P, natural number hhh, and complex h×djh\times d_jh×dj​ matrix KKK, this definition returns a matrix from the assignments xi∈{0,…,di−1}x_i\in\{0,\ldots,d_i-1\}xi​∈{0,…,di​−1} to the assignments yi∈{0,…,di′−1}y_i\in\{0,\ldots,d'_i-1\}yi​∈{0,…,di′​−1}, where dj′=hd'_j=hdj′​=h and di′=did'_i=d_idi′​=di​ for i≠ji\ne ji=j, with entries

Ly,x=Kyj,xj∏i∈Pi≠j{1,yi=xi,0,yi≠xi.L_{y,x}=K_{y_j,x_j}\prod_{\substack{i\in P\\i\ne j}} \begin{cases} 1,&y_i=x_i,\\ 0,&y_i\ne x_i. \end{cases}Ly,x​=Kyj​,xj​​i∈Pi=j​∏​{1,0,​yi​=xi​,yi​=xi​.​

Coordinate comparisons use the underlying integer values. Thus the product enforces equality of every coordinate other than jjj, and an empty product is 111. No positivity, isometry, or Kraus completeness condition is imposed on KKK. Zero dimensions are allowed: h=0h=0h=0 gives an empty output assignment space, and any zero input dimension gives an empty input assignment space.

QAlgorithms.Papers.Independent.Intake100.P63.maxBits

For any finite type III with decidable equality and arbitrary complex matrices ρ,σ\rho,\sigmaρ,σ on III, this defines

inf⁡{s∈[0,+∞):2sσ−ρ is positive semidefinite}as an element of [0,+∞].\inf\left\{s\in[0,+\infty): 2^s\sigma-\rho\ \text{is positive semidefinite}\right\} \quad\text{as an element of }[0,+\infty].inf{s∈[0,+∞):2sσ−ρ is positive semidefinite}as an element of [0,+∞].

The candidates sss are finite nonnegative real numbers, embedded in the extended nonnegative reals. Neither matrix is assumed to be a density matrix or positive semidefinite. If there is no candidate, the value is +∞+\infty+∞; no attainment is asserted. In particular, feasibility at s=0s=0s=0 makes the value zero.

QAlgorithms.Papers.Independent.Intake100.P63.normalizedCopySymmetrization

For a finite type III, any natural number nnn, and a complex vector vvv indexed by InI^nIn, define

z(x)=∑p∈Sym⁡(n)v(x∘p).z(x)=\sum_{p\in\operatorname{Sym}(n)}v(x\circ p).z(x)=p∈Sym(n)∑​v(x∘p).

This definition returns ∥z∥−1z\|z\|^{-1}z∥z∥−1z, with the real norm regarded as a complex scalar. There is no assumption that vvv or zzz is nonzero: if z=0z=0z=0, the returned vector is 000, because the inverse of zero is defined as zero. For n=0n=0n=0, the permutation sum has one term, so the result is the same normalization of vvv.

QAlgorithms.Papers.Independent.Intake100.P63.oneCopy

For any type III and any complex matrix ρ\rhoρ indexed by III, this defines a matrix on the set I1I^1I1 of one-coordinate functions by

(oneCopy⁡(ρ))x,y=ρx0,y0.(\operatorname{oneCopy}(\rho))_{x,y}=\rho_{x_0,y_0}.(oneCopy(ρ))x,y​=ρx0​,y0​​.

Thus it relabels each matrix index by a function on a singleton. There are no finiteness, normalization, positivity, or nonemptiness assumptions on III or ρ\rhoρ.

QAlgorithms.Papers.Independent.Intake100.P63.pptStateFamily

For any finite types A,BA,BA,B, possibly empty, and natural number nnn, this is the set of complex matrices XXX indexed by length-nnn configurations in A×BA\times BA×B such that XXX is positive semidefinite with trace 111, and the matrix YYY defined for all configurations x,yx,yx,y by

Yx,y=X((xiA,yiB))i=0n−1, ((yiA,xiB))i=0n−1Y_{x,y} = X_{((x_i^{A},y_i^{B}))_{i=0}^{n-1},\,((y_i^{A},x_i^{B}))_{i=0}^{n-1}}Yx,y​=X((xiA​,yiB​))i=0n−1​,((yiA​,xiB​))i=0n−1​​

is positive semidefinite. Here xi=(xiA,xiB)x_i=(x_i^A,x_i^B)xi​=(xiA​,xiB​) and similarly for yiy_iyi​. The case n=0n=0n=0 is included: the configuration space is a singleton and membership requires its single matrix entry to be 111. If n>0n>0n>0 and either AAA or BBB is empty, no matrix satisfies the trace-111 requirement.

QAlgorithms.Papers.Independent.Intake100.P63.regularizedAlternative

For any finite type III with decidable equality, natural number kkk, set MMM of matrices indexed by length-kkk configurations IkI^kIk, matrix π\piπ on IkI^kIk, matrix σ\sigmaσ on III, and real number τ\tauτ, the returned matrix is

11+τ ω+τ1+τ σ⊗k,(σ⊗k)x,y=∏i=0k−1σxi,yi.\frac{1}{1+\tau}\,\omega+\frac{\tau}{1+\tau}\,\sigma^{\otimes k}, \qquad (\sigma^{\otimes k})_{x,y}=\prod_{i=0}^{k-1}\sigma_{x_i,y_i}.1+τ1​ω+1+ττ​σ⊗k,(σ⊗k)x,y​=i=0∏k−1​σxi​,yi​​.

Here ω\omegaω is a classically chosen matrix in MMM minimizing D2(π,⋅)D_2(\pi,\cdot)D2​(π,⋅), if one exists, and is unspecified otherwise. For matrices ρ,ζ\rho,\zetaρ,ζ, D2(ρ,ζ)D_2(\rho,\zeta)D2​(ρ,ζ) is zero if either is not positive semidefinite of trace 111; for two such density matrices it is +∞+\infty+∞ unless ker⁡ζ⊆ker⁡ρ\ker\zeta\subseteq\ker\rhokerζ⊆kerρ, and otherwise equals max⁡{Re⁡tr⁡(f(ρ)−ρlog⁡ζ),0}/log⁡2\max\{\operatorname{Re}\operatorname{tr}(f(\rho)-\rho\log\zeta),0\}/\log2max{Retr(f(ρ)−ρlogζ),0}/log2, where f(t)=tlog⁡tf(t)=t\log tf(t)=tlogt and matrix functions use real continuous functional calculus. The minimum means equality with the infimum in [0,+∞][0,+\infty][0,+∞], whose empty-set value is +∞+\infty+∞. There are no positivity, normalization, nonemptiness, attainment, or sign assumptions on the inputs. At τ=−1\tau=-1τ=−1, both scalar quotients are zero and the returned matrix is zero. For k=0k=0k=0, the tensor product has its single entry equal to 111, independently of σ\sigmaσ.

QAlgorithms.Papers.Independent.Intake100.P63.regularizedSetEntropy

For any finite type III with decidable equality, any family MnM_nMn​ of sets of complex matrices on InI^nIn, and any complex matrix ρ\rhoρ on III, this defines

inf⁡n≥11ninf⁡σ∈MnD(ρ⊗n,σ)in [0,+∞],(ρ⊗n)x,y=∏i=0n−1ρxi,yi.\inf_{n\ge1}\frac{1}{n}\inf_{\sigma\in M_n} \mathcal D(\rho^{\otimes n},\sigma) \quad\text{in }[0,+\infty], \qquad (\rho^{\otimes n})_{x,y}=\prod_{i=0}^{n-1}\rho_{x_i,y_i}.n≥1inf​n1​σ∈Mn​inf​D(ρ⊗n,σ)in [0,+∞],(ρ⊗n)x,y​=i=0∏n−1​ρxi​,yi​​.

For matrices A,BA,BA,B on the same finite index set, D(A,B)\mathcal D(A,B)D(A,B) is zero if either is not positive semidefinite with trace 111, is +∞+\infty+∞ if both are such density matrices and ker⁡B⊈ker⁡A\ker B\not\subseteq\ker AkerB⊆kerA, and otherwise equals

[Re⁡Tr⁡(f(A)−Alog⁡B)]+log⁡2,f(t)=tlog⁡t.\frac{\bigl[\operatorname{Re}\operatorname{Tr}(f(A)-A\log B)\bigr]_+}{\log2}, \qquad f(t)=t\log t.log2[ReTr(f(A)−AlogB)]+​​,f(t)=tlogt.

The matrix functions use continuous functional calculus, log⁡0=0\log0=0log0=0, and [u]+=max⁡(u,0)[u]_+=\max(u,0)[u]+​=max(u,0). The inner infimum is +∞+\infty+∞ when MnM_nMn​ is empty. No density assumption on ρ\rhoρ or structural assumption on MnM_nMn​ is required, and n=0n=0n=0 is excluded from the outer infimum.

QAlgorithms.Papers.Independent.Intake100.P63.retainedCoefficientIndices

For any finite type III, vector θ∈CI\theta\in\mathbb C^Iθ∈CI, natural numbers N,rN,rN,r, expansion data DDD, and natural number nnn, this definition returns the finite set

{k∈{0,…,r}:n−1≤∣βk∣},\{k\in\{0,\ldots,r\}:n^{-1}\le|\beta_k|\},{k∈{0,…,r}:n−1≤∣βk​∣},

where nnn is viewed as a real number. The expansion data provide r≤Nr\le Nr≤N, coefficients satisfying ∑k∣βk∣2=1\sum_k|\beta_k|^2=1∑k​∣βk​∣2=1, and vectors ηk∈CIk\eta_k\in\mathbb C^{I^k}ηk​∈CIk; for nonzero βk\beta_kβk​, these vectors are unit vectors invariant under coordinate permutations and belong to the complex span of tensors whose individual factors are orthogonal to θ\thetaθ. They also require ∥∑kβkCk∥=1\|\sum_k\beta_k C_k\|=1∥∑k​βk​Ck​∥=1, where CkC_kCk​ is obtained by summing the vector ηk⊗θ⊗(N−k)\eta_k\otimes\theta^{\otimes(N-k)}ηk​⊗θ⊗(N−k) over all coordinate permutations and multiplying that sum by the inverse of its Euclidean norm, with a zero sum yielding zero. The selection includes equality at the threshold. Since 0−1=00^{-1}=00−1=0, n=0n=0n=0 retains every index, including indices with zero coefficient; III is allowed to be empty.

QAlgorithms.Papers.Independent.Intake100.P63.separableFamily

For a finite type PPP of parties, any assignment of natural dimensions djd_jdj​ to its elements, and any natural number nnn, this defines a set of complex matrices indexed by nnn-tuples of configurations xi∈∏j∈P{0,…,dj−1}x_i\in\prod_{j\in P}\{0,\ldots,d_j-1\}xi​∈∏j∈P​{0,…,dj​−1}. A matrix XXX belongs to this set exactly when XXX is positive semidefinite with trace 111, and there exist a natural number qqq, nonnegative real weights waw_awa​ for 0≤a<q0\le a<q0≤a<q summing to 111, and, for every aaa and party jjj, positive semidefinite trace-one matrices τa,j\tau_{a,j}τa,j​ indexed by {0,…,dj−1}n\{0,\ldots,d_j-1\}^n{0,…,dj​−1}n, such that

Xx,y=∑a=0q−1wa∏j∈P(τa,j)(xi(j))i<n,(yi(j))i<n.X_{x,y}=\sum_{a=0}^{q-1}w_a \prod_{j\in P}(\tau_{a,j})_{(x_i(j))_{i<n},(y_i(j))_{i<n}}.Xx,y​=a=0∑q−1​wa​j∈P∏​(τa,j​)(xi​(j))i<n​,(yi​(j))i<n​​.

The weights exclude q=0q=0q=0. No positivity assumption is imposed on the dimensions: if some dj=0d_j=0dj​=0 and n>0n>0n>0, the indexing set is empty and no trace-one XXX exists. For n=0n=0n=0, or for an empty party type PPP, the set consists of the single matrix on a singleton index set whose entry is 111.

QAlgorithms.Papers.Independent.Intake100.P63.setEntropy

For any finite type III with decidable equality, any set MMM of complex matrices on III, and any complex matrix ρ\rhoρ on III, this defines the extended nonnegative real number

inf⁡σ∈MD(ρ,σ).\inf_{\sigma\in M}\mathcal D(\rho,\sigma).σ∈Minf​D(ρ,σ).

Here a density matrix means a positive semidefinite matrix with trace 111, and D(ρ,σ)=0\mathcal D(\rho,\sigma)=0D(ρ,σ)=0 if either argument is not a density matrix; if both are density matrices but ker⁡σ⊈ker⁡ρ\ker\sigma\not\subseteq\ker\rhokerσ⊆kerρ, then D(ρ,σ)=+∞\mathcal D(\rho,\sigma)=+\inftyD(ρ,σ)=+∞; otherwise

D(ρ,σ)=[Re⁡Tr⁡(f(ρ)−ρlog⁡σ)]+log⁡2,f(t)=tlog⁡t,\mathcal D(\rho,\sigma) = \frac{\bigl[\operatorname{Re}\operatorname{Tr} \bigl(f(\rho)-\rho\log\sigma\bigr)\bigr]_+}{\log 2}, \qquad f(t)=t\log t,D(ρ,σ)=log2[ReTr(f(ρ)−ρlogσ)]+​​,f(t)=tlogt,

with matrix functions interpreted by continuous functional calculus, the total real logarithm satisfying log⁡0=0\log0=0log0=0, and [u]+=max⁡(u,0)[u]_+=\max(u,0)[u]+​=max(u,0) embedded in [0,+∞][0,+\infty][0,+∞]. No density or nonemptiness hypothesis is imposed on the arguments: an empty MMM gives +∞+\infty+∞, whereas a nonempty MMM containing a matrix that is not a density matrix gives zero.

QAlgorithms.Papers.Independent.Intake100.P63.stateSetAxioms

For any finite type III with decidable equality and any family MnM_nMn​ of sets of complex matrices indexed by InI^nIn, where InI^nIn consists of length-nnn strings over III, this predicate is the conjunction of the following requirements: for every n>0n>0n>0, MnM_nMn​ is closed in the matrix topology, convex over R\mathbb RR, and every member is positive semidefinite with trace 111; there exists a positive semidefinite matrix σ\sigmaσ on III with trace 111 and kernel {0}\{0\}{0} such that, for every n>0n>0n>0, the matrix with entries ∏i=0n−1σxi,yi\prod_{i=0}^{n-1}\sigma_{x_i,y_i}∏i=0n−1​σxi​,yi​​ belongs to MnM_nMn​; for every n>0n>0n>0 and X∈Mn+1X\in M_{n+1}X∈Mn+1​, the matrix with entries ∑a∈IX(a,x),(a,y)\sum_{a\in I}X_{(a,x),(a,y)}∑a∈I​X(a,x),(a,y)​ belongs to MnM_nMn​; for every n,m>0n,m>0n,m>0, X∈MnX\in M_nX∈Mn​, and Y∈MmY\in M_mY∈Mm​, the matrix with entries Xx<n,y<nYx≥n,y≥nX_{x_{<n},y_{<n}}Y_{x_{\ge n},y_{\ge n}}Xx<n​,y<n​​Yx≥n​,y≥n​​ belongs to Mn+mM_{n+m}Mn+m​; and for every n>0n>0n>0, X∈MnX\in M_nX∈Mn​, and permutation ppp of the nnn positions, the matrix with entries Xx∘p,y∘pX_{x\circ p,y\circ p}Xx∘p,y∘p​ belongs to MnM_nMn​. There is no requirement on M0M_0M0​. The required σ\sigmaσ makes every positive-length set nonempty; if III is empty, no trace-111 matrix σ\sigmaσ exists, so the predicate cannot hold.

QAlgorithms.Papers.Independent.Intake100.P63.tensorBlocks

For any type III, natural numbers n,mn,mn,m, and arbitrary complex matrices AAA and BBB indexed respectively by InI^nIn and ImI^mIm, where IkI^kIk denotes the functions {0,…,k−1}→I\{0,\ldots,k-1\}\to I{0,…,k−1}→I, this defines a complex matrix on In+mI^{n+m}In+m by

(A⊗B)x,y=A(x0,…,xn−1),(y0,…,yn−1)B(xn,…,xn+m−1),(yn,…,yn+m−1).(A\otimes B)_{x,y} = A_{(x_0,\ldots,x_{n-1}),(y_0,\ldots,y_{n-1})} B_{(x_n,\ldots,x_{n+m-1}),(y_n,\ldots,y_{n+m-1})}.(A⊗B)x,y​=A(x0​,…,xn−1​),(y0​,…,yn−1​)​B(xn​,…,xn+m−1​),(yn​,…,yn+m−1​)​.

No finiteness, positivity, or normalization is required. Zero block lengths are allowed: I0I^0I0 has one element, so a matrix on that block contributes its sole scalar entry.

QAlgorithms.Papers.Independent.Intake100.P63.tensorVectorFamily

For any type III, any natural number kkk, and a family of complex vectors vjv_jvj​ indexed by III, one for each 0≤j<k0\le j<k0≤j<k, this defines the vector on IkI^kIk whose coordinates are

(tensorVectorFamily⁡(v))(x)=∏j=0k−1vj(xj).(\operatorname{tensorVectorFamily}(v))(x) =\prod_{j=0}^{k-1}v_j(x_j).(tensorVectorFamily(v))(x)=j=0∏k−1​vj​(xj​).

No finiteness or normalization assumptions are imposed. For k=0k=0k=0, the indexing set is a singleton and the sole coordinate is the empty product 111.

QAlgorithms.Papers.Independent.Intake100.P63.testingRate

For every natural number nnn and every real number ppp, this defines an extended real number by

testingRate⁡(n,p)={+∞,p=0,−log⁡2pn,p≠0.\operatorname{testingRate}(n,p)= \begin{cases} +\infty,&p=0,\\[2mm] -\dfrac{\log_2 p}{n},&p\ne0. \end{cases}testingRate(n,p)=⎩⎨⎧​+∞,−nlog2​p​,​p=0,p=0.​

There is no assumption that ppp is a probability or that n>0n>0n>0. The logarithm is the total real function log⁡2p=log⁡p/log⁡2\log_2p=\log p/\log2log2​p=logp/log2, which for negative ppp uses log⁡p=log⁡∣p∣\log p=\log|p|logp=log∣p∣. Real division by zero is zero, so when n=0n=0n=0 the value is zero for p≠0p\ne0p=0, and remains +∞+\infty+∞ for p=0p=0p=0.

QAlgorithms.Papers.Independent.Intake100.P63.thresholdProfile

For a finite type III with decidable equality, a family MnM_nMn​ of sets of complex matrices indexed by InI^nIn, an arbitrary complex matrix ρ\rhoρ indexed by III, a real number yyy, and a natural number nnn, this defines the real number

inf⁡ω∈MnRe⁡tr⁡[(ρ⊗n−2ynω)+].\inf_{\omega\in M_n}\operatorname{Re}\operatorname{tr} \left[\left(\rho^{\otimes n}-2^{yn}\omega\right)_+\right].ω∈Mn​inf​Retr[(ρ⊗n−2ynω)+​].

Here InI^nIn is the set of functions {0,…,n−1}→I\{0,\ldots,n-1\}\to I{0,…,n−1}→I, the matrix ρ⊗n\rho^{\otimes n}ρ⊗n has entry ∏i=0n−1ρxi,yi\prod_{i=0}^{n-1}\rho_{x_i,y_i}∏i=0n−1​ρxi​,yi​​, and H+H_+H+​ means the continuous functional calculus applied to HHH with the real function t↦max⁡(t,0)t\mapsto\max(t,0)t↦max(t,0). Neither ρ\rhoρ nor members of MnM_nMn​ are assumed to be density matrices or Hermitian. The infimum is taken in the real numbers, with the empty-set infimum defined as 000. The case n=0n=0n=0 is included: I0I^0I0 is a singleton, the empty tensor product has its sole entry equal to 111, and 2yn=12^{yn}=12yn=1.

QAlgorithms.Papers.Independent.Intake100.P63.traceNormSmoothMax

For any finite type III with decidable equality, any set MMM of complex matrices on III, any complex matrix ρ\rhoρ, and any real ε\varepsilonε, this defines the extended nonnegative infimum

inf⁡τ positive semidefiniteTr⁡τ=1, ∥ρ−τ∥1≤ε inf⁡σ∈M inf⁡{s∈R:s≥0, 2sσ−τ is positive semidefinite},∥X∥1=Re⁡Tr⁡X†X,\inf_{\substack{\tau\ \text{positive semidefinite}\\ \operatorname{Tr}\tau=1,\ \|\rho-\tau\|_1\le\varepsilon}} \ \inf_{\sigma\in M}\ \inf\left\{s\in\mathbb R: s\ge0,\ 2^s\sigma-\tau\ \text{is positive semidefinite}\right\}, \qquad \|X\|_1=\operatorname{Re}\operatorname{Tr}\sqrt{X^\dagger X},τ positive semidefiniteTrτ=1, ∥ρ−τ∥1​≤ε​inf​ σ∈Minf​ inf{s∈R:s≥0, 2sσ−τ is positive semidefinite},∥X∥1​=ReTrX†X​,

where the square root is given by continuous functional calculus and each innermost candidate sss is embedded in [0,+∞][0,+\infty][0,+∞]. No density assumption on ρ\rhoρ, positivity assumption on members of MMM, or sign assumption on ε\varepsilonε is imposed. Every empty infimum is +∞+\infty+∞; in particular this applies when MMM is empty, when ε<0\varepsilon<0ε<0, or when III is empty and hence no trace-111 matrix τ\tauτ exists.

Human review
  • Endorsed by Shuze Chen · Oct 30, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me