Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Distilling entanglement from arbitrary resources

Definition
QAlgorithms_Papers_Independent_Advance50_P05

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

prove2quantum

The objects the formalized statements of Distilling entanglement from arbitrary resources (arXiv:1006.1896) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • embeddedMES: PDF pp.3,16, (1),(60): the normalized rank-m MES embedded into arbitrary orthonormal local frames U,V. Theorems require m>0 and U,V isometries. The reused epr has density coefficients 1/m, hence ket coefficients 1/sqrt(m).
  • RectangularInstrument: PDF p.7, Definition 4: a rectangular CP instrument. The private Kraus index is distinct from the communicated outcome. A common Kraus count loses no finite-dimensional CP branch, since shorter families can be padded by zero.
  • RectangularInstrument.branch: PDF p.7, Definition 4: each CP branch is unnormalized.
  • RectangularInstrument.flagged: PDF pp.7,9--10: the entire flagged output on C:(B,X), without postselection or division by a branch probability.
  • ForwardProtocol: PDF pp.6--7,10: a forward protocol sends only Alice's classical outcome and applies an outcome-dependent CPTP decoder on Bob. Rectangular Kraus maps include arbitrary local preparation and disposal.
  • ForwardProtocol.operation: PDF p.10, (33): sum every classical branch of the actual forward protocol.
  • finiteLOCCOn: PDF p.6: transport physical local bases separately to the accepted finite adaptive LOCC tree. This neither transposes a matrix nor moves a quantum register between the parties.
  • DistillationDirection: PDF p.6: the two distinct free-communication classes.
  • IsDistillationOperation: PDF pp.6--7: actual protocol membership, never arbitrary joint channels or separable maps supplied in place of LOCC.
  • DistillationCode: PDF pp.6--7, Definitions 1--2: a physical distillation code, with arbitrary positive integer rank and positive ambient local dimensions. Frames fix the MES before its fidelity is evaluated. No entangled ancilla is provided for free.
  • DistillationCode.Meets: PDF pp.6--7: root-fidelity error of the full unconditional output.
  • distillableEntanglementOneShot: PDF p.7, Definition 2: optimize logarithms of all feasible positive integer ranks. This equals optimization over all R>=0 with 2^R<=M in Definition 1. EReal preserves the unbounded endpoint eps>=1. Attainment on eps<1 is asserted in the converse theorems, rather than assumed in this definition.
  • OneShotAttained: PDF p.7: retain the printed operational maximum on its finite domain.
  • fidelityBall: PDF p.5, (11): subnormalized state smoothing with the unmodified root fidelity. No vacuum term and no normalization of a smoothing candidate.
  • acceptanceSet: PDF p.5, (12): all positive effects P<=I with the specified acceptance. This is different from state smoothing and does not require P to be a projector.
  • effectZero: PDF p.4, (7): effect-modified order-zero divergence, extended at zero overlap. The support and BOTH square roots of P occur in the printed order.
  • zeroCoherent: PDF p.5, (13): minimization over every normalized Bob comparison state.
  • smoothedZero: PDF p.4, (9): outer maximum over the fidelity ball, inner minimum over normalized comparison states. Zero candidates give +infinity through dMin.
  • conditionalEffectZero: PDF p.4, (10): conditional effect divergence before effect maximization.
  • effectSmoothedZero: PDF p.4, (10): effect smoothing; for delta>=1 the actual feasible zero effect gives +infinity, not Real.logb 2 0.
  • EffectExtremaAttained: PDF p.4, (10): witnesses for the printed inner minimum and outer maximum.
  • petzTwo: PDF pp.4--6, (5),(17)--(20), alpha=2: the UNNORMALIZED Petz expression. Support mismatch gives +infinity. Zero numerator gives -infinity. There is no division by Tr rho and no sandwiched-Renyi substitution.
  • twoCoherent: PDF pp.5--6: unsmoothed order-two coherent information.
  • smoothedTwo: PDF p.6, (19)--(20): MINIMIZE over subnormalized smoothing candidates at order two, unlike the order-zero maximum.
  • ZeroExtremaAttained: PDF pp.4--6: the attained zero-order smoothing and comparison extrema.
  • TwoExtremaAttained: PDF pp.5--6: the attained order-two smoothing and comparison minima.
  • AlicePreprocessing: PDF pp.7,9,13: all finite instrument preprocessings on Alice, with output dimension and classical outcome count chosen as part of the map.
  • AlicePreprocessing.output: PDF pp.9,13: all unnormalized branches retained, flags at Bob.
  • TwoWayPreprocessing: PDF pp.11,13: general two-way preprocessing with changing output spaces.
  • dependentSpectralMass: PDF p.12, (42): positive-part spectral mass on arbitrary dependent finite spaces. The threshold uses the actual positive block length k+1.
  • dependentSpectralInf: PDF p.12, (42): spectral INF-divergence, allowing arbitrary changing finite output spaces. Empty/unbounded threshold sets have extended values.
  • spectralCoherent: PDF pp.12--13, (45): minimization over ALL normalized comparison-state sequences, with no identical-copy restriction and no prescribed marginals.
  • SpectralMinimumAttained: PDF p.13: the comparison minimum, not just its extremal value, is attained.
  • asymptoticInner: PDF p.12, (40): first positive-block liminf, then the right limit in error. Theorem 1 asserts actual convergence to this computed liminf.
  • asymptoticDistillable: PDF p.12, (40): separate operational value for each assistance class.
  • forwardSequenceScore: PDF p.13, (47): score of a whole sequence of Alice instruments, chosen without any restriction on output growth or relation between different blocks.
  • twoWaySequenceScore: PDF p.13, (48): score of a whole sequence of actual adaptive two-way maps.
  • identityInstrument: PDF p.7: the single-outcome identity instrument, used to pin the instrument and protocol normalization conventions.
  • identityForward: PDF pp.7,10: the identity forward protocol with one communicated outcome.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_QuantumInformation
import Definitions.Def_QAlgorithms_Defs_MatrixDistances
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P19
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P21
import Definitions.Def_QAlgorithms_Papers_Independent_Support50_P21

/-!
Buscemi--Datta, arXiv:1006.1896v2, Distilling entanglement from arbitrary resources.
Only pinned accepted definitions are reused. The independent-paper override permits
these reviewed imports; no imported theorem is assumed as a hypothesis.
All new objects are local to this paper. Alice is the first factor, classical flags
belong to Bob, and logarithms are in bits. Positive block length n is indexed by k=n-1.
The operational interpretation is the plan's arbitrary finite adaptive LOCC protocol,
with no uniform bound on rounds, local dimensions, outcomes, or Kraus multiplicities.
No closure of LOCC or compactness of its set is assumed.
The three defective direct bounds are deferred in HARD.md. Compilation is pending.
-/

noncomputable section

namespace QAlgorithms.Papers.Independent.Advance50.P05

open QAlgorithms Filter
open scoped Matrix ComplexConjugate ComplexOrder

open QAlgorithms.Papers.Independent.Dependency50.P19 (first both epr IsIso)
open QAlgorithms.Papers.Independent.Information100.P07 (support)
open QAlgorithms.Papers.Independent.Information100.P71 (supportPower SupportIncluded)
open QAlgorithms.Papers.Independent.Dependency50.P35 (elog marginalAB marginalAC)
open QAlgorithms.Papers.Independent.Support50.P21 (dMin weakPositive PositiveTensorBasis)
open QAlgorithms.Papers.Independent.Information100.P21 (FiniteLOCC)
open QAlgorithms.Papers.Independent.Information100.P67 (IsSubnormalized)

attribute [local instance] Classical.propDecidable Classical.decEq

/-- PDF pp.3,16, (1),(60): the normalized rank-m MES embedded into arbitrary
orthonormal local frames U,V. Theorems require m>0 and U,V isometries.
The reused epr has density coefficients 1/m, hence ket coefficients 1/sqrt(m). -/
def embeddedMES {A B : Type} [Fintype A] [Fintype B] {m : ℕ}
    (U : Matrix A (Fin m) ℂ) (V : Matrix B (Fin m) ℂ) : Matrix (A × B) (A × B) ℂ :=
  Matrix.kronecker U V * epr m * (Matrix.kronecker U V)ᴴ

/-- PDF p.7, Definition 4: a rectangular CP instrument. The private Kraus
index is distinct from the communicated outcome. A common Kraus count loses
no finite-dimensional CP branch, since shorter families can be padded by zero. -/
structure RectangularInstrument (A C X : Type) [Fintype A] [DecidableEq A]
    [Fintype C] [Fintype X] where
  krausCount : ℕ
  kraus : X → Fin krausCount → Matrix C A ℂ
  complete : (∑ x, ∑ j, (kraus x j)ᴴ * kraus x j) = 1

/-- PDF p.7, Definition 4: each CP branch is unnormalized. -/
def RectangularInstrument.branch {A C X : Type} [Fintype A] [DecidableEq A]
    [Fintype C] [Fintype X] (I : RectangularInstrument A C X) (x : X) : Superop A C :=
  krausApply (I.kraus x)

/-- PDF pp.7,9--10: the entire flagged output on C:(B,X), without
postselection or division by a branch probability. -/
def RectangularInstrument.flagged {A B C X : Type} [Fintype A] [DecidableEq A]
    [Fintype C] [Fintype X] [DecidableEq X] (I : RectangularInstrument A C X)
    (rho : Matrix (A × B) (A × B) ℂ) : Matrix (C × (B × X)) (C × (B × X)) ℂ :=
  fun p q => if p.2.2 = q.2.2 then
    first (I.branch p.2.2) rho (p.1, p.2.1) (q.1, q.2.1) else 0

/-- PDF pp.6--7,10: a forward protocol sends only Alice's classical outcome
and applies an outcome-dependent CPTP decoder on Bob. Rectangular Kraus maps
include arbitrary local preparation and disposal. -/
structure ForwardProtocol (A B C D : Type) [Fintype A] [DecidableEq A]
    [Fintype B] [DecidableEq B] [Fintype C] [Fintype D] where
  outcomeCount : ℕ
  instrument : RectangularInstrument A C (Fin (outcomeCount + 1))
  decoder : Fin (outcomeCount + 1) → Superop B D
  decoderCPTP : ∀ x, IsChannel (decoder x)

/-- PDF p.10, (33): sum every classical branch of the actual forward protocol. -/
def ForwardProtocol.operation {A B C D : Type} [Fintype A] [DecidableEq A]
    [Fintype B] [DecidableEq B] [Fintype C] [Fintype D]
    (P : ForwardProtocol A B C D) : Superop (A × B) (C × D) :=
  fun rho => ∑ x, both (P.instrument.branch x) (P.decoder x) rho

/-- PDF p.6: transport physical local bases separately to the accepted
finite adaptive LOCC tree. This neither transposes a matrix nor moves a
quantum register between the parties. -/
def finiteLOCCOn {A B C D : Type} [Fintype A] [Fintype B] [Fintype C] [Fintype D]
    (L : Superop (A × B) (C × D)) : Prop :=
  FiniteLOCC (fun X : Matrix (Fin (Fintype.card A) × Fin (Fintype.card B))
      (Fin (Fintype.card A) × Fin (Fintype.card B)) ℂ =>
    let input : Matrix (A × B) (A × B) ℂ := fun i j =>
      X ((Fintype.equivFin A) i.1, (Fintype.equivFin B) i.2)
        ((Fintype.equivFin A) j.1, (Fintype.equivFin B) j.2)
    fun i j => L input
      ((Fintype.equivFin C).symm i.1, (Fintype.equivFin D).symm i.2)
      ((Fintype.equivFin C).symm j.1, (Fintype.equivFin D).symm j.2))

/-- PDF p.6: the two distinct free-communication classes. -/
inductive DistillationDirection where
  | forward
  | twoWay

/-- PDF pp.6--7: actual protocol membership, never arbitrary joint channels
or separable maps supplied in place of LOCC. -/
def IsDistillationOperation {A B C D : Type} [Fintype A] [DecidableEq A]
    [Fintype B] [DecidableEq B] [Fintype C] [Fintype D]
    (direction : DistillationDirection) (L : Superop (A × B) (C × D)) : Prop :=
  match direction with
  | .forward => ∃ P : ForwardProtocol A B C D, L = P.operation
  | .twoWay => finiteLOCCOn L

/-- PDF pp.6--7, Definitions 1--2: a physical distillation code, with arbitrary
positive integer rank and positive ambient local dimensions. Frames fix the
MES before its fidelity is evaluated. No entangled ancilla is provided for free. -/
structure DistillationCode (direction : DistillationDirection) (A B : Type)
    [Fintype A] [DecidableEq A] [Fintype B] [DecidableEq B] where
  rank : ℕ
  rankPos : 0 < rank
  outA : ℕ
  outB : ℕ
  outAPos : 0 < outA
  outBPos : 0 < outB
  aliceFrame : Matrix (Fin outA) (Fin rank) ℂ
  bobFrame : Matrix (Fin outB) (Fin rank) ℂ
  aliceIso : IsIso aliceFrame
  bobIso : IsIso bobFrame
  operation : Superop (A × B) (Fin outA × Fin outB)
  allowed : IsDistillationOperation direction operation

/-- PDF pp.6--7: root-fidelity error of the full unconditional output. -/
def DistillationCode.Meets {direction : DistillationDirection} {A B : Type}
    [Fintype A] [DecidableEq A] [Fintype B] [DecidableEq B]
    (C : DistillationCode direction A B) (rho : Matrix (A × B) (A × B) ℂ)
    (eps : ℝ) : Prop :=
  1 - eps ≤ rootFidelity (C.operation rho) (embeddedMES C.aliceFrame C.bobFrame)

/-- PDF p.7, Definition 2: optimize logarithms of all feasible positive integer
ranks. This equals optimization over all R>=0 with 2^R<=M in Definition 1.
EReal preserves the unbounded endpoint eps>=1. Attainment on eps<1 is asserted
in the converse theorems, rather than assumed in this definition. -/
def distillableEntanglementOneShot {A B : Type} [Fintype A] [DecidableEq A] [Fintype B] [DecidableEq B]
    (direction : DistillationDirection) (rho : Matrix (A × B) (A × B) ℂ) (eps : ℝ) : EReal :=
  sSup {v | ∃ C : DistillationCode direction A B,
    C.Meets rho eps ∧ v = (Real.logb 2 (C.rank : ℝ) : EReal)}

/-- PDF p.7: retain the printed operational maximum on its finite domain. -/
def OneShotAttained {A B : Type} [Fintype A] [DecidableEq A]
    [Fintype B] [DecidableEq B] (direction : DistillationDirection)
    (rho : Matrix (A × B) (A × B) ℂ) (eps : ℝ) : Prop :=
  ∃ C : DistillationCode direction A B, C.Meets rho eps ∧
    distillableEntanglementOneShot direction rho eps = (Real.logb 2 (C.rank : ℝ) : EReal)

/-- PDF p.5, (11): subnormalized state smoothing with the unmodified root
fidelity. No vacuum term and no normalization of a smoothing candidate. -/
def fidelityBall {I : Type} [Fintype I] [DecidableEq I]
    (rho : Matrix I I ℂ) (delta : ℝ) : Set (Matrix I I ℂ) :=
  {r | IsSubnormalized r ∧ 1 - delta ^ 2 ≤ rootFidelity rho r ^ 2}

/-- PDF p.5, (12): all positive effects P<=I with the specified acceptance.
This is different from state smoothing and does not require P to be a projector. -/
def acceptanceSet {I : Type} [Fintype I] [DecidableEq I]
    (rho : Matrix I I ℂ) (delta : ℝ) : Set (Matrix I I ℂ) :=
  {P | IsEffect P ∧ 1 - delta ≤ effectProb P rho}

/-- PDF p.4, (7): effect-modified order-zero divergence, extended at zero
overlap. The support and BOTH square roots of P occur in the printed order. -/
def effectZero {I : Type} [Fintype I] [DecidableEq I]
    (rho sigma P : Matrix I I ℂ) : EReal :=
  -elog ((cfc Real.sqrt P * support rho * cfc Real.sqrt P * sigma).trace.re)

/-- PDF p.5, (13): minimization over every normalized Bob comparison state. -/
def zeroCoherent {A B : Type} [Fintype A] [DecidableEq A]
    [Fintype B] [DecidableEq B] (rho : Matrix (A × B) (A × B) ℂ) : EReal :=
  sInf {v | ∃ sigma : Matrix B B ℂ, IsDensityMatrix sigma ∧
    v = dMin rho (Matrix.kronecker (1 : Matrix A A ℂ) sigma)}

/-- PDF p.4, (9): outer maximum over the fidelity ball, inner minimum over
normalized comparison states. Zero candidates give +infinity through dMin. -/
def smoothedZero {A B : Type} [Fintype A] [DecidableEq A]
    [Fintype B] [DecidableEq B] (rho : Matrix (A × B) (A × B) ℂ)
    (delta : ℝ) : EReal :=
  sSup {v | ∃ r ∈ fidelityBall rho delta, v = zeroCoherent r}

/-- PDF p.4, (10): conditional effect divergence before effect maximization. -/
def conditionalEffectZero {A B : Type} [Fintype A] [DecidableEq A]
    [Fintype B] [DecidableEq B] (rho P : Matrix (A × B) (A × B) ℂ) : EReal :=
  sInf {v | ∃ sigma : Matrix B B ℂ, IsDensityMatrix sigma ∧
    v = effectZero rho (Matrix.kronecker (1 : Matrix A A ℂ) sigma) P}

/-- PDF p.4, (10): effect smoothing; for delta>=1 the actual feasible zero
effect gives +infinity, not Real.logb 2 0. -/
def effectSmoothedZero {A B : Type} [Fintype A] [DecidableEq A]
    [Fintype B] [DecidableEq B] (rho : Matrix (A × B) (A × B) ℂ)
    (delta : ℝ) : EReal :=
  sSup {v | ∃ P ∈ acceptanceSet rho delta, v = conditionalEffectZero rho P}

/-- PDF p.4, (10): witnesses for the printed inner minimum and outer maximum. -/
def EffectExtremaAttained {A B : Type} [Fintype A] [DecidableEq A]
    [Fintype B] [DecidableEq B] (rho : Matrix (A × B) (A × B) ℂ)
    (delta : ℝ) : Prop :=
  ∃ P ∈ acceptanceSet rho delta, ∃ sigma : Matrix B B ℂ,
    IsDensityMatrix sigma ∧ effectSmoothedZero rho delta = conditionalEffectZero rho P ∧
    conditionalEffectZero rho P = effectZero rho
      (Matrix.kronecker (1 : Matrix A A ℂ) sigma) P

/-- PDF pp.4--6, (5),(17)--(20), alpha=2: the UNNORMALIZED Petz expression.
Support mismatch gives +infinity. Zero numerator gives -infinity.
There is no division by Tr rho and no sandwiched-Renyi substitution. -/
def petzTwo {I : Type} [Fintype I] [DecidableEq I]
    (rho sigma : Matrix I I ℂ) : EReal :=
  if SupportIncluded rho sigma then
    elog ((rho * rho * supportPower sigma (-1)).trace.re)
  else ⊤

/-- PDF pp.5--6: unsmoothed order-two coherent information. -/
def twoCoherent {A B : Type} [Fintype A] [DecidableEq A]
    [Fintype B] [DecidableEq B] (rho : Matrix (A × B) (A × B) ℂ) : EReal :=
  sInf {v | ∃ sigma : Matrix B B ℂ, IsDensityMatrix sigma ∧
    v = petzTwo rho (Matrix.kronecker (1 : Matrix A A ℂ) sigma)}

/-- PDF p.6, (19)--(20): MINIMIZE over subnormalized smoothing candidates
at order two, unlike the order-zero maximum. -/
def smoothedTwo {A B : Type} [Fintype A] [DecidableEq A]
    [Fintype B] [DecidableEq B] (rho : Matrix (A × B) (A × B) ℂ)
    (delta : ℝ) : EReal :=
  sInf {v | ∃ r ∈ fidelityBall rho delta, v = twoCoherent r}

/-- PDF pp.4--6: the attained zero-order smoothing and comparison extrema. -/
def ZeroExtremaAttained {A B : Type} [Fintype A] [DecidableEq A]
    [Fintype B] [DecidableEq B] (rho : Matrix (A × B) (A × B) ℂ)
    (delta : ℝ) : Prop :=
  ∃ r ∈ fidelityBall rho delta, ∃ sigma : Matrix B B ℂ,
    IsDensityMatrix sigma ∧ smoothedZero rho delta = zeroCoherent r ∧
    zeroCoherent r = dMin r (Matrix.kronecker (1 : Matrix A A ℂ) sigma)

/-- PDF pp.5--6: the attained order-two smoothing and comparison minima. -/
def TwoExtremaAttained {A B : Type} [Fintype A] [DecidableEq A]
    [Fintype B] [DecidableEq B] (rho : Matrix (A × B) (A × B) ℂ)
    (delta : ℝ) : Prop :=
  ∃ r ∈ fidelityBall rho delta, ∃ sigma : Matrix B B ℂ,
    IsDensityMatrix sigma ∧ smoothedTwo rho delta = twoCoherent r ∧
    twoCoherent r = petzTwo r (Matrix.kronecker (1 : Matrix A A ℂ) sigma)

/-- PDF pp.7,9,13: all finite instrument preprocessings on Alice, with
output dimension and classical outcome count chosen as part of the map. -/
structure AlicePreprocessing (A : Type) [Fintype A] [DecidableEq A] where
  outDim : ℕ
  outPos : 0 < outDim
  outcomes : ℕ
  outcomesPos : 0 < outcomes
  instrument : RectangularInstrument A (Fin outDim) (Fin outcomes)

/-- PDF pp.9,13: all unnormalized branches retained, flags at Bob. -/
def AlicePreprocessing.output {A B : Type} [Fintype A] [DecidableEq A]
    (P : AlicePreprocessing A) (rho : Matrix (A × B) (A × B) ℂ) :=
  P.instrument.flagged rho

/-- PDF pp.11,13: general two-way preprocessing with changing output spaces. -/
structure TwoWayPreprocessing (A B : Type) [Fintype A] [Fintype B] where
  outA : ℕ
  outB : ℕ
  outAPos : 0 < outA
  outBPos : 0 < outB
  operation : Superop (A × B) (Fin outA × Fin outB)
  locc : finiteLOCCOn operation

/-- PDF p.12, (42): positive-part spectral mass on arbitrary dependent
finite spaces. The threshold uses the actual positive block length k+1. -/
def dependentSpectralMass {I : ℕ → Type} [∀ k, Fintype (I k)]
    [∀ k, DecidableEq (I k)] (rho sigma : (k : ℕ) → Matrix (I k) (I k) ℂ)
    (gamma : ℝ) (k : ℕ) : ℝ :=
  let delta := rho k - (Real.rpow 2 (((k + 1 : ℕ) : ℝ) * gamma) : ℂ) • sigma k
  (weakPositive delta * delta).trace.re

/-- PDF p.12, (42): spectral INF-divergence, allowing arbitrary changing
finite output spaces. Empty/unbounded threshold sets have extended values. -/
def dependentSpectralInf {I : ℕ → Type} [∀ k, Fintype (I k)]
    [∀ k, DecidableEq (I k)] (rho sigma : (k : ℕ) → Matrix (I k) (I k) ℂ) : EReal :=
  sSup {v : EReal | ∃ gamma : ℝ, v = (gamma : EReal) ∧
    Filter.liminf (dependentSpectralMass rho sigma gamma) atTop = 1}

/-- PDF pp.12--13, (45): minimization over ALL normalized comparison-state
sequences, with no identical-copy restriction and no prescribed marginals. -/
def spectralCoherent {A B : ℕ → Type} [∀ k, Fintype (A k)] [∀ k, DecidableEq (A k)]
    [∀ k, Fintype (B k)] [∀ k, DecidableEq (B k)]
    (rho : (k : ℕ) → Matrix (A k × B k) (A k × B k) ℂ) : EReal :=
  sInf {v | ∃ sigma : (k : ℕ) → Matrix (B k) (B k) ℂ,
    (∀ k, IsDensityMatrix (sigma k)) ∧
    v = dependentSpectralInf rho (fun k => Matrix.kronecker (1 : Matrix (A k) (A k) ℂ) (sigma k))}

/-- PDF p.13: the comparison minimum, not just its extremal value, is attained. -/
def SpectralMinimumAttained {A B : ℕ → Type}
    [∀ k, Fintype (A k)] [∀ k, DecidableEq (A k)]
    [∀ k, Fintype (B k)] [∀ k, DecidableEq (B k)]
    (rho : (k : ℕ) → Matrix (A k × B k) (A k × B k) ℂ) : Prop :=
  ∃ sigma : (k : ℕ) → Matrix (B k) (B k) ℂ,
    (∀ k, IsDensityMatrix (sigma k)) ∧
    spectralCoherent rho = dependentSpectralInf rho
      (fun k => Matrix.kronecker (1 : Matrix (A k) (A k) ℂ) (sigma k))

/-- PDF p.12, (40): first positive-block liminf, then the right limit in
error. Theorem 1 asserts actual convergence to this computed liminf. -/
def asymptoticInner {A B : Type} [Fintype A] [DecidableEq A]
    [Fintype B] [DecidableEq B] (direction : DistillationDirection)
    (rho : (k : ℕ) → Matrix (PositiveTensorBasis A k × PositiveTensorBasis B k)
      (PositiveTensorBasis A k × PositiveTensorBasis B k) ℂ) (eps : ℝ) : EReal :=
  Filter.liminf (fun k => (((1 / ((k + 1 : ℕ) : ℝ)) : ℝ) : EReal) *
    distillableEntanglementOneShot direction (rho k) eps) atTop

/-- PDF p.12, (40): separate operational value for each assistance class. -/
def asymptoticDistillable {A B : Type} [Fintype A] [DecidableEq A]
    [Fintype B] [DecidableEq B] (direction : DistillationDirection)
    (rho : (k : ℕ) → Matrix (PositiveTensorBasis A k × PositiveTensorBasis B k)
      (PositiveTensorBasis A k × PositiveTensorBasis B k) ℂ) : EReal :=
  Filter.liminf (asymptoticInner direction rho) (nhdsWithin 0 (Set.Ioi 0))

/-- PDF p.13, (47): score of a whole sequence of Alice instruments, chosen
without any restriction on output growth or relation between different blocks. -/
def forwardSequenceScore {A B : Type} [Fintype A] [DecidableEq A]
    [Fintype B] [DecidableEq B]
    (rho : (k : ℕ) → Matrix (PositiveTensorBasis A k × PositiveTensorBasis B k)
      (PositiveTensorBasis A k × PositiveTensorBasis B k) ℂ)
    (P : (k : ℕ) → AlicePreprocessing (PositiveTensorBasis A k)) : EReal :=
  spectralCoherent (fun k => (P k).output (rho k))

/-- PDF p.13, (48): score of a whole sequence of actual adaptive two-way maps. -/
def twoWaySequenceScore {A B : Type} [Fintype A] [DecidableEq A]
    [Fintype B] [DecidableEq B]
    (rho : (k : ℕ) → Matrix (PositiveTensorBasis A k × PositiveTensorBasis B k)
      (PositiveTensorBasis A k × PositiveTensorBasis B k) ℂ)
    (P : (k : ℕ) → TwoWayPreprocessing (PositiveTensorBasis A k) (PositiveTensorBasis B k)) : EReal :=
  spectralCoherent (fun k => (P k).operation (rho k))

/-- PDF p.7: the single-outcome identity instrument, used to pin the
instrument and protocol normalization conventions. -/
def identityInstrument (A : Type) [Fintype A] [DecidableEq A] :
    RectangularInstrument A A (Fin 1) where
  krausCount := 1
  kraus := fun _ _ => 1
  complete := by simp

/-- PDF pp.7,10: the identity forward protocol with one communicated outcome. -/
def identityForward (A B : Type) [Fintype A] [DecidableEq A]
    [Fintype B] [DecidableEq B] : ForwardProtocol A B A B where
  outcomeCount := 0
  instrument := identityInstrument A
  decoder := fun _ X => X
  decoderCPTP := by
    intro x
    refine ⟨1, (fun _ => 1), ?_, ?_⟩
    · simp [IsKrausFamily]
    · intro X
      simp [krausApply]

/-! Sanity examples: small source cases and agreement with the frozen substrate. -/

example {A B : Type} [Fintype A] [DecidableEq A]
    (rho : Matrix (A × B) (A × B) ℂ) (a a2 : A) (b b2 : B) :
    (identityInstrument A).flagged rho (a, (b, 0)) (a2, (b2, 0)) =
      rho (a, b) (a2, b2) := by
  have hbranch : (identityInstrument A).branch (0 : Fin 1) = (fun X => X) := by
    funext X
    change (∑ j : Fin 1, (1 : Matrix A A ℂ) * X * (1 : Matrix A A ℂ)ᴴ) = X
    simp only [Fin.sum_univ_one, Matrix.conjTranspose_one, Matrix.one_mul, Matrix.mul_one]
  simp only [RectangularInstrument.flagged, if_pos rfl, hbranch]
  rfl

example {A B : Type} [Fintype A] [DecidableEq A]
    [Fintype B] [DecidableEq B] :
    (identityForward A B).operation = (fun X => X) := by
  have hbranch : ∀ x : Fin 1, (identityInstrument A).branch x = (fun X => X) := by
    intro x
    funext X
    change (∑ j : Fin 1, (1 : Matrix A A ℂ) * X * (1 : Matrix A A ℂ)ᴴ) = X
    simp only [Fin.sum_univ_one, Matrix.conjTranspose_one, Matrix.one_mul, Matrix.mul_one]
  funext X
  change (∑ x : Fin 1, both ((identityInstrument A).branch x) (fun Y => Y) X) = X
  simp only [Fin.sum_univ_one, hbranch]
  rfl

example {A B : Type} [Fintype A] [DecidableEq A]
    [Fintype B] [DecidableEq B] :
    IsDistillationOperation .forward (identityForward A B).operation := ⟨identityForward A B, rfl⟩

example {I : Type} [Fintype I] [DecidableEq I] (rho sigma : Matrix I I ℂ) :
    effectZero rho sigma 1 = dMin rho sigma := by
  simp [effectZero, dMin, cfc_one,
    QAlgorithms.Papers.Independent.Dependency50.P35.tr]

example {I : Type} [Fintype I] [DecidableEq I] (rho : Matrix I I ℂ)
    (delta : ℝ) (hdelta : 1 ≤ delta) :
    (0 : Matrix I I ℂ) ∈ acceptanceSet rho delta := by
  refine ⟨⟨Matrix.PosSemidef.zero, ?_⟩, ?_⟩
  · simpa using (Matrix.PosSemidef.one : (1 : Matrix I I ℂ).PosSemidef)
  · simpa [effectProb] using (sub_nonpos.mpr hdelta)

example : embeddedMES (1 : Matrix (Fin 1) (Fin 1) ℂ) 1 = epr 1 := by
  simp only [embeddedMES, Matrix.kronecker, Matrix.one_kronecker_one,
    Matrix.conjTranspose_one, Matrix.one_mul, Matrix.mul_one]

example {I : Type} [Fintype I] [DecidableEq I] (rho sigma : Matrix I I ℂ) :
    effectZero rho sigma 0 = ⊤ := by
  simp [effectZero, cfc_zero, elog]

example {I : Type} [Fintype I] [DecidableEq I] (rho : Matrix I I ℂ)
    (h : IsDensityMatrix rho) : (1 : Matrix I I ℂ) ∈ acceptanceSet rho 0 := by
  refine ⟨⟨Matrix.PosSemidef.one, ?_⟩, ?_⟩
  · rw [sub_self]
    exact Matrix.PosSemidef.zero
  · simp only [effectProb, Matrix.one_mul, h.2, Complex.one_re, sub_zero, le_refl]

example {I : Type} [Fintype I] [DecidableEq I] (rho : Matrix I I ℂ) :
    (0 : Matrix I I ℂ) ∈ fidelityBall rho 1 := by
  simp [fidelityBall, IsSubnormalized, rootFidelity, cfc_zero, Matrix.PosSemidef.zero]

example {I : Type} [Fintype I] [DecidableEq I]
    (rho sigma : Matrix I I ℂ) (h : ¬ SupportIncluded rho sigma) :
    petzTwo rho sigma = ⊤ := by
  simp [petzTwo, h]

example {A B E : Type} [Fintype B] [Fintype E] :
    marginalAC (0 : Matrix (A × (B × E)) (A × (B × E)) ℂ) = 0 ∧
    marginalAB (0 : Matrix (A × (B × E)) (A × (B × E)) ℂ) = 0 := by
  constructor <;> ext i j <;> simp [marginalAC, marginalAB]

-- Keep the enlarged elaboration budget local to this accepted-definition check.
set_option maxHeartbeats 2000000 in
example {I : Type} [Fintype I] [DecidableEq I]
    (rho sigma : (k : ℕ) → Matrix (PositiveTensorBasis I k) (PositiveTensorBasis I k) ℂ) :
    dependentSpectralInf rho sigma =
      QAlgorithms.Papers.Independent.Support50.P21.spectralInf rho sigma := by
  have mass_eq (gamma : ℝ) : dependentSpectralMass rho sigma gamma =
      QAlgorithms.Papers.Independent.Support50.P21.spectralMass rho sigma gamma := by
    have power_eq (y : ℝ) :
        (algebraMap NNReal ℂ (2 : NNReal)) ^ y = (Real.rpow 2 y : ℂ) := by
      rw [CFC.rpow_algebraMap]
      rfl
    funext k
    unfold dependentSpectralMass
      QAlgorithms.Papers.Independent.Support50.P21.spectralMass
      QAlgorithms.Papers.Independent.Dependency50.P35.tr
    dsimp only
    exact congrArg (fun c : ℂ =>
      (weakPositive (rho k - c • sigma k) * (rho k - c • sigma k)).trace.re)
      (power_eq (((k + 1 : ℕ) : ℝ) * gamma)).symm
  unfold dependentSpectralInf QAlgorithms.Papers.Independent.Support50.P21.spectralInf
  simp only [mass_eq]

end QAlgorithms.Papers.Independent.Advance50.P05
Source
Distilling entanglement from arbitrary resources, arXiv:1006.1896v2, https://arxiv.org/abs/1006.1896v2
Read-back

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

QAlgorithms.Papers.Independent.Advance50.P05.AlicePreprocessing

For a finite type AAA with decidable equality, an object of this structure consists of positive natural numbers ccc and sss, proofs that c>0c>0c>0 and s>0s>0s>0, and a rectangular quantum instrument from AAA to {0,…,c−1}\{0,\ldots,c-1\}{0,…,c−1} with outcomes {0,…,s−1}\{0,\ldots,s-1\}{0,…,s−1}. Explicitly, the instrument supplies a natural number hhh, common to all outcomes, and complex matrices Kx,jK_{x,j}Kx,j​ with rows indexed by {0,…,c−1}\{0,\ldots,c-1\}{0,…,c−1} and columns indexed by AAA, for x<sx<sx<s and j<hj<hj<h, satisfying

∑x=0s−1∑j=0h−1Kx,j∗Kx,j=IA.\sum_{x=0}^{s-1}\sum_{j=0}^{h-1}K_{x,j}^{*}K_{x,j}=I_A.x=0∑s−1​j=0∑h−1​Kx,j∗​Kx,j​=IA​.

The Kraus count hhh is allowed to be zero, and AAA is allowed to be empty; when AAA is nonempty the completeness equation rules out h=0h=0h=0.

QAlgorithms.Papers.Independent.Advance50.P05.AlicePreprocessing.output

For a finite type AAA with decidable equality, any type BBB without a finiteness assumption, preprocessing data PPP on AAA, and an arbitrary complex matrix ρ\rhoρ indexed by A×BA\times BA×B, this definition returns a matrix indexed by {0,…,c−1}×(B×{0,…,s−1})\{0,\ldots,c-1\}\times(B\times\{0,\ldots,s-1\}){0,…,c−1}×(B×{0,…,s−1}), where c,s>0c,s>0c,s>0 are the output dimension and outcome count in PPP. If the instrument in PPP has common Kraus count hhh and matrices Kx,jK_{x,j}Kx,j​ satisfying ∑x<s,j<hKx,j∗Kx,j=IA\sum_{x<s,j<h}K_{x,j}^{*}K_{x,j}=I_A∑x<s,j<h​Kx,j∗​Kx,j​=IA​, the output entries are

(Pout(ρ))(u,(b,x)),(v,(b′,y))={∑j<h∑a,a′∈AKx,j(u,a) ρ(a,b),(a′,b′) Kx,j(v,a′)‾,x=y,0,x≠y.\bigl(P_{\mathrm{out}}(\rho)\bigr)_{(u,(b,x)),(v,(b',y))} = \begin{cases} \displaystyle \sum_{j<h}\sum_{a,a'\in A} K_{x,j}(u,a)\,\rho_{(a,b),(a',b')}\, \overline{K_{x,j}(v,a')},&x=y,\\ 0,&x\ne y. \end{cases}(Pout​(ρ))(u,(b,x)),(v,(b′,y))​=⎩⎨⎧​j<h∑​a,a′∈A∑​Kx,j​(u,a)ρ(a,b),(a′,b′)​Kx,j​(v,a′)​,0,​x=y,x=y.​

Thus the outcome index is retained as a diagonal flag alongside BBB. No positivity or normalization of ρ\rhoρ is required; empty types and zero Kraus count are governed by the displayed finite sums and completeness equation.

QAlgorithms.Papers.Independent.Advance50.P05.DistillationCode.Meets

For either direction, finite input types A,BA,BA,B with decidable equality, and a distillation code CCC, let m,a,b>0m,a,b>0m,a,b>0 be its rank and output dimensions, U:Cm→CaU:\mathbb C^m\to\mathbb C^aU:Cm→Ca and V:Cm→CbV:\mathbb C^m\to\mathbb C^bV:Cm→Cb its matrices satisfying U†U=V†V=ImU^\dagger U=V^\dagger V=I_mU†U=V†V=Im​, and L\mathcal LL its operation. The operation is required to be a single Alice instrument with an outcome-dependent Bob channel in the forward case, or a finite tree of complete local Kraus instruments on either party in the twoWay case; all branch outputs are summed. For any complex matrix ρ\rhoρ on A×BA\times BA×B and any real ε\varepsilonε, this predicate is exactly

1−ε≤Re⁡Tr⁡L(ρ) T L(ρ),T=(U⊗V)Em(U⊗V)†,1-\varepsilon\le \operatorname{Re}\operatorname{Tr} \sqrt{\sqrt{\mathcal L(\rho)}\,T\,\sqrt{\mathcal L(\rho)}}, \qquad T=(U\otimes V)E_m(U\otimes V)^\dagger,1−ε≤ReTrL(ρ)​TL(ρ)​​,T=(U⊗V)Em​(U⊗V)†,

where Em=m−1∑i,j<m∣i,i⟩⟨j,j∣E_m=m^{-1}\sum_{i,j<m}|i,i\rangle\langle j,j|Em​=m−1∑i,j<m​∣i,i⟩⟨j,j∣, and all matrix square roots in this formula mean the continuous functional calculus with the real square-root function. No positivity or normalization assumption is imposed on ρ\rhoρ, and ε\varepsilonε is not restricted to an interval. The inequality uses this root-fidelity expression directly, without squaring it.

QAlgorithms.Papers.Independent.Advance50.P05.DistillationCode

For a direction and finite types A,BA,BA,B with decidable equality, this structure supplies positive natural numbers m,a,bm,a,bm,a,b, matrices U∈Ca×mU\in\mathbb C^{a\times m}U∈Ca×m and V∈Cb×mV\in\mathbb C^{b\times m}V∈Cb×m satisfying U†U=ImU^\dagger U=I_mU†U=Im​ and V†V=ImV^\dagger V=I_mV†V=Im​, and a function L\mathcal LL from matrices on A×BA\times BA×B to matrices on {0,…,a−1}×{0,…,b−1}\{0,\ldots,a-1\}\times\{0,\ldots,b-1\}{0,…,a−1}×{0,…,b−1}. For the forward direction, L\mathcal LL must be obtainable from a nonempty finite collection of outcomes, instrument matrices Kx,j:CA→CaK_{x,j}:\mathbb C^A\to\mathbb C^aKx,j​:CA→Ca with ∑x,jKx,j†Kx,j=IA\sum_{x,j}K_{x,j}^\dagger K_{x,j}=I_A∑x,j​Kx,j†​Kx,j​=IA​, and outcome-dependent decoder channels on BBB; each decoder has a finite Kraus representation with completeness equation IBI_BIB​, and L\mathcal LL sums the corresponding tensor-product Kraus actions. For the twoWay direction, after reindexing finite local types by integer sets, L\mathcal LL must be generated by a finite tree of local Kraus instruments on either party, with complete Kraus families, outcome-dependent continuations, summed branch outputs, and identity operations at the leaves. The numbers m,a,bm,a,bm,a,b cannot be zero, and the isometry equations imply m≤a,bm\le a,bm≤a,b; the input types are not explicitly required to be nonempty. No input state or accuracy requirement is included in this structure.

QAlgorithms.Papers.Independent.Advance50.P05.DistillationDirection

This defines a type with exactly two distinct values, named forward and twoWay, and no additional data or conditions attached to either value.

QAlgorithms.Papers.Independent.Advance50.P05.EffectExtremaAttained

For finite types A,BA,BA,B with decidable equality, an arbitrary complex matrix ρ\rhoρ indexed by A×BA\times BA×B, and any real δ\deltaδ, let

A={P: P⪰0, IA×B−P⪰0, 1−δ≤Re⁡Tr⁡(Pρ)},DB={σ: σ⪰0, Tr⁡σ=1}.\mathcal A=\{P:\ P\succeq0,\ I_{A\times B}-P\succeq0,\ 1-\delta\le\operatorname{Re}\operatorname{Tr}(P\rho)\}, \quad \mathcal D_B=\{\sigma:\ \sigma\succeq0,\ \operatorname{Tr}\sigma=1\}.A={P: P⪰0, IA×B​−P⪰0, 1−δ≤ReTr(Pρ)},DB​={σ: σ⪰0, Trσ=1}.

Let Πρ\Pi_\rhoΠρ​ be the orthogonal projector onto the range of ρ\rhoρ, let Cf\mathcal C_fCf​ denote real continuous functional calculus, and define

G(P,σ)=−ℓ ⁣(Re⁡Tr⁡[C⋅(P) Πρ C⋅(P)(IA⊗σ)]),ℓ(t)={log⁡2t,t>0,−∞,t≤0.G(P,\sigma)=-\ell\!\left(\operatorname{Re}\operatorname{Tr} [\mathcal C_{\sqrt{\cdot}}(P)\,\Pi_\rho\, \mathcal C_{\sqrt{\cdot}}(P)(I_A\otimes\sigma)]\right), \qquad \ell(t)= \begin{cases}\log_2t,&t>0,\\-\infty,&t\le0.\end{cases}G(P,σ)=−ℓ(ReTr[C⋅​​(P)Πρ​C⋅​​(P)(IA​⊗σ)]),ℓ(t)={log2​t,−∞,​t>0,t≤0.​

The predicate asserts that there exist P∈AP\in\mathcal AP∈A and σ∈DB\sigma\in\mathcal D_Bσ∈DB​ such that

sup⁡Q∈Ainf⁡τ∈DBG(Q,τ)=inf⁡τ∈DBG(P,τ)=G(P,σ).\sup_{Q\in\mathcal A}\inf_{\tau\in\mathcal D_B}G(Q,\tau) =\inf_{\tau\in\mathcal D_B}G(P,\tau) =G(P,\sigma).Q∈Asup​τ∈DB​inf​G(Q,τ)=τ∈DB​inf​G(P,τ)=G(P,σ).

These are equalities in the extended reals and do not require finite values or unique optimizers. No density hypothesis on ρ\rhoρ, restriction on δ\deltaδ, or nonemptiness hypothesis on A,BA,BA,B is imposed; if either required witness set is empty, the predicate is false.

QAlgorithms.Papers.Independent.Advance50.P05.ForwardProtocol

For finite types A,B,C,DA,B,C,DA,B,C,D, with decidable equality on A,BA,BA,B, this structure consists of a natural number sss, an instrument with outcome labels x=0,…,sx=0,\ldots,sx=0,…,s, and a decoder function Dx:CB×B→CD×D\mathcal D_x:\mathbb C^{B\times B}\to\mathbb C^{D\times D}Dx​:CB×B→CD×D for each label. The instrument supplies a natural number rrr and matrices Kx,j∈CC×AK_{x,j}\in\mathbb C^{C\times A}Kx,j​∈CC×A satisfying ∑x=0s∑j<rKx,j†Kx,j=IA\sum_{x=0}^{s}\sum_{j<r}K_{x,j}^\dagger K_{x,j}=I_A∑x=0s​∑j<r​Kx,j†​Kx,j​=IA​. Each decoder must admit a finite Kraus representation: there exist a natural number rxr_xrx​ and matrices Lx,ℓ∈CD×BL_{x,\ell}\in\mathbb C^{D\times B}Lx,ℓ​∈CD×B such that

∑ℓ<rxLx,ℓ†Lx,ℓ=IB,Dx(M)=∑ℓ<rxLx,ℓMLx,ℓ†\sum_{\ell<r_x}L_{x,\ell}^\dagger L_{x,\ell}=I_B, \qquad \mathcal D_x(M)=\sum_{\ell<r_x}L_{x,\ell}M L_{x,\ell}^\daggerℓ<rx​∑​Lx,ℓ†​Lx,ℓ​=IB​,Dx​(M)=ℓ<rx​∑​Lx,ℓ​MLx,ℓ†​

for every complex matrix MMM on BBB. There is always at least one outcome label, including when s=0s=0s=0; no nonemptiness assumption is made on the four types.

QAlgorithms.Papers.Independent.Advance50.P05.ForwardProtocol.operation

For finite types A,B,C,DA,B,C,DA,B,C,D, with decidable equality on A,BA,BA,B, let PPP supply outcome labels x=0,…,sx=0,\ldots,sx=0,…,s, instrument matrices Kx,j∈CC×AK_{x,j}\in\mathbb C^{C\times A}Kx,j​∈CC×A satisfying ∑x,jKx,j†Kx,j=IA\sum_{x,j}K_{x,j}^\dagger K_{x,j}=I_A∑x,j​Kx,j†​Kx,j​=IA​, and decoder channels Dx\mathcal D_xDx​. Each decoder channel has some finite representation Dx(M)=∑ℓLx,ℓMLx,ℓ†\mathcal D_x(M)=\sum_\ell L_{x,\ell}M L_{x,\ell}^\daggerDx​(M)=∑ℓ​Lx,ℓ​MLx,ℓ†​ with ∑ℓLx,ℓ†Lx,ℓ=IB\sum_\ell L_{x,\ell}^\dagger L_{x,\ell}=I_B∑ℓ​Lx,ℓ†​Lx,ℓ​=IB​. This defines a function on every complex matrix ρ\rhoρ on A×BA\times BA×B by applying the instrument on AAA, applying the decoder indexed by its outcome on BBB, and summing the outcomes; explicitly,

P(ρ)=∑x,j,ℓ(Kx,j⊗Lx,ℓ)ρ(Kx,j⊗Lx,ℓ)†.P(\rho)=\sum_{x,j,\ell} (K_{x,j}\otimes L_{x,\ell})\rho (K_{x,j}\otimes L_{x,\ell})^\dagger.P(ρ)=x,j,ℓ∑​(Kx,j​⊗Lx,ℓ​)ρ(Kx,j​⊗Lx,ℓ​)†.

The output is a matrix on C×DC\times DC×D, and ρ\rhoρ need not be positive or normalized.

QAlgorithms.Papers.Independent.Advance50.P05.IsDistillationOperation

For finite types A,B,C,DA,B,C,DA,B,C,D, with decidable equality on A,BA,BA,B, a direction and a function LLL from complex matrices on A×BA\times BA×B to those on C×DC\times DC×D, this predicate has two cases. In the forward case, there must exist a nonempty finite outcome set x=0,…,sx=0,\ldots,sx=0,…,s, a common natural number rrr, matrices Kx,j∈CC×AK_{x,j}\in\mathbb C^{C\times A}Kx,j​∈CC×A satisfying ∑x,jKx,j†Kx,j=IA\sum_{x,j}K_{x,j}^\dagger K_{x,j}=I_A∑x,j​Kx,j†​Kx,j​=IA​, and decoder functions with finite Kraus representations Dx(M)=∑ℓLx,ℓMLx,ℓ†\mathcal D_x(M)=\sum_\ell L_{x,\ell}M L_{x,\ell}^\daggerDx​(M)=∑ℓ​Lx,ℓ​MLx,ℓ†​, ∑ℓLx,ℓ†Lx,ℓ=IB\sum_\ell L_{x,\ell}^\dagger L_{x,\ell}=I_B∑ℓ​Lx,ℓ†​Lx,ℓ​=IB​, such that

L(ρ)=∑x,j,ℓ(Kx,j⊗Lx,ℓ)ρ(Kx,j⊗Lx,ℓ)†L(\rho)=\sum_{x,j,\ell}(K_{x,j}\otimes L_{x,\ell})\rho (K_{x,j}\otimes L_{x,\ell})^\daggerL(ρ)=x,j,ℓ∑​(Kx,j​⊗Lx,ℓ​)ρ(Kx,j​⊗Lx,ℓ​)†

for every matrix ρ\rhoρ. In the twoWay case, after reindexing the local types by finite integer sets, LLL must have a finite recursive construction from identities and local Kraus instruments on either party: each instrument has finitely many matrices satisfying a completeness equation, each outcome selects a recursively allowed continuation, and the branch outputs are summed. Zero local dimensions and zero Kraus counts are included wherever their completeness equations permit them.

QAlgorithms.Papers.Independent.Advance50.P05.OneShotAttained

For finite types A,BA,BA,B with decidable equality, a direction ddd equal to “forward” or “two-way,” an arbitrary complex matrix ρ\rhoρ indexed by A×BA\times BA×B, and any real ε\varepsilonε, this predicate means that there exists a distillation code CCC attaining the supremum defining the one-shot quantity. Such a code consists of positive integers r,a,br,a,br,a,b, matrices U:Cr→CaU:\mathbb C^r\to\mathbb C^aU:Cr→Ca and V:Cr→CbV:\mathbb C^r\to\mathbb C^bV:Cr→Cb satisfying U†U=V†V=IrU^\dagger U=V^\dagger V=I_rU†U=V†V=Ir​, and an allowed operation Λ\LambdaΛ from matrices on A×BA\times BA×B to matrices on {0,…,a−1}×{0,…,b−1}\{0,\ldots,a-1\}\times\{0,\ldots,b-1\}{0,…,a−1}×{0,…,b−1}. Its target is ΩC=(U⊗V)Er(U⊗V)†\Omega_C=(U\otimes V)E_r(U\otimes V)^\daggerΩC​=(U⊗V)Er​(U⊗V)†, where (Er)(i,j),(k,l)=1/r(E_r)_{(i,j),(k,l)}=1/r(Er​)(i,j),(k,l)​=1/r when i=ji=ji=j and k=lk=lk=l, and is zero otherwise. In the forward direction, Λ(X)=∑x(Ix⊗Dx)(X)\Lambda(X)=\sum_x(\mathcal I_x\otimes\mathcal D_x)(X)Λ(X)=∑x​(Ix​⊗Dx​)(X), with a finite nonempty outcome set, Ix(X)=∑jKxjXKxj†\mathcal I_x(X)=\sum_j K_{xj}XK_{xj}^\daggerIx​(X)=∑j​Kxj​XKxj†​, ∑x,jKxj†Kxj=IA\sum_{x,j}K_{xj}^\dagger K_{xj}=I_A∑x,j​Kxj†​Kxj​=IA​, and each Dx\mathcal D_xDx​ admitting a finite Kraus representation whose Kraus operators satisfy the corresponding completeness identity; the tensor action applies the two maps to their respective matrix factors. In the two-way direction, after relabeling all finite bases by initial segments of the natural numbers, the operation is obtained recursively from identity operations and finitely branching local Kraus operations by either party, with complete Kraus families and an allowed continuation for each outcome, summing the resulting branches. Writing

F0(X,Y)=Re⁡Tr⁡ ⁣[C⋅ ⁣(C⋅(X) Y C⋅(X))],F_0(X,Y)=\operatorname{Re}\operatorname{Tr}\!\left[ \mathcal C_{\sqrt{\cdot}}\!\left(\mathcal C_{\sqrt{\cdot}}(X)\,Y\,\mathcal C_{\sqrt{\cdot}}(X)\right)\right],F0​(X,Y)=ReTr[C⋅​​(C⋅​​(X)YC⋅​​(X))],

where Cf\mathcal C_fCf​ denotes real continuous functional calculus, the required assertions are

1−ε≤F0(Λ(ρ),ΩC),sup⁡C′ of direction d1−ε≤F0(ΛC′(ρ),ΩC′)log⁡2rC′=log⁡2r,1-\varepsilon\le F_0(\Lambda(\rho),\Omega_C), \qquad \sup_{\substack{C'\text{ of direction }d\\1-\varepsilon\le F_0(\Lambda_{C'}(\rho),\Omega_{C'})}} \log_2 r_{C'}=\log_2 r,1−ε≤F0​(Λ(ρ),ΩC​),C′ of direction d1−ε≤F0​(ΛC′​(ρ),ΩC′​)​sup​log2​rC′​=log2​r,

with the supremum taken in the extended reals. No density-matrix hypothesis on ρ\rhoρ, nonemptiness hypothesis on A,BA,BA,B, or restriction on ε\varepsilonε is imposed; an empty supremum is −∞-\infty−∞.

QAlgorithms.Papers.Independent.Advance50.P05.RectangularInstrument.branch

For finite types A,C,XA,C,XA,C,X, with decidable equality on AAA, an instrument III consists of a natural number rrr and matrices Kx,j∈CC×AK_{x,j}\in\mathbb C^{C\times A}Kx,j​∈CC×A satisfying ∑x,jKx,j†Kx,j=IA\sum_{x,j}K_{x,j}^\dagger K_{x,j}=I_A∑x,j​Kx,j†​Kx,j​=IA​. For each x∈Xx\in Xx∈X, this defines a function from complex matrices on AAA to complex matrices on CCC by

Ix(M)=∑j<rKx,jMKx,j†.I_x(M)=\sum_{j<r}K_{x,j}M K_{x,j}^\dagger.Ix​(M)=j<r∑​Kx,j​MKx,j†​.

Its argument MMM is arbitrary; no positivity or trace condition is required. Completeness is imposed on the sum over all outcomes, rather than separately on this branch. When r=0r=0r=0, the branch is the zero function.

QAlgorithms.Papers.Independent.Advance50.P05.RectangularInstrument.flagged

Let A,B,C,XA,B,C,XA,B,C,X be types, with A,C,XA,C,XA,C,X finite and equality decidable on A,XA,XA,X; no finiteness assumption is imposed on BBB. Let III have matrices Kx,j∈CC×AK_{x,j}\in\mathbb C^{C\times A}Kx,j​∈CC×A, indexed by x∈Xx\in Xx∈X and j<rj<rj<r, satisfying ∑x,jKx,j†Kx,j=IA\sum_{x,j}K_{x,j}^\dagger K_{x,j}=I_A∑x,j​Kx,j†​Kx,j​=IA​. For any complex matrix ρ\rhoρ on A×BA\times BA×B, this defines a matrix on C×(B×X)C\times(B\times X)C×(B×X) whose entries are

F(c,b,x),(c′,b′,x′)={∑j<r∑a,a′∈AKx,j(c,a)ρ(a,b),(a′,b′)Kx,j(c′,a′)‾,x=x′,0,x≠x′.F_{(c,b,x),(c',b',x')}= \begin{cases} \displaystyle\sum_{j<r}\sum_{a,a'\in A} K_{x,j}(c,a)\rho_{(a,b),(a',b')} \overline{K_{x,j}(c',a')},&x=x',\\ 0,&x\ne x'. \end{cases}F(c,b,x),(c′,b′,x′)​=⎩⎨⎧​j<r∑​a,a′∈A∑​Kx,j​(c,a)ρ(a,b),(a′,b′)​Kx,j​(c′,a′)​,0,​x=x′,x=x′.​

Thus the outcome label occurs in diagonal blocks, and the operation acts on the AAA coordinates while retaining the BBB coordinates. No density-matrix assumption is made on ρ\rhoρ; empty index sets give empty sums.

QAlgorithms.Papers.Independent.Advance50.P05.RectangularInstrument

For finite types A,C,XA,C,XA,C,X, with decidable equality on AAA, this structure consists of a natural number rrr, a complex matrix Kx,j∈CC×AK_{x,j}\in\mathbb C^{C\times A}Kx,j​∈CC×A for every x∈Xx\in Xx∈X and j<rj<rj<r, and the requirement

∑x∈X∑j<rKx,j†Kx,j=IA.\sum_{x\in X}\sum_{j<r}K_{x,j}^\dagger K_{x,j}=I_A.x∈X∑​j<r∑​Kx,j†​Kx,j​=IA​.

The same number rrr of matrices is used for every outcome xxx. Neither the types nor rrr are required to be nonempty or positive. If XXX is empty or r=0r=0r=0, the requirement becomes 0=IA0=I_A0=IA​, which is possible only when AAA is empty.

QAlgorithms.Papers.Independent.Advance50.P05.SpectralMinimumAttained

For families of finite types Ak,BkA_k,B_kAk​,Bk​ with decidable equality and arbitrary complex matrices ρk\rho_kρk​ on Ak×BkA_k\times B_kAk​×Bk​, this predicate says that there exists a sequence σk\sigma_kσk​ of positive semidefinite matrices on BkB_kBk​ with Tr⁡σk=1\operatorname{Tr}\sigma_k=1Trσk​=1 that attains the following extended-real infimum. For any such sequence τ\tauτ, define

Sρ(τ)=sup⁡{γ∈R:lim inf⁡k→∞Re⁡Tr⁡ ⁣[f(Δk)Δk]=1},Δk=ρk−2(k+1)γ(IAk⊗τk),f(t)=1{t≥0},S_\rho(\tau)= \sup\left\{\gamma\in\mathbb R: \liminf_{k\to\infty} \operatorname{Re}\operatorname{Tr}\!\left[ f(\Delta_k)\Delta_k \right]=1\right\}, \quad \Delta_k=\rho_k-2^{(k+1)\gamma}(I_{A_k}\otimes\tau_k), \quad f(t)=\mathbf1_{\{t\ge0\}},Sρ​(τ)=sup{γ∈R:k→∞liminf​ReTr[f(Δk​)Δk​]=1},Δk​=ρk​−2(k+1)γ(IAk​​⊗τk​),f(t)=1{t≥0}​,

using real functional calculus for fff and a real-valued limit inferior. The required equality is inf⁡τSρ(τ)=Sρ(σ)\inf_\tau S_\rho(\tau)=S_\rho(\sigma)infτ​Sρ​(τ)=Sρ​(σ), where τ\tauτ ranges over all density-matrix sequences just described. The attained value need not be finite, and no maximizing γ\gammaγ is required. There is no positivity or normalization assumption on ρk\rho_kρk​. Empty types are permitted, but if any BkB_kBk​ is empty the required sequence σ\sigmaσ cannot exist.

QAlgorithms.Papers.Independent.Advance50.P05.TwoExtremaAttained

For finite types A,BA,BA,B with decidable equality, an arbitrary complex matrix ρ\rhoρ indexed by A×BA\times BA×B, and any real δ\deltaδ, this predicate asserts the existence of a positive semidefinite matrix rrr with Re⁡Tr⁡r≤1\operatorname{Re}\operatorname{Tr}r\le1ReTrr≤1 and F(ρ,r)2≥1−δ2F(\rho,r)^2\ge1-\delta^2F(ρ,r)2≥1−δ2, and a positive semidefinite matrix σ\sigmaσ on BBB with Tr⁡σ=1\operatorname{Tr}\sigma=1Trσ=1, attaining two nested infima. Here F(X,Y)=Re⁡Tr⁡X Y XF(X,Y)=\operatorname{Re}\operatorname{Tr}\sqrt{\sqrt X\,Y\,\sqrt X}F(X,Y)=ReTrX​YX​​, using real functional calculus. Write Bδ(ρ)\mathcal B_\delta(\rho)Bδ​(ρ) for the stated set of rrr, and define

D2(X,Y)={ℓ ⁣(Re⁡Tr⁡(X2Y[−1])),ker⁡Y⊆ker⁡X,+∞,otherwise,D_2(X,Y)= \begin{cases} \ell\!\left(\operatorname{Re}\operatorname{Tr}(X^2Y^{[-1]})\right), &\ker Y\subseteq\ker X,\\ +\infty,&\text{otherwise}, \end{cases}D2​(X,Y)={ℓ(ReTr(X2Y[−1])),+∞,​kerY⊆kerX,otherwise,​

where Y[−1]Y^{[-1]}Y[−1] is obtained by functional calculus from the function equal to 000 at 000 and t−1t^{-1}t−1 elsewhere, and ℓ(t)=log⁡2t\ell(t)=\log_2tℓ(t)=log2​t for t>0t>0t>0 and −∞-\infty−∞ otherwise. The required equalities are

inf⁡r′∈Bδ(ρ)inf⁡τ≥0Tr⁡τ=1D2(r′,IA⊗τ)=inf⁡τ≥0Tr⁡τ=1D2(r,IA⊗τ)=D2(r,IA⊗σ).\inf_{r'\in\mathcal B_\delta(\rho)} \inf_{\substack{\tau\ge0\\ \operatorname{Tr}\tau=1}} D_2(r',I_A\otimes\tau) = \inf_{\substack{\tau\ge0\\ \operatorname{Tr}\tau=1}} D_2(r,I_A\otimes\tau) = D_2(r,I_A\otimes\sigma).r′∈Bδ​(ρ)inf​τ≥0Trτ=1​inf​D2​(r′,IA​⊗τ)=τ≥0Trτ=1​inf​D2​(r,IA​⊗τ)=D2​(r,IA​⊗σ).

All infima are extended-real infima, with empty infimum +∞+\infty+∞. Neither normalization of ρ\rhoρ nor nonnegativity of δ\deltaδ is assumed; r=0r=0r=0 belongs to the ball exactly when δ2≥1\delta^2\ge1δ2≥1. Empty types are permitted, although an empty BBB makes the required trace-one witness impossible.

QAlgorithms.Papers.Independent.Advance50.P05.TwoWayPreprocessing

For finite types A,BA,BA,B, this structure consists of positive natural output dimensions c,dc,dc,d, proofs of their positivity, a function LLL from complex matrices on A×BA\times BA×B to complex matrices on {0,…,c−1}×{0,…,d−1}\{0,\ldots,c-1\}\times\{0,\ldots,d-1\}{0,…,c−1}×{0,…,d−1}, and a proof that LLL has the following finite recursive local-operation representation after relabeling A,BA,BA,B by their chosen enumerations. The permitted representations start with identity maps; recursively, either party may apply a finite family of rectangular Kraus matrices KiK_iKi​ satisfying ∑iKi∗Ki=I\sum_iK_i^{*}K_i=I∑i​Ki∗​Ki​=I on that party, apply an already permitted continuation depending on iii, and sum the resulting branches. On the other party the Kraus operation acts as the identity. These are exactly the constructors required by the predicate; the number of branches and intermediate dimensions are natural numbers and need not be positive. No decidable-equality assumptions or nonemptiness assumptions on A,BA,BA,B are binders of this structure, and no input state is part of its data.

QAlgorithms.Papers.Independent.Advance50.P05.ZeroExtremaAttained

For finite types A,BA,BA,B with decidable equality, an arbitrary complex matrix ρ\rhoρ indexed by A×BA\times BA×B, and any real δ\deltaδ, this predicate says that both of the following nested optimizations are attained by the same pair r,σr,\sigmar,σ. Define Bδ(ρ)\mathcal B_\delta(\rho)Bδ​(ρ) to consist of positive semidefinite matrices rrr with Re⁡Tr⁡r≤1\operatorname{Re}\operatorname{Tr}r\le1ReTrr≤1 and F(ρ,r)2≥1−δ2F(\rho,r)^2\ge1-\delta^2F(ρ,r)2≥1−δ2, where F(X,Y)=Re⁡Tr⁡X Y XF(X,Y)=\operatorname{Re}\operatorname{Tr}\sqrt{\sqrt X\,Y\,\sqrt X}F(X,Y)=ReTrX​YX​​, with square roots defined by real functional calculus. Define d0(X,Y)=−ℓ(Re⁡Tr⁡(ΠXY))d_0(X,Y)=-\ell(\operatorname{Re}\operatorname{Tr}(\Pi_XY))d0​(X,Y)=−ℓ(ReTr(ΠX​Y)), where ΠX\Pi_XΠX​ is the orthogonal projection onto the range of XXX and ℓ(t)=log⁡2t\ell(t)=\log_2tℓ(t)=log2​t for t>0t>0t>0, while ℓ(t)=−∞\ell(t)=-\inftyℓ(t)=−∞ otherwise. The required witnesses satisfy r∈Bδ(ρ)r\in\mathcal B_\delta(\rho)r∈Bδ​(ρ), σ≥0\sigma\ge0σ≥0, Tr⁡σ=1\operatorname{Tr}\sigma=1Trσ=1, and

sup⁡r′∈Bδ(ρ)inf⁡τ≥0Tr⁡τ=1d0(r′,IA⊗τ)=inf⁡τ≥0Tr⁡τ=1d0(r,IA⊗τ)=d0(r,IA⊗σ).\sup_{r'\in\mathcal B_\delta(\rho)} \inf_{\substack{\tau\ge0\\ \operatorname{Tr}\tau=1}} d_0(r',I_A\otimes\tau) = \inf_{\substack{\tau\ge0\\ \operatorname{Tr}\tau=1}} d_0(r,I_A\otimes\tau) = d_0(r,I_A\otimes\sigma).r′∈Bδ​(ρ)sup​τ≥0Trτ=1​inf​d0​(r′,IA​⊗τ)=τ≥0Trτ=1​inf​d0​(r,IA​⊗τ)=d0​(r,IA​⊗σ).

These extrema are in the extended reals. No density assumption on ρ\rhoρ or sign restriction on δ\deltaδ is imposed; the ball includes r=0r=0r=0 exactly when δ2≥1\delta^2\ge1δ2≥1. Empty types are allowed, but if BBB is empty no trace-one σ\sigmaσ exists, so the predicate is false.

QAlgorithms.Papers.Independent.Advance50.P05.acceptanceSet

For any finite type III with decidable equality, any complex I×II\times II×I matrix ρ\rhoρ, and any real δ\deltaδ, this is the set of matrices PPP satisfying

P⪰0,II−P⪰0,1−δ≤Re⁡Tr⁡(Pρ).P\succeq0,\qquad I_I-P\succeq0,\qquad 1-\delta\le\operatorname{Re}\operatorname{Tr}(P\rho).P⪰0,II​−P⪰0,1−δ≤ReTr(Pρ).

No positivity or normalization assumption on ρ\rhoρ, nonemptiness assumption on III, or restriction on δ\deltaδ is imposed. In particular, P=0P=0P=0 is permitted whenever δ≥1\delta\ge1δ≥1; if III is empty, its unique matrix belongs exactly when δ≥1\delta\ge1δ≥1.

QAlgorithms.Papers.Independent.Advance50.P05.asymptoticDistillable

For finite types A,BA,BA,B with decidable equality, either the forward or two-way direction, and an arbitrary sequence ρk\rho_kρk​ of complex matrices on Ak+1×Bk+1A^{k+1}\times B^{k+1}Ak+1×Bk+1, this definition is the iterated extended-real limit inferior

lim inf⁡ε→0+  lim inf⁡k→∞1k+1sup⁡Clog⁡2rC.\liminf_{\varepsilon\to0^+}\; \liminf_{k\to\infty}\frac{1}{k+1} \sup_C\log_2r_C.ε→0+liminf​k→∞liminf​k+11​Csup​log2​rC​.

For each k,εk,\varepsilonk,ε, the codes CCC in this supremum consist of positive natural numbers rC,cC,dCr_C,c_C,d_CrC​,cC​,dC​, matrices UC:CrC→CcCU_C:\mathbb C^{r_C}\to\mathbb C^{c_C}UC​:CrC​→CcC​ and VC:CrC→CdCV_C:\mathbb C^{r_C}\to\mathbb C^{d_C}VC​:CrC​→CdC​ satisfying UC∗UC=VC∗VC=IU_C^{*}U_C=V_C^{*}V_C=IUC∗​UC​=VC∗​VC​=I, and an allowed operation LCL_CLC​ from matrices on Ak+1×Bk+1A^{k+1}\times B^{k+1}Ak+1×Bk+1 to matrices on the two output spaces, satisfying F(LC(ρk),(UC⊗VC)ErC(UC⊗VC)∗)≥1−εF(L_C(\rho_k),(U_C\otimes V_C)E_{r_C}(U_C\otimes V_C)^{*})\ge1-\varepsilonF(LC​(ρk​),(UC​⊗VC​)ErC​​(UC​⊗VC​)∗)≥1−ε. Here ErE_rEr​ has entries 1/r1/r1/r between (i,i)(i,i)(i,i) and (j,j)(j,j)(j,j) and zero elsewhere, and F(X,Y)=Re⁡Tr⁡X Y XF(X,Y)=\operatorname{Re}\operatorname{Tr}\sqrt{\sqrt X\,Y\,\sqrt X}F(X,Y)=ReTrX​YX​​ by real functional calculus. Forward operations have the form ∑x(Ix⊗Dx)\sum_x(\mathcal I_x\otimes D_x)∑x​(Ix​⊗Dx​) for a positive finite number of outcomes, where Ix(X)=∑jKx,jXKx,j∗\mathcal I_x(X)=\sum_jK_{x,j}XK_{x,j}^{*}Ix​(X)=∑j​Kx,j​XKx,j∗​, ∑x,jKx,j∗Kx,j=I\sum_{x,j}K_{x,j}^{*}K_{x,j}=I∑x,j​Kx,j∗​Kx,j​=I, and every DxD_xDx​ has a finite complete Kraus representation. Two-way operations, after enumeration of the input bases, are generated recursively from identities by finite complete Kraus operations on either party, outcome-dependent permitted continuations, and summation over branches. Empty code sets contribute −∞-\infty−∞. The definition does not assert existence of either ordinary limit, and assumes neither that ρk\rho_kρk​ are density matrices nor that A,BA,BA,B are nonempty.

QAlgorithms.Papers.Independent.Advance50.P05.asymptoticInner

For finite types A,BA,BA,B with decidable equality, a direction equal to either forward or two-way, an arbitrary matrix sequence ρk\rho_kρk​ on Ak+1×Bk+1A^{k+1}\times B^{k+1}Ak+1×Bk+1, and any real ε\varepsilonε, this definition is

lim inf⁡k→∞1k+1sup⁡{log⁡2r:r,c,d∈N,r,c,d>0,U:Cr→Cc,V:Cr→Cd,U∗U=V∗V=Ir,L:Mat⁡(Ak+1×Bk+1)→Mat⁡({0,…,c−1}×{0,…,d−1}),L is allowed in the chosen direction,F ⁣(L(ρk),(U⊗V)Er(U⊗V)∗)≥1−ε}.\liminf_{k\to\infty}\frac{1}{k+1} \sup\left\{\log_2r: \begin{array}{l} r,c,d\in\mathbb N,\quad r,c,d>0,\quad U:\mathbb C^r\to\mathbb C^c,\quad V:\mathbb C^r\to\mathbb C^d,\\ U^{*}U=V^{*}V=I_r,\quad L:\operatorname{Mat}(A^{k+1}\times B^{k+1})\to \operatorname{Mat}(\{0,\ldots,c-1\}\times\{0,\ldots,d-1\}),\\ L\text{ is allowed in the chosen direction},\quad F\!\left(L(\rho_k),(U\otimes V)E_r(U\otimes V)^{*}\right)\ge1-\varepsilon \end{array} \right\}.k→∞liminf​k+11​sup⎩⎨⎧​log2​r:r,c,d∈N,r,c,d>0,U:Cr→Cc,V:Cr→Cd,U∗U=V∗V=Ir​,L:Mat(Ak+1×Bk+1)→Mat({0,…,c−1}×{0,…,d−1}),L is allowed in the chosen direction,F(L(ρk​),(U⊗V)Er​(U⊗V)∗)≥1−ε​⎭⎬⎫​.

Here Mat⁡\operatorname{Mat}Mat denotes complex square matrices, ErE_rEr​ has entry 1/r1/r1/r between indices (i,i)(i,i)(i,i) and (j,j)(j,j)(j,j) and zero elsewhere, and F(X,Y)=Re⁡Tr⁡X Y XF(X,Y)=\operatorname{Re}\operatorname{Tr}\sqrt{\sqrt X\,Y\,\sqrt X}F(X,Y)=ReTrX​YX​​, using real functional calculus. For the forward direction, L=∑x(Ix⊗Dx)L=\sum_x(\mathcal I_x\otimes D_x)L=∑x​(Ix​⊗Dx​), with a positive finite number of outcomes, Ix(X)=∑jKx,jXKx,j∗\mathcal I_x(X)=\sum_jK_{x,j}XK_{x,j}^{*}Ix​(X)=∑j​Kx,j​XKx,j∗​, ∑x,jKx,j∗Kx,j=I\sum_{x,j}K_{x,j}^{*}K_{x,j}=I∑x,j​Kx,j∗​Kx,j​=I, and each DxD_xDx​ admitting a finite Kraus representation with completeness sum III. For the two-way direction, after enumeration of the input bases, LLL is generated recursively by identities and finite complete local Kraus families followed by outcome-dependent permitted continuations, with branches summed. Both the supremum and outer limit inferior are extended-real operations; an empty set of codes has supremum −∞-\infty−∞. No density assumption on ρk\rho_kρk​, nonemptiness assumption on A,BA,BA,B, or restriction on ε\varepsilonε is imposed. The block lengths are k+1k+1k+1, beginning at 111.

QAlgorithms.Papers.Independent.Advance50.P05.conditionalEffectZero

For finite types A,BA,BA,B with decidable equality and arbitrary complex matrices ρ,P\rho,Pρ,P indexed by A×BA\times BA×B, let Πρ\Pi_\rhoΠρ​ be the orthogonal projector onto the range of ρ\rhoρ, let Cf\mathcal C_fCf​ denote real continuous functional calculus, and define ℓ(t)=log⁡2t\ell(t)=\log_2tℓ(t)=log2​t for t>0t>0t>0 and ℓ(t)=−∞\ell(t)=-\inftyℓ(t)=−∞ for t≤0t\le0t≤0. This defines

inf⁡σ∈CB×Bσ⪰0, Tr⁡σ=1−ℓ ⁣(Re⁡Tr⁡[C⋅(P) Πρ C⋅(P)(IA⊗σ)])\inf_{\substack{\sigma\in\mathbb C^{B\times B}\\ \sigma\succeq0,\ \operatorname{Tr}\sigma=1}} -\ell\!\left(\operatorname{Re}\operatorname{Tr} [\mathcal C_{\sqrt{\cdot}}(P)\,\Pi_\rho\, \mathcal C_{\sqrt{\cdot}}(P)(I_A\otimes\sigma)]\right)σ∈CB×Bσ⪰0, Trσ=1​inf​−ℓ(ReTr[C⋅​​(P)Πρ​C⋅​​(P)(IA​⊗σ)])

as an extended-real infimum. There is no density assumption on ρ\rhoρ and no effect assumption on PPP. The types may be empty; if BBB is empty, the infimum is over an empty set and equals +∞+\infty+∞.

QAlgorithms.Papers.Independent.Advance50.P05.dependentSpectralInf

For a family of finite types IkI_kIk​ with decidable equality and arbitrary complex matrix sequences ρk,σk\rho_k,\sigma_kρk​,σk​ on those types, this definition is the extended-real supremum

sup⁡{γ∈R:lim inf⁡k→∞Re⁡Tr⁡ ⁣[f ⁣(ρk−2(k+1)γσk)(ρk−2(k+1)γσk)]=1},f(t)=1{t≥0},\sup\left\{ \gamma\in\mathbb R: \liminf_{k\to\infty} \operatorname{Re}\operatorname{Tr}\!\left[ f\!\left(\rho_k-2^{(k+1)\gamma}\sigma_k\right) \left(\rho_k-2^{(k+1)\gamma}\sigma_k\right) \right]=1 \right\}, \qquad f(t)=\mathbf1_{\{t\ge0\}},sup{γ∈R:k→∞liminf​ReTr[f(ρk​−2(k+1)γσk​)(ρk​−2(k+1)γσk​)]=1},f(t)=1{t≥0}​,

with fff applied by real functional calculus and the real candidates γ\gammaγ embedded into the extended reals. The condition is equality of the limit inferior to 111. That limit inferior is taken in R\mathbb RR; no boundedness assumption is imposed. No positivity, Hermiticity, normalization, or nonemptiness hypotheses are present. An empty candidate set gives −∞-\infty−∞, and an unbounded-above candidate set gives +∞+\infty+∞.

QAlgorithms.Papers.Independent.Advance50.P05.dependentSpectralMass

For a family of finite types IkI_kIk​, each with decidable equality, arbitrary complex matrices ρk,σk\rho_k,\sigma_kρk​,σk​ on IkI_kIk​, a real γ\gammaγ, and a natural number kkk, this definition is the real number

Re⁡Tr⁡ ⁣(W(Δk)Δk),Δk=ρk−2(k+1)γσk,W(X)=f(X),f(t)={1,t≥0,0,t<0,\operatorname{Re}\operatorname{Tr}\!\left( W(\Delta_k)\Delta_k \right), \qquad \Delta_k=\rho_k-2^{(k+1)\gamma}\sigma_k, \qquad W(X)=f(X),\quad f(t)= \begin{cases} 1,&t\ge0,\\ 0,&t<0, \end{cases}ReTr(W(Δk​)Δk​),Δk​=ρk​−2(k+1)γσk​,W(X)=f(X),f(t)={1,0,​t≥0,t<0,​

where f(X)f(X)f(X) is defined by real functional calculus. In particular, when Δk\Delta_kΔk​ is Hermitian, W(Δk)W(\Delta_k)W(Δk​) includes its zero eigenspace as well as its positive eigenspaces. Neither Hermiticity, positivity, normalization, nor nonemptiness of IkI_kIk​ is assumed. The index includes k=0k=0k=0, whose exponential factor is 2γ2^\gamma2γ; if IkI_kIk​ is empty, the trace and hence this value are zero.

QAlgorithms.Papers.Independent.Advance50.P05.distillableEntanglementOneShot

For finite types A,BA,BA,B with decidable equality, either direction, an arbitrary complex matrix ρ\rhoρ on A×BA\times BA×B, and any real ε\varepsilonε, this defines an extended real number as the supremum of log⁡2m\log_2 mlog2​m over all positive natural numbers m,a,bm,a,bm,a,b, isometries U:Cm→CaU:\mathbb C^m\to\mathbb C^aU:Cm→Ca, V:Cm→CbV:\mathbb C^m\to\mathbb C^bV:Cm→Cb, and permitted operations L\mathcal LL with output dimensions a,ba,ba,b, for which

1−ε≤Re⁡Tr⁡L(ρ) T L(ρ),T=(U⊗V)(1m∑i,j<m∣i,i⟩⟨j,j∣)(U⊗V)†.1-\varepsilon\le \operatorname{Re}\operatorname{Tr} \sqrt{\sqrt{\mathcal L(\rho)}\,T\,\sqrt{\mathcal L(\rho)}}, \qquad T=(U\otimes V)\left(\frac1m\sum_{i,j<m}|i,i\rangle\langle j,j|\right)(U\otimes V)^\dagger.1−ε≤ReTrL(ρ)​TL(ρ)​​,T=(U⊗V)(m1​i,j<m∑​∣i,i⟩⟨j,j∣)(U⊗V)†.

Here isometry means U†U=V†V=ImU^\dagger U=V^\dagger V=I_mU†U=V†V=Im​, and square roots mean continuous functional calculus with the real square-root function. A permitted forward operation consists of one complete finite Kraus instrument on Alice, with at least one outcome label, followed by a decoder channel on Bob selected by that outcome; each decoder has a finite complete Kraus representation, and outputs are summed. A permitted twoWay operation has, after finite-basis reindexing, a finite recursive construction from identities and complete finite Kraus instruments on either party, with outcome-dependent continuations and summed outputs. There is no density-matrix assumption on ρ\rhoρ, no restriction on ε\varepsilonε, and no requirement that the supremum be attained. The supremum is −∞-\infty−∞ if no code meets the inequality and +∞+\infty+∞ if the attainable logarithmic ranks are unbounded.

QAlgorithms.Papers.Independent.Advance50.P05.effectSmoothedZero

For finite types A,BA,BA,B with decidable equality, an arbitrary complex matrix ρ\rhoρ indexed by A×BA\times BA×B, and any real δ\deltaδ, let Πρ\Pi_\rhoΠρ​ be the orthogonal projector onto its range, let Cf\mathcal C_fCf​ denote real continuous functional calculus, and set ℓ(t)=log⁡2t\ell(t)=\log_2tℓ(t)=log2​t for t>0t>0t>0 and ℓ(t)=−∞\ell(t)=-\inftyℓ(t)=−∞ otherwise. This defines the extended-real value

sup⁡P⪰0, IA×B−P⪰01−δ≤Re⁡Tr⁡(Pρ) inf⁡σ∈CB×Bσ⪰0, Tr⁡σ=1−ℓ ⁣(Re⁡Tr⁡[C⋅(P) Πρ C⋅(P)(IA⊗σ)]).\sup_{\substack{P\succeq0,\ I_{A\times B}-P\succeq0\\ 1-\delta\le\operatorname{Re}\operatorname{Tr}(P\rho)}} \ \inf_{\substack{\sigma\in\mathbb C^{B\times B}\\ \sigma\succeq0,\ \operatorname{Tr}\sigma=1}} -\ell\!\left(\operatorname{Re}\operatorname{Tr} [\mathcal C_{\sqrt{\cdot}}(P)\,\Pi_\rho\, \mathcal C_{\sqrt{\cdot}}(P)(I_A\otimes\sigma)]\right).P⪰0, IA×B​−P⪰01−δ≤ReTr(Pρ)​sup​ σ∈CB×Bσ⪰0, Trσ=1​inf​−ℓ(ReTr[C⋅​​(P)Πρ​C⋅​​(P)(IA​⊗σ)]).

No positivity or normalization hypothesis on ρ\rhoρ, restriction on δ\deltaδ, or nonemptiness hypothesis on the types is imposed. The zero effect is admissible whenever δ≥1\delta\ge1δ≥1; an empty outer optimization has value −∞-\infty−∞, and an empty inner optimization has value +∞+\infty+∞.

QAlgorithms.Papers.Independent.Advance50.P05.effectZero

For any finite type III with decidable equality and any three complex I×II\times II×I matrices ρ,σ,P\rho,\sigma,Pρ,σ,P, let Πρ\Pi_\rhoΠρ​ be the orthogonal projector onto the range of the linear operator represented by ρ\rhoρ, and put

t=Re⁡Tr⁡(C⋅(P) Πρ C⋅(P) σ).t=\operatorname{Re}\operatorname{Tr} \left(\mathcal C_{\sqrt{\cdot}}(P)\,\Pi_\rho\, \mathcal C_{\sqrt{\cdot}}(P)\,\sigma\right).t=ReTr(C⋅​​(P)Πρ​C⋅​​(P)σ).

Here Cf\mathcal C_fCf​ denotes real continuous functional calculus. The defined extended-real value is −log⁡2t-\log_2 t−log2​t if t>0t>0t>0, and +∞+\infty+∞ if t≤0t\le0t≤0. No density, positivity, or effect hypotheses are imposed on these matrices, and III may be empty; in the empty case t=0t=0t=0, so the value is +∞+\infty+∞.

QAlgorithms.Papers.Independent.Advance50.P05.embeddedMES

For finite types A,BA,BA,B, any natural number mmm, and arbitrary complex matrices U∈CA×mU\in\mathbb C^{A\times m}U∈CA×m and V∈CB×mV\in\mathbb C^{B\times m}V∈CB×m, this defines the matrix

(U⊗V)Em(U⊗V)†(U\otimes V)E_m(U\otimes V)^\dagger(U⊗V)Em​(U⊗V)†

on A×BA\times BA×B, where EmE_mEm​ has entry 1/m1/m1/m at row (i,i)(i,i)(i,i), column (j,j)(j,j)(j,j), for every i,j<mi,j<mi,j<m, and zero at every other entry. For m>0m>0m>0, EmE_mEm​ is the rank-one density matrix of m−1/2∑i<m∣i,i⟩m^{-1/2}\sum_{i<m}|i,i\ranglem−1/2∑i<m​∣i,i⟩. No isometry or normalization condition is imposed on U,VU,VU,V. The case m=0m=0m=0 is included and gives the zero matrix.

QAlgorithms.Papers.Independent.Advance50.P05.fidelityBall

For any finite type III with decidable equality, any complex I×II\times II×I matrix ρ\rhoρ, and any real δ\deltaδ, this is the set

{r: r⪰0, Re⁡Tr⁡r≤1,1−δ2≤(Re⁡Tr⁡C⋅ ⁣[C⋅(ρ) r C⋅(ρ)])2},\left\{r:\ r\succeq0,\ \operatorname{Re}\operatorname{Tr}r\le1,\quad 1-\delta^2\le \left(\operatorname{Re}\operatorname{Tr} \mathcal C_{\sqrt{\cdot}}\!\left[ \mathcal C_{\sqrt{\cdot}}(\rho)\,r\,\mathcal C_{\sqrt{\cdot}}(\rho) \right]\right)^2\right\},{r: r⪰0, ReTrr≤1,1−δ2≤(ReTrC⋅​​[C⋅​​(ρ)rC⋅​​(ρ)])2},

where Cf\mathcal C_fCf​ denotes real continuous functional calculus. There is no positivity or normalization assumption on the center ρ\rhoρ, no requirement that δ≥0\delta\ge0δ≥0, and no requirement that rrr have positive trace; in particular, the zero matrix belongs whenever δ2≥1\delta^2\ge1δ2≥1. The type III may be empty.

QAlgorithms.Papers.Independent.Advance50.P05.finiteLOCCOn

For finite types A,B,C,DA,B,C,DA,B,C,D and any function LLL from complex matrices on A×BA\times BA×B to complex matrices on C×DC\times DC×D, this predicate first reindexes each type by its specified bijection with the integers from zero to one less than its cardinality, then requires the resulting function to be generated by the following inductive rules: the identity on any pair of finite-dimensional local spaces is allowed; Alice may choose finitely many matrices Ei:Ca→ChE_i:\mathbb C^a\to\mathbb C^hEi​:Ca→Ch with ∑iEi†Ei=Ia\sum_iE_i^\dagger E_i=I_a∑i​Ei†​Ei​=Ia​, apply (Ei⊗I)X(Ei⊗I)†(E_i\otimes I)X(E_i\otimes I)^\dagger(Ei​⊗I)X(Ei​⊗I)†, continue with an allowed operation chosen separately for each iii, and sum the resulting matrices; Bob may do the corresponding operation with I⊗EiI\otimes E_iI⊗Ei​ and ∑iEi†Ei=Ib\sum_iE_i^\dagger E_i=I_b∑i​Ei†​Ei​=Ib​. Only functions having a finite derivation from these rules satisfy the predicate. Intermediate dimensions and outcome counts are natural numbers and may be zero; an empty outcome family still has to satisfy its completeness equation. No nonemptiness or separate channel assumption is imposed on LLL.

QAlgorithms.Papers.Independent.Advance50.P05.forwardSequenceScore

For finite types A,BA,BA,B with decidable equality, an arbitrary sequence ρk\rho_kρk​ of complex matrices on Ak+1×Bk+1A^{k+1}\times B^{k+1}Ak+1×Bk+1, and a preprocessing object PkP_kPk​ on Ak+1A^{k+1}Ak+1 for every natural kkk, this definition is the following extended-real infimum. Each PkP_kPk​ supplies positive output dimension ckc_kck​, positive outcome count sks_ksk​, a natural Kraus count hkh_khk​, and matrices Kx,j(k):CAk+1→CckK^{(k)}_{x,j}:\mathbb C^{A^{k+1}}\to\mathbb C^{c_k}Kx,j(k)​:CAk+1→Cck​ satisfying ∑x<sk,j<hk(Kx,j(k))∗Kx,j(k)=I\sum_{x<s_k,j<h_k}(K^{(k)}_{x,j})^{*}K^{(k)}_{x,j}=I∑x<sk​,j<hk​​(Kx,j(k)​)∗Kx,j(k)​=I. Define a matrix RkR_kRk​ on {0,…,ck−1}×(Bk+1×{0,…,sk−1})\{0,\ldots,c_k-1\}\times(B^{k+1}\times\{0,\ldots,s_k-1\}){0,…,ck​−1}×(Bk+1×{0,…,sk​−1}) by

(Rk)(u,(b,x)),(v,(b′,y))={∑j<hk∑a,a′∈Ak+1Kx,j(k)(u,a) (ρk)(a,b),(a′,b′) Kx,j(k)(v,a′)‾,x=y,0,x≠y.(R_k)_{(u,(b,x)),(v,(b',y))} = \begin{cases} \displaystyle \sum_{j<h_k}\sum_{a,a'\in A^{k+1}} K^{(k)}_{x,j}(u,a)\,(\rho_k)_{(a,b),(a',b')}\, \overline{K^{(k)}_{x,j}(v,a')},&x=y,\\ 0,&x\ne y. \end{cases}(Rk​)(u,(b,x)),(v,(b′,y))​=⎩⎨⎧​j<hk​∑​a,a′∈Ak+1∑​Kx,j(k)​(u,a)(ρk​)(a,b),(a′,b′)​Kx,j(k)​(v,a′)​,0,​x=y,x=y.​

The score is

inf⁡σk≥0Tr⁡σk=1 ∀ksup⁡{γ∈R:lim inf⁡k→∞Re⁡Tr⁡ ⁣[f(Δk)Δk]=1},Δk=Rk−2(k+1)γ(Ick⊗σk),f(t)=1{t≥0},\inf_{\substack{\sigma_k\ge0\\ \operatorname{Tr}\sigma_k=1\ \forall k}} \sup\left\{\gamma\in\mathbb R: \liminf_{k\to\infty} \operatorname{Re}\operatorname{Tr}\!\left[f(\Delta_k)\Delta_k\right]=1 \right\}, \qquad \Delta_k=R_k-2^{(k+1)\gamma}(I_{c_k}\otimes\sigma_k), \quad f(t)=\mathbf1_{\{t\ge0\}},σk​≥0Trσk​=1 ∀k​inf​sup{γ∈R:k→∞liminf​ReTr[f(Δk​)Δk​]=1},Δk​=Rk​−2(k+1)γ(Ick​​⊗σk​),f(t)=1{t≥0}​,

where σk\sigma_kσk​ acts on Bk+1×{0,…,sk−1}B^{k+1}\times\{0,\ldots,s_k-1\}Bk+1×{0,…,sk​−1}, fff is applied by real functional calculus, and the inner limit inferior is taken in R\mathbb RR. The infimum and supremum are extended-real operations, with empty infimum +∞+\infty+∞ and empty supremum −∞-\infty−∞. There is no positivity or normalization assumption on ρk\rho_kρk​, no bound on the preprocessing sizes, and no nonemptiness assumption on A,BA,BA,B; in particular, empty BBB leaves no admissible sequence σk\sigma_kσk​.

QAlgorithms.Papers.Independent.Advance50.P05.identityForward

For every pair of finite types A,BA,BA,B with decidable equality, possibly empty, this defines a forward protocol from A×BA\times BA×B to A×BA\times BA×B. Its outcome-count parameter is 000, so its actual outcome set has 0+1=10+1=10+1=1 element. Alice's instrument has one Kraus operator, IAI_AIA​, and Bob's decoder for the sole outcome is the identity map X↦XX\mapsto XX↦X. The decoder is supplied with a channel representation using the single Kraus operator IBI_BIB​, satisfying IB†IB=IBI_B^\dagger I_B=I_BIB†​IB​=IB​. The protocol's operation, obtained by applying Alice's branch on the first subsystem and Bob's decoder on the second and summing over outcomes, is consequently X↦XX\mapsto XX↦X.

QAlgorithms.Papers.Independent.Advance50.P05.identityInstrument

For every finite type AAA with decidable equality, including the empty type, this defines an instrument from AAA to AAA with one outcome and one Kraus operator for that outcome. Its sole Kraus operator is IAI_AIA​, and its completeness requirement is IA†IA=IAI_A^\dagger I_A=I_AIA†​IA​=IA​. Thus its only branch maps every complex matrix XXX on AAA to IAXIA†=XI_AXI_A^\dagger=XIA​XIA†​=X.

QAlgorithms.Papers.Independent.Advance50.P05.petzTwo

For any finite type III with decidable equality and arbitrary complex I×II\times II×I matrices ρ,σ\rho,\sigmaρ,σ, define g(0)=0g(0)=0g(0)=0 and g(x)=x−1g(x)=x^{-1}g(x)=x−1 for real x≠0x\ne0x=0, and let Cg(σ)\mathcal C_g(\sigma)Cg​(σ) denote real continuous functional calculus applied to this function. If

ker⁡σ⊆ker⁡ρ,\ker\sigma\subseteq\ker\rho,kerσ⊆kerρ,

the defined value is log⁡2t\log_2 tlog2​t when t=Re⁡Tr⁡(ρ2Cg(σ))>0t=\operatorname{Re}\operatorname{Tr}(\rho^2\mathcal C_g(\sigma))>0t=ReTr(ρ2Cg​(σ))>0, and is −∞-\infty−∞ when t≤0t\le0t≤0. If the kernel inclusion fails, the value is +∞+\infty+∞. No positivity, normalization, or nonzero hypothesis is imposed on either matrix, and III may be empty; for empty III, the inclusion holds and the value is −∞-\infty−∞.

QAlgorithms.Papers.Independent.Advance50.P05.smoothedTwo

For finite types A,BA,BA,B with decidable equality, any complex matrix ρ\rhoρ indexed by A×BA\times BA×B, and any real δ\deltaδ, write

F0(X,Y)=Re⁡Tr⁡C⋅ ⁣[C⋅(X) Y C⋅(X)],F_0(X,Y)=\operatorname{Re}\operatorname{Tr} \mathcal C_{\sqrt{\cdot}}\!\left[ \mathcal C_{\sqrt{\cdot}}(X)\,Y\,\mathcal C_{\sqrt{\cdot}}(X)\right],F0​(X,Y)=ReTrC⋅​​[C⋅​​(X)YC⋅​​(X)],

where Cf\mathcal C_fCf​ denotes real continuous functional calculus. For matrices r,Sr,Sr,S, define H(r,S)=+∞H(r,S)=+\inftyH(r,S)=+∞ if ker⁡S⊈ker⁡r\ker S\nsubseteq\ker rkerS⊈kerr; otherwise define H(r,S)=ℓ(Re⁡Tr⁡[r2Cg(S)])H(r,S)=\ell(\operatorname{Re}\operatorname{Tr}[r^2\mathcal C_g(S)])H(r,S)=ℓ(ReTr[r2Cg​(S)]), where g(0)=0g(0)=0g(0)=0, g(x)=x−1g(x)=x^{-1}g(x)=x−1 for x≠0x\ne0x=0, and ℓ(t)=log⁡2t\ell(t)=\log_2tℓ(t)=log2​t for t>0t>0t>0 and ℓ(t)=−∞\ell(t)=-\inftyℓ(t)=−∞ for t≤0t\le0t≤0. The defined value is

inf⁡r⪰0, Re⁡Tr⁡r≤11−δ2≤F0(ρ,r)2 inf⁡σ∈CB×Bσ⪰0, Tr⁡σ=1H(r,IA⊗σ).\inf_{\substack{r\succeq0,\ \operatorname{Re}\operatorname{Tr}r\le1\\ 1-\delta^2\le F_0(\rho,r)^2}} \ \inf_{\substack{\sigma\in\mathbb C^{B\times B}\\ \sigma\succeq0,\ \operatorname{Tr}\sigma=1}} H(r,I_A\otimes\sigma).r⪰0, ReTrr≤11−δ2≤F0​(ρ,r)2​inf​ σ∈CB×Bσ⪰0, Trσ=1​inf​H(r,IA​⊗σ).

Both optimizations are infima in the extended reals, with an empty infimum equal to +∞+\infty+∞. There is no density assumption on ρ\rhoρ, no restriction on δ\deltaδ, and no nonemptiness assumption on either type. Zero is allowed as an outer candidate; in particular, if BBB is nonempty and δ2≥1\delta^2\ge1δ2≥1, this candidate makes the value −∞-\infty−∞.

QAlgorithms.Papers.Independent.Advance50.P05.smoothedZero

For finite types A,BA,BA,B with decidable equality, any complex matrix ρ\rhoρ indexed by A×BA\times BA×B, and any real δ\deltaδ, define

F0(X,Y)=Re⁡Tr⁡C⋅ ⁣[C⋅(X) Y C⋅(X)],ℓ(t)={log⁡2t,t>0,−∞,t≤0,F_0(X,Y)=\operatorname{Re}\operatorname{Tr} \mathcal C_{\sqrt{\cdot}}\!\left[ \mathcal C_{\sqrt{\cdot}}(X)\,Y\,\mathcal C_{\sqrt{\cdot}}(X)\right], \qquad \ell(t)= \begin{cases}\log_2t,&t>0,\\-\infty,&t\le0,\end{cases}F0​(X,Y)=ReTrC⋅​​[C⋅​​(X)YC⋅​​(X)],ℓ(t)={log2​t,−∞,​t>0,t≤0,​

where Cf\mathcal C_fCf​ denotes real continuous functional calculus. The defined value is

sup⁡r⪰0, Re⁡Tr⁡r≤11−δ2≤F0(ρ,r)2 inf⁡σ⪰0Tr⁡σ=1−ℓ ⁣(Re⁡Tr⁡[Πr(IA⊗σ)]),\sup_{\substack{r\succeq0,\ \operatorname{Re}\operatorname{Tr}r\le1\\ 1-\delta^2\le F_0(\rho,r)^2}} \ \inf_{\substack{\sigma\succeq0\\\operatorname{Tr}\sigma=1}} -\ell\!\left(\operatorname{Re}\operatorname{Tr} [\Pi_r(I_A\otimes\sigma)]\right),r⪰0, ReTrr≤11−δ2≤F0​(ρ,r)2​sup​ σ⪰0Trσ=1​inf​−ℓ(ReTr[Πr​(IA​⊗σ)]),

where σ\sigmaσ is indexed by BBB and Πr\Pi_rΠr​ is the orthogonal projector onto the range of rrr. Thus the outer optimization is a supremum, while the inner optimization is an infimum. There is no density assumption on ρ\rhoρ, no restriction on δ\deltaδ, and no exclusion of r=0r=0r=0; an empty outer set gives −∞-\infty−∞, and an empty inner set gives +∞+\infty+∞. Empty AAA or BBB is allowed.

QAlgorithms.Papers.Independent.Advance50.P05.spectralCoherent

For families of finite types Ak,BkA_k,B_kAk​,Bk​, each with decidable equality, and an arbitrary sequence ρk\rho_kρk​ of complex matrices on Ak×BkA_k\times B_kAk​×Bk​, this definition takes the extended-real infimum over all sequences of positive semidefinite matrices σk\sigma_kσk​ on BkB_kBk​ with Tr⁡σk=1\operatorname{Tr}\sigma_k=1Trσk​=1, of the quantity

sup⁡{γ∈R:lim inf⁡k→∞Re⁡Tr⁡ ⁣[f(Δk)Δk]=1},Δk=ρk−2(k+1)γ(IAk⊗σk),f(t)=1{t≥0},\sup\left\{ \gamma\in\mathbb R: \liminf_{k\to\infty} \operatorname{Re}\operatorname{Tr}\!\left[f(\Delta_k)\Delta_k\right]=1 \right\}, \qquad \Delta_k=\rho_k-2^{(k+1)\gamma}(I_{A_k}\otimes\sigma_k), \qquad f(t)=\mathbf1_{\{t\ge0\}},sup{γ∈R:k→∞liminf​ReTr[f(Δk​)Δk​]=1},Δk​=ρk​−2(k+1)γ(IAk​​⊗σk​),f(t)=1{t≥0}​,

where fff is applied by real functional calculus. Each supremum is in the extended reals, while its defining limit inferior is real-valued. No positivity or normalization of ρk\rho_kρk​ and no nonemptiness of the index types are assumed. If some BkB_kBk​ is empty, there is no admissible density-matrix sequence and the outer infimum is +∞+\infty+∞; an empty set of γ\gammaγ for a given sequence has supremum −∞-\infty−∞.

QAlgorithms.Papers.Independent.Advance50.P05.twoCoherent

For finite types A,BA,BA,B with decidable equality and any complex matrix ρ\rhoρ indexed by A×BA\times BA×B, this defines an extended-real infimum over all complex B×BB\times BB×B matrices σ⪰0\sigma\succeq0σ⪰0 with Tr⁡σ=1\operatorname{Tr}\sigma=1Trσ=1. For each such σ\sigmaσ, put S=IA⊗σS=I_A\otimes\sigmaS=IA​⊗σ, define g(0)=0g(0)=0g(0)=0 and g(x)=x−1g(x)=x^{-1}g(x)=x−1 for real x≠0x\ne0x=0, and set

H(ρ,S)={log⁡2 ⁣(Re⁡Tr⁡[ρ2Cg(S)]),ker⁡S⊆ker⁡ρ and Re⁡Tr⁡[ρ2Cg(S)]>0,−∞,ker⁡S⊆ker⁡ρ and Re⁡Tr⁡[ρ2Cg(S)]≤0,+∞,ker⁡S⊈ker⁡ρ,H(\rho,S)= \begin{cases} \log_2\!\left(\operatorname{Re}\operatorname{Tr}[\rho^2\mathcal C_g(S)]\right), &\ker S\subseteq\ker\rho\ \text{and }\operatorname{Re}\operatorname{Tr}[\rho^2\mathcal C_g(S)]>0,\\ -\infty, &\ker S\subseteq\ker\rho\ \text{and }\operatorname{Re}\operatorname{Tr}[\rho^2\mathcal C_g(S)]\le0,\\ +\infty,&\ker S\nsubseteq\ker\rho, \end{cases}H(ρ,S)=⎩⎨⎧​log2​(ReTr[ρ2Cg​(S)]),−∞,+∞,​kerS⊆kerρ and ReTr[ρ2Cg​(S)]>0,kerS⊆kerρ and ReTr[ρ2Cg​(S)]≤0,kerS⊈kerρ,​

where Cg\mathcal C_gCg​ denotes real continuous functional calculus. The value is inf⁡σH(ρ,IA⊗σ)\inf_\sigma H(\rho,I_A\otimes\sigma)infσ​H(ρ,IA​⊗σ). No density assumption is made on ρ\rhoρ, and empty types are allowed; if BBB is empty, the infimum is +∞+\infty+∞.

QAlgorithms.Papers.Independent.Advance50.P05.twoWaySequenceScore

Let A,BA,BA,B be finite types with decidable equality, possibly empty, and put Ak={0,…,k}→AA_k=\{0,\ldots,k\}\to AAk​={0,…,k}→A and Bk={0,…,k}→BB_k=\{0,\ldots,k\}\to BBk​={0,…,k}→B. For any sequence of complex matrices ρk\rho_kρk​ on Ak×BkA_k\times B_kAk​×Bk​, and any sequence PkP_kPk​ of preprocessing operations, the definition assigns the following extended real number. Each PkP_kPk​ specifies positive integers ak,bka_k,b_kak​,bk​ and a map Λk\Lambda_kΛk​ from matrices on Ak×BkA_k\times B_kAk​×Bk​ to matrices on Fin⁡(ak)×Fin⁡(bk)\operatorname{Fin}(a_k)\times\operatorname{Fin}(b_k)Fin(ak​)×Fin(bk​), obtainable, after identifying finite bases with numbered bases, from the smallest class containing identity maps and closed under a complete finite Kraus operation by either party followed by branch-dependent operations from that class and summation over branches; completeness means ∑jEj†Ej=I\sum_j E_j^\dagger E_j=I∑j​Ej†​Ej​=I. Write τk=Λk(ρk)\tau_k=\Lambda_k(\rho_k)τk​=Λk​(ρk​). For every sequence of density matrices σk\sigma_kσk​ on Fin⁡(bk)\operatorname{Fin}(b_k)Fin(bk​), where a density matrix is positive semidefinite with trace 111, define

J(τ,σ)=sup⁡{γ∈R:lim inf⁡k→∞Re⁡Tr⁡ ⁣[W ⁣(τk−2(k+1)γ(Iak⊗σk))(τk−2(k+1)γ(Iak⊗σk))]=1},J(\tau,\sigma)= \sup\left\{\gamma\in\mathbb R: \liminf_{k\to\infty} \operatorname{Re}\operatorname{Tr}\!\left[ W\!\left(\tau_k-2^{(k+1)\gamma}(I_{a_k}\otimes\sigma_k)\right) \left(\tau_k-2^{(k+1)\gamma}(I_{a_k}\otimes\sigma_k)\right) \right]=1\right\},J(τ,σ)=sup{γ∈R:k→∞liminf​ReTr[W(τk​−2(k+1)γ(Iak​​⊗σk​))(τk​−2(k+1)γ(Iak​​⊗σk​))]=1},

where W(X)W(X)W(X) is the functional-calculus value at XXX of the real function equal to 111 on [0,∞)[0,\infty)[0,∞) and 000 elsewhere, and the supremum is taken in the extended reals. The score is inf⁡σJ(τ,σ)\inf_{\sigma}J(\tau,\sigma)infσ​J(τ,σ), also in the extended reals. No positivity, normalization, or Hermiticity assumption is imposed on the input matrices ρk\rho_kρk​; the formulas use the total functional-calculus operation as supplied.

QAlgorithms.Papers.Independent.Advance50.P05.zeroCoherent

For finite types A,BA,BA,B with decidable equality and any complex matrix ρ\rhoρ indexed by A×BA\times BA×B, let Πρ\Pi_\rhoΠρ​ be the orthogonal projector onto the range of ρ\rhoρ. This defines the extended-real infimum

inf⁡σ∈CB×Bσ⪰0, Tr⁡σ=1{−log⁡2 ⁣(Re⁡Tr⁡[Πρ(IA⊗σ)]),Re⁡Tr⁡[Πρ(IA⊗σ)]>0,+∞,otherwise.\inf_{\substack{\sigma\in\mathbb C^{B\times B}\\ \sigma\succeq0,\ \operatorname{Tr}\sigma=1}} \begin{cases} -\log_2\!\left(\operatorname{Re}\operatorname{Tr} [\Pi_\rho(I_A\otimes\sigma)]\right), &\operatorname{Re}\operatorname{Tr}[\Pi_\rho(I_A\otimes\sigma)]>0,\\ +\infty,&\text{otherwise}. \end{cases}σ∈CB×Bσ⪰0, Trσ=1​inf​{−log2​(ReTr[Πρ​(IA​⊗σ)]),+∞,​ReTr[Πρ​(IA​⊗σ)]>0,otherwise.​

No positivity or normalization assumption is made on ρ\rhoρ, and neither type is required to be nonempty. If BBB is empty, there are no admissible σ\sigmaσ, and the infimum is +∞+\infty+∞.

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

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 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