Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Multipartite quantum correlations and local recoverability

Definition
QAlgorithms_Papers_Independent_Gap20_P09

by Goku · Oct 21, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

The objects the formalized statements of Multipartite quantum correlations and local recoverability (arXiv:1412.0333) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • multipartiteInformationNats: PDF p.2,(1.3): total correlation in nats; the accepted formula is in bits.
  • informationGap: PDF pp.4–5,(2.1),(3.1): both marginals come from this same paired state.
  • multipartiteTensorAction: PDF pp.4,6: heterogeneous tensor channel, expanded on matrix units. Both indices of every input register are retained, including entangled inputs.
  • recover: PDF p.4,(2.1): the tensor of local recovery maps acts on the primed marginal.
  • traceRecover: PDF p.6,(3.13): a local trace-out followed by recovery, on all operators.
  • subsetRecovery: PDF p.6, Remark 2: retain identity on precisely the unselected pairs.
  • subsetWeight: PDF p.6,(3.13): all-zero strings use one, avoiding division by zero.
  • selectUnprimed: PDF p.5: partial trace of unselected unprimed factors, keeping ALL primed factors and both indices on every retained factor.
  • chainTerm: PDF p.5,(3.1): CMI I(A_i; A_pre A'_others | A'_i), written as the four entropies H(A_i A'_i)-H(A'_i)-H(A_i A_pre A'_all)+H(A_pre A'_all). The permutation orders PAIRS, not independent permutations of their factors.
  • cemi: PDF p.9,(5.1): half the infimum over every positive finite local ancillary dimension and every normalized extension. No optimizer or dimension cap is assumed.
  • multipartiteSquashedNats: PDF p.12,(5.24): unrestricted-extension squashed entanglement, half-infimum of TOTAL conditional correlation, converted from the accepted bits to nats.
  • LocalMeasurement: PDF p.7,(4.3): finite POVMs with arbitrary positive outcome dimension.
  • povmChannelAction: PDF p.7,(4.3): complex trace on arbitrary operators, hence correct on reference off-diagonal blocks. The output basis is X, correcting the printed Ai label.
  • msqDiscord: PDF p.6,(4.1): the SUPREMUM over all local finite POVMs; no attainment premise.
  • IsEBChannel: PDF pp.4,7–9: finite-dimensional EB channels, equivalently a finite POVM followed by preparation of normalized states. The CPTP property is retained explicitly.
  • fullySeparableTraceDistance: PDF p.20,(A.3): distance to all fully separable states on these SAME factors. The accepted predicate uses arbitrary finite mixtures of all-party mixed products.
  • pairedCopies: PDF p.18,(7.1): n copies, grouped by party rather than interleaved by copy.
  • recoveryRelativeEntropy: PDF p.18,(7.1): exact infimum at each blocklength; +infinity survives support failure. Minima and finite limiting value are conclusions of Proposition 7.
  • replicaHead: PDF p.20,(A.2): retain the first replica of each register in the accepted replica basis. Its first party has multiplicity one; all others have k+1.
  • replicaMarginal: PDF p.20,(A.2): reuse the accepted full partial trace, selecting copy zero on every party and retaining both matrix indices on the surviving registers.
  • IsMultipartiteExtendible: PDF p.20,(A.2): independently permutation-INVARIANT mixed extensions. No symmetric-subspace (bosonic) support restriction is imposed.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_MatrixDistances
import Definitions.Def_QAlgorithms_Defs_Channel
import Definitions.Def_QAlgorithms_Papers_Independent_Claimed50_P33
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P56
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P21
import Definitions.Def_QAlgorithms_Papers_Independent_Gap48_P22

/-! Wilde, arXiv:1412.0333v3. Finite, nonzero local dimensions; natural
logarithms and the full trace norm. All new definitions are paper local.
The operational nodes and three source-level obstacles are inventoried in HARD.md.
Compilation is pending the authorized batch handoff. -/

noncomputable section

namespace QAlgorithms.Papers.Independent.Gap20.P09

open scoped Matrix ComplexConjugate ComplexOrder ENNReal Topology
open Filter

attribute [local instance] Classical.propDecidable Classical.decEq

open QAlgorithms.Papers.Independent.Information100.P56 (entropy)

-- Exact accepted heterogeneous and selected-register bases; no local aliases.
open QAlgorithms.Papers.Independent.Claimed50.P33 (RegisterBasis SubBasis)
open QAlgorithms.Papers.Independent.Gap48.P22
  (ReplicaBasis partyCopyMultiplicity selectedReplicaMarginal)

/-- PDF p.2,(1.3): total correlation in nats; the accepted formula is in bits. -/
def multipartiteInformationNats {l : ℕ} {D : Fin l → Type} [∀ i, Fintype (D i)]
    (rho : Matrix (RegisterBasis D) (RegisterBasis D) ℂ) : ℝ :=
  Real.log 2 * QAlgorithms.Papers.Independent.Claimed50.P33.info .total rho
    (QAlgorithms.Papers.Independent.Claimed50.P33.singleParties l) ∅

/-- PDF pp.4–5,(2.1),(3.1): both marginals come from this same paired state. -/
def informationGap {l : ℕ} {D F : Fin l → Type}
    [∀ i, Fintype (D i)] [∀ i, Fintype (F i)]
    (rho : Matrix (RegisterBasis (fun i => D i × F i)) (RegisterBasis (fun i => D i × F i)) ℂ) : ℝ :=
  multipartiteInformationNats rho - multipartiteInformationNats
    (QAlgorithms.Papers.Independent.Claimed50.P33.primedMarginal rho)

/-- PDF pp.4,6: heterogeneous tensor channel, expanded on matrix units.
Both indices of every input register are retained, including entangled inputs. -/
def multipartiteTensorAction {l : ℕ} {D F : Fin l → Type} [∀ i, Fintype (D i)]
    (Phi : (i : Fin l) → Superop (D i) (F i)) : Superop (RegisterBasis D) (RegisterBasis F) :=
  fun rho a b => ∑ x : RegisterBasis D, ∑ y : RegisterBasis D,
    rho x y * ∏ i, Phi i (Matrix.single (x i) (y i) 1) (a i) (b i)

/-- PDF p.4,(2.1): the tensor of local recovery maps acts on the primed marginal. -/
def recover {l : ℕ} {D F : Fin l → Type}
    [∀ i, Fintype (D i)] [∀ i, Fintype (F i)]
    (R : (i : Fin l) → Superop (F i) (D i × F i))
    (rho : Matrix (RegisterBasis (fun i => D i × F i)) (RegisterBasis (fun i => D i × F i)) ℂ) :=
  multipartiteTensorAction R (QAlgorithms.Papers.Independent.Claimed50.P33.primedMarginal rho)

/-- PDF p.6,(3.13): a local trace-out followed by recovery, on all operators. -/
def traceRecover {A B : Type} [Fintype A]
    (R : Superop B (A × B)) : Superop (A × B) (A × B) :=
  fun X => R (traceLeft X)

/-- PDF p.6, Remark 2: retain identity on precisely the unselected pairs. -/
def subsetRecovery {l : ℕ} {D F : Fin l → Type}
    [∀ i, Fintype (D i)] [∀ i, Fintype (F i)]
    (R : (i : Fin l) → Superop (F i) (D i × F i)) (j : Fin l → Bool) :=
  multipartiteTensorAction (fun i => if j i then traceRecover (R i) else id)

/-- PDF p.6,(3.13): all-zero strings use one, avoiding division by zero. -/
def subsetWeight {l : ℕ} (j : Fin l → Bool) : ℕ :=
  max 1 ((Finset.univ.filter fun i => j i = true).card)

/-- PDF p.5: partial trace of unselected unprimed factors, keeping ALL primed
factors and both indices on every retained factor. -/
def selectUnprimed {l : ℕ} {D F : Fin l → Type} [∀ i, Fintype (D i)]
    (rho : Matrix (RegisterBasis (fun i => D i × F i)) (RegisterBasis (fun i => D i × F i)) ℂ)
    (s : Finset (Fin l)) : Matrix (SubBasis D s × RegisterBasis F) (SubBasis D s × RegisterBasis F) ℂ :=
  fun a b => ∑ x : RegisterBasis D, ∑ y : RegisterBasis D,
    if (∀ i (hi : i ∈ s), x i = a.1 ⟨i,hi⟩ ∧ y i = b.1 ⟨i,hi⟩) ∧
        (∀ i, i ∉ s → x i = y i)
    then rho (fun i => (x i,a.2 i)) (fun i => (y i,b.2 i)) else 0

/-- PDF p.5,(3.1): CMI I(A_i; A_pre A'_others | A'_i), written as the
four entropies H(A_i A'_i)-H(A'_i)-H(A_i A_pre A'_all)+H(A_pre A'_all).
The permutation orders PAIRS, not independent permutations of their factors. -/
def chainTerm {l : ℕ} {D F : Fin l → Type}
    [∀ i, Fintype (D i)] [∀ i, Fintype (F i)]
    (rho : Matrix (RegisterBasis (fun i => D i × F i)) (RegisterBasis (fun i => D i × F i)) ℂ)
    (order : Equiv.Perm (Fin l)) (k : Fin l) : ℝ :=
  let i := order k
  let pre := (Finset.univ.filter fun r : Fin l => r.val < k.val).image order
  let pair := QAlgorithms.Papers.Independent.Claimed50.P33.registerMarginal
    (QAlgorithms.Papers.Independent.Claimed50.P33.trivialExtension rho) {i}
  let primed := QAlgorithms.Papers.Independent.Claimed50.P33.registerMarginal
    (QAlgorithms.Papers.Independent.Claimed50.P33.trivialExtension
      (QAlgorithms.Papers.Independent.Claimed50.P33.primedMarginal rho)) {i}
  entropy pair - entropy primed - entropy (selectUnprimed rho (insert i pre)) +
    entropy (selectUnprimed rho pre)

/-- PDF p.9,(5.1): half the infimum over every positive finite local ancillary
dimension and every normalized extension. No optimizer or dimension cap is assumed. -/
def cemi {l : ℕ} {D : Fin l → Type} [∀ i, Fintype (D i)]
    (rho : Matrix (RegisterBasis D) (RegisterBasis D) ℂ) : ℝ :=
  (1 / 2 : ℝ) * sInf {v : ℝ | ∃ d : Fin l → ℕ, (∀ i, 0 < d i) ∧
    ∃ sigma : Matrix (RegisterBasis (fun i => D i × Fin (d i)))
      (RegisterBasis (fun i => D i × Fin (d i))) ℂ,
    IsDensityMatrix sigma ∧
    QAlgorithms.Papers.Independent.Claimed50.P33.unprimedMarginal sigma = rho ∧
    v = informationGap sigma}

/-- PDF p.12,(5.24): unrestricted-extension squashed entanglement, half-infimum
of TOTAL conditional correlation, converted from the accepted bits to nats. -/
def multipartiteSquashedNats {l : ℕ} {D : Fin l → Type} [∀ i, Fintype (D i)]
    (rho : Matrix (RegisterBasis D) (RegisterBasis D) ℂ) : ℝ :=
  Real.log 2 * QAlgorithms.Papers.Independent.Claimed50.P33.halfExtensionSquashed .total rho

/-- PDF p.7,(4.3): finite POVMs with arbitrary positive outcome dimension. -/
structure LocalMeasurement (A : Type) [Fintype A] where
  outcomes : ℕ
  positive : 0 < outcomes
  effects : Fin outcomes → Matrix A A ℂ
  povm : IsPOVM effects

/-- PDF p.7,(4.3): complex trace on arbitrary operators, hence correct on
reference off-diagonal blocks. The output basis is X, correcting the printed Ai label. -/
def povmChannelAction {A : Type} [Fintype A] (M : LocalMeasurement A) :
    Superop A (Fin M.outcomes) :=
  fun X x y => if x = y then ((M.effects x) * X).trace else 0

/-- PDF p.6,(4.1): the SUPREMUM over all local finite POVMs; no attainment premise. -/
def msqDiscord {l : ℕ} {D : Fin l → Type} [∀ i, Fintype (D i)]
    (rho : Matrix (RegisterBasis D) (RegisterBasis D) ℂ) : ℝ :=
  multipartiteInformationNats rho - sSup {v : ℝ | ∃ M : (i : Fin l) → LocalMeasurement (D i),
    v = multipartiteInformationNats (multipartiteTensorAction (fun i => povmChannelAction (M i)) rho)}

/-- PDF pp.4,7–9: finite-dimensional EB channels, equivalently a finite POVM
followed by preparation of normalized states. The CPTP property is retained explicitly. -/
def IsEBChannel {A : Type} [Fintype A] (E : Superop A A) : Prop :=
  IsChannel E ∧ ∃ M : LocalMeasurement A,
    ∃ tau : Fin M.outcomes → Matrix A A ℂ,
    (∀ x, IsDensityMatrix (tau x)) ∧
    ∀ X, E X = ∑ x, (((M.effects x) * X).trace) • tau x

/-- PDF p.20,(A.3): distance to all fully separable states on these SAME factors.
The accepted predicate uses arbitrary finite mixtures of all-party mixed products. -/
def fullySeparableTraceDistance {l : ℕ} (s : QAlgorithms.Papers.Independent.Claimed50.P33.FiniteState l) : ℝ :=
  sInf {v : ℝ | ∃ sigma : Matrix (RegisterBasis (fun i => Fin (s.dims i)))
      (RegisterBasis (fun i => Fin (s.dims i))) ℂ,
    ∃ h : IsDensityMatrix sigma,
    QAlgorithms.Papers.Independent.Claimed50.P33.IsMixedFullySeparable
      ⟨s.dims,s.positive,sigma,h⟩ ∧ v = traceNorm (s.rho - sigma)}

/-- PDF p.18,(7.1): n copies, grouped by party rather than interleaved by copy. -/
def pairedCopies {l : ℕ} {D F : Fin l → Type}
    (rho : Matrix (RegisterBasis (fun i => D i × F i)) (RegisterBasis (fun i => D i × F i)) ℂ)
    (n : ℕ) : Matrix (RegisterBasis (fun i => (Fin n → D i) × (Fin n → F i)))
      (RegisterBasis (fun i => (Fin n → D i) × (Fin n → F i))) ℂ :=
  fun x y => ∏ t, rho (fun i => ((x i).1 t,(x i).2 t))
    (fun i => ((y i).1 t,(y i).2 t))

/-- PDF p.18,(7.1): exact infimum at each blocklength; +infinity survives
support failure. Minima and finite limiting value are conclusions of Proposition 7. -/
def recoveryRelativeEntropy {l : ℕ} {D F : Fin l → Type}
    [∀ i, Fintype (D i)] [∀ i, Fintype (F i)]
    (rho : Matrix (RegisterBasis (fun i => D i × F i)) (RegisterBasis (fun i => D i × F i)) ℂ)
    (n : ℕ) : EReal :=
  sInf {v : EReal | ∃ R : (i : Fin l) →
      Superop (Fin n → F i) ((Fin n → D i) × (Fin n → F i)),
    (∀ i, IsChannel (R i)) ∧ v =
    QAlgorithms.Papers.Independent.Dependency50.P21.relativeEntropy
      (pairedCopies rho n) (recover R (pairedCopies rho n))}

/-- PDF p.20,(A.2): retain the first replica of each register in the accepted
replica basis. Its first party has multiplicity one; all others have k+1. -/
def replicaHead {m k : ℕ} {d : Fin (m+1) → ℕ}
    (x : ReplicaBasis (fun i => Fin (d i)) (k+1)) : RegisterBasis (fun i => Fin (d i)) :=
  fun i => x i ⟨0, by
    dsimp [partyCopyMultiplicity]
    split <;> exact Nat.zero_lt_succ _⟩

/-- PDF p.20,(A.2): reuse the accepted full partial trace, selecting copy zero
on every party and retaining both matrix indices on the surviving registers. -/
def replicaMarginal {m k : ℕ} {d : Fin (m+1) → ℕ}
    (omega : Matrix (ReplicaBasis (fun i => Fin (d i)) (k+1))
      (ReplicaBasis (fun i => Fin (d i)) (k+1)) ℂ) :
    Matrix (RegisterBasis (fun i => Fin (d i))) (RegisterBasis (fun i => Fin (d i))) ℂ :=
  selectedReplicaMarginal omega (fun i => ⟨0, by
    dsimp [partyCopyMultiplicity]
    split <;> exact Nat.zero_lt_succ _⟩)

/-- PDF p.20,(A.2): independently permutation-INVARIANT mixed extensions.
No symmetric-subspace (bosonic) support restriction is imposed. -/
def IsMultipartiteExtendible {m : ℕ}
    (s : QAlgorithms.Papers.Independent.Claimed50.P33.FiniteState (m+1)) (k : ℕ) : Prop :=
  ∃ omega : Matrix (ReplicaBasis (fun i => Fin (s.dims i)) (k+1))
      (ReplicaBasis (fun i => Fin (s.dims i)) (k+1)) ℂ,
    IsDensityMatrix omega ∧ replicaMarginal (m := m) (k := k) (d := s.dims) omega = s.rho ∧
    ∀ (pi : (i : Fin (m+1)) → Equiv.Perm (Fin (partyCopyMultiplicity i (k+1)))) x y,
      omega (fun i r => x i (pi i r)) (fun i r => y i (pi i r)) = omega x y

/-- Empty selected string, PDF p.6: the denominator is exactly two. -/
example {l : ℕ} : subsetWeight (fun _ : Fin l => false) = 1 := by
  simp [subsetWeight]

/-- At zero copies the tensor power is the scalar identity, PDF p.18.
No reciprocal zero occurs in the theorem, which uses positive blocklengths. -/
example {l : ℕ} {D F : Fin l → Type}
    (rho : Matrix (RegisterBasis (fun i => D i × F i)) (RegisterBasis (fun i => D i × F i)) ℂ)
    (x y : RegisterBasis (fun i => (Fin 0 → D i) × (Fin 0 → F i))) :
    pairedCopies rho 0 x y = 1 := by
  simp [pairedCopies]

/-- The measurement map retains the COMPLEX trace even on arbitrary
operator blocks, PDF p.7,(4.3); it does not take a real part prematurely. -/
example {A : Type} [Fintype A] (M : LocalMeasurement A)
    (X : Matrix A A ℂ) (x : Fin M.outcomes) :
    povmChannelAction M X x x = ((M.effects x) * X).trace := by
  simp [povmChannelAction]

/-- Positive extension order one is represented by k=0, PDF p.20,(A.2). -/
example {m : ℕ} {d : Fin (m+1) → ℕ} (x : ReplicaBasis (fun i => Fin (d i)) 1) :
    replicaHead (m := m) (k := 0) (d := d) x 0 =
      x 0 ⟨0, by simp [partyCopyMultiplicity]⟩ := rfl

end QAlgorithms.Papers.Independent.Gap20.P09
Source
Multipartite quantum correlations and local recoverability, arXiv:1412.0333v3, https://arxiv.org/abs/1412.0333v3
Read-back

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

QAlgorithms.Papers.Independent.Gap20.P09.IsEBChannel

For a finite type AAA and a function E:CA×A→CA×AE:\mathbb C^{A\times A}\to\mathbb C^{A\times A}E:CA×A→CA×A, this predicate requires both a finite Kraus representation

E(X)=∑j=0r−1KjXKj†,∑j=0r−1Kj†Kj=IAE(X)=\sum_{j=0}^{r-1}K_jXK_j^\dagger,\qquad \sum_{j=0}^{r-1}K_j^\dagger K_j=I_AE(X)=j=0∑r−1​Kj​XKj†​,j=0∑r−1​Kj†​Kj​=IA​

for some natural number rrr, and the existence of a positive integer qqq, positive semidefinite matrices MxM_xMx​ with ∑xMx=IA\sum_xM_x=I_A∑x​Mx​=IA​, and positive semidefinite matrices τx\tau_xτx​ with tr⁡τx=1\operatorname{tr}\tau_x=1trτx​=1, such that, for every complex matrix XXX,

E(X)=∑x=0q−1tr⁡(MxX) τx.E(X)=\sum_{x=0}^{q-1}\operatorname{tr}(M_xX)\,\tau_x.E(X)=x=0∑q−1​tr(Mx​X)τx​.

The coefficients are the complex traces themselves. The type AAA need not be nonempty, although if it is empty the required trace-one matrices τx\tau_xτx​, together with q>0q>0q>0, make the predicate impossible to satisfy.

QAlgorithms.Papers.Independent.Gap20.P09.IsMultipartiteExtendible

For any natural numbers m,km,km,k, let sss specify positive dimensions did_idi​, 0≤i<m+10\le i<m+10≤i<m+1, and a positive semidefinite trace-one matrix ρ\rhoρ on their product. This predicate asserts the existence of a positive semidefinite trace-one matrix ω\omegaω with one replica of party 000 and k+1k+1k+1 replicas of every other party, whose selected-replica marginal satisfies

ρ(a,b)=∑zzi(0)=ai ∀iω ⁣(z,(zi[0←bi])i),\rho(a,b)= \sum_{\substack{z\\z_i(0)=a_i\ \forall i}} \omega\!\left(z,\bigl(z_i[0\leftarrow b_i]\bigr)_i\right),ρ(a,b)=zzi​(0)=ai​ ∀i​∑​ω(z,(zi​[0←bi​])i​),

and which is invariant under independent permutations of the replicas at every party:

ω ⁣((xi∘πi)i,(yi∘πi)i)=ω(x,y)\omega\!\left((x_i\circ\pi_i)_i,(y_i\circ\pi_i)_i\right)=\omega(x,y)ω((xi​∘πi​)i​,(yi​∘πi​)i​)=ω(x,y)

for every family of permutations πi\pi_iπi​ of the replica indices and every pair of arrays x,yx,yx,y. Party 000's permutation acts on a singleton. The case k=0k=0k=0 is included and allows ρ\rhoρ itself as the extension; when m=0m=0m=0, the sole party has one replica for every kkk.

QAlgorithms.Papers.Independent.Gap20.P09.LocalMeasurement

For any finite type AAA, possibly empty, this structure consists of a natural number q>0q>0q>0 of outcomes and complex matrices MxM_xMx​ indexed by AAA, one for each x∈{0,…,q−1}x\in\{0,\ldots,q-1\}x∈{0,…,q−1}, together with the requirements that every MxM_xMx​ is positive semidefinite and

∑x=0q−1Mx=IA.\sum_{x=0}^{q-1}M_x=I_A.x=0∑q−1​Mx​=IA​.

The number of outcomes must be positive even when AAA is empty.

QAlgorithms.Papers.Independent.Gap20.P09.cemi

For any natural number lll, finite types DiD_iDi​, and arbitrary complex matrix ρ\rhoρ on ∏iDi\prod_iD_i∏i​Di​, this defines

ln⁡22inf⁡σ[∑i(H2(σDiFi)−H2(σFi))−H2(σ)+H2(σF)].\frac{\ln 2}{2}\inf_\sigma \left[ \sum_i\bigl(H_2(\sigma_{D_iF_i})-H_2(\sigma_{F_i})\bigr) -H_2(\sigma)+H_2(\sigma_F) \right].2ln2​σinf​[i∑​(H2​(σDi​Fi​​)−H2​(σFi​​))−H2​(σ)+H2​(σF​)].

The infimum ranges over every choice of positive integers did_idi​, with Fi={0,…,di−1}F_i=\{0,\ldots,d_i-1\}Fi​={0,…,di​−1}, and every positive semidefinite matrix σ\sigmaσ on ∏i(Di×Fi)\prod_i(D_i\times F_i)∏i​(Di​×Fi​) whose trace is 111 and whose unprimed marginal equals ρ\rhoρ, explicitly

ρa,b=∑u∈∏iFiσ((ai,ui))i, ((bi,ui))i.\rho_{a,b}=\sum_{u\in\prod_iF_i} \sigma_{((a_i,u_i))_i,\,((b_i,u_i))_i}.ρa,b​=u∈∏i​Fi​∑​σ((ai​,ui​))i​,((bi​,ui​))i​​.

Here σF\sigma_FσF​ traces out all DiD_iDi​, the other marginals trace out the unnamed coordinates, and H2(X)=−Re⁡tr⁡(f(X))H_2(X)=-\operatorname{Re}\operatorname{tr}(f(X))H2​(X)=−Retr(f(X)) for f(t)=tlog⁡2tf(t)=t\log_2tf(t)=tlog2​t applied by real continuous functional calculus. No assumption makes ρ\rhoρ a density matrix or makes the DiD_iDi​ nonempty; if no such extension exists, the real infimum of the empty set used here is 000. The case l=0l=0l=0 is included, with all register products interpreted as singleton spaces.

QAlgorithms.Papers.Independent.Gap20.P09.chainTerm

For any natural number lll, finite types Di,FiD_i,F_iDi​,Fi​, arbitrary complex matrix ρ\rhoρ on ∏i(Di×Fi)\prod_i(D_i\times F_i)∏i​(Di​×Fi​), permutation π\piπ of {0,…,l−1}\{0,\ldots,l-1\}{0,…,l−1}, and index k<lk<lk<l, put i=π(k)i=\pi(k)i=π(k) and P={π(r):r<k}P=\{\pi(r):r<k\}P={π(r):r<k}. This defines

H(ρDiFi)−H(ρFi)−H(ρDP∪{i}Fall)+H(ρDPFall),H(\rho_{D_iF_i})-H(\rho_{F_i}) -H(\rho_{D_{P\cup\{i\}}F_{\mathrm{all}}}) +H(\rho_{D_PF_{\mathrm{all}}}),H(ρDi​Fi​​)−H(ρFi​​)−H(ρDP∪{i}​Fall​​)+H(ρDP​Fall​​),

where H(X)=−Re⁡tr⁡(f(X))H(X)=-\operatorname{Re}\operatorname{tr}(f(X))H(X)=−Retr(f(X)), with f(t)=tln⁡tf(t)=t\ln tf(t)=tlnt applied by real continuous functional calculus. Each displayed marginal is formed by summing over equal row and column indices of the discarded coordinates: the first retains only the pair Di,FiD_i,F_iDi​,Fi​, the second only FiF_iFi​, and the last two retain every FFF coordinate and precisely the indicated DDD coordinates. No density-matrix or nonemptiness assumptions are imposed. For k=0k=0k=0, PPP is empty, so the last marginal retains only all primed coordinates; for l=0l=0l=0, there is no admissible index kkk.

QAlgorithms.Papers.Independent.Gap20.P09.fullySeparableTraceDistance

For any natural number lll, let sss specify positive integer dimensions did_idi​, 0≤i<l0\le i<l0≤i<l, and a positive semidefinite matrix ρ\rhoρ of trace 111 on ∏i{0,…,di−1}\prod_i\{0,\ldots,d_i-1\}∏i​{0,…,di​−1}. This definition is the real infimum of

∥ρ−σ∥1,∥Z∥1=Re⁡tr⁡Z†Z,\|\rho-\sigma\|_1,\qquad \|Z\|_1=\operatorname{Re}\operatorname{tr}\sqrt{Z^\dagger Z},∥ρ−σ∥1​,∥Z∥1​=RetrZ†Z​,

over positive semidefinite trace-one matrices σ\sigmaσ admitting a representation

σ(a,b)=∑j=0q−1pj∏i=0l−1τji(ai,bi),\sigma(a,b)=\sum_{j=0}^{q-1}p_j\prod_{i=0}^{l-1}\tau_{ji}(a_i,b_i),σ(a,b)=j=0∑q−1​pj​i=0∏l−1​τji​(ai​,bi​),

where qqq is a natural number, pj≥0p_j\ge0pj​≥0, ∑jpj=1\sum_jp_j=1∑j​pj​=1, and each τji\tau_{ji}τji​ is positive semidefinite of trace 111 on the iii-th register. The condition on the weights excludes q=0q=0q=0. The distance uses the full trace norm, and l=0l=0l=0 is permitted, with the product over parties equal to 111.

QAlgorithms.Papers.Independent.Gap20.P09.informationGap

For any natural number lll, finite types Di,FiD_i,F_iDi​,Fi​, and arbitrary complex matrix ρ\rhoρ indexed by ∏i(Di×Fi)\prod_i(D_i\times F_i)∏i​(Di​×Fi​), let ρF\rho_FρF​ be the matrix indexed by ∏iFi\prod_iF_i∏i​Fi​ with entries

(ρF)u,v=∑x∈∏iDiρ((xi,ui))i, ((xi,vi))i.(\rho_F)_{u,v}=\sum_{x\in\prod_iD_i} \rho_{((x_i,u_i))_i,\,((x_i,v_i))_i}.(ρF​)u,v​=x∈∏i​Di​∑​ρ((xi​,ui​))i​,((xi​,vi​))i​​.

This defines

(ln⁡2)[∑i(H2(ρDiFi)−H2((ρF)Fi))−H2(ρ)+H2(ρF)],(\ln 2)\left[ \sum_i\bigl(H_2(\rho_{D_iF_i})-H_2((\rho_F)_{F_i})\bigr) -H_2(\rho)+H_2(\rho_F) \right],(ln2)[i∑​(H2​(ρDi​Fi​​)−H2​((ρF​)Fi​​))−H2​(ρ)+H2​(ρF​)],

where each indicated marginal traces out the other registers by summing over equal discarded indices, and H2(X)=−Re⁡tr⁡(f(X))H_2(X)=-\operatorname{Re}\operatorname{tr}(f(X))H2​(X)=−Retr(f(X)) with f(t)=tlog⁡2tf(t)=t\log_2tf(t)=tlog2​t applied by real continuous functional calculus. This is the difference of the two specified multipartite expressions; their terms involving the entropy of the scalar trace cancel. No density-matrix or nonemptiness assumptions are required. The definition includes l=0l=0l=0 and l=1l=1l=1, in both of which the difference is zero.

QAlgorithms.Papers.Independent.Gap20.P09.msqDiscord

For any natural number lll, finite types DiD_iDi​ indexed by 0≤i<l0\le i<l0≤i<l, and arbitrary complex matrix ρ\rhoρ on ∏iDi\prod_iD_i∏i​Di​, define S(X)=−Re⁡tr⁡ ⁣(cfc⁡t↦tlog⁡2t(X))S(X)=-\operatorname{Re}\operatorname{tr}\!\left(\operatorname{cfc}_{t\mapsto t\log_2t}(X)\right)S(X)=−Retr(cfct↦tlog2​t​(X)), where cfc⁡\operatorname{cfc}cfc denotes the continuous functional calculus used in the code. For a matrix XXX on a product of lll registers, let XJX_JXJ​ denote its marginal obtained by summing matching row and column indices over registers outside JJJ, and put

Inat(X)=log⁡2(∑i=0l−1S(X{i})−S(X)−(l−1)NS(X∅)),I_{\mathrm{nat}}(X)=\log 2\left(\sum_{i=0}^{l-1}S(X_{\{i\}})-S(X)-(l-1)_{\mathbb N}S(X_\varnothing)\right),Inat​(X)=log2(i=0∑l−1​S(X{i}​)−S(X)−(l−1)N​S(X∅​)),

where (l−1)N=max⁡(l−1,0)(l-1)_{\mathbb N}=\max(l-1,0)(l−1)N​=max(l−1,0) and X∅X_\varnothingX∅​ is the one-dimensional matrix with entry tr⁡X\operatorname{tr}XtrX. For each iii, choose a positive integer rir_iri​ and positive semidefinite effects Ma(i)M^{(i)}_aMa(i)​ summing to IDiI_{D_i}IDi​​, and form the diagonal matrix

ΩM(a,b)={tr⁡ ⁣[(⨂iMai(i))ρ],a=b,0,a≠b.\Omega_M(a,b)= \begin{cases} \displaystyle\operatorname{tr}\!\left[\left(\bigotimes_iM^{(i)}_{a_i}\right)\rho\right],&a=b,\\ 0,&a\ne b. \end{cases}ΩM​(a,b)=⎩⎨⎧​tr[(i⨂​Mai​(i)​)ρ],0,​a=b,a=b.​

The defined value is

Inat(ρ)−sup⁡MInat(ΩM).I_{\mathrm{nat}}(\rho)-\sup_M I_{\mathrm{nat}}(\Omega_M).Inat​(ρ)−Msup​Inat​(ΩM​).

Neither ρ\rhoρ nor the register types are assumed normalized, positive, or nonempty. The case l=0l=0l=0 is included, with empty sums equal to 000 and empty products equal to 111; the supremum is the total real supremum, whose value is 000 for an empty or unbounded-above set.

QAlgorithms.Papers.Independent.Gap20.P09.multipartiteInformationNats

For any natural number lll, finite types DiD_iDi​ indexed by i∈{0,…,l−1}i\in\{0,\ldots,l-1\}i∈{0,…,l−1}, and arbitrary complex matrix ρ\rhoρ indexed by D=∏iDi\mathcal D=\prod_i D_iD=∏i​Di​, this defines

(ln⁡2)(∑i=0l−1H2(ρi)−H2(ρ)−(l−1)+H2([tr⁡ρ])).(\ln 2)\left(\sum_{i=0}^{l-1}H_2(\rho_i)-H_2(\rho)-(l-1)_+H_2([\operatorname{tr}\rho])\right).(ln2)(i=0∑l−1​H2​(ρi​)−H2​(ρ)−(l−1)+​H2​([trρ])).

Here ρi\rho_iρi​ is obtained by tracing out every register except iii: its (a,b)(a,b)(a,b) entry sums ρx,y\rho_{x,y}ρx,y​ over configurations with xi=ax_i=axi​=a, yi=by_i=byi​=b, and xj=yjx_j=y_jxj​=yj​ for every j≠ij\ne ij=i; [tr⁡ρ][\operatorname{tr}\rho][trρ] is the one-dimensional matrix with that entry; (l−1)+=max⁡(l−1,0)(l-1)_+=\max(l-1,0)(l−1)+​=max(l−1,0) is natural-number subtraction; and H2(X)=−Re⁡tr⁡(f(X))H_2(X)=-\operatorname{Re}\operatorname{tr}(f(X))H2​(X)=−Retr(f(X)), where f(t)=tlog⁡2tf(t)=t\log_2 tf(t)=tlog2​t is applied using the real continuous functional calculus. No positivity, Hermiticity, trace-one, or nonemptiness assumption is imposed. In particular, l=0l=0l=0 is allowed and gives −(ln⁡2)H2(ρ)-(\ln 2)H_2(\rho)−(ln2)H2​(ρ) for the resulting one-dimensional matrix; l=1l=1l=1 gives zero.

QAlgorithms.Papers.Independent.Gap20.P09.multipartiteSquashedNats

For any natural number lll, finite types DiD_iDi​, and arbitrary complex matrix ρ\rhoρ on ∏iDi\prod_iD_i∏i​Di​, this defines

ln⁡22inf⁡σ,e[∑i=0l−1H2(σDiE)−H2(σ)−(l−1)+H2(σE)].\frac{\ln 2}{2}\inf_{\sigma,e} \left[ \sum_{i=0}^{l-1}H_2(\sigma_{D_iE}) -H_2(\sigma)-(l-1)_+H_2(\sigma_E) \right].2ln2​σ,einf​[i=0∑l−1​H2​(σDi​E​)−H2​(σ)−(l−1)+​H2​(σE​)].

The infimum ranges over every positive integer eee, the environment E={0,…,e−1}E=\{0,\ldots,e-1\}E={0,…,e−1}, and every positive semidefinite trace-one matrix σ\sigmaσ on (∏iDi)×E(\prod_iD_i)\times E(∏i​Di​)×E satisfying ∑u∈Eσ(a,u),(b,u)=ρa,b\sum_{u\in E}\sigma_{(a,u),(b,u)}=\rho_{a,b}∑u∈E​σ(a,u),(b,u)​=ρa,b​. Each σDiE\sigma_{D_iE}σDi​E​ traces out all other DDD coordinates while retaining EEE, and σE\sigma_EσE​ traces out all DDD coordinates. Here H2(X)=−Re⁡tr⁡(f(X))H_2(X)=-\operatorname{Re}\operatorname{tr}(f(X))H2​(X)=−Retr(f(X)), with f(t)=tlog⁡2tf(t)=t\log_2tf(t)=tlog2​t applied by real continuous functional calculus, and (l−1)+=max⁡(l−1,0)(l-1)_+=\max(l-1,0)(l−1)+​=max(l−1,0). No classicality restriction is placed on the extension, and no density or nonemptiness assumption is imposed on the supplied ρ,Di\rho,D_iρ,Di​. The real infimum is 000 for an empty feasible set, and also uses the total real-infimum convention for sets unbounded below. In particular, when l=0l=0l=0, the expression inside the infimum is −H2(σE)-H_2(\sigma_E)−H2​(σE​), since the sum is empty and the natural-number coefficient is zero.

QAlgorithms.Papers.Independent.Gap20.P09.multipartiteTensorAction

For any natural number lll, finite input types DiD_iDi​, arbitrary output types FiF_iFi​, and arbitrary functions Φi\Phi_iΦi​ from complex matrices indexed by DiD_iDi​ to complex matrices indexed by FiF_iFi​, this defines a function from matrices on ∏iDi\prod_iD_i∏i​Di​ to matrices on ∏iFi\prod_iF_i∏i​Fi​ by

(TΦ(ρ))a,b=∑x∈∏iDi∑y∈∏iDiρx,y∏i=0l−1(Φi(Exi,yi))ai,bi.\bigl(\mathcal T_\Phi(\rho)\bigr)_{a,b} =\sum_{x\in\prod_iD_i}\sum_{y\in\prod_iD_i} \rho_{x,y}\prod_{i=0}^{l-1} \bigl(\Phi_i(E_{x_i,y_i})\bigr)_{a_i,b_i}.(TΦ​(ρ))a,b​=x∈∏i​Di​∑​y∈∏i​Di​∑​ρx,y​i=0∏l−1​(Φi​(Exi​,yi​​))ai​,bi​​.

Here Eu,vE_{u,v}Eu,v​ is the matrix with entry 111 at (u,v)(u,v)(u,v) and zero elsewhere. The output types need not be finite, and the functions Φi\Phi_iΦi​ need not be linear, positive, or channels. Empty input types are allowed and make the input-configuration sums empty. For l=0l=0l=0, both configuration spaces are singletons and the empty product is 111, so the function preserves the sole matrix entry.

QAlgorithms.Papers.Independent.Gap20.P09.pairedCopies

For any natural numbers l,nl,nl,n, arbitrary types Di,FiD_i,F_iDi​,Fi​, 0≤i<l0\le i<l0≤i<l, and an arbitrary complex matrix ρ\rhoρ on ∏i(Di×Fi)\prod_i(D_i\times F_i)∏i​(Di​×Fi​), this definition gives a matrix on ∏i(Din×Fin)\prod_i(D_i^n\times F_i^n)∏i​(Din​×Fin​). Writing its row and column indices as xi=(xiD,xiF)x_i=(x_i^D,x_i^F)xi​=(xiD​,xiF​) and yi=(yiD,yiF)y_i=(y_i^D,y_i^F)yi​=(yiD​,yiF​), its entries are

ρ[n](x,y)=∏t=0n−1ρ ⁣((xiD(t),xiF(t))i,(yiD(t),yiF(t))i).\rho^{[n]}(x,y)= \prod_{t=0}^{n-1} \rho\!\left(\bigl(x_i^D(t),x_i^F(t)\bigr)_i, \bigl(y_i^D(t),y_i^F(t)\bigr)_i\right).ρ[n](x,y)=t=0∏n−1​ρ((xiD​(t),xiF​(t))i​,(yiD​(t),yiF​(t))i​).

There are no finiteness, nonemptiness, positivity, or trace assumptions. For n=0n=0n=0, every entry is the empty product 111, and the indexing type has exactly one element.

QAlgorithms.Papers.Independent.Gap20.P09.povmChannelAction

For a finite type AAA, let MMM consist of a positive number rrr of outcomes and matrices Mx∈CA×AM_x\in\mathbb C^{A\times A}Mx​∈CA×A, indexed by 0≤x<r0\le x<r0≤x<r, such that every MxM_xMx​ is positive semidefinite and ∑xMx=IA\sum_xM_x=I_A∑x​Mx​=IA​. This definition assigns to every complex matrix X∈CA×AX\in\mathbb C^{A\times A}X∈CA×A the r×rr\times rr×r matrix

M(X)xy={tr⁡(MxX),x=y,0,x≠y.\mathcal M(X)_{xy}= \begin{cases} \operatorname{tr}(M_xX),&x=y,\\ 0,&x\ne y. \end{cases}M(X)xy​={tr(Mx​X),0,​x=y,x=y.​

The trace here is complex-valued. No positivity or normalization condition is imposed on XXX, and AAA is allowed to be empty.

QAlgorithms.Papers.Independent.Gap20.P09.recover

For any natural number lll, finite types Di,FiD_i,F_iDi​,Fi​, arbitrary functions RiR_iRi​ from matrices on FiF_iFi​ to matrices on Di×FiD_i\times F_iDi​×Fi​, and arbitrary complex matrix ρ\rhoρ on ∏i(Di×Fi)\prod_i(D_i\times F_i)∏i​(Di​×Fi​), this defines a matrix on that same configuration space by

(recover⁡R(ρ))a,b=∑u,v∈∏iFi(∑x∈∏iDiρ((xi,ui))i, ((xi,vi))i)∏i(Ri(Eui,vi))ai,bi.\bigl(\operatorname{recover}_R(\rho)\bigr)_{a,b} =\sum_{u,v\in\prod_iF_i} \left(\sum_{x\in\prod_iD_i} \rho_{((x_i,u_i))_i,\,((x_i,v_i))_i}\right) \prod_i\bigl(R_i(E_{u_i,v_i})\bigr)_{a_i,b_i}.(recoverR​(ρ))a,b​=u,v∈∏i​Fi​∑​​x∈∏i​Di​∑​ρ((xi​,ui​))i​,((xi​,vi​))i​​​i∏​(Ri​(Eui​,vi​​))ai​,bi​​.

The inner sum traces out every DiD_iDi​ register, and Eui,viE_{u_i,v_i}Eui​,vi​​ is the corresponding matrix unit on FiF_iFi​. Neither ρ\rhoρ nor the functions RiR_iRi​ are required to satisfy positivity, normalization, linearity, or channel conditions. Empty types and l=0l=0l=0 are included; for l=0l=0l=0, the sole scalar matrix entry is preserved.

QAlgorithms.Papers.Independent.Gap20.P09.recoveryRelativeEntropy

For any natural numbers l,nl,nl,n, finite types Di,FiD_i,F_iDi​,Fi​, 0≤i<l0\le i<l0≤i<l, and an arbitrary complex matrix ρ\rhoρ on ∏i(Di×Fi)\prod_i(D_i\times F_i)∏i​(Di​×Fi​), let X=ρ[n]X=\rho^{[n]}X=ρ[n] be the matrix on ∏i(Din×Fin)\prod_i(D_i^n\times F_i^n)∏i​(Din​×Fin​) whose entries are products of the corresponding nnn entries of ρ\rhoρ. Let XFX_FXF​ be its marginal obtained by summing matching DinD_i^nDin​ indices. This definition is the infimum in R∪{−∞,+∞}\mathbb R\cup\{-\infty,+\infty\}R∪{−∞,+∞} of

D ⁣(X | (⨂iRi)(XF))D\!\left(X\,\middle|\,\left(\bigotimes_iR_i\right)(X_F)\right)D(X​(i⨂​Ri​)(XF​))

over functions Ri:CFin×Fin→C(Din×Fin)×(Din×Fin)R_i:\mathbb C^{F_i^n\times F_i^n}\to\mathbb C^{(D_i^n\times F_i^n)\times(D_i^n\times F_i^n)}Ri​:CFin​×Fin​→C(Din​×Fin​)×(Din​×Fin​) that have finite Kraus representations Ri(Z)=∑aKiaZKia†R_i(Z)=\sum_aK_{ia}ZK_{ia}^\daggerRi​(Z)=∑a​Kia​ZKia†​ with ∑aKia†Kia=I\sum_aK_{ia}^\dagger K_{ia}=I∑a​Kia†​Kia​=I. Here the tensor action is defined entrywise by

(⨂iRi)(Z)ab=∑u,vZuv∏iRi(∣ui⟩⟨vi∣)aibi,\left(\bigotimes_iR_i\right)(Z)_{ab} =\sum_{u,v}Z_{uv}\prod_iR_i(|u_i\rangle\langle v_i|)_{a_i b_i},(i⨂​Ri​)(Z)ab​=u,v∑​Zuv​i∏​Ri​(∣ui​⟩⟨vi​∣)ai​bi​​,

and

D(X∣Y)={Re⁡tr⁡ ⁣(cfc⁡t↦tlog⁡t(X)−Xcfc⁡log⁡(Y)),ker⁡Y⊆ker⁡X,+∞,otherwise.D(X\mid Y)= \begin{cases} \operatorname{Re}\operatorname{tr}\!\left( \operatorname{cfc}_{t\mapsto t\log t}(X)-X\operatorname{cfc}_{\log}(Y)\right), &\ker Y\subseteq\ker X,\\ +\infty,&\text{otherwise}. \end{cases}D(X∣Y)={Retr(cfct↦tlogt​(X)−Xcfclog​(Y)),+∞,​kerY⊆kerX,otherwise.​

There is no positivity or normalization hypothesis on ρ\rhoρ, no division by nnn, and zero copies and empty register types are allowed; for n=0n=0n=0, the value is 000. An infimum over no admissible recovery families is +∞+\infty+∞.

QAlgorithms.Papers.Independent.Gap20.P09.replicaHead

For any natural numbers m,km,km,k, dimensions di∈Nd_i\in\mathbb Ndi​∈N indexed by 0≤i<m+10\le i<m+10≤i<m+1, and an array xxx containing one value in {0,…,d0−1}\{0,\ldots,d_0-1\}{0,…,d0​−1} for party 000 and k+1k+1k+1 such values for every other party, this definition returns the configuration

head⁡(x)i=xi(0)(0≤i<m+1).\operatorname{head}(x)_i=x_i(0) \qquad(0\le i<m+1).head(x)i​=xi​(0)(0≤i<m+1).

Thus it selects replica 000 at every party. Both m=0m=0m=0 and k=0k=0k=0 are included. No positivity assumption is made on the dimensions; if any di=0d_i=0di​=0, no input array xxx exists.

QAlgorithms.Papers.Independent.Gap20.P09.replicaMarginal

For any natural numbers m,km,km,k, dimensions di∈Nd_i\in\mathbb Ndi​∈N, 0≤i<m+10\le i<m+10≤i<m+1, and an arbitrary complex matrix ω\omegaω on arrays having one replica of party 000 and k+1k+1k+1 replicas of each other party, this definition gives the matrix

ωhead(a,b)=∑zzi(0)=ai for every iω ⁣(z,(zi[0←bi])i).\omega_{\mathrm{head}}(a,b)= \sum_{\substack{z\\z_i(0)=a_i\ \text{for every }i}} \omega\!\left(z,\bigl(z_i[0\leftarrow b_i]\bigr)_i\right).ωhead​(a,b)=zzi​(0)=ai​ for every i​∑​ω(z,(zi​[0←bi​])i​).

Here every replica at party iii takes values in {0,…,di−1}\{0,\ldots,d_i-1\}{0,…,di​−1}, and zi[0←bi]z_i[0\leftarrow b_i]zi​[0←bi​] replaces only replica 000. This sums matching indices over all unselected replicas. No positivity, normalization, or positive-dimension assumptions are imposed. For k=0k=0k=0, every party has one replica; for m=0m=0m=0, only party 000 exists and has one replica regardless of kkk.

QAlgorithms.Papers.Independent.Gap20.P09.selectUnprimed

For any natural number lll, finite types DiD_iDi​, arbitrary types FiF_iFi​, arbitrary complex matrix ρ\rhoρ on ∏i(Di×Fi)\prod_i(D_i\times F_i)∏i​(Di​×Fi​), and subset s⊆{0,…,l−1}s\subseteq\{0,\ldots,l-1\}s⊆{0,…,l−1}, this defines a matrix indexed by (∏i∈sDi)×(∏iFi)(\prod_{i\in s}D_i)\times(\prod_iF_i)(∏i∈s​Di​)×(∏i​Fi​). For retained unprimed configurations a,ba,ba,b and full primed configurations u,vu,vu,v, its entries are

∑x,y∈∏iDixi=ai, yi=bi (i∈s)xi=yi (i∉s)ρ((xi,ui))i, ((yi,vi))i.\sum_{\substack{x,y\in\prod_iD_i\\ x_i=a_i,\ y_i=b_i\ (i\in s)\\ x_i=y_i\ (i\notin s)}} \rho_{((x_i,u_i))_i,\,((y_i,v_i))_i}.x,y∈∏i​Di​xi​=ai​, yi​=bi​ (i∈s)xi​=yi​ (i∈/s)​∑​ρ((xi​,ui​))i​,((yi​,vi​))i​​.

Thus all primed coordinates remain, while the unprimed coordinates outside sss are traced out. The types FiF_iFi​ need not be finite, and ρ\rhoρ need not be a density matrix. Empty types, the empty subset, the full subset, and l=0l=0l=0 are all included.

QAlgorithms.Papers.Independent.Gap20.P09.subsetRecovery

For any natural number lll, finite types Di,FiD_i,F_iDi​,Fi​, arbitrary functions RiR_iRi​ from matrices on FiF_iFi​ to matrices on Di×FiD_i\times F_iDi​×Fi​, and Boolean choices jij_iji​, define functions Λi\Lambda_iΛi​ on matrices on Di×FiD_i\times F_iDi​×Fi​ by Λi(X)=X\Lambda_i(X)=XΛi​(X)=X when jij_iji​ is false, and Λi(X)=Ri(Y)\Lambda_i(X)=R_i(Y)Λi​(X)=Ri​(Y) when jij_iji​ is true, where Yu,v=∑d∈DiX(d,u),(d,v)Y_{u,v}=\sum_{d\in D_i}X_{(d,u),(d,v)}Yu,v​=∑d∈Di​​X(d,u),(d,v)​. The declaration defines the matrix function

(SR,j(ρ))a,b=∑x,y∈∏i(Di×Fi)ρx,y∏i(Λi(Exi,yi))ai,bi,\bigl(\mathcal S_{R,j}(\rho)\bigr)_{a,b} =\sum_{x,y\in\prod_i(D_i\times F_i)} \rho_{x,y}\prod_i \bigl(\Lambda_i(E_{x_i,y_i})\bigr)_{a_i,b_i},(SR,j​(ρ))a,b​=x,y∈∏i​(Di​×Fi​)∑​ρx,y​i∏​(Λi​(Exi​,yi​​))ai​,bi​​,

where Exi,yiE_{x_i,y_i}Exi​,yi​​ is a matrix unit on Di×FiD_i\times F_iDi​×Fi​. No linearity or channel assumption is imposed on RiR_iRi​, and no condition is imposed on ρ\rhoρ. Empty types and l=0l=0l=0 are allowed; when l=0l=0l=0, the sole scalar entry is preserved.

QAlgorithms.Papers.Independent.Gap20.P09.subsetWeight

For any natural number lll and Boolean function jjj on {0,…,l−1}\{0,\ldots,l-1\}{0,…,l−1}, this defines

max⁡ ⁣(1,∣{i:ji=true}∣).\max\!\left(1,\left|\{i:j_i=\mathrm{true}\}\right|\right).max(1,∣{i:ji​=true}∣).

Consequently the value is 111 when no index is selected, including when l=0l=0l=0, and otherwise is the number of selected indices.

QAlgorithms.Papers.Independent.Gap20.P09.traceRecover

For any finite type AAA, arbitrary type BBB, and arbitrary function RRR from complex matrices on BBB to complex matrices on A×BA\times BA×B, this defines the function

X⟼R(Y),Yb,b′=∑a∈AX(a,b),(a,b′).X\longmapsto R(Y), \qquad Y_{b,b'}=\sum_{a\in A}X_{(a,b),(a,b')}.X⟼R(Y),Yb,b′​=a∈A∑​X(a,b),(a,b′)​.

Thus it first traces out the AAA coordinate and then applies RRR. The type BBB need not be finite, and RRR need not be linear or a channel. If AAA is empty, the sum defining YYY is zero.

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

    Confirmed by the moderator at approval.

  • Endorsed by Goku · Oct 22, 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