Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Entanglement of Distillation and Conditional Mutual Information

Definition
QAlgorithms_Papers_Independent_Gap48_P19

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

prove2quantum

The objects the formalized statements of Entanglement of Distillation and Conditional Mutual Information (arXiv:quant-ph/0202144) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • IsKernel: PDF pp.3,5,8: conditional law normalized at every parent value.
  • lawMap: PDF p.2: the computed marginal law of a coordinate map.
  • shannonNats: PDF pp.2,8: Shannon entropy in nats, with zero contribution at zero mass.
  • extensionClassicalCMI: PDF pp.2,9, (2),(42)-(43): corrected nonnegative CMI in nats.
  • commonCause: PDF p.3, (5): the specified common-cause joint law.
  • ClassicalExtension: PDF pp.3-4, (6): raw extensions of arbitrary finite auxiliary cardinality.
  • ValidClassical: PDF pp.3-4, (6): normalized extensions of the fixed AB marginal, positive flag size.
  • classicalScores: PDF pp.3-4, (6): attainable CMI values; IsLeast retains minimum attainment.
  • fairPair: PDF p.4, fixed-size caveat: a=b is a fair bit.
  • marginalAL: PDF p.3: AL marginal of a state ordered as (A x B) x L.
  • marginalBL: PDF p.3: BL marginal of a state ordered as (A x B) x L.
  • extensionQuantumCMI: PDF pp.3-4, (4),(7)-(9): corrected CMI S(AL)+S(BL)-S(L)-S(ABL). The printed (4) has the opposite sign; see module preamble.
  • orthonormalFlagMixture: PDF p.4, (7),(9): classical flags in any orthonormal basis, the columns of F.
  • flaggedProduct: PDF p.4, (7): the actual flagged product-state construction.
  • QuantumExtension: PDF p.4, (8): raw quantum extensions with arbitrary finite auxiliary size.
  • ValidQuantum: PDF p.4, K0: genuine density matrices with the prescribed AB partial trace.
  • quantumScores: PDF p.4, (8): CMI values of K0, with no minimum-attainment assumption.
  • k2Scores: PDF p.4, (9): K2 consists of flags of normalized pure AB ensemble members. The accepted ensemble allows zero weights.
  • ClassicalProtocol: PDF pp.5-6, (11) without communication: local stochastic maps on AA' and BB'.
  • localSelectionBranch: PDF p.5, (11),(13): independent inputs, local maps, and the selected branch.
  • localSelectionProbability: PDF p.5, (13): computed probability of a'=a0,b'=b0.
  • classicalOutput: PDF p.5, (13): postselected law, used only at positive success probability.
  • classicalDistillationScores: PDF pp.5-6, (14): attained inner minima, restricted to defined postselection. Outer IsGreatest in the theorem supplies maximization and its witness.
  • inputCopies: PDF pp.6-7, (25),(28)-(29): rho_X tensor rho_X', regrouped as AA' x BB'.
  • aliceProject: PDF p.7, (24): rank-one projection on a, identity on the other three registers.
  • quantumBranchFull: PDF p.7, (25): both projectors, with genuinely a-dependent Bob unitary.
  • quantumNumerator: PDF p.7, numerator of (25): sum over measured a, then select a'=a0,b'=b0.
  • quantumSuccess: PDF p.7: normalization probability is the actual unnormalized trace.
  • measuredSelectionOutput: PDF p.7, (25): normalized output; the theorem requires positive computed success.
  • quantumBlock: PDF p.7, (26)-(31): eight-index contraction (two grouped summation indices). Right factors are conjugates in the printed adjoint order V*, then U*.
  • fig3Law: PDF pp.8-9, (39): Fig.3 law including x,y conditional independence given L.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Ensemble
import Definitions.Def_QAlgorithms_Defs_Measurement
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P08
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P56
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P75

/-!
Tucci, arXiv:quant-ph/0202144v2. Entropies are in nats.
SOURCE CORRECTION: the second line of (2), PDF p.2, and (4), p.3, print
H(L)-H(AL)-H(BL)+H(ABL). We use H(AL)+H(BL)-H(L)-H(ABL),
as required by the first line of (2) and the nonnegative KL forms (42)-(43).
Independent moderation of this correction is pending. Equation (32) is deferred;
no operational distillable-entanglement characterization is asserted.
-/

namespace QAlgorithms.Papers.Independent.Gap48.P19

open scoped ComplexConjugate Matrix

open QAlgorithms.Papers.Independent.Information100.P75 (Mat)
open QAlgorithms.Papers.Independent.Information100.P56 (IsLaw)

noncomputable section

attribute [local instance] Classical.propDecidable Classical.decEq

/-- PDF pp.3,5,8: conditional law normalized at every parent value. -/
def IsKernel {I J : Type} [Fintype J] (k : I → J → ℝ) : Prop :=
  ∀ i, IsLaw (k i)

/-- PDF p.2: the computed marginal law of a coordinate map. -/
def lawMap {I J : Type} [Fintype I] (p : I → ℝ) (f : I → J) : J → ℝ :=
  fun j => ∑ i, if f i = j then p i else 0

/-- PDF pp.2,8: Shannon entropy in nats, with zero contribution at zero mass. -/
def shannonNats {I : Type} [Fintype I] (p : I → ℝ) : ℝ :=
  -∑ i, p i * Real.log (p i)

/-- PDF pp.2,9, (2),(42)-(43): corrected nonnegative CMI in nats. -/
def extensionClassicalCMI {A B L : Type} [Fintype A] [Fintype B] [Fintype L]
    (p : (A × B) × L → ℝ) : ℝ :=
  shannonNats (lawMap p (fun z => (z.1.1, z.2))) +
  shannonNats (lawMap p (fun z => (z.1.2, z.2))) -
  shannonNats (lawMap p Prod.snd) - shannonNats p

/-- PDF p.3, (5): the specified common-cause joint law. -/
def commonCause {A B L : Type} (w : L → ℝ) (ka : L → A → ℝ)
    (kb : L → B → ℝ) : (A × B) × L → ℝ :=
  fun z => ka z.2 z.1.1 * kb z.2 z.1.2 * w z.2

/-- PDF pp.3-4, (6): raw extensions of arbitrary finite auxiliary cardinality. -/
abbrev ClassicalExtension (A B : Type) := Σ n : ℕ, (((A × B) × Fin n) → ℝ)

/-- PDF pp.3-4, (6): normalized extensions of the fixed AB marginal, positive flag size. -/
def ValidClassical {A B : Type} [Fintype A] [Fintype B]
    (p : A × B → ℝ) (e : ClassicalExtension A B) : Prop :=
  0 < e.1 ∧ IsLaw e.2 ∧ lawMap e.2 Prod.fst = p

/-- PDF pp.3-4, (6): attainable CMI values; IsLeast retains minimum attainment. -/
def classicalScores {A B : Type} [Fintype A] [Fintype B]
    (p : A × B → ℝ) : Set ℝ :=
  {r | ∃ e : ClassicalExtension A B, ValidClassical p e ∧ extensionClassicalCMI e.2 = r}

/-- PDF p.4, fixed-size caveat: a=b is a fair bit. -/
def fairPair : Bool × Bool → ℝ := fun z => if z.1 = z.2 then 1 / 2 else 0

/-- PDF p.3: AL marginal of a state ordered as (A x B) x L. -/
def marginalAL {A B L : Type} [Fintype B] (rho : Mat ((A × B) × L)) : Mat (A × L) :=
  fun i j => ∑ b, rho ((i.1, b), i.2) ((j.1, b), j.2)

/-- PDF p.3: BL marginal of a state ordered as (A x B) x L. -/
def marginalBL {A B L : Type} [Fintype A] (rho : Mat ((A × B) × L)) : Mat (B × L) :=
  fun i j => ∑ a, rho ((a, i.1), i.2) ((a, j.1), j.2)

/-- PDF pp.3-4, (4),(7)-(9): corrected CMI S(AL)+S(BL)-S(L)-S(ABL).
The printed (4) has the opposite sign; see module preamble. -/
def extensionQuantumCMI {A B L : Type} [Fintype A] [Fintype B] [Fintype L]
    [DecidableEq A] [DecidableEq B] [DecidableEq L] (rho : Mat ((A × B) × L)) : ℝ :=
  QAlgorithms.Papers.Independent.Information100.P56.entropy (marginalAL rho) +
  QAlgorithms.Papers.Independent.Information100.P56.entropy (marginalBL rho) -
  QAlgorithms.Papers.Independent.Information100.P56.entropy (traceLeft rho) -
  QAlgorithms.Papers.Independent.Information100.P56.entropy rho

/-- PDF p.4, (7),(9): classical flags in any orthonormal basis, the columns of F. -/
def orthonormalFlagMixture {I L : Type} [Fintype L] [DecidableEq L] (w : L → ℝ)
    (tau : L → Mat I) (F : Matrix.unitaryGroup L ℂ) : Mat (I × L) :=
  fun i j => ∑ l, (w l : ℂ) * tau l i.1 j.1 *
    (F : Mat L) i.2 l * conj ((F : Mat L) j.2 l)

/-- PDF p.4, (7): the actual flagged product-state construction. -/
def flaggedProduct {A B L : Type} [Fintype L] [DecidableEq L]
    (w : L → ℝ) (ra : L → Mat A) (rb : L → Mat B)
    (F : Matrix.unitaryGroup L ℂ) : Mat ((A × B) × L) :=
  orthonormalFlagMixture w (fun l => Matrix.kronecker (ra l) (rb l)) F

/-- PDF p.4, (8): raw quantum extensions with arbitrary finite auxiliary size. -/
abbrev QuantumExtension (A B : Type) := Σ n : ℕ, Mat ((A × B) × Fin n)

/-- PDF p.4, K0: genuine density matrices with the prescribed AB partial trace. -/
def ValidQuantum {A B : Type} [Fintype A] [Fintype B]
    (rho : Mat (A × B)) (e : QuantumExtension A B) : Prop :=
  0 < e.1 ∧ IsDensityMatrix e.2 ∧ traceRight e.2 = rho

/-- PDF p.4, (8): CMI values of K0, with no minimum-attainment assumption. -/
def quantumScores {A B : Type} [Fintype A] [Fintype B]
    [DecidableEq A] [DecidableEq B] (rho : Mat (A × B)) : Set ℝ :=
  {r | ∃ e : QuantumExtension A B, ValidQuantum rho e ∧ extensionQuantumCMI e.2 = r}

/-- PDF p.4, (9): K2 consists of flags of normalized pure AB ensemble members.
The accepted ensemble allows zero weights. -/
def k2Scores {A B : Type} [Fintype A] [Fintype B]
    [DecidableEq A] [DecidableEq B] (rho : Mat (A × B)) : Set ℝ :=
  {r | ∃ e : QAlgorithms.Papers.Independent.Information100.P08.PureEnsemble (A × B),
    QAlgorithms.Papers.Independent.Information100.P08.pureAverage e = rho ∧
    ∃ F : Matrix.unitaryGroup (Fin e.size) ℂ,
      extensionQuantumCMI (orthonormalFlagMixture e.prob (fun l => pureDensity (e.vector l)) F) = r}

/-- PDF pp.5-6, (11) without communication: local stochastic maps on AA' and BB'. -/
structure ClassicalProtocol (A B : Type) [Fintype A] [Fintype B] where
  alice : (A × A) → (A × A) → ℝ
  bob : (B × B) → (B × B) → ℝ
  alice_kernel : IsKernel alice
  bob_kernel : IsKernel bob

/-- PDF p.5, (11),(13): independent inputs, local maps, and the selected branch. -/
def localSelectionBranch {A B : Type} [Fintype A] [Fintype B]
    (p q : A × B → ℝ) (k : ClassicalProtocol A B) (a0 : A) (b0 : B) : A × B → ℝ :=
  fun z => ∑ x, ∑ y, k.alice (x.1, y.1) (z.1, a0) *
    k.bob (x.2, y.2) (z.2, b0) * p x * q y

/-- PDF p.5, (13): computed probability of a'=a0,b'=b0. -/
def localSelectionProbability {A B : Type} [Fintype A] [Fintype B]
    (p q : A × B → ℝ) (k : ClassicalProtocol A B) (a0 : A) (b0 : B) : ℝ :=
  ∑ z, localSelectionBranch p q k a0 b0 z

/-- PDF p.5, (13): postselected law, used only at positive success probability. -/
def classicalOutput {A B : Type} [Fintype A] [Fintype B]
    (p q : A × B → ℝ) (k : ClassicalProtocol A B) (a0 : A) (b0 : B) : A × B → ℝ :=
  fun z => localSelectionBranch p q k a0 b0 z / localSelectionProbability p q k a0 b0

/-- PDF pp.5-6, (14): attained inner minima, restricted to defined postselection.
Outer IsGreatest in the theorem supplies maximization and its witness. -/
def classicalDistillationScores {A B : Type} [Fintype A] [Fintype B]
    (p q : A × B → ℝ) (a0 : A) (b0 : B) : Set ℝ :=
  {r | ∃ k : ClassicalProtocol A B, 0 < localSelectionProbability p q k a0 b0 ∧
    IsLeast (classicalScores (classicalOutput p q k a0 b0)) r}

/-- PDF pp.6-7, (25),(28)-(29): rho_X tensor rho_X', regrouped as AA' x BB'. -/
def inputCopies {A B : Type} (rho sigma : Mat (A × B)) : Mat ((A × A) × (B × B)) :=
  fun i j => rho (i.1.1, i.2.1) (j.1.1, j.2.1) *
    sigma (i.1.2, i.2.2) (j.1.2, j.2.2)

/-- PDF p.7, (24): rank-one projection on a, identity on the other three registers. -/
def aliceProject {A B : Type} [DecidableEq A] (a : A) : Mat ((A × A) × (B × B)) :=
  Matrix.diagonal (fun i => if i.1.1 = a then 1 else 0)

/-- PDF p.7, (25): both projectors, with genuinely a-dependent Bob unitary. -/
def quantumBranchFull {A B : Type} [Fintype A] [Fintype B] [DecidableEq A] [DecidableEq B]
    (rho sigma : Mat (A × B)) (U : Matrix.unitaryGroup (A × A) ℂ)
    (V : A → Matrix.unitaryGroup (B × B) ℂ) (a : A) : Mat ((A × A) × (B × B)) :=
  let W := Matrix.kronecker (U : Mat (A × A)) (V a : Mat (B × B))
  aliceProject a * W * inputCopies rho sigma * W.conjTranspose * aliceProject a

/-- PDF p.7, numerator of (25): sum over measured a, then select a'=a0,b'=b0. -/
def quantumNumerator {A B : Type} [Fintype A] [Fintype B] [DecidableEq A] [DecidableEq B]
    (rho sigma : Mat (A × B)) (U : Matrix.unitaryGroup (A × A) ℂ)
    (V : A → Matrix.unitaryGroup (B × B) ℂ) (a0 : A) (b0 : B) : Mat (A × B) :=
  fun i j => ∑ a, quantumBranchFull rho sigma U V a
    ((i.1, a0), (i.2, b0)) ((j.1, a0), (j.2, b0))

/-- PDF p.7: normalization probability is the actual unnormalized trace. -/
def quantumSuccess {A B : Type} [Fintype A] [Fintype B] [DecidableEq A] [DecidableEq B]
    (rho sigma : Mat (A × B)) (U : Matrix.unitaryGroup (A × A) ℂ)
    (V : A → Matrix.unitaryGroup (B × B) ℂ) (a0 : A) (b0 : B) : ℝ :=
  (quantumNumerator rho sigma U V a0 b0).trace.re

/-- PDF p.7, (25): normalized output; the theorem requires positive computed success. -/
def measuredSelectionOutput {A B : Type} [Fintype A] [Fintype B] [DecidableEq A] [DecidableEq B]
    (rho sigma : Mat (A × B)) (U : Matrix.unitaryGroup (A × A) ℂ)
    (V : A → Matrix.unitaryGroup (B × B) ℂ) (a0 : A) (b0 : B) : Mat (A × B) :=
  ((quantumSuccess rho sigma U V a0 b0)⁻¹ : ℂ) • quantumNumerator rho sigma U V a0 b0

/-- PDF p.7, (26)-(31): eight-index contraction (two grouped summation indices).
Right factors are conjugates in the printed adjoint order V*, then U*. -/
def quantumBlock {A B : Type} [Fintype A] [Fintype B] [DecidableEq A] [DecidableEq B]
    (rho sigma : Mat (A × B)) (U : Matrix.unitaryGroup (A × A) ℂ)
    (V : A → Matrix.unitaryGroup (B × B) ℂ) (a0 : A) (b0 : B)
    (a : A) (b1 b2 : B) : ℂ :=
  ((quantumSuccess rho sigma U V a0 b0)⁻¹ : ℂ) *
    ∑ i : (A × A) × (B × B), ∑ j : (A × A) × (B × B),
      (U : Mat (A × A)) (a, a0) i.1 * (V a : Mat (B × B)) (b1, b0) i.2 *
      rho (i.1.1, i.2.1) (j.1.1, j.2.1) * sigma (i.1.2, i.2.2) (j.1.2, j.2.2) *
      conj ((V a : Mat (B × B)) (b2, b0) j.2) * conj ((U : Mat (A × A)) (a, a0) j.1)

/-- PDF pp.8-9, (39): Fig.3 law including x,y conditional independence given L. -/
def fig3Law {A B X Y L : Type} (w : L → ℝ) (kx : L → X → ℝ)
    (ky : L → Y → ℝ) (ka : X → A → ℝ) (kb : Y → B → ℝ) :
    ((A × B) × (X × Y)) × L → ℝ :=
  fun z => ka z.1.2.1 z.1.1.1 * kb z.1.2.2 z.1.1.2 *
    kx z.2 z.1.2.1 * ky z.2 z.1.2.2 * w z.2

/-- Sanity: the one-point law is normalized. -/
example : IsLaw (fun _ : Unit => (1 : ℝ)) := by
  constructor
  · intro i; norm_num
  · simp

/-- Sanity: entropy of a certain outcome is zero. -/
example : shannonNats (fun _ : Unit => (1 : ℝ)) = 0 := by simp [shannonNats]

/-- Sanity: singleton-flag common cause is the product law. -/
example {A B : Type} (ka : A → ℝ) (kb : B → ℝ) (a : A) (b : B) :
    commonCause (fun _ : Unit => (1 : ℝ)) (fun _ => ka) (fun _ => kb) ((a,b), ()) =
      ka a * kb b := by simp [commonCause]

/-- Sanity: zero weights give zero flagged contribution. -/
example {I L : Type} [Fintype L] [DecidableEq L] (tau : L → Mat I)
    (F : Matrix.unitaryGroup L ℂ) : orthonormalFlagMixture (fun _ => 0) tau F = 0 := by
  ext i j
  simp [orthonormalFlagMixture]

/-- Sanity: the imported quantum entropy is the natural-log spectral expression. -/
example {I : Type} [Fintype I] [DecidableEq I] (rho : Mat I) :
    QAlgorithms.Papers.Independent.Information100.P56.entropy rho =
      -(cfc (fun x : ℝ => x * Real.log x) rho).trace.re := rfl

/-- Sanity: independent input copies occur in their actual regrouped coordinates. -/
example {A B : Type} (rho sigma : Mat (A × B)) (a ap c cp : A) (b bp d dp : B) :
    inputCopies rho sigma ((a,ap),(b,bp)) ((c,cp),(d,dp)) =
      rho (a,b) (c,d) * sigma (ap,bp) (cp,dp) := rfl

end

end QAlgorithms.Papers.Independent.Gap48.P19
Source
Entanglement of Distillation and Conditional Mutual Information, arXiv:quant-ph/0202144v2, https://arxiv.org/abs/quant-ph/0202144v2
Read-back

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

QAlgorithms.Papers.Independent.Gap48.P19.ClassicalExtension

For arbitrary types A,BA,BA,B, a classical extension is a pair (n,e)(n,e)(n,e) consisting of a natural number nnn and an arbitrary function e:(A×B)×{0,…,n−1}→Re:(A\times B)\times\{0,\ldots,n-1\}\to\mathbb Re:(A×B)×{0,…,n−1}→R. This type imposes no positivity, normalization, or marginal condition. It includes n=0n=0n=0, in which case the function has empty domain.

QAlgorithms.Papers.Independent.Gap48.P19.ClassicalProtocol

For finite types AAA and BBB, a classical protocol consists of two real-valued functions KA:(A×A)×(A×A)→RK_A:(A\times A)\times(A\times A)\to\mathbb RKA​:(A×A)×(A×A)→R and KB:(B×B)×(B×B)→RK_B:(B\times B)\times(B\times B)\to\mathbb RKB​:(B×B)×(B×B)→R, such that every row of each function is a probability law: for every u∈A×Au\in A\times Au∈A×A, KA(u,v)≥0K_A(u,v)\ge0KA​(u,v)≥0 for all v∈A×Av\in A\times Av∈A×A and ∑vKA(u,v)=1\sum_vK_A(u,v)=1∑v​KA​(u,v)=1, and likewise for every u∈B×Bu\in B\times Bu∈B×B, KB(u,v)≥0K_B(u,v)\ge0KB​(u,v)≥0 and ∑vKB(u,v)=1\sum_vK_B(u,v)=1∑v​KB​(u,v)=1. Neither type is required to be nonempty; for an empty type, its corresponding row conditions are vacuous.

QAlgorithms.Papers.Independent.Gap48.P19.IsKernel

For arbitrary types I,JI,JI,J, with JJJ finite, and a function k:I→J→Rk:I\to J\to\mathbb Rk:I→J→R, being a kernel means that, for every i∈Ii\in Ii∈I, all k(i,j)k(i,j)k(i,j) are nonnegative and ∑j∈Jk(i,j)=1\sum_{j\in J}k(i,j)=1∑j∈J​k(i,j)=1. No finiteness or nonemptiness is assumed for III. If III is empty, the condition is vacuous; if JJJ is empty and III is nonempty, it cannot hold.

QAlgorithms.Papers.Independent.Gap48.P19.QuantumExtension

For arbitrary types A,BA,BA,B, this abbreviates the type of pairs (n,τ)(n,\tau)(n,τ) consisting of a natural number nnn and an arbitrary complex square matrix τ\tauτ indexed by (A×B)×{0,…,n−1}(A\times B)\times\{0,\ldots,n-1\}(A×B)×{0,…,n−1}. There are no finiteness assumptions on A,BA,BA,B and no positivity, normalization, or marginal requirements on τ\tauτ. The value n=0n=0n=0 is included, giving a matrix with an empty index type.

QAlgorithms.Papers.Independent.Gap48.P19.ValidClassical

For finite types A,BA,BA,B, any function p:A×B→Rp:A\times B\to\mathbb Rp:A×B→R, and a pair (n,e)(n,e)(n,e) with n∈Nn\in\mathbb Nn∈N and e:(A×B)×{0,…,n−1}→Re:(A\times B)\times\{0,\ldots,n-1\}\to\mathbb Re:(A×B)×{0,…,n−1}→R, validity means that n>0n>0n>0, every value of eee is nonnegative, its total sum is one, and ∑ℓ=0n−1e((a,b),ℓ)=p(a,b)\displaystyle \sum_{\ell=0}^{n-1}e((a,b),\ell)=p(a,b)ℓ=0∑n−1​e((a,b),ℓ)=p(a,b) for every a,ba,ba,b. No probability-law assumption on ppp is separately required. The condition excludes n=0n=0n=0, and it cannot hold if AAA or BBB is empty.

QAlgorithms.Papers.Independent.Gap48.P19.ValidQuantum

For finite types A,BA,BA,B, any complex square matrix ρ\rhoρ on A×BA\times BA×B, and any pair e=(n,τ)e=(n,\tau)e=(n,τ) with n∈Nn\in\mathbb Nn∈N and τ\tauτ a complex square matrix on (A×B)×{0,…,n−1}(A\times B)\times\{0,\ldots,n-1\}(A×B)×{0,…,n−1}, this predicate means that n>0n>0n>0, τ\tauτ is positive semidefinite with tr⁡τ=1\operatorname{tr}\tau=1trτ=1, and

∑ℓ=0n−1τ((a,b),ℓ),((a′,b′),ℓ)=ρ(a,b),(a′,b′)for every a,a′∈A, b,b′∈B.\sum_{\ell=0}^{n-1}\tau_{((a,b),\ell),((a',b'),\ell)} =\rho_{(a,b),(a',b')} \quad\text{for every }a,a'\in A,\ b,b'\in B.ℓ=0∑n−1​τ((a,b),ℓ),((a′,b′),ℓ)​=ρ(a,b),(a′,b′)​for every a,a′∈A, b,b′∈B.

Thus the predicate excludes n=0n=0n=0; if AAA or BBB is empty, its trace-one requirement cannot be satisfied.

QAlgorithms.Papers.Independent.Gap48.P19.aliceProject

For arbitrary types A,BA,BA,B, with decidable equality on AAA, and an element a∈Aa\in Aa∈A, this definition gives a complex diagonal matrix Πa\Pi_aΠa​ indexed by (A×A)×(B×B)(A\times A)\times(B\times B)(A×A)×(B×B). Its diagonal entry at ((a1,a2),(b1,b2))((a_1,a_2),(b_1,b_2))((a1​,a2​),(b1​,b2​)) is 111 if a1=aa_1=aa1​=a and 000 otherwise, and every off-diagonal entry is zero. No finiteness assumption is made, and BBB may be empty.

QAlgorithms.Papers.Independent.Gap48.P19.classicalDistillationScores

For finite types A,BA,BA,B, arbitrary functions p,q:A×B→Rp,q:A\times B\to\mathbb Rp,q:A×B→R, and elements a0∈A,b0∈Ba_0\in A,b_0\in Ba0​∈A,b0​∈B, this definition is the set of real numbers rrr for which there exists a protocol with nonnegative, row-normalized functions KA,KBK_A,K_BKA​,KB​ such that, writing

s(z)=∑x,y∈A×BKA((xA,yA),(zA,a0))KB((xB,yB),(zB,b0))p(x)q(y),P=∑zs(z),s(z)=\sum_{x,y\in A\times B} K_A((x_A,y_A),(z_A,a_0))K_B((x_B,y_B),(z_B,b_0))p(x)q(y), \quad P=\sum_zs(z),s(z)=x,y∈A×B∑​KA​((xA​,yA​),(zA​,a0​))KB​((xB​,yB​),(zB​,b0​))p(x)q(y),P=z∑​s(z),

one has P>0P>0P>0 and rrr is the least element of the following set: all values

H(EAL)+H(EBL)−H(EL)−H(E)H(E_{AL})+H(E_{BL})-H(E_L)-H(E)H(EAL​)+H(EBL​)−H(EL​)−H(E)

obtained from a positive integer ddd and a probability law EEE on (A×B)×{0,…,d−1}(A\times B)\times\{0,\ldots,d-1\}(A×B)×{0,…,d−1} whose A×BA\times BA×B marginal is s/Ps/Ps/P. Here the subscripts denote the indicated marginals and H(v)=−∑iv(i)log⁡v(i)H(v)=-\sum_i v(i)\log v(i)H(v)=−∑i​v(i)logv(i), using the natural logarithm and the convention 0log⁡0=00\log0=00log0=0. Being the least element requires that rrr is attained by such an extension and is no greater than every other such value. No probability-law assumptions are imposed on p,qp,qp,q.

QAlgorithms.Papers.Independent.Gap48.P19.classicalOutput

For finite types A,BA,BA,B, arbitrary real-valued functions p,qp,qp,q on A×BA\times BA×B, a protocol with nonnegative, row-normalized functions KA,KBK_A,K_BKA​,KB​, and elements a0∈A,b0∈Ba_0\in A,b_0\in Ba0​∈A,b0​∈B, define

s(z)=∑x,y∈A×BKA((xA,yA),(zA,a0)) KB((xB,yB),(zB,b0)) p(x)q(y),P=∑z∈A×Bs(z).s(z)=\sum_{x,y\in A\times B} K_A((x_A,y_A),(z_A,a_0))\, K_B((x_B,y_B),(z_B,b_0))\,p(x)q(y), \qquad P=\sum_{z\in A\times B}s(z).s(z)=x,y∈A×B∑​KA​((xA​,yA​),(zA​,a0​))KB​((xB​,yB​),(zB​,b0​))p(x)q(y),P=z∈A×B∑​s(z).

The output is the function z↦s(z)/Pz\mapsto s(z)/Pz↦s(z)/P. No assumption requires p,qp,qp,q to be probability laws or PPP to be positive. Division is the total real division operation, so when P=0P=0P=0 the output is identically zero.

QAlgorithms.Papers.Independent.Gap48.P19.classicalScores

For finite types A,BA,BA,B and any function p:A×B→Rp:A\times B\to\mathbb Rp:A×B→R, this defines the set of real numbers rrr for which there exist a positive natural number nnn and a nonnegative function e:(A×B)×{0,…,n−1}→Re:(A\times B)\times\{0,\ldots,n-1\}\to\mathbb Re:(A×B)×{0,…,n−1}→R of total sum one, satisfying ∑ℓe((a,b),ℓ)=p(a,b)\sum_\ell e((a,b),\ell)=p(a,b)∑ℓ​e((a,b),ℓ)=p(a,b), such that r=H(eAL)+H(eBL)−H(eL)−H(e)\displaystyle r=H(e_{AL})+H(e_{BL})-H(e_L)-H(e)r=H(eAL​)+H(eBL​)−H(eL​)−H(e). Here eAL(a,ℓ)=∑be((a,b),ℓ)e_{AL}(a,\ell)=\sum_b e((a,b),\ell)eAL​(a,ℓ)=∑b​e((a,b),ℓ), eBL(b,ℓ)=∑ae((a,b),ℓ)e_{BL}(b,\ell)=\sum_a e((a,b),\ell)eBL​(b,ℓ)=∑a​e((a,b),ℓ), eL(ℓ)=∑a,be((a,b),ℓ)e_L(\ell)=\sum_{a,b}e((a,b),\ell)eL​(ℓ)=∑a,b​e((a,b),ℓ), and H(s)=−∑xs(x)log⁡s(x)H(s)=-\sum_x s(x)\log s(x)H(s)=−∑x​s(x)logs(x), with natural logarithms and zero terms interpreted using log⁡0=0\log0=0log0=0. No hypothesis is imposed on ppp; if such an extension does not exist, the set is empty, including when AAA or BBB is empty.

QAlgorithms.Papers.Independent.Gap48.P19.commonCause

For arbitrary types A,B,LA,B,LA,B,L and arbitrary real-valued functions w:L→Rw:L\to\mathbb Rw:L→R, kA:L→A→Rk_A:L\to A\to\mathbb RkA​:L→A→R, and kB:L→B→Rk_B:L\to B\to\mathbb RkB​:L→B→R, this defines the function p((a,b),ℓ)=kA(ℓ,a) kB(ℓ,b) w(ℓ)\displaystyle p((a,b),\ell)=k_A(\ell,a)\,k_B(\ell,b)\,w(\ell)p((a,b),ℓ)=kA​(ℓ,a)kB​(ℓ,b)w(ℓ). There are no finiteness, nonemptiness, nonnegativity, or normalization assumptions.

QAlgorithms.Papers.Independent.Gap48.P19.extensionClassicalCMI

For finite types A,B,LA,B,LA,B,L and any function p:(A×B)×L→Rp:(A\times B)\times L\to\mathbb Rp:(A×B)×L→R, define its three marginals by pAL(a,ℓ)=∑bp((a,b),ℓ)p_{AL}(a,\ell)=\sum_b p((a,b),\ell)pAL​(a,ℓ)=∑b​p((a,b),ℓ), pBL(b,ℓ)=∑ap((a,b),ℓ)p_{BL}(b,\ell)=\sum_a p((a,b),\ell)pBL​(b,ℓ)=∑a​p((a,b),ℓ), and pL(ℓ)=∑a,bp((a,b),ℓ)p_L(\ell)=\sum_{a,b}p((a,b),\ell)pL​(ℓ)=∑a,b​p((a,b),ℓ). This declaration defines the real number H(pAL)+H(pBL)−H(pL)−H(p)\displaystyle H(p_{AL})+H(p_{BL})-H(p_L)-H(p)H(pAL​)+H(pBL​)−H(pL​)−H(p), where H(r)=−∑xr(x)log⁡r(x)H(r)=-\sum_x r(x)\log r(x)H(r)=−∑x​r(x)logr(x) and the total real logarithm has log⁡0=0\log0=0log0=0 and agrees with log⁡∣x∣\log|x|log∣x∣ on negative inputs. No probability-law assumption is imposed on ppp, and any of the types may be empty, with empty sums equal to zero.

QAlgorithms.Papers.Independent.Gap48.P19.extensionQuantumCMI

For finite types A,B,LA,B,LA,B,L, each equipped with decidable equality, and any complex square matrix ρ\rhoρ indexed by (A×B)×L(A\times B)\times L(A×B)×L, this defines the real number

S(ρAL)+S(ρBL)−S(ρL)−S(ρ),S(X)=−Re⁡tr⁡(f(X)),f(x)=xlog⁡x,S(\rho_{AL})+S(\rho_{BL})-S(\rho_L)-S(\rho), \qquad S(X)=-\operatorname{Re}\operatorname{tr}\bigl(f(X)\bigr),\quad f(x)=x\log x,S(ρAL​)+S(ρBL​)−S(ρL​)−S(ρ),S(X)=−Retr(f(X)),f(x)=xlogx,

where f(X)f(X)f(X) is evaluated by continuous functional calculus and log⁡\loglog is the natural logarithm. The matrices appearing here have entries

(ρAL)(a,ℓ),(a′,ℓ′)=∑bρ((a,b),ℓ),((a′,b),ℓ′),(ρBL)(b,ℓ),(b′,ℓ′)=∑aρ((a,b),ℓ),((a,b′),ℓ′),(ρL)ℓ,ℓ′=∑a,bρ((a,b),ℓ),((a,b),ℓ′).(\rho_{AL})_{(a,\ell),(a',\ell')}=\sum_b\rho_{((a,b),\ell),((a',b),\ell')},\quad (\rho_{BL})_{(b,\ell),(b',\ell')}=\sum_a\rho_{((a,b),\ell),((a,b'),\ell')},\quad (\rho_L)_{\ell,\ell'}=\sum_{a,b}\rho_{((a,b),\ell),((a,b),\ell')}.(ρAL​)(a,ℓ),(a′,ℓ′)​=b∑​ρ((a,b),ℓ),((a′,b),ℓ′)​,(ρBL​)(b,ℓ),(b′,ℓ′)​=a∑​ρ((a,b),ℓ),((a,b′),ℓ′)​,(ρL​)ℓ,ℓ′​=a,b∑​ρ((a,b),ℓ),((a,b),ℓ′)​.

The definition requires neither a density matrix nor nonempty index types; the functional calculus and logarithm are used as total operations.

QAlgorithms.Papers.Independent.Gap48.P19.fairPair

This defines a real-valued function on pairs of Boolean values: it assigns 1/21/21/2 to (false,false)(\mathrm{false},\mathrm{false})(false,false) and (true,true)(\mathrm{true},\mathrm{true})(true,true), and zero to the other two pairs.

QAlgorithms.Papers.Independent.Gap48.P19.fig3Law

For arbitrary types A,B,X,Y,LA,B,X,Y,LA,B,X,Y,L and arbitrary real-valued functions w:L→Rw:L\to\mathbb Rw:L→R, kx:L×X→Rk_x:L\times X\to\mathbb Rkx​:L×X→R, ky:L×Y→Rk_y:L\times Y\to\mathbb Rky​:L×Y→R, ka:X×A→Rk_a:X\times A\to\mathbb Rka​:X×A→R, and kb:Y×B→Rk_b:Y\times B\to\mathbb Rkb​:Y×B→R, this definition gives the real-valued function

p(((a,b),(x,y)),ℓ)=ka(x,a) kb(y,b) kx(ℓ,x) ky(ℓ,y) w(ℓ)p(((a,b),(x,y)),\ell) =k_a(x,a)\,k_b(y,b)\,k_x(\ell,x)\,k_y(\ell,y)\,w(\ell)p(((a,b),(x,y)),ℓ)=ka​(x,a)kb​(y,b)kx​(ℓ,x)ky​(ℓ,y)w(ℓ)

on ((A×B)×(X×Y))×L((A\times B)\times(X\times Y))\times L((A×B)×(X×Y))×L. There are no finiteness, nonemptiness, nonnegativity, or normalization assumptions on these types or functions; in particular, the definition does not itself assert that ppp is a probability law.

QAlgorithms.Papers.Independent.Gap48.P19.flaggedProduct

For arbitrary types A,B,LA,B,LA,B,L, with LLL finite and equipped with decidable equality, any real weights wℓw_\ellwℓ​, any families of complex square matrices rℓAr^A_\ellrℓA​ on AAA and rℓBr^B_\ellrℓB​ on BBB, and any unitary matrix FFF on LLL, this defines the matrix Ω\OmegaΩ on (A×B)×L(A\times B)\times L(A×B)×L with entries

Ω((a,b),s),((a′,b′),t)=∑ℓ∈Lwℓ(rℓA)a,a′(rℓB)b,b′Fs,ℓFt,ℓ‾.\Omega_{((a,b),s),((a',b'),t)} =\sum_{\ell\in L}w_\ell(r^A_\ell)_{a,a'}(r^B_\ell)_{b,b'}F_{s,\ell}\overline{F_{t,\ell}}.Ω((a,b),s),((a′,b′),t)​=ℓ∈L∑​wℓ​(rℓA​)a,a′​(rℓB​)b,b′​Fs,ℓ​Ft,ℓ​​.

Neither AAA nor BBB is required to be finite, and no positivity, normalization, or nonemptiness assumptions are imposed.

QAlgorithms.Papers.Independent.Gap48.P19.inputCopies

For arbitrary types A,BA,BA,B and arbitrary complex matrices ρ,σ\rho,\sigmaρ,σ indexed by A×BA\times BA×B, this definition gives the complex matrix CCC indexed by (A×A)×(B×B)(A\times A)\times(B\times B)(A×A)×(B×B) with entries

C((a1,a2),(b1,b2)), ((a1′,a2′),(b1′,b2′))=ρ(a1,b1),(a1′,b1′) σ(a2,b2),(a2′,b2′).C_{((a_1,a_2),(b_1,b_2)),\,((a_1',a_2'),(b_1',b_2'))} = \rho_{(a_1,b_1),(a_1',b_1')}\, \sigma_{(a_2,b_2),(a_2',b_2')}.C((a1​,a2​),(b1​,b2​)),((a1′​,a2′​),(b1′​,b2′​))​=ρ(a1​,b1​),(a1′​,b1′​)​σ(a2​,b2​),(a2′​,b2′​)​.

No finiteness, nonemptiness, positivity, Hermiticity, or trace-normalization assumptions are imposed.

QAlgorithms.Papers.Independent.Gap48.P19.k2Scores

For finite types A,BA,BA,B equipped with decidable equality and any complex square matrix ρ\rhoρ on A×BA\times BA×B, this defines the set of real numbers C(Ω)C(\Omega)C(Ω) obtainable by choosing a natural number sss, nonnegative weights pℓp_\ellpℓ​ summing to one, unit vectors vℓ∈CA×Bv_\ell\in\mathbb C^{A\times B}vℓ​∈CA×B, and a unitary matrix FFF on {0,…,s−1}\{0,\ldots,s-1\}{0,…,s−1} such that

ρx,y=∑ℓ=0s−1pℓvℓ(x)vℓ(y)‾,Ω(x,i),(y,j)=∑ℓ=0s−1pℓvℓ(x)vℓ(y)‾Fi,ℓFj,ℓ‾.\rho_{x,y}=\sum_{\ell=0}^{s-1}p_\ell v_\ell(x)\overline{v_\ell(y)},\qquad \Omega_{(x,i),(y,j)} =\sum_{\ell=0}^{s-1}p_\ell v_\ell(x)\overline{v_\ell(y)}F_{i,\ell}\overline{F_{j,\ell}}.ρx,y​=ℓ=0∑s−1​pℓ​vℓ​(x)vℓ​(y)​,Ω(x,i),(y,j)​=ℓ=0∑s−1​pℓ​vℓ​(x)vℓ​(y)​Fi,ℓ​Fj,ℓ​​.

Here

C(Ω)=S(tr⁡BΩ)+S(tr⁡AΩ)−S(tr⁡A×BΩ)−S(Ω),S(X)=−Re⁡tr⁡(f(X)),f(x)=xlog⁡x,C(\Omega)=S(\operatorname{tr}_B\Omega)+S(\operatorname{tr}_A\Omega) -S(\operatorname{tr}_{A\times B}\Omega)-S(\Omega), \qquad S(X)=-\operatorname{Re}\operatorname{tr}(f(X)),\quad f(x)=x\log x,C(Ω)=S(trB​Ω)+S(trA​Ω)−S(trA×B​Ω)−S(Ω),S(X)=−Retr(f(X)),f(x)=xlogx,

using continuous functional calculus and natural logarithms; partial traces sum matching discarded indices. Although sss is quantified over all natural numbers, s=0s=0s=0 cannot satisfy the weight-sum requirement. No density hypothesis on ρ\rhoρ is imposed separately.

QAlgorithms.Papers.Independent.Gap48.P19.lawMap

For a finite type III, an arbitrary type JJJ, any function p:I→Rp:I\to\mathbb Rp:I→R, and any map f:I→Jf:I\to Jf:I→J, this defines the function on JJJ given by j⟼∑i∈If(i)=jp(i)\displaystyle j\longmapsto\sum_{\substack{i\in I\\f(i)=j}}p(i)j⟼i∈If(i)=j​∑​p(i). There is no assumption that ppp is nonnegative or sums to one, and JJJ need not be finite. An empty fiber contributes zero; in particular, an empty III gives the zero function.

QAlgorithms.Papers.Independent.Gap48.P19.localSelectionBranch

For finite types A,BA,BA,B, arbitrary real-valued functions p,q:A×B→Rp,q:A\times B\to\mathbb Rp,q:A×B→R, a protocol kkk whose functions KA:(A×A)×(A×A)→RK_A:(A\times A)\times(A\times A)\to\mathbb RKA​:(A×A)×(A×A)→R and KB:(B×B)×(B×B)→RK_B:(B\times B)\times(B\times B)\to\mathbb RKB​:(B×B)×(B×B)→R have nonnegative entries and row sums 111, and elements a0∈A,b0∈Ba_0\in A,b_0\in Ba0​∈A,b0​∈B, this definition assigns to z=(zA,zB)∈A×Bz=(z_A,z_B)\in A\times Bz=(zA​,zB​)∈A×B the real number

s(z)=∑x,y∈A×BKA((xA,yA),(zA,a0)) KB((xB,yB),(zB,b0)) p(x)q(y).s(z)=\sum_{x,y\in A\times B} K_A((x_A,y_A),(z_A,a_0))\, K_B((x_B,y_B),(z_B,b_0))\,p(x)q(y).s(z)=x,y∈A×B∑​KA​((xA​,yA​),(zA​,a0​))KB​((xB​,yB​),(zB​,b0​))p(x)q(y).

There is no assumption that ppp or qqq is nonnegative or sums to 111, so sss is not required by this definition to be a probability law.

QAlgorithms.Papers.Independent.Gap48.P19.localSelectionProbability

For finite types A,BA,BA,B, arbitrary functions p,q:A×B→Rp,q:A\times B\to\mathbb Rp,q:A×B→R, elements a0∈A,b0∈Ba_0\in A,b_0\in Ba0​∈A,b0​∈B, and a protocol with nonnegative, row-normalized functions KAK_AKA​ on A×AA\times AA×A and KBK_BKB​ on B×BB\times BB×B, this definition is the real number

P=∑z,x,y∈A×BKA((xA,yA),(zA,a0)) KB((xB,yB),(zB,b0)) p(x)q(y).P=\sum_{z,x,y\in A\times B} K_A((x_A,y_A),(z_A,a_0))\, K_B((x_B,y_B),(z_B,b_0))\,p(x)q(y).P=z,x,y∈A×B∑​KA​((xA​,yA​),(zA​,a0​))KB​((xB​,yB​),(zB​,b0​))p(x)q(y).

No probability-law assumptions are imposed on p,qp,qp,q, and no positivity or nonzero condition is imposed on PPP.

QAlgorithms.Papers.Independent.Gap48.P19.marginalAL

For arbitrary types A,LA,LA,L, a finite type BBB, and any complex matrix ρ\rhoρ with rows and columns indexed by (A×B)×L(A\times B)\times L(A×B)×L, this defines the complex matrix indexed by A×LA\times LA×L whose entries are ρAL((a,ℓ),(a′,ℓ′))=∑b∈Bρ((a,b),ℓ)((a′,b),ℓ′)\displaystyle \rho_{AL}((a,\ell),(a',\ell'))=\sum_{b\in B}\rho((a,b),\ell)((a',b),\ell')ρAL​((a,ℓ),(a′,ℓ′))=b∈B∑​ρ((a,b),ℓ)((a′,b),ℓ′). No finiteness assumption is imposed on A,LA,LA,L, and ρ\rhoρ need not be Hermitian, positive semidefinite, or normalized. If BBB is empty, the resulting matrix is zero.

QAlgorithms.Papers.Independent.Gap48.P19.marginalBL

For arbitrary types A,B,LA,B,LA,B,L, with AAA finite, and any complex square matrix ρ\rhoρ indexed by (A×B)×L(A\times B)\times L(A×B)×L, this defines the complex square matrix on B×LB\times LB×L whose entries are

(ρBL)(b,ℓ),(b′,ℓ′)=∑a∈Aρ((a,b),ℓ),((a,b′),ℓ′).(\rho_{BL})_{(b,\ell),(b',\ell')}=\sum_{a\in A}\rho_{((a,b),\ell),((a,b'),\ell')}.(ρBL​)(b,ℓ),(b′,ℓ′)​=a∈A∑​ρ((a,b),ℓ),((a,b′),ℓ′)​.

No Hermiticity, positivity, or normalization is required of ρ\rhoρ, and B,LB,LB,L need not be finite. If AAA is empty, every entry of the resulting matrix is zero.

QAlgorithms.Papers.Independent.Gap48.P19.measuredSelectionOutput

For finite types A,BA,BA,B with decidable equality, arbitrary complex matrices ρ,σ\rho,\sigmaρ,σ indexed by A×BA\times BA×B, a unitary UUU indexed by A×AA\times AA×A, a family of unitaries VaV_aVa​ indexed by B×BB\times BB×B, and elements a0∈A,b0∈Ba_0\in A,b_0\in Ba0​∈A,b0​∈B, define

C((a1,a2),(b1,b2)), ((a1′,a2′),(b1′,b2′))=ρ(a1,b1),(a1′,b1′)σ(a2,b2),(a2′,b2′),Ba=Πa(U⊗Va)C(U⊗Va)†Πa,C_{((a_1,a_2),(b_1,b_2)),\,((a_1',a_2'),(b_1',b_2'))} =\rho_{(a_1,b_1),(a_1',b_1')}\sigma_{(a_2,b_2),(a_2',b_2')}, \quad B_a=\Pi_a(U\otimes V_a)C(U\otimes V_a)^\dagger\Pi_a,C((a1​,a2​),(b1​,b2​)),((a1′​,a2′​),(b1′​,b2′​))​=ρ(a1​,b1​),(a1′​,b1′​)​σ(a2​,b2​),(a2′​,b2′​)​,Ba​=Πa​(U⊗Va​)C(U⊗Va​)†Πa​,

where Πa\Pi_aΠa​ is diagonal with entry 111 where the first AAA-coordinate equals aaa and 000 elsewhere. Set

N(x,y),(x′,y′)=∑a∈A(Ba)((x,a0),(y,b0)), ((x′,a0),(y′,b0)),s=Re⁡tr⁡N.N_{(x,y),(x',y')}=\sum_{a\in A} (B_a)_{((x,a_0),(y,b_0)),\,((x',a_0),(y',b_0))}, \qquad s=\operatorname{Re}\operatorname{tr}N.N(x,y),(x′,y′)​=a∈A∑​(Ba​)((x,a0​),(y,b0​)),((x′,a0​),(y′,b0​))​,s=RetrN.

The defined matrix is s−1Ns^{-1}Ns−1N, with the real scalar s−1s^{-1}s−1 viewed as complex. No density-matrix assumptions or condition s>0s>0s>0 are imposed; when s=0s=0s=0, its inverse is defined to be zero and the output is the zero matrix.

QAlgorithms.Papers.Independent.Gap48.P19.orthonormalFlagMixture

For arbitrary types I,LI,LI,L, with LLL finite and equipped with decidable equality, any real weights wℓw_\ellwℓ​, any family of complex square matrices τℓ\tau_\ellτℓ​ on III, and any unitary matrix FFF on LLL, this defines the matrix Ω\OmegaΩ on I×LI\times LI×L by

Ω(i,s),(j,t)=∑ℓ∈Lwℓ(τℓ)i,jFs,ℓFt,ℓ‾.\Omega_{(i,s),(j,t)} =\sum_{\ell\in L}w_\ell(\tau_\ell)_{i,j}F_{s,\ell}\overline{F_{t,\ell}}.Ω(i,s),(j,t)​=ℓ∈L∑​wℓ​(τℓ​)i,j​Fs,ℓ​Ft,ℓ​​.

There are no nonnegativity or normalization requirements on the weights and no positivity or trace requirements on the matrices τℓ\tau_\ellτℓ​; III need not be finite. Empty LLL is allowed, in which case the defining sum is empty.

QAlgorithms.Papers.Independent.Gap48.P19.quantumBlock

Let AAA and BBB be finite types with decidable equality, let ρ,σ\rho,\sigmaρ,σ be arbitrary complex matrices indexed by A×BA\times BA×B, let UUU be a unitary matrix on A×AA\times AA×A, and let VhV_hVh​ be a unitary matrix on B×BB\times BB×B for every h∈Ah\in Ah∈A. Choose a0,a∈Aa_0,a\in Aa0​,a∈A and b0,b1,b2∈Bb_0,b_1,b_2\in Bb0​,b1​,b2​∈B. For h∈Ah\in Ah∈A and b,c∈Bb,c\in Bb,c∈B, define

Fh(b,c)=∑i1,i2,j1,j2∈Ar1,r2,s1,s2∈BU(h,a0),(i1,i2)(Vh)(b,b0),(r1,r2)ρ(i1,r1),(j1,s1)σ(i2,r2),(j2,s2)(Vh)(c,b0),(s1,s2)‾U(h,a0),(j1,j2)‾,S=Re⁡∑h∈A∑b∈BFh(b,b).F_h(b,c)= \sum_{\substack{i_1,i_2,j_1,j_2\in A\\r_1,r_2,s_1,s_2\in B}} U_{(h,a_0),(i_1,i_2)} (V_h)_{(b,b_0),(r_1,r_2)} \rho_{(i_1,r_1),(j_1,s_1)} \sigma_{(i_2,r_2),(j_2,s_2)} \overline{(V_h)_{(c,b_0),(s_1,s_2)}} \overline{U_{(h,a_0),(j_1,j_2)}}, \qquad S=\operatorname{Re}\sum_{h\in A}\sum_{b\in B}F_h(b,b).Fh​(b,c)=i1​,i2​,j1​,j2​∈Ar1​,r2​,s1​,s2​∈B​∑​U(h,a0​),(i1​,i2​)​(Vh​)(b,b0​),(r1​,r2​)​ρ(i1​,r1​),(j1​,s1​)​σ(i2​,r2​),(j2​,s2​)​(Vh​)(c,b0​),(s1​,s2​)​​U(h,a0​),(j1​,j2​)​​,S=Reh∈A∑​b∈B∑​Fh​(b,b).

Then quantumBlock⁡(ρ,σ,U,V,a0,b0,a,b1,b2)\operatorname{quantumBlock}(\rho,\sigma,U,V,a_0,b_0,a,b_1,b_2)quantumBlock(ρ,σ,U,V,a0​,b0​,a,b1​,b2​) is the complex number S−1Fa(b1,b2)S^{-1}F_a(b_1,b_2)S−1Fa​(b1​,b2​), with the real scalar S−1S^{-1}S−1 embedded in C\mathbb CC. No positivity or trace normalization is assumed for ρ\rhoρ or σ\sigmaσ, and no positivity or nonzero assumption is imposed on SSS; when S=0S=0S=0, its inverse is defined to be zero, so the result is zero.

QAlgorithms.Papers.Independent.Gap48.P19.quantumBranchFull

For finite types A,BA,BA,B with decidable equality, arbitrary complex matrices ρ,σ\rho,\sigmaρ,σ indexed by A×BA\times BA×B, a unitary matrix UUU indexed by A×AA\times AA×A, a family of unitary matrices VaV_aVa​ indexed by B×BB\times BB×B for a∈Aa\in Aa∈A, and an element a∈Aa\in Aa∈A, define the matrix CCC by

C((a1,a2),(b1,b2)), ((a1′,a2′),(b1′,b2′))=ρ(a1,b1),(a1′,b1′)σ(a2,b2),(a2′,b2′).C_{((a_1,a_2),(b_1,b_2)),\,((a_1',a_2'),(b_1',b_2'))} =\rho_{(a_1,b_1),(a_1',b_1')}\sigma_{(a_2,b_2),(a_2',b_2')}.C((a1​,a2​),(b1​,b2​)),((a1′​,a2′​),(b1′​,b2′​))​=ρ(a1​,b1​),(a1′​,b1′​)​σ(a2​,b2​),(a2′​,b2′​)​.

Let Πa\Pi_aΠa​ be diagonal with entry 111 exactly where the first AAA-coordinate equals aaa, and 000 elsewhere. The definition is

Ba=Πa(U⊗Va) C (U⊗Va)†Πa.B_a=\Pi_a(U\otimes V_a)\,C\,(U\otimes V_a)^\dagger\Pi_a.Ba​=Πa​(U⊗Va​)C(U⊗Va​)†Πa​.

Here †\dagger† denotes conjugate transpose; neither ρ\rhoρ nor σ\sigmaσ is assumed to be a density matrix.

QAlgorithms.Papers.Independent.Gap48.P19.quantumNumerator

For finite types A,BA,BA,B with decidable equality, arbitrary complex matrices ρ,σ\rho,\sigmaρ,σ indexed by A×BA\times BA×B, a unitary UUU indexed by A×AA\times AA×A, a family of unitaries VaV_aVa​ indexed by B×BB\times BB×B, and elements a0∈A,b0∈Ba_0\in A,b_0\in Ba0​∈A,b0​∈B, form the matrix CCC with entries

C((a1,a2),(b1,b2)), ((a1′,a2′),(b1′,b2′))=ρ(a1,b1),(a1′,b1′)σ(a2,b2),(a2′,b2′),C_{((a_1,a_2),(b_1,b_2)),\,((a_1',a_2'),(b_1',b_2'))} =\rho_{(a_1,b_1),(a_1',b_1')}\sigma_{(a_2,b_2),(a_2',b_2')},C((a1​,a2​),(b1​,b2​)),((a1′​,a2′​),(b1′​,b2′​))​=ρ(a1​,b1​),(a1′​,b1′​)​σ(a2​,b2​),(a2′​,b2′​)​,

and, for each a∈Aa\in Aa∈A, let Πa\Pi_aΠa​ be diagonal with entry 111 where the first AAA-coordinate equals aaa and 000 elsewhere, and set Ba=Πa(U⊗Va)C(U⊗Va)†ΠaB_a=\Pi_a(U\otimes V_a)C(U\otimes V_a)^\dagger\Pi_aBa​=Πa​(U⊗Va​)C(U⊗Va​)†Πa​. This definition gives the matrix NNN indexed by A×BA\times BA×B whose entries are

N(x,y),(x′,y′)=∑a∈A(Ba)((x,a0),(y,b0)), ((x′,a0),(y′,b0)).N_{(x,y),(x',y')}= \sum_{a\in A}(B_a)_{((x,a_0),(y,b_0)),\,((x',a_0),(y',b_0))}.N(x,y),(x′,y′)​=a∈A∑​(Ba​)((x,a0​),(y,b0​)),((x′,a0​),(y′,b0​))​.

No density-matrix assumptions are imposed on ρ,σ\rho,\sigmaρ,σ.

QAlgorithms.Papers.Independent.Gap48.P19.quantumScores

For finite types A,BA,BA,B equipped with decidable equality and any complex square matrix ρ\rhoρ on A×BA\times BA×B, this defines the set of real numbers

{S(τAL)+S(τBL)−S(τL)−S(τ): n∈N, n>0, τ≥0, tr⁡τ=1, tr⁡Lτ=ρ}.\left\{S(\tau_{AL})+S(\tau_{BL})-S(\tau_L)-S(\tau): \ n\in\mathbb N,\ n>0,\ \tau\ge0,\ \operatorname{tr}\tau=1,\ \operatorname{tr}_L\tau=\rho\right\}.{S(τAL​)+S(τBL​)−S(τL​)−S(τ): n∈N, n>0, τ≥0, trτ=1, trL​τ=ρ}.

Here τ\tauτ is indexed by (A×B)×L(A\times B)\times L(A×B)×L with L={0,…,n−1}L=\{0,\ldots,n-1\}L={0,…,n−1}, τAL=tr⁡Bτ\tau_{AL}=\operatorname{tr}_B\tauτAL​=trB​τ, τBL=tr⁡Aτ\tau_{BL}=\operatorname{tr}_A\tauτBL​=trA​τ, τL=tr⁡A×Bτ\tau_L=\operatorname{tr}_{A\times B}\tauτL​=trA×B​τ, and each partial trace sums matching row and column indices of the discarded subsystem; S(X)=−Re⁡tr⁡(f(X))S(X)=-\operatorname{Re}\operatorname{tr}(f(X))S(X)=−Retr(f(X)) with f(x)=xlog⁡xf(x)=x\log xf(x)=xlogx, evaluated by continuous functional calculus using the natural logarithm. No density assumption on ρ\rhoρ is supplied separately; only extensions satisfying the displayed requirements contribute, and the resulting set can be empty.

QAlgorithms.Papers.Independent.Gap48.P19.quantumSuccess

For finite types A,BA,BA,B with decidable equality, arbitrary complex matrices ρ,σ\rho,\sigmaρ,σ indexed by A×BA\times BA×B, a unitary UUU indexed by A×AA\times AA×A, a family of unitaries VaV_aVa​ indexed by B×BB\times BB×B, and elements a0∈A,b0∈Ba_0\in A,b_0\in Ba0​∈A,b0​∈B, define CCC by

C((a1,a2),(b1,b2)), ((a1′,a2′),(b1′,b2′))=ρ(a1,b1),(a1′,b1′)σ(a2,b2),(a2′,b2′).C_{((a_1,a_2),(b_1,b_2)),\,((a_1',a_2'),(b_1',b_2'))} =\rho_{(a_1,b_1),(a_1',b_1')}\sigma_{(a_2,b_2),(a_2',b_2')}.C((a1​,a2​),(b1​,b2​)),((a1′​,a2′​),(b1′​,b2′​))​=ρ(a1​,b1​),(a1′​,b1′​)​σ(a2​,b2​),(a2′​,b2′​)​.

For each aaa, let Πa\Pi_aΠa​ be diagonal with entry 111 where the first AAA-coordinate equals aaa and 000 elsewhere, and set Ba=Πa(U⊗Va)C(U⊗Va)†ΠaB_a=\Pi_a(U\otimes V_a)C(U\otimes V_a)^\dagger\Pi_aBa​=Πa​(U⊗Va​)C(U⊗Va​)†Πa​. The defined real number is

Re⁡∑x∈A, y∈B∑a∈A(Ba)((x,a0),(y,b0)), ((x,a0),(y,b0)).\operatorname{Re}\sum_{x\in A,\,y\in B}\sum_{a\in A} (B_a)_{((x,a_0),(y,b_0)),\,((x,a_0),(y,b_0))}.Rex∈A,y∈B∑​a∈A∑​(Ba​)((x,a0​),(y,b0​)),((x,a0​),(y,b0​))​.

Neither ρ,σ\rho,\sigmaρ,σ nor the resulting real number is subject to positivity or normalization assumptions in this definition.

QAlgorithms.Papers.Independent.Gap48.P19.shannonNats

For any finite type III and any function p:I→Rp:I\to\mathbb Rp:I→R, this defines H(p)=−∑i∈Ip(i)log⁡p(i)\displaystyle H(p)=-\sum_{i\in I}p(i)\log p(i)H(p)=−i∈I∑​p(i)logp(i), using the total real natural logarithm, for which log⁡0=0\log 0=0log0=0 and log⁡x=log⁡∣x∣\log x=\log|x|logx=log∣x∣ when x<0x<0x<0. No nonnegativity or normalization is required of ppp. Zero entries contribute zero, and an empty III gives H(p)=0H(p)=0H(p)=0.

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).

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