Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for On the Second-Order Asymptotics for Entanglement-Assisted Communication

Definition
QAlgorithms_Papers_Independent_Bridge50_P01

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

prove2quantum

The objects the formalized statements of On the Second-Order Asymptotics for Entanglement-Assisted Communication (arXiv:1405.1797) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • negLog2: PDF p.7, Eqs.(4.6)–(4.7): extended negative logarithm. A zero type-II error gives positive infinity, including sigma = 0.
  • tensorIdentity: PDF pp.4,9: N tensor identity on the second register, on all operators. In particular, all off-diagonal reference blocks are retained.
  • PureSharedEACode: PDF p.4, Eqs.(2.2)–(2.3): arbitrary finite pure entanglement on isomorphic assistance spaces, local message-dependent CPTP encoders, joint receiver POVM. The whole code is selected before the uniform message; no feedback is present.
  • pureSharedCodeSuccess: PDF p.4, Eq.(2.3): uniform average success probability.
  • codingBits: PDF p.4, Definition 1: exact integer-message one-shot boundary, in bits. For a CPTP N on nonzero finite registers and epsilon in (0,1), the set is nonempty (m=1) and bounded: m(1-epsilon) ≤ |A|^2. Thus this real supremum is the logarithm of the attained maximum integer message count, not a continuous-message relaxation. Assistance dimension is unbounded but finite.
  • operatorLog2: PDF p.5, Eqs.(2.5)–(2.6): logarithm of a PSD matrix, in bits. Zero eigenvalues are assigned zero; the trace expressions are used only on support-included pairs (in particular a state and its product marginals).
  • relativeVariance: PDF p.5, Eq.(2.6): centered relative-information variance in bits squared.
  • mutualVariance: PDF p.5: mutual-information variance; support inclusion is automatic for densities.
  • PureResource: PDF pp.3,5: every pure resource state on two isomorphic input-size registers. The norm requirement excludes the zero vector.
  • resourceOutput: PDF p.5, Eq.(2.8): channel output with the untouched reference second.
  • eacSingleLetterCapacity: PDF p.5, Eq.(2.8): the independently optimized single-letter EAC capacity. On the theorem domain, this is the capacity (2.7) by the cited BSST formula. The unit sphere is nonempty compact and mutual information is continuous, so the real supremum is a finite attained maximum. It is NOT defined at a chosen maximally entangled state.
  • optimizerVariances: PDF p.5, Definition 2: variances over ALL capacity-achieving pure resources. For finite CPTP channels on nonzero spaces these optimizer sets are nonempty, and the variance extrema are finite and attained.
  • varianceMin: PDF p.5, Eq.(2.10): minimum optimizer variance, independent of epsilon.
  • varianceMax: PDF p.5, Eq.(2.10): maximum optimizer variance, independent of epsilon.
  • epsilonVariance: PDF p.5, Theorem 3: equality epsilon=1/2 belongs to the maximum branch.
  • IsLogRemainder: PDF pp.5,12,16: an existential O(log n) remainder, with constants before n. Finite initial terms are unconstrained; n0≥2 prevents a zero log bound.
  • eaOperationalDispersion: PDF p.6, Eq.(3.3): operational epsilon-dispersion, on epsilon≠1/2. The EReal limsup retains infinity if the squared offset is unbounded.
  • IsProjectiveRepresentation: PDF p.15: a continuous projective unitary representation. The multiplication law is modulo unit scalar phases. Continuity is in the projective sense, expressed by continuity of conjugation on each operator; no global continuous choice of phases is required.
  • InputActionIrreducible: PDF p.15: irreducibility of ONLY the input representation.
  • IsInputOutputCovariant: PDF p.15, Eq.(4.72): covariance for every input density matrix.
  • BlockResource: PDF pp.9–12, corrected local meaning of (4.16): separate complete local orthogonal decompositions, with matching dimensions and arbitrary local ON bases. The full tensor product also contains unmatched block pairs. The map label and the two bases describe both decompositions without assuming a false decomposition of the full tensor space.
  • blockDimension: PDF p.9: positive dimension of the t-th matched local block.
  • blockEntangled: PDF p.9, Eq.(4.17): maximally entangled vector within a matched block. Schmidt coefficients may differ between blocks after weighting.
  • blockTheta: PDF p.9, Eq.(4.17): the constructed coherent resource superposition.
  • blockMixed: PDF p.9: maximally mixed state on a block in the specified local basis.
  • blockKappa: PDF p.9, Proposition 11: comparison state computed from the SAME blocks and probability law. It is generally not a product of the global marginals.
  • inputReferencePurification: PDF p.16, Eq.(5.1): canonical purification, using the positive square root. For a permutation-invariant rho this purification is invariant under the SAME permutation of input and reference, including degenerate spectra.
  • IsPermutationInvariantDensity: PDF p.16: permutation invariance on a block of n copies.
  • symmetricDensities: PDF p.16, Eq.(5.1): BOTH optimization domains are restricted to symmetric normalized densities; neither is restricted to tensor-product densities.
  • converseAlternatives: PDF p.16, Eq.(5.1): hypothesis-testing alternatives for a fixed input. Register order is output then reference, so the product factors are swapped from the display; the reference marginal is the actual one of the purification.
  • converseInputValues: PDF p.16, Eq.(5.1): max outside min, in a complete extended-real lattice.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Channel
import Definitions.Def_QAlgorithms_Defs_Measurement
import Definitions.Def_QAlgorithms_Defs_MatrixDistances
import Definitions.Def_QAlgorithms_Defs_FiniteRegisters
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P21
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P58
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P63
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P71
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P80
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P19
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P24
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P36
import Definitions.Def_QAlgorithms_Papers_Independent_Frontier30_P01

/-!
Datta, Tomamichel and Wilde, arXiv:1405.1797v2. All page numbers are PDF pages.
Only statements are drafted; the eight source-result theorems end in sorry.
New objects below are local to this paper; matching primitives use pinned accepted imports. Registers use arbitrary finite,
nonempty bases; a reference is identified with the input through an isomorphism.
-/

noncomputable section

namespace QAlgorithms.Papers.Independent.Bridge50.P01

open QAlgorithms Filter MeasureTheory
open scoped Matrix ComplexConjugate ComplexOrder ENNReal

-- Reuse pinned accepted definitions; these are not other draft chunks.
open QAlgorithms.Papers.Independent.Information100.P21 (Op)
open QAlgorithms.Papers.Independent.Information100.P58 (testingBeta testingD)
open QAlgorithms.Papers.Independent.Information100.P63 (normalCDF normalQuantile)
open QAlgorithms.Papers.Independent.Information100.P71 (channelPower)
open QAlgorithms.Papers.Independent.Information100.P80 (log2)
open QAlgorithms.Papers.Independent.Dependency50.P19 (mutualInformation)
open QAlgorithms.Papers.Independent.Dependency50.P24 (cqState)
open QAlgorithms.Papers.Independent.Dependency50.P36 (relativeEntropyFinite)
open QAlgorithms.Papers.Independent.Frontier30.P01 (classicalState)

attribute [local instance] Classical.propDecidable Classical.decEq

/-- PDF p.7, Eqs.(4.6)–(4.7): extended negative logarithm.
A zero type-II error gives positive infinity, including sigma = 0. -/
def negLog2 (b : ℝ≥0∞) : EReal :=
  if b = 0 then ⊤ else if b = ⊤ then ⊥ else ((-log2 b.toReal : ℝ) : EReal)

/-- PDF pp.4,9: N tensor identity on the second register, on all operators.
In particular, all off-diagonal reference blocks are retained. -/
def tensorIdentity {A B R : Type} (N : Superop A B) : Superop (A × R) (B × R) :=
  fun X i j => N (fun a b => X (a, i.2) (b, j.2)) i.1 j.1

/-- PDF p.4, Eqs.(2.2)–(2.3): arbitrary finite pure entanglement on isomorphic
assistance spaces, local message-dependent CPTP encoders, joint receiver POVM.
The whole code is selected before the uniform message; no feedback is present. -/
structure PureSharedEACode (A B : Type) [Fintype A] [Fintype B]
    [DecidableEq A] [DecidableEq B] (m : ℕ) where
  messagePositive : 0 < m
  assistance : ℕ
  assistancePositive : 0 < assistance
  shared : EuclideanSpace ℂ (Fin assistance × Fin assistance)
  normalized : ‖shared‖ = 1
  encode : Fin m → Superop (Fin assistance) A
  encodeChannel : ∀ j, IsChannel (encode j)
  measurement : Fin m → Op (B × Fin assistance)
  povm : IsPOVM measurement

/-- PDF p.4, Eq.(2.3): uniform average success probability. -/
def pureSharedCodeSuccess {A B : Type} [Fintype A] [Fintype B]
    [DecidableEq A] [DecidableEq B] (N : Superop A B) {m : ℕ}
    (C : PureSharedEACode A B m) : ℝ :=
  (m : ℝ)⁻¹ * ∑ j, effectProb (C.measurement j)
    (tensorIdentity N (tensorIdentity (C.encode j) (pureDensity C.shared)))

/-- PDF p.4, Definition 1: exact integer-message one-shot boundary, in bits.
For a CPTP N on nonzero finite registers and epsilon in (0,1), the set is
nonempty (m=1) and bounded: m(1-epsilon) ≤ |A|^2. Thus this real supremum
is the logarithm of the attained maximum integer message count, not a
continuous-message relaxation. Assistance dimension is unbounded but finite. -/
def codingBits {A B : Type} [Fintype A] [Fintype B]
    [DecidableEq A] [DecidableEq B] (N : Superop A B) (epsilon : ℝ) : ℝ :=
  sSup {r : ℝ | ∃ (m : ℕ) (C : PureSharedEACode A B m),
    1 - epsilon ≤ pureSharedCodeSuccess N C ∧ r = log2 m}

/-- PDF p.5, Eqs.(2.5)–(2.6): logarithm of a PSD matrix, in bits.
Zero eigenvalues are assigned zero; the trace expressions are used only on
support-included pairs (in particular a state and its product marginals). -/
def operatorLog2 {I : Type} [Fintype I] [DecidableEq I] (rho : Op I) : Op I :=
  cfc log2 rho

/-- PDF p.5, Eq.(2.6): centered relative-information variance in bits squared. -/
def relativeVariance {I : Type} [Fintype I] [DecidableEq I] (rho sigma : Op I) : ℝ :=
  let L := operatorLog2 rho - operatorLog2 sigma - (relativeEntropyFinite rho sigma : ℂ) • 1
  (rho * (L * L)).trace.re

/-- PDF p.5: mutual-information variance; support inclusion is automatic for densities. -/
def mutualVariance {A B : Type} [Fintype A] [Fintype B]
    [DecidableEq A] [DecidableEq B] (rho : Op (A × B)) : ℝ :=
  relativeVariance rho (Matrix.kronecker (traceRight rho) (traceLeft rho))

/-- PDF pp.3,5: every pure resource state on two isomorphic input-size registers.
The norm requirement excludes the zero vector. -/
abbrev PureResource (A : Type) [Fintype A] :=
  {psi : EuclideanSpace ℂ (A × A) // ‖psi‖ = 1}

/-- PDF p.5, Eq.(2.8): channel output with the untouched reference second. -/
def resourceOutput {A B : Type} [Fintype A]
    (N : Superop A B) (psi : PureResource A) : Op (B × A) :=
  tensorIdentity N (pureDensity psi.val)

/-- PDF p.5, Eq.(2.8): the independently optimized single-letter EAC capacity.
On the theorem domain, this is the capacity (2.7) by the cited BSST formula.
The unit sphere is nonempty compact and mutual information is continuous,
so the real supremum is a finite attained maximum. It is NOT defined at a
chosen maximally entangled state. -/
def eacSingleLetterCapacity {A B : Type} [Fintype A] [Fintype B]
    [DecidableEq A] [DecidableEq B] (N : Superop A B) : ℝ :=
  sSup (Set.range (fun psi : PureResource A => mutualInformation (resourceOutput N psi)))

/-- PDF p.5, Definition 2: variances over ALL capacity-achieving pure resources.
For finite CPTP channels on nonzero spaces these optimizer sets are nonempty,
and the variance extrema are finite and attained. -/
def optimizerVariances {A B : Type} [Fintype A] [Fintype B]
    [DecidableEq A] [DecidableEq B] (N : Superop A B) : Set ℝ :=
  {v | ∃ psi : PureResource A,
    mutualInformation (resourceOutput N psi) = eacSingleLetterCapacity N ∧
    v = mutualVariance (resourceOutput N psi)}

/-- PDF p.5, Eq.(2.10): minimum optimizer variance, independent of epsilon. -/
def varianceMin {A B : Type} [Fintype A] [Fintype B]
    [DecidableEq A] [DecidableEq B] (N : Superop A B) : ℝ :=
  sInf (optimizerVariances N)

/-- PDF p.5, Eq.(2.10): maximum optimizer variance, independent of epsilon. -/
def varianceMax {A B : Type} [Fintype A] [Fintype B]
    [DecidableEq A] [DecidableEq B] (N : Superop A B) : ℝ :=
  sSup (optimizerVariances N)

/-- PDF p.5, Theorem 3: equality epsilon=1/2 belongs to the maximum branch. -/
def epsilonVariance {A B : Type} [Fintype A] [Fintype B]
    [DecidableEq A] [DecidableEq B] (N : Superop A B) (epsilon : ℝ) : ℝ :=
  if epsilon < 1 / 2 then varianceMin N else varianceMax N

/-- PDF pp.5,12,16: an existential O(log n) remainder, with constants before n.
Finite initial terms are unconstrained; n0≥2 prevents a zero log bound. -/
def IsLogRemainder (K : ℕ → ℝ) : Prop :=
  ∃ C : ℝ, 0 < C ∧ ∃ n0 : ℕ, 2 ≤ n0 ∧ ∀ n ≥ n0, |K n| ≤ C * log2 n

/-- PDF p.6, Eq.(3.3): operational epsilon-dispersion, on epsilon≠1/2.
The EReal limsup retains infinity if the squared offset is unbounded. -/
def eaOperationalDispersion {A B : Type} [Fintype A] [Fintype B]
    [DecidableEq A] [DecidableEq B] (N : Superop A B) (epsilon : ℝ) : EReal :=
  Filter.limsup (fun n : ℕ =>
    ((((codingBits (channelPower N n) epsilon - (n : ℝ) * eacSingleLetterCapacity N) /
      normalQuantile epsilon) ^ 2 / (n : ℝ) : ℝ) : EReal)) atTop

/-- PDF p.15: a continuous projective unitary representation.
The multiplication law is modulo unit scalar phases. Continuity is in the
projective sense, expressed by continuity of conjugation on each operator;
no global continuous choice of phases is required. -/
def IsProjectiveRepresentation {G I : Type} [Group G] [TopologicalSpace G]
    [Fintype I] [DecidableEq I] (U : G → Matrix.unitaryGroup I ℂ) : Prop :=
  (∀ g h, ∃ z : ℂ, ‖z‖ = 1 ∧
    (U (g * h) : Op I) = z • ((U g : Op I) * (U h : Op I))) ∧
  ∀ rho : Op I, Continuous (fun g => conjSuperop (U g : Op I) rho)

/-- PDF p.15: irreducibility of ONLY the input representation. -/
def InputActionIrreducible {G A : Type} [Fintype A] [DecidableEq A]
    (U : G → Matrix.unitaryGroup A ℂ) : Prop :=
  ∀ S : Submodule ℂ (A → ℂ),
    (∀ g v, v ∈ S → (U g : Op A).mulVec v ∈ S) → S = ⊥ ∨ S = ⊤

/-- PDF p.15, Eq.(4.72): covariance for every input density matrix. -/
def IsInputOutputCovariant {G A B : Type} [Fintype A] [Fintype B]
    [DecidableEq A] [DecidableEq B]
    (N : Superop A B) (U : G → Matrix.unitaryGroup A ℂ)
    (V : G → Matrix.unitaryGroup B ℂ) : Prop :=
  ∀ g rho, IsDensityMatrix rho →
    N (conjSuperop (U g : Op A) rho) = conjSuperop (V g : Op B) (N rho)

/-- PDF pp.9–12, corrected local meaning of (4.16): separate complete local
orthogonal decompositions, with matching dimensions and arbitrary local ON
bases. The full tensor product also contains unmatched block pairs.
The map label and the two bases describe both decompositions without
assuming a false decomposition of the full tensor space. -/
structure BlockResource (A : Type) [Fintype A] [DecidableEq A] where
  blocks : ℕ
  label : A → Fin blocks
  nonemptyBlock : ∀ t, ∃ i, label i = t
  leftBasis : Matrix.unitaryGroup A ℂ
  rightBasis : Matrix.unitaryGroup A ℂ
  weight : Fin blocks → ℝ
  nonnegative : ∀ t, 0 ≤ weight t
  total : ∑ t, weight t = 1

/-- PDF p.9: positive dimension of the t-th matched local block. -/
def blockDimension {A : Type} [Fintype A] [DecidableEq A]
    (R : BlockResource A) (t : Fin R.blocks) : ℕ :=
  (Finset.univ.filter (fun i => R.label i = t)).card

/-- PDF p.9, Eq.(4.17): maximally entangled vector within a matched block.
Schmidt coefficients may differ between blocks after weighting. -/
def blockEntangled {A : Type} [Fintype A] [DecidableEq A]
    (R : BlockResource A) (t : Fin R.blocks) : EuclideanSpace ℂ (A × A) :=
  WithLp.toLp 2 fun p =>
    ((Real.sqrt (blockDimension R t : ℝ))⁻¹ : ℂ) *
      ∑ i ∈ Finset.univ.filter (fun i => R.label i = t),
        (R.leftBasis : Op A) p.1 i * (R.rightBasis : Op A) p.2 i

/-- PDF p.9, Eq.(4.17): the constructed coherent resource superposition. -/
def blockTheta {A : Type} [Fintype A] [DecidableEq A]
    (R : BlockResource A) : Op (A × A) :=
  pureDensity (∑ t, (Real.sqrt (R.weight t) : ℂ) • blockEntangled R t)

/-- PDF p.9: maximally mixed state on a block in the specified local basis. -/
def blockMixed {A : Type} [Fintype A] [DecidableEq A]
    (R : BlockResource A) (basis : Matrix.unitaryGroup A ℂ) (t : Fin R.blocks) : Op A :=
  conjSuperop (basis : Op A) (Matrix.diagonal (fun i =>
    if R.label i = t then ((blockDimension R t : ℂ)⁻¹) else 0))

/-- PDF p.9, Proposition 11: comparison state computed from the SAME blocks
and probability law. It is generally not a product of the global marginals. -/
def blockKappa {A : Type} [Fintype A] [DecidableEq A]
    (R : BlockResource A) : Op (A × A) :=
  ∑ t, (R.weight t : ℂ) • Matrix.kronecker
    (blockMixed R R.leftBasis t) (blockMixed R R.rightBasis t)

/-- PDF p.16, Eq.(5.1): canonical purification, using the positive square root.
For a permutation-invariant rho this purification is invariant under the SAME
permutation of input and reference, including degenerate spectra. -/
def inputReferencePurification {A : Type} [Fintype A] [DecidableEq A]
    (rho : Op A) : Op (A × A) :=
  pureDensity (WithLp.toLp 2 (fun p : A × A => (cfc Real.sqrt rho) p.1 p.2))

/-- PDF p.16: permutation invariance on a block of n copies. -/
def IsPermutationInvariantDensity {A : Type} {n : ℕ} (rho : Op (Fin n → A)) : Prop :=
  ∀ (p : Equiv.Perm (Fin n)) x y, rho (x ∘ p) (y ∘ p) = rho x y

/-- PDF p.16, Eq.(5.1): BOTH optimization domains are restricted to symmetric
normalized densities; neither is restricted to tensor-product densities. -/
def symmetricDensities (A : Type) [Fintype A] (n : ℕ) : Set (Op (Fin n → A)) :=
  {rho | IsDensityMatrix rho ∧ IsPermutationInvariantDensity rho}

/-- PDF p.16, Eq.(5.1): hypothesis-testing alternatives for a fixed input.
Register order is output then reference, so the product factors are swapped
from the display; the reference marginal is the actual one of the purification. -/
def converseAlternatives {A B : Type} [Fintype A] [Fintype B]
    [DecidableEq A] [DecidableEq B] (N : Superop A B) (n : ℕ)
    (epsilon : ℝ) (rho : Op (Fin n → A)) : Set EReal :=
  {v | ∃ sigma ∈ symmetricDensities B n,
    v = testingD epsilon
      (tensorIdentity (channelPower N n) (inputReferencePurification rho))
      (Matrix.kronecker sigma (traceLeft (inputReferencePurification rho)))}

/-- PDF p.16, Eq.(5.1): max outside min, in a complete extended-real lattice. -/
def converseInputValues {A B : Type} [Fintype A] [Fintype B]
    [DecidableEq A] [DecidableEq B] (N : Superop A B) (n : ℕ)
    (epsilon : ℝ) : Set EReal :=
  {v | ∃ rho ∈ symmetricDensities A n, v = sInf (converseAlternatives N n epsilon rho)}

/-! Small definitional sanity checks; no source-result proofs are attempted. -/

example : negLog2 0 = ⊤ := by simp [negLog2]

example {I : Type} [Fintype I] [DecidableEq I] :
    relativeVariance (0 : Op I) 0 = 0 := by
  simp [relativeVariance, relativeEntropyFinite]

example : finiteMaxEntangled (Fin 1) (0, 0) = 1 := by
  simp [finiteMaxEntangled]

example {A R : Type} (X : Op (A × R)) : tensorIdentity (fun Y : Op A => Y) X = X := by
  rfl

example {X B : Type} [DecidableEq X] (p : X → ℝ) (rho : X → Op B)
    (x y : X) (b c : B) (h : x ≠ y) : cqState p rho (x,b) (y,c) = 0 := by
  simp [cqState, h]

example {A B : Type} [Fintype A] [Fintype B] [DecidableEq A] [DecidableEq B]
    (N : Superop A B) : epsilonVariance N (1 / 2) = varianceMax N := by
  simp [epsilonVariance]

/-- The permitted zero alternative has infinite testing entropy, not log(0)=0. -/
example {I : Type} [Fintype I] [DecidableEq I] (rho : Op I)
    (hrho : IsDensityMatrix rho) (epsilon : ℝ) (he : 0 < epsilon) :
    testingD epsilon rho 0 = ⊤ := by
  have hId : IsEffect (1 : Op I) := by
    refine ⟨Matrix.PosSemidef.one, ?_⟩
    simpa using (Matrix.PosSemidef.zero : (0 : Op I).PosSemidef)
  have hp : effectProb (1 : Op I) rho = 1 := by
    simp [effectProb, hrho.2]
  have hz : (0 : ℝ) ∈ {b | ∃ Q : Op I, IsEffect Q ∧
      1 - epsilon ≤ effectProb Q rho ∧ b = effectProb Q 0} := by
    refine ⟨1, hId, ?_, ?_⟩
    · rw [hp]
      linarith
    · simp [effectProb]
  have hbelow : BddBelow {b : ℝ | ∃ Q : Op I, IsEffect Q ∧
      1 - epsilon ≤ effectProb Q rho ∧ b = effectProb Q 0} := by
    refine ⟨0, ?_⟩
    rintro b ⟨Q, _, _, rfl⟩
    simp [effectProb]
  have hb : testingBeta epsilon rho 0 = 0 := by
    apply le_antisymm (csInf_le hbelow hz)
    apply le_csInf ⟨0, hz⟩
    rintro b ⟨Q, _, _, rfl⟩
    simp [effectProb]
  simp [testingD, hb]

/-- Every block used as a denominator is nonzero by construction. -/
example {A : Type} [Fintype A] [DecidableEq A]
    (R : BlockResource A) (t : Fin R.blocks) : blockDimension R t ≠ 0 := by
  obtain ⟨i, hi⟩ := R.nonemptyBlock t
  unfold blockDimension
  exact Finset.card_ne_zero.mpr ⟨i, by simp [hi]⟩

/-- Single-copy symmetry imposes no constraint; it does not force product inputs. -/
example {A : Type} (rho : Op (Fin 1 → A)) : IsPermutationInvariantDensity rho := by
  intro p x y
  have hp : p = 1 := Subsingleton.elim _ _
  subst p
  rfl

/-- The constructed purification is zero at zero; all uses require a density. -/
example {A : Type} [Fintype A] [DecidableEq A] :
    inputReferencePurification (0 : Op A) = 0 := by
  ext i j
  simp [inputReferencePurification, pureDensity, cfc_zero]

end QAlgorithms.Papers.Independent.Bridge50.P01
Source
On the Second-Order Asymptotics for Entanglement-Assisted Communication, arXiv:1405.1797v2, https://arxiv.org/abs/1405.1797v2
Read-back

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

QAlgorithms.Papers.Independent.Bridge50.P01.BlockResource

For a finite type AAA with decidable equality, a value of this structure consists of a natural number bbb, a labeling function ℓ:A→{0,…,b−1}\ell:A\to\{0,\ldots,b-1\}ℓ:A→{0,…,b−1}, a requirement that every label ttt occurs as ℓ(i)\ell(i)ℓ(i) for some i∈Ai\in Ai∈A, two unitary matrices L,RL,RL,R on CA\mathbb C^ACA, and real weights wtw_twt​ satisfying wt≥0w_t\ge0wt​≥0 for every ttt and ∑t=0b−1wt=1\sum_{t=0}^{b-1}w_t=1∑t=0b−1​wt​=1. Zero weights are permitted, even though every labeled block must be nonempty. The weight condition makes b=0b=0b=0 impossible, and together with the labeling conditions makes such a structure impossible when AAA is empty.

QAlgorithms.Papers.Independent.Bridge50.P01.InputActionIrreducible

For any type GGG, a finite type AAA with decidable equality, and any function U:G→U(CA)U:G\to\mathrm U(\mathbb C^A)U:G→U(CA), this property says that every complex linear subspace S⊆CAS\subseteq\mathbb C^AS⊆CA satisfying Ugv∈SU_gv\in SUg​v∈S for every g∈Gg\in Gg∈G and every v∈Sv\in Sv∈S is either the zero subspace or all of CA\mathbb C^ACA. No group structure on GGG, representation law for UUU, or nonemptiness of GGG or AAA is required; if GGG is empty, the invariance hypothesis holds for every subspace, and if AAA is empty, the ambient vector space is zero.

QAlgorithms.Papers.Independent.Bridge50.P01.IsInputOutputCovariant

For any type GGG, finite types A,BA,BA,B with decidable equality, any function N:CA×A→CB×BN:\mathbb C^{A\times A}\to\mathbb C^{B\times B}N:CA×A→CB×B, and unitary-matrix families UgU_gUg​ on CA\mathbb C^ACA and VgV_gVg​ on CB\mathbb C^BCB, this property means that, for every g∈Gg\in Gg∈G and every positive semidefinite matrix ρ\rhoρ on AAA with tr⁡ρ=1\operatorname{tr}\rho=1trρ=1,

N(UgρUg†)=VgN(ρ)Vg†.N(U_g\rho U_g^\dagger)=V_gN(\rho)V_g^\dagger.N(Ug​ρUg†​)=Vg​N(ρ)Vg†​.

The identity is required only for density matrices ρ\rhoρ. No channel assumption on NNN, group structure on GGG, or representation law for either family is included. The condition is vacuous if GGG is empty or if AAA is empty, since an empty-dimensional matrix cannot have trace 111.

QAlgorithms.Papers.Independent.Bridge50.P01.IsLogRemainder

For any sequence K:N→RK:\mathbb N\to\mathbb RK:N→R, this property means that there exist a real constant C>0C>0C>0 and a natural number n0≥2n_0\ge2n0​≥2 such that every natural number n≥n0n\ge n_0n≥n0​ satisfies

∣K(n)∣≤C ln⁡nln⁡2.|K(n)|\le C\,\frac{\ln n}{\ln2}.∣K(n)∣≤Cln2lnn​.

There is no condition on the finitely many values before n0n_0n0​, including K(0)K(0)K(0) and K(1)K(1)K(1).

QAlgorithms.Papers.Independent.Bridge50.P01.IsPermutationInvariantDensity

For any type AAA, any natural number nnn, and any complex matrix ρ\rhoρ indexed by functions {0,…,n−1}→A\{0,\ldots,n-1\}\to A{0,…,n−1}→A, this predicate says that, for every permutation ppp of the nnn positions and every two such functions x,yx,yx,y,

ρx∘p, y∘p=ρx,y.\rho_{x\circ p,\,y\circ p}=\rho_{x,y}.ρx∘p,y∘p​=ρx,y​.

The same permutation acts on both matrix indices. The predicate imposes no positivity or trace condition, despite its name. It includes n=0n=0n=0, when there is one function from the empty set to AAA and the invariance condition holds automatically; if AAA is empty and n>0n>0n>0, there are no matrix indices and the condition is vacuous.

QAlgorithms.Papers.Independent.Bridge50.P01.IsProjectiveRepresentation

For a group GGG equipped with a topology, a finite type III with decidable equality, and a function UUU assigning a unitary matrix UgU_gUg​ on CI\mathbb C^ICI to each g∈Gg\in Gg∈G, this property requires both that, for every g,h∈Gg,h\in Gg,h∈G, there exists a complex number zzz with ∣z∣=1|z|=1∣z∣=1 such that Ugh=zUgUhU_{gh}=zU_gU_hUgh​=zUg​Uh​, and that, for every complex matrix ρ\rhoρ on III, the map g↦UgρUg†g\mapsto U_g\rho U_g^\daggerg↦Ug​ρUg†​ is continuous. The scalar zzz may depend on g,hg,hg,h; no continuity of its choice is required. No compatibility between the group operations and the topology, and no nonemptiness of III, is assumed.

QAlgorithms.Papers.Independent.Bridge50.P01.PureResource

For a finite type AAA, this abbreviates the type of pairs consisting of a vector ψ∈CA×A\psi\in\mathbb C^{A\times A}ψ∈CA×A and a proof that its Euclidean norm is 111. No decidable-equality assumption is required. If AAA is empty, this type has no elements, since its vector space contains only the zero vector.

QAlgorithms.Papers.Independent.Bridge50.P01.PureSharedEACode

For finite types A,BA,BA,B, each equipped with decidable equality, and a natural number mmm, this structure consists of a proof that m>0m>0m>0, a positive natural number ddd called the assistance dimension, a vector ψ∈C{0,…,d−1}2\psi\in\mathbb C^{\{0,\ldots,d-1\}^2}ψ∈C{0,…,d−1}2 of Euclidean norm 111, encoding functions Ej:Mat⁡d(C)→Mat⁡A(C)\mathcal E_j:\operatorname{Mat}_d(\mathbb C)\to\operatorname{Mat}_A(\mathbb C)Ej​:Matd​(C)→MatA​(C) for every 0≤j<m0\le j<m0≤j<m, and matrices MjM_jMj​ indexed by B×{0,…,d−1}B\times\{0,\ldots,d-1\}B×{0,…,d−1}. Each encoding function must have a finite Kraus representation: there exist a natural number rjr_jrj​ and matrices Kj,ℓK_{j,\ell}Kj,ℓ​ from Cd\mathbb C^dCd to CA\mathbb C^ACA such that ∑ℓ<rjKj,ℓ†Kj,ℓ=Id\sum_{\ell<r_j}K_{j,\ell}^{\dagger}K_{j,\ell}=I_d∑ℓ<rj​​Kj,ℓ†​Kj,ℓ​=Id​ and Ej(X)=∑ℓ<rjKj,ℓXKj,ℓ†\mathcal E_j(X)=\sum_{\ell<r_j}K_{j,\ell}XK_{j,\ell}^{\dagger}Ej​(X)=∑ℓ<rj​​Kj,ℓ​XKj,ℓ†​ for every matrix XXX. The measurement matrices must satisfy Mj⪰0M_j\succeq0Mj​⪰0 for every jjj and ∑j<mMj=I\sum_{j<m}M_j=I∑j<m​Mj​=I. The shared vector need not be maximally entangled. No such structure exists for m=0m=0m=0.

QAlgorithms.Papers.Independent.Bridge50.P01.blockDimension

For a finite type AAA with decidable equality, let RRR consist of a natural block count bbb, a surjective labeling ℓ:A→{0,…,b−1}\ell:A\to\{0,\ldots,b-1\}ℓ:A→{0,…,b−1}, two unitary matrices on CA\mathbb C^ACA, and nonnegative real block weights summing to 111. For any block label t∈{0,…,b−1}t\in\{0,\ldots,b-1\}t∈{0,…,b−1}, this defines

dt=∣{i∈A:ℓ(i)=t}∣.d_t=\bigl|\{i\in A:\ell(i)=t\}\bigr|.dt​=​{i∈A:ℓ(i)=t}​.

Thus it counts the indices carrying label ttt; surjectivity ensures dt>0d_t>0dt​>0, regardless of whether that block’s weight is zero.

QAlgorithms.Papers.Independent.Bridge50.P01.blockEntangled

For a finite type AAA with decidable equality, let a block resource consist of a block count bbb, a surjective labeling ℓ:A→{0,…,b−1}\ell:A\to\{0,\ldots,b-1\}ℓ:A→{0,…,b−1}, unitary matrices L,RL,RL,R on CA\mathbb C^ACA, and nonnegative weights wtw_twt​ summing to 111. For any label ttt, set dt=∣{i∈A:ℓ(i)=t}∣d_t=|\{i\in A:\ell(i)=t\}|dt​=∣{i∈A:ℓ(i)=t}∣. This defines the vector vt∈CA×Av_t\in\mathbb C^{A\times A}vt​∈CA×A by

vt(a,a′)=1dt∑i∈Aℓ(i)=tLa,iRa′,i.v_t(a,a')=\frac1{\sqrt{d_t}}\sum_{\substack{i\in A\\\ell(i)=t}}L_{a,i}R_{a',i}.vt​(a,a′)=dt​​1​i∈Aℓ(i)=t​∑​La,i​Ra′,i​.

The entries of the right matrix are used without complex conjugation. The block weights do not enter this vector, and dt>0d_t>0dt​>0 follows from the requirement that every label occurs.

QAlgorithms.Papers.Independent.Bridge50.P01.blockKappa

For any finite type AAA with decidable equality and any block resource RRR, let bbb be its number of blocks, let ℓ:A→{0,…,b−1}\ell:A\to\{0,\ldots,b-1\}ℓ:A→{0,…,b−1} be its surjective labeling, let WL,WRW_L,W_RWL​,WR​ be its two unitary matrices, and let wt≥0w_t\ge0wt​≥0 be its weights, with ∑t<bwt=1\sum_{t<b}w_t=1∑t<b​wt​=1. Write dt=∣{i∈A:ℓ(i)=t}∣d_t=|\{i\in A:\ell(i)=t\}|dt​=∣{i∈A:ℓ(i)=t}∣, and let DtD_tDt​ be the diagonal matrix whose iii-th diagonal entry is dt−1d_t^{-1}dt−1​ when ℓ(i)=t\ell(i)=tℓ(i)=t, and 000 otherwise. This definition returns the matrix on CA×A\mathbb C^{A\times A}CA×A

∑t<bwt (WLDtWL†)⊗(WRDtWR†),\sum_{t<b}w_t\, (W_LD_tW_L^\dagger)\otimes(W_RD_tW_R^\dagger),t<b∑​wt​(WL​Dt​WL†​)⊗(WR​Dt​WR†​),

where (X⊗Y)(i,j),(i′,j′)=Xii′Yjj′(X\otimes Y)_{(i,j),(i',j')}=X_{ii'}Y_{jj'}(X⊗Y)(i,j),(i′,j′)​=Xii′​Yjj′​. Every dtd_tdt​ is positive by surjectivity; zero block weights are permitted.

QAlgorithms.Papers.Independent.Bridge50.P01.blockMixed

For any finite type AAA with decidable equality, a block resource RRR consists of a natural number bbb of blocks, a surjective labeling ℓ:A→{0,…,b−1}\ell:A\to\{0,\ldots,b-1\}ℓ:A→{0,…,b−1}, two unitary matrices on CA\mathbb C^ACA, and nonnegative block weights summing to 111. Given any unitary matrix WWW on CA\mathbb C^ACA, independently of the two matrices stored in RRR, and any block index t<bt<bt<b, this definition returns

WDtW†,(Dt)ij={∣ℓ−1(t)∣−1,i=j and ℓ(i)=t,0,otherwise.W D_t W^\dagger,\qquad (D_t)_{ij}= \begin{cases} |\ell^{-1}(t)|^{-1},&i=j\text{ and }\ell(i)=t,\\ 0,&\text{otherwise}. \end{cases}WDt​W†,(Dt​)ij​={∣ℓ−1(t)∣−1,0,​i=j and ℓ(i)=t,otherwise.​

Here the block dimension is the cardinality ∣ℓ−1(t)∣|\ell^{-1}(t)|∣ℓ−1(t)∣, regarded as a complex number when inverted. Surjectivity makes this cardinality positive. The stored weights and stored bases do not enter this expression; their constraints remain part of the supplied block resource.

QAlgorithms.Papers.Independent.Bridge50.P01.blockTheta

For a finite type AAA with decidable equality, let a block resource consist of a natural block count bbb, a surjective labeling ℓ:A→{0,…,b−1}\ell:A\to\{0,\ldots,b-1\}ℓ:A→{0,…,b−1}, two unitary matrices L,RL,RL,R on CA\mathbb C^ACA, and real weights wt≥0w_t\ge0wt​≥0 with ∑twt=1\sum_tw_t=1∑t​wt​=1. Put dt=∣{i∈A:ℓ(i)=t}∣d_t=|\{i\in A:\ell(i)=t\}|dt​=∣{i∈A:ℓ(i)=t}∣ and define

v(a,a′)=∑t=0b−1wtdt∑i∈Aℓ(i)=tLa,iRa′,i.v(a,a')=\sum_{t=0}^{b-1}\frac{\sqrt{w_t}}{\sqrt{d_t}} \sum_{\substack{i\in A\\\ell(i)=t}}L_{a,i}R_{a',i}.v(a,a′)=t=0∑b−1​dt​​wt​​​i∈Aℓ(i)=t​∑​La,i​Ra′,i​.

This declaration defines the matrix Θ\ThetaΘ on A×AA\times AA×A by Θ(p,q)=v(p)v(q)‾\Theta(p,q)=v(p)\overline{v(q)}Θ(p,q)=v(p)v(q)​, the outer product vv†vv^\daggervv†. The vector is summed over blocks before taking its outer product, so the formula includes terms between different blocks. Every dtd_tdt​ is positive, and a block with wt=0w_t=0wt​=0 contributes zero.

QAlgorithms.Papers.Independent.Bridge50.P01.codingBits

For finite types A,BA,BA,B with decidable equality, an arbitrary function N:Mat⁡A(C)→Mat⁡B(C)N:\operatorname{Mat}_A(\mathbb C)\to\operatorname{Mat}_B(\mathbb C)N:MatA​(C)→MatB​(C), and any real ϵ\epsilonϵ, this defines the real supremum of log⁡2m=ln⁡(m)/ln⁡2\log_2m=\ln(m)/\ln2log2​m=ln(m)/ln2 over the following choices: a positive natural number mmm, a positive assistance dimension ddd, a unit vector ψ∈Cd×d\psi\in\mathbb C^{d\times d}ψ∈Cd×d, encoding maps Ej(X)=∑ℓKj,ℓXKj,ℓ†\mathcal E_j(X)=\sum_\ell K_{j,\ell}XK_{j,\ell}^{\dagger}Ej​(X)=∑ℓ​Kj,ℓ​XKj,ℓ†​ with finite Kraus families satisfying ∑ℓKj,ℓ†Kj,ℓ=Id\sum_\ell K_{j,\ell}^{\dagger}K_{j,\ell}=I_d∑ℓ​Kj,ℓ†​Kj,ℓ​=Id​, and positive semidefinite matrices MjM_jMj​ on B×{0,…,d−1}B\times\{0,\ldots,d-1\}B×{0,…,d−1} satisfying ∑j<mMj=I\sum_{j<m}M_j=I∑j<m​Mj​=I, subject to

1−ϵ≤1m∑j<mRe⁡tr⁡(MjΩj),(Ωj)(b,r),(b′,r′)=(N ⁣(Ej ⁣([ψ(s,r)ψ(t,r′)‾]s,t<d)))b,b′.1-\epsilon\le\frac1m\sum_{j<m}\operatorname{Re}\operatorname{tr}(M_j\Omega_j), \quad (\Omega_j)_{(b,r),(b',r')} = \left(N\!\left(\mathcal E_j\!\left( [\psi_{(s,r)}\overline{\psi_{(t,r')}}]_{s,t<d} \right)\right)\right)_{b,b'}.1−ϵ≤m1​j<m∑​Retr(Mj​Ωj​),(Ωj​)(b,r),(b′,r′)​=(N(Ej​([ψ(s,r)​ψ(t,r′)​​]s,t<d​)))b,b′​.

Neither NNN nor ϵ\epsilonϵ is further restricted. This is a supremum in R\mathbb RR; its totalized value is 000 if the set is empty or unbounded above.

QAlgorithms.Papers.Independent.Bridge50.P01.converseAlternatives

For finite types A,BA,BA,B with decidable equality, any function NNN from complex AAA-indexed square matrices to complex BBB-indexed square matrices, any natural number nnn, any real ϵ\epsilonϵ, and any complex matrix ρ\rhoρ indexed by An={0,…,n−1}→AA^n=\{0,\ldots,n-1\}\to AAn={0,…,n−1}→A, this definition gives the set

{Dϵ ⁣((N[n]⊗id)(Pρ) ∥ σ⊗tr⁡AnPρ): σ≥0, tr⁡σ=1, σx∘p,y∘p=σx,y for all p,x,y}⊆R‾.\left\{ D_\epsilon\!\left( (N^{[n]}\otimes\mathrm{id})(P_\rho) \,\middle\|\, \sigma\otimes\operatorname{tr}_{A^n}P_\rho \right): \ \sigma\ge0,\ \operatorname{tr}\sigma=1,\ \sigma_{x\circ p,y\circ p}=\sigma_{x,y}\ \text{for all }p,x,y \right\}\subseteq\overline{\mathbb R}.{Dϵ​((N[n]⊗id)(Pρ​)​σ⊗trAn​Pρ​): σ≥0, trσ=1, σx∘p,y∘p​=σx,y​ for all p,x,y}⊆R.

Here σ\sigmaσ is indexed by BnB^nBn; Pρ=vv†P_\rho=vv^\daggerPρ​=vv†, with v(x,y)=cfc⁡(⋅,ρ)xyv_{(x,y)}=\operatorname{cfc}(\sqrt{\cdot},\rho)_{xy}v(x,y)​=cfc(⋅​,ρ)xy​; and (tr⁡AnPρ)y,y′=∑x(Pρ)(x,y),(x,y′)(\operatorname{tr}_{A^n}P_\rho)_{y,y'}=\sum_x(P_\rho)_{(x,y),(x,y')}(trAn​Pρ​)y,y′​=∑x​(Pρ​)(x,y),(x,y′)​. The map N[n]N^{[n]}N[n] is defined literally by

N[n](X)u,v=∑x,y∈AnXx,y∏i<nN(Exi,yi)ui,vi,N^{[n]}(X)_{u,v} =\sum_{x,y\in A^n}X_{x,y} \prod_{i<n}N(E_{x_i,y_i})_{u_i,v_i},N[n](X)u,v​=x,y∈An∑​Xx,y​i<n∏​N(Exi​,yi​​)ui​,vi​​,

where Ea,a′E_{a,a'}Ea,a′​ is the matrix unit, and its extension to the first factor satisfies

((N[n]⊗id)(Z))(u,r),(v,s)=N[n] ⁣((Z(x,r),(y,s))x,y)u,v.((N^{[n]}\otimes\mathrm{id})(Z))_{(u,r),(v,s)} =N^{[n]}\!\left((Z_{(x,r),(y,s)})_{x,y}\right)_{u,v}.((N[n]⊗id)(Z))(u,r),(v,s)​=N[n]((Z(x,r),(y,s)​)x,y​)u,v​.

For matrices X,YX,YX,Y on a common finite index set, define

βϵ(X,Y)=inf⁡{Re⁡tr⁡(TY):T≥0, I−T≥0, 1−ϵ≤Re⁡tr⁡(TX)};\beta_\epsilon(X,Y) =\inf\{\operatorname{Re}\operatorname{tr}(TY): T\ge0,\ I-T\ge0,\ 1-\epsilon\le\operatorname{Re}\operatorname{tr}(TX)\};βϵ​(X,Y)=inf{Retr(TY):T≥0, I−T≥0, 1−ϵ≤Retr(TX)};

then Dϵ(X∥Y)=+∞D_\epsilon(X\|Y)=+\inftyDϵ​(X∥Y)=+∞ if this real infimum is 000, and otherwise Dϵ(X∥Y)=−log⁡2βϵ(X,Y)D_\epsilon(X\|Y)=-\log_2\beta_\epsilon(X,Y)Dϵ​(X∥Y)=−log2​βϵ​(X,Y), embedded in the extended reals. No channel hypothesis on NNN, density hypothesis on ρ\rhoρ, or restriction on ϵ\epsilonϵ is imposed. The real infimum defining βϵ\beta_\epsilonβϵ​ is total, including the value 000 for an empty feasible set. The case n=0n=0n=0 uses empty products equal to 111; if the set of eligible σ\sigmaσ is empty, the displayed set is empty.

QAlgorithms.Papers.Independent.Bridge50.P01.converseInputValues

For finite types A,BA,BA,B with decidable equality, any function NNN from complex AAA-indexed square matrices to complex BBB-indexed square matrices, any natural number nnn, and any real ϵ\epsilonϵ, this definition gives

{inf⁡σ≥0, tr⁡σ=1σx∘p,y∘p=σx,y ∀p,x,yDϵ ⁣((N[n]⊗id)(Pρ) ∥ σ⊗tr⁡AnPρ): ρ≥0, tr⁡ρ=1, ρx∘p,y∘p=ρx,y ∀p,x,y}⊆R‾,\left\{ \inf_{\substack{\sigma\ge0,\ \operatorname{tr}\sigma=1\\ \sigma_{x\circ p,y\circ p}=\sigma_{x,y}\ \forall p,x,y}} D_\epsilon\!\left( (N^{[n]}\otimes\mathrm{id})(P_\rho) \,\middle\|\, \sigma\otimes\operatorname{tr}_{A^n}P_\rho \right): \ \rho\ge0,\ \operatorname{tr}\rho=1,\ \rho_{x\circ p,y\circ p}=\rho_{x,y}\ \forall p,x,y \right\}\subseteq\overline{\mathbb R},⎩⎨⎧​σ≥0, trσ=1σx∘p,y∘p​=σx,y​ ∀p,x,y​inf​Dϵ​((N[n]⊗id)(Pρ​)​σ⊗trAn​Pρ​): ρ≥0, trρ=1, ρx∘p,y∘p​=ρx,y​ ∀p,x,y⎭⎬⎫​⊆R,

where ρ\rhoρ is indexed by AnA^nAn, σ\sigmaσ by BnB^nBn, and the permutations act on the nnn positions. In this formula Pρ=vv†P_\rho=vv^\daggerPρ​=vv† with v(x,y)=cfc⁡(⋅,ρ)xyv_{(x,y)}=\operatorname{cfc}(\sqrt{\cdot},\rho)_{xy}v(x,y)​=cfc(⋅​,ρ)xy​, and (tr⁡AnPρ)y,y′=∑x(Pρ)(x,y),(x,y′)(\operatorname{tr}_{A^n}P_\rho)_{y,y'}=\sum_x(P_\rho)_{(x,y),(x,y')}(trAn​Pρ​)y,y′​=∑x​(Pρ​)(x,y),(x,y′)​. The map N[n]N^{[n]}N[n] is the matrix-unit extension

N[n](X)u,v=∑x,y∈AnXx,y∏i<nN(Exi,yi)ui,vi,N^{[n]}(X)_{u,v} =\sum_{x,y\in A^n}X_{x,y}\prod_{i<n}N(E_{x_i,y_i})_{u_i,v_i},N[n](X)u,v​=x,y∈An∑​Xx,y​i<n∏​N(Exi​,yi​​)ui​,vi​​,

and N[n]⊗idN^{[n]}\otimes\mathrm{id}N[n]⊗id applies this map to each block with the second-factor indices fixed. Finally, Dϵ(X∥Y)D_\epsilon(X\|Y)Dϵ​(X∥Y) is +∞+\infty+∞ when

inf⁡T≥0, I−T≥01−ϵ≤Re⁡tr⁡(TX)Re⁡tr⁡(TY)=0,\inf_{\substack{T\ge0,\ I-T\ge0\\ 1-\epsilon\le\operatorname{Re}\operatorname{tr}(TX)}} \operatorname{Re}\operatorname{tr}(TY)=0,T≥0, I−T≥01−ϵ≤Retr(TX)​inf​Retr(TY)=0,

and otherwise is minus the base-two logarithm of that real infimum. The inner infimum in the first display is an extended-real infimum, so an empty set of alternatives has infimum +∞+\infty+∞; an empty set of eligible input densities makes the set of input values empty. No channel assumption on NNN or restriction on ϵ\epsilonϵ is made, and n=0n=0n=0 is included, with empty products equal to 111.

QAlgorithms.Papers.Independent.Bridge50.P01.eaOperationalDispersion

For finite types A,BA,BA,B with decidable equality, any function N:CA×A→CB×BN:\mathbb C^{A\times A}\to\mathbb C^{B\times B}N:CA×A→CB×B, and any real ϵ\epsilonϵ, this defines the extended-real number

lim sup⁡n→∞(Bϵ(N[n])−nCNzϵ)21n.\limsup_{n\to\infty} \left(\frac{\mathcal B_\epsilon(N^{[n]})-nC_N}{z_\epsilon}\right)^2\frac1n.n→∞limsup​(zϵ​Bϵ​(N[n])−nCN​​)2n1​.

Here CNC_NCN​ is the real supremum, over unit vectors ψ∈CA×A\psi\in\mathbb C^{A\times A}ψ∈CA×A, of H(RB)+H(RA)−H(R)H(R_B)+H(R_A)-H(R)H(RB​)+H(RA​)−H(R), where R((b,r),(b′,r′))=N([ψ(a,r)ψ(a′,r′)‾]a,a′)b,b′R((b,r),(b',r'))=N([\psi(a,r)\overline{\psi(a',r')}]_{a,a'})_{b,b'}R((b,r),(b′,r′))=N([ψ(a,r)ψ(a′,r′)​]a,a′​)b,b′​, RB=Tr⁡ARR_B=\operatorname{Tr}_A RRB​=TrA​R, RA=Tr⁡BRR_A=\operatorname{Tr}_B RRA​=TrB​R, and H(X)=−Re⁡tr⁡[x↦xlog⁡2x](X)H(X)=-\operatorname{Re}\operatorname{tr}[x\mapsto x\log_2x](X)H(X)=−Retr[x↦xlog2​x](X) uses continuous functional calculus. The function N[n]N^{[n]}N[n] is defined even for nonlinear NNN, by

N[n](X)y,y′=∑x,x′∈AnXx,x′∏i=0n−1N(Exi,xi′)yi,yi′,N^{[n]}(X)_{y,y'}= \sum_{x,x'\in A^n}X_{x,x'}\prod_{i=0}^{n-1} N(E_{x_i,x'_i})_{y_i,y'_i},N[n](X)y,y′​=x,x′∈An∑​Xx,x′​i=0∏n−1​N(Exi​,xi′​​)yi​,yi′​​,

where Ea,a′E_{a,a'}Ea,a′​ is the matrix unit. For a function FFF from matrices on a finite type III to matrices on a finite type OOO, Bϵ(F)\mathcal B_\epsilon(F)Bϵ​(F) is the real supremum of log⁡2m\log_2mlog2​m over the following codes: m>0m>0m>0 messages; a positive integer hhh; a unit shared vector ξ∈Ch×h\xi\in\mathbb C^{h\times h}ξ∈Ch×h; one encoding channel Ej\mathcal E_jEj​ from h×hh\times hh×h matrices to matrices on III for each message; and positive semidefinite matrices MjM_jMj​ on O×{0,…,h−1}O\times\{0,\ldots,h-1\}O×{0,…,h−1} summing to the identity, such that

1m∑j=0m−1Re⁡tr⁡ ⁣[Mj(F⊗idh)(Ej⊗idh)(∣ξ⟩⟨ξ∣)]≥1−ϵ.\frac1m\sum_{j=0}^{m-1} \operatorname{Re}\operatorname{tr}\!\left[ M_j(F\otimes\mathrm{id}_h) (\mathcal E_j\otimes\mathrm{id}_h)(|\xi\rangle\langle\xi|) \right]\ge1-\epsilon.m1​j=0∑m−1​Retr[Mj​(F⊗idh​)(Ej​⊗idh​)(∣ξ⟩⟨ξ∣)]≥1−ϵ.

A channel here means a function X↦∑ℓKℓXKℓ†X\mapsto\sum_\ell K_\ell XK_\ell^\daggerX↦∑ℓ​Kℓ​XKℓ†​ for some finite family with ∑ℓKℓ†Kℓ=1\sum_\ell K_\ell^\dagger K_\ell=1∑ℓ​Kℓ†​Kℓ​=1; the displayed extensions act on each matrix block with the reference indices fixed. Finally, zϵ=inf⁡{z∈R:ϵ≤∫−∞ze−x2/2/2π dx}z_\epsilon=\inf\{z\in\mathbb R:\epsilon\le\int_{-\infty}^{z}e^{-x^2/2}/\sqrt{2\pi}\,dx\}zϵ​=inf{z∈R:ϵ≤∫−∞z​e−x2/2/2π​dx}. No channel assumption on NNN, nonemptiness assumption on A,BA,BA,B, or restriction on ϵ\epsilonϵ is imposed. All arithmetic inside the limsup is real before embedding into the extended reals: division by zero is 000, so zϵ=0z_\epsilon=0zϵ​=0 makes the defined dispersion 000; the n=0n=0n=0 term is also 000 and does not affect the limsup. Real suprema or infima use their total conventions, including value 000 for empty sets and for sets unbounded in the relevant direction.

QAlgorithms.Papers.Independent.Bridge50.P01.eacSingleLetterCapacity

For finite types A,BA,BA,B with decidable equality and an arbitrary function N:Mat⁡A(C)→Mat⁡B(C)N:\operatorname{Mat}_A(\mathbb C)\to\operatorname{Mat}_B(\mathbb C)N:MatA​(C)→MatB​(C), this defines

sup⁡ψ∈CA×A, ∥ψ∥=1[S(ΩB)+S(ΩA)−S(Ω)],\sup_{\psi\in\mathbb C^{A\times A},\ \|\psi\|=1} \left[S(\Omega_B)+S(\Omega_A)-S(\Omega)\right],ψ∈CA×A, ∥ψ∥=1sup​[S(ΩB​)+S(ΩA​)−S(Ω)],

where

Ω(b,r),(b′,r′)=(N ⁣([ψ(a,r)ψ(a′,r′)‾]a,a′∈A))b,b′,(ΩB)b,b′=∑r∈AΩ(b,r),(b′,r),(ΩA)r,r′=∑b∈BΩ(b,r),(b,r′),\Omega_{(b,r),(b',r')} = \left(N\!\left([\psi_{(a,r)}\overline{\psi_{(a',r')}}]_{a,a'\in A}\right)\right)_{b,b'}, \quad (\Omega_B)_{b,b'}=\sum_{r\in A}\Omega_{(b,r),(b',r)}, \quad (\Omega_A)_{r,r'}=\sum_{b\in B}\Omega_{(b,r),(b,r')},Ω(b,r),(b′,r′)​=(N([ψ(a,r)​ψ(a′,r′)​​]a,a′∈A​))b,b′​,(ΩB​)b,b′​=r∈A∑​Ω(b,r),(b′,r)​,(ΩA​)r,r′​=b∈B∑​Ω(b,r),(b,r′)​,

and S(X)=−Re⁡tr⁡((x↦xlog⁡2x)(X))S(X)=-\operatorname{Re}\operatorname{tr}\bigl((x\mapsto x\log_2x)(X)\bigr)S(X)=−Retr((x↦xlog2​x)(X)), evaluated by the real continuous functional calculus with the total real logarithm, including ln⁡0=0\ln0=0ln0=0. No channel assumption on NNN or density assumption on its outputs is imposed. The supremum is taken in R\mathbb RR, with value 000 for an empty or unbounded-above set; in particular it is 000 when AAA is empty.

QAlgorithms.Papers.Independent.Bridge50.P01.epsilonVariance

For finite types A,BA,BA,B with decidable equality, any function N:CA×A→CB×BN:\mathbb C^{A\times A}\to\mathbb C^{B\times B}N:CA×A→CB×B, and any real ϵ\epsilonϵ, consider unit vectors ψ∈CA×A\psi\in\mathbb C^{A\times A}ψ∈CA×A and the matrices Rψ((b,r),(b′,r′))=N([ψ(a,r)ψ(a′,r′)‾]a,a′)b,b′R_\psi((b,r),(b',r'))=N([\psi(a,r)\overline{\psi(a',r')}]_{a,a'})_{b,b'}Rψ​((b,r),(b′,r′))=N([ψ(a,r)ψ(a′,r′)​]a,a′​)b,b′​. For a matrix RRR on B×AB\times AB×A, let RB=Tr⁡ARR_B=\operatorname{Tr}_A RRB​=TrA​R, RA=Tr⁡BRR_A=\operatorname{Tr}_B RRA​=TrB​R, H(X)=−Re⁡tr⁡[x↦xlog⁡2x](X)H(X)=-\operatorname{Re}\operatorname{tr}[x\mapsto x\log_2x](X)H(X)=−Retr[x↦xlog2​x](X), and I(R)=H(RB)+H(RA)−H(R)I(R)=H(R_B)+H(R_A)-H(R)I(R)=H(RB​)+H(RA​)−H(R). Set CN=sup⁡∥ψ∥=1I(Rψ)C_N=\sup_{\|\psi\|=1}I(R_\psi)CN​=sup∥ψ∥=1​I(Rψ​). For each such RψR_\psiRψ​, put Sψ=RB⊗RAS_\psi=R_B\otimes R_ASψ​=RB​⊗RA​, Dψ=Re⁡tr⁡[(x↦xln⁡x)(Rψ)−Rψln⁡Sψ]/ln⁡2D_\psi=\operatorname{Re}\operatorname{tr}[(x\mapsto x\ln x)(R_\psi)-R_\psi\ln S_\psi]/\ln2Dψ​=Retr[(x↦xlnx)(Rψ​)−Rψ​lnSψ​]/ln2, Lψ=log⁡2Rψ−log⁡2Sψ−Dψ1L_\psi=\log_2R_\psi-\log_2S_\psi-D_\psi1Lψ​=log2​Rψ​−log2​Sψ​−Dψ​1, and Vψ=Re⁡tr⁡(RψLψ2)V_\psi=\operatorname{Re}\operatorname{tr}(R_\psi L_\psi^2)Vψ​=Retr(Rψ​Lψ2​), with all matrix functions interpreted through continuous functional calculus. This definition returns inf⁡{Vψ:∥ψ∥=1, I(Rψ)=CN}\inf\{V_\psi:\|\psi\|=1,\ I(R_\psi)=C_N\}inf{Vψ​:∥ψ∥=1, I(Rψ​)=CN​} if ϵ<12\epsilon<\tfrac12ϵ<21​, and the supremum of that same set if ϵ≥12\epsilon\ge\tfrac12ϵ≥21​, including equality. There is no restriction ϵ∈[0,1]\epsilon\in[0,1]ϵ∈[0,1], no channel assumption on NNN, and no attainment assumption; real infima and suprema of empty sets are 000, as are respectively infima unbounded below and suprema unbounded above. The total logarithm convention includes ln⁡0=0\ln0=0ln0=0.

QAlgorithms.Papers.Independent.Bridge50.P01.inputReferencePurification

For any finite type AAA with decidable equality and any complex matrix ρ\rhoρ indexed by AAA, let S=cfc⁡(⋅,ρ)S=\operatorname{cfc}(\sqrt{\cdot},\rho)S=cfc(⋅​,ρ), where cfc⁡\operatorname{cfc}cfc denotes the continuous functional calculus used in the statement. This definition forms the vector v∈CA×Av\in\mathbb C^{A\times A}v∈CA×A with v(i,j)=Sijv_{(i,j)}=S_{ij}v(i,j)​=Sij​ and returns its outer product:

(vv†)(i,j),(k,l)=Sij Skl‾.\bigl(vv^\dagger\bigr)_{(i,j),(k,l)} =S_{ij}\,\overline{S_{kl}}.(vv†)(i,j),(k,l)​=Sij​Skl​​.

There is no hypothesis that ρ\rhoρ is Hermitian, positive semidefinite, or trace one, and no normalization of vvv is performed. Thus the functional calculus is used as a total operation on arbitrary matrices. The definition also applies when AAA is empty.

QAlgorithms.Papers.Independent.Bridge50.P01.mutualVariance

For finite types A,BA,BA,B with decidable equality and an arbitrary complex matrix ρ\rhoρ indexed by A×BA\times BA×B, define

(ρA)a,a′=∑b∈Bρ(a,b),(a′,b),(ρB)b,b′=∑a∈Aρ(a,b),(a,b′),σ=ρA⊗ρB.(\rho_A)_{a,a'}=\sum_{b\in B}\rho_{(a,b),(a',b)}, \qquad (\rho_B)_{b,b'}=\sum_{a\in A}\rho_{(a,b),(a,b')}, \qquad \sigma=\rho_A\otimes\rho_B.(ρA​)a,a′​=b∈B∑​ρ(a,b),(a′,b)​,(ρB​)b,b′​=a∈A∑​ρ(a,b),(a,b′)​,σ=ρA​⊗ρB​.

Writing f(x)=ln⁡x/ln⁡2f(x)=\ln x/\ln2f(x)=lnx/ln2 and evaluating scalar functions on matrices by the real continuous functional calculus, the definition is

D=Re⁡tr⁡ ⁣((x↦xln⁡x)(ρ)−ρ (ln⁡)(σ))ln⁡2,L=f(ρ)−f(σ)−DI,mutualVariance⁡(ρ)=Re⁡tr⁡(ρL2).D=\frac{\operatorname{Re}\operatorname{tr}\!\left((x\mapsto x\ln x)(\rho)-\rho\,(\ln)(\sigma)\right)}{\ln2}, \quad L=f(\rho)-f(\sigma)-D I, \quad \operatorname{mutualVariance}(\rho)=\operatorname{Re}\operatorname{tr}(\rho L^2).D=ln2Retr((x↦xlnx)(ρ)−ρ(ln)(σ))​,L=f(ρ)−f(σ)−DI,mutualVariance(ρ)=Retr(ρL2).

There is no density, positivity, normalization, or support assumption on ρ\rhoρ. The total logarithm satisfies ln⁡0=0\ln0=0ln0=0, and functional calculus returns zero on non-Hermitian matrices; either index type may be empty.

QAlgorithms.Papers.Independent.Bridge50.P01.negLog2

For every extended nonnegative real number b∈[0,+∞]b\in[0,+\infty]b∈[0,+∞], this defines an extended real number by

negLog⁡2(b)={+∞,b=0,−∞,b=+∞,−ln⁡bln⁡2,0<b<+∞.\operatorname{negLog}_2(b)= \begin{cases} +\infty,&b=0,\\ -\infty,&b=+\infty,\\ -\dfrac{\ln b}{\ln 2},&0<b<+\infty. \end{cases}negLog2​(b)=⎩⎨⎧​+∞,−∞,−ln2lnb​,​b=0,b=+∞,0<b<+∞.​

QAlgorithms.Papers.Independent.Bridge50.P01.operatorLog2

For every finite type III with decidable equality and every complex square matrix ρ\rhoρ indexed by III, this defines

operatorLog⁡2(ρ)=f(ρ),f(x)=ln⁡xln⁡2,\operatorname{operatorLog}_2(\rho)=f(\rho), \qquad f(x)=\frac{\ln x}{\ln2},operatorLog2​(ρ)=f(ρ),f(x)=ln2lnx​,

using the real continuous functional calculus. For Hermitian ρ\rhoρ, this applies fff to each eigenvalue; the real logarithm used here has ln⁡0=0\ln0=0ln0=0 and ln⁡x=ln⁡∣x∣\ln x=\ln|x|lnx=ln∣x∣ for negative xxx. No density, positivity, or invertibility hypothesis is required; for non-Hermitian matrices this functional calculus returns the zero matrix. The definition also includes the empty index type.

QAlgorithms.Papers.Independent.Bridge50.P01.optimizerVariances

For finite types A,BA,BA,B with decidable equality and an arbitrary function N:Mat⁡A(C)→Mat⁡B(C)N:\operatorname{Mat}_A(\mathbb C)\to\operatorname{Mat}_B(\mathbb C)N:MatA​(C)→MatB​(C), this defines the set of real numbers vvv for which there exists a unit vector ψ∈CA×A\psi\in\mathbb C^{A\times A}ψ∈CA×A with the following properties. Set

Ω(b,r),(b′,r′)=(N ⁣([ψ(a,r)ψ(a′,r′)‾]a,a′∈A))b,b′,(ΩB)b,b′=∑rΩ(b,r),(b′,r),(ΩA)r,r′=∑bΩ(b,r),(b,r′).\Omega_{(b,r),(b',r')} = \left(N\!\left([\psi_{(a,r)}\overline{\psi_{(a',r')}}]_{a,a'\in A}\right)\right)_{b,b'}, \quad (\Omega_B)_{b,b'}=\sum_r\Omega_{(b,r),(b',r)}, \quad (\Omega_A)_{r,r'}=\sum_b\Omega_{(b,r),(b,r')}.Ω(b,r),(b′,r′)​=(N([ψ(a,r)​ψ(a′,r′)​​]a,a′∈A​))b,b′​,(ΩB​)b,b′​=r∑​Ω(b,r),(b′,r)​,(ΩA​)r,r′​=b∑​Ω(b,r),(b,r′)​.

Its value S(ΩB)+S(ΩA)−S(Ω)S(\Omega_B)+S(\Omega_A)-S(\Omega)S(ΩB​)+S(ΩA​)−S(Ω) must equal the real supremum of that same expression over all unit vectors in CA×A\mathbb C^{A\times A}CA×A, where S(X)=−Re⁡tr⁡((x↦xlog⁡2x)(X))S(X)=-\operatorname{Re}\operatorname{tr}((x\mapsto x\log_2x)(X))S(X)=−Retr((x↦xlog2​x)(X)). Moreover, with σ=ΩB⊗ΩA\sigma=\Omega_B\otimes\Omega_Aσ=ΩB​⊗ΩA​,

D=Re⁡tr⁡ ⁣((x↦xln⁡x)(Ω)−Ω (ln⁡)(σ))ln⁡2,L=(log⁡2)(Ω)−(log⁡2)(σ)−DI,v=Re⁡tr⁡(ΩL2).D=\frac{\operatorname{Re}\operatorname{tr}\!\left((x\mapsto x\ln x)(\Omega)-\Omega\,(\ln)(\sigma)\right)}{\ln2}, \qquad L=(\log_2)(\Omega)-(\log_2)(\sigma)-DI, \qquad v=\operatorname{Re}\operatorname{tr}(\Omega L^2).D=ln2Retr((x↦xlnx)(Ω)−Ω(ln)(σ))​,L=(log2​)(Ω)−(log2​)(σ)−DI,v=Retr(ΩL2).

All scalar functions of matrices here use the real continuous functional calculus and the total real logarithm, including ln⁡0=0\ln0=0ln0=0; no channel or output-density hypothesis is imposed. The definition requires an exact maximizer but does not assert that one exists, so the set may be empty, including when AAA is empty.

QAlgorithms.Papers.Independent.Bridge50.P01.pureSharedCodeSuccess

For finite types A,BA,BA,B with decidable equality, an arbitrary matrix-valued function N:Mat⁡A(C)→Mat⁡B(C)N:\operatorname{Mat}_A(\mathbb C)\to\operatorname{Mat}_B(\mathbb C)N:MatA​(C)→MatB​(C), a natural number mmm, and a code CCC, this defines

1m∑j<mRe⁡tr⁡(MjΩj),(Ωj)(b,r),(b′,r′)=(N ⁣(Ej ⁣([ψ(s,r)ψ(t,r′)‾]s,t<d)))b,b′.\frac1m\sum_{j<m}\operatorname{Re}\operatorname{tr}(M_j\Omega_j), \qquad (\Omega_j)_{(b,r),(b',r')} = \left(N\!\left(\mathcal E_j\!\left( [\psi_{(s,r)}\overline{\psi_{(t,r')}}]_{s,t<d} \right)\right)\right)_{b,b'}.m1​j<m∑​Retr(Mj​Ωj​),(Ωj​)(b,r),(b′,r′)​=(N(Ej​([ψ(s,r)​ψ(t,r′)​​]s,t<d​)))b,b′​.

Here the supplied code contains m>0m>0m>0, a positive assistance dimension ddd, a unit vector ψ∈Cd×d\psi\in\mathbb C^{d\times d}ψ∈Cd×d, encoding maps Ej\mathcal E_jEj​ admitting finite representations Ej(X)=∑ℓKj,ℓXKj,ℓ†\mathcal E_j(X)=\sum_\ell K_{j,\ell}XK_{j,\ell}^{\dagger}Ej​(X)=∑ℓ​Kj,ℓ​XKj,ℓ†​ with ∑ℓKj,ℓ†Kj,ℓ=Id\sum_\ell K_{j,\ell}^{\dagger}K_{j,\ell}=I_d∑ℓ​Kj,ℓ†​Kj,ℓ​=Id​, and positive semidefinite measurement matrices MjM_jMj​ on B×{0,…,d−1}B\times\{0,\ldots,d-1\}B×{0,…,d−1} summing to the identity. There is no channel or linearity assumption on NNN, and the definition itself asserts no bounds on the resulting real number.

QAlgorithms.Papers.Independent.Bridge50.P01.relativeVariance

For every finite type III with decidable equality and arbitrary complex square matrices ρ,σ\rho,\sigmaρ,σ indexed by III, let f(x)=ln⁡x/ln⁡2f(x)=\ln x/\ln2f(x)=lnx/ln2, g(x)=xln⁡xg(x)=x\ln xg(x)=xlnx, and define their matrix values using the real continuous functional calculus. This defines

D=Re⁡tr⁡ ⁣(g(ρ)−ρ (ln⁡)(σ))ln⁡2,L=f(ρ)−f(σ)−DI,relativeVariance⁡(ρ,σ)=Re⁡tr⁡(ρL2).D=\frac{\operatorname{Re}\operatorname{tr}\!\left(g(\rho)-\rho\,(\ln)(\sigma)\right)}{\ln2}, \qquad L=f(\rho)-f(\sigma)-D I, \qquad \operatorname{relativeVariance}(\rho,\sigma) =\operatorname{Re}\operatorname{tr}(\rho L^2).D=ln2Retr(g(ρ)−ρ(ln)(σ))​,L=f(ρ)−f(σ)−DI,relativeVariance(ρ,σ)=Retr(ρL2).

Here L2=L LL^2=L\,LL2=LL, and (ln⁡)(σ)(\ln)(\sigma)(ln)(σ) denotes functional calculus for the natural logarithm. No density, Hermitian, positivity, support-inclusion, or invertibility assumption is imposed. The logarithm is totalized by ln⁡0=0\ln0=0ln0=0, and these functional-calculus expressions return zero on non-Hermitian matrices. Empty index types are included.

QAlgorithms.Papers.Independent.Bridge50.P01.resourceOutput

For a finite type AAA, an arbitrary type BBB, an arbitrary function N:Mat⁡A(C)→Mat⁡B(C)N:\operatorname{Mat}_A(\mathbb C)\to\operatorname{Mat}_B(\mathbb C)N:MatA​(C)→MatB​(C), and a vector ψ∈CA×A\psi\in\mathbb C^{A\times A}ψ∈CA×A supplied with a proof that ∥ψ∥=1\|\psi\|=1∥ψ∥=1, this defines the matrix Ω\OmegaΩ indexed by B×AB\times AB×A through

Ω(b,r),(b′,r′)=(N ⁣([ψ(a,r)ψ(a′,r′)‾]a,a′∈A))b,b′.\Omega_{(b,r),(b',r')} = \left(N\!\left( [\psi_{(a,r)}\overline{\psi_{(a',r')}}]_{a,a'\in A} \right)\right)_{b,b'}.Ω(b,r),(b′,r′)​=(N([ψ(a,r)​ψ(a′,r′)​​]a,a′∈A​))b,b′​.

No finiteness assumption on BBB, decidable-equality assumption, or channel assumption on NNN is made. When AAA is empty, no vector satisfying the required unit-norm condition exists.

QAlgorithms.Papers.Independent.Bridge50.P01.symmetricDensities

For any finite type AAA and natural number nnn, this definition gives the set of complex matrices ρ\rhoρ indexed by functions {0,…,n−1}→A\{0,\ldots,n-1\}\to A{0,…,n−1}→A such that ρ\rhoρ is positive semidefinite, tr⁡ρ=1\operatorname{tr}\rho=1trρ=1, and

ρx∘p, y∘p=ρx,y\rho_{x\circ p,\,y\circ p}=\rho_{x,y}ρx∘p,y∘p​=ρx,y​

for every permutation ppp of the nnn positions and all index functions x,yx,yx,y. When n=0n=0n=0, the index set is a singleton and the set consists of the 1×11\times11×1 matrix with entry 111. When AAA is empty and n>0n>0n>0, the index set is empty and no matrix has trace 111, so this set is empty.

QAlgorithms.Papers.Independent.Bridge50.P01.tensorIdentity

For arbitrary types A,B,RA,B,RA,B,R and an arbitrary function N:Mat⁡A(C)→Mat⁡B(C)N:\operatorname{Mat}_A(\mathbb C)\to\operatorname{Mat}_B(\mathbb C)N:MatA​(C)→MatB​(C), this defines a function from matrices indexed by A×RA\times RA×R to matrices indexed by B×RB\times RB×R: for every input matrix XXX, b,b′∈Bb,b'\in Bb,b′∈B, and r,r′∈Rr,r'\in Rr,r′∈R,

(tensorIdentity⁡(N)(X))(b,r),(b′,r′)=(N ⁣([X(a,r),(a′,r′)]a,a′∈A))b,b′.\bigl(\operatorname{tensorIdentity}(N)(X)\bigr)_{(b,r),(b',r')} = \left(N\!\left([X_{(a,r),(a',r')}]_{a,a'\in A}\right)\right)_{b,b'}.(tensorIdentity(N)(X))(b,r),(b′,r′)​=(N([X(a,r),(a′,r′)​]a,a′∈A​))b,b′​.

No finiteness, linearity, positivity, or channel assumption is imposed on these types or on NNN.

QAlgorithms.Papers.Independent.Bridge50.P01.varianceMax

For finite types A,BA,BA,B with decidable equality and any function N:CA×A→CB×BN:\mathbb C^{A\times A}\to\mathbb C^{B\times B}N:CA×A→CB×B, this defines a real number using all unit vectors ψ∈CA×A\psi\in\mathbb C^{A\times A}ψ∈CA×A. Define Rψ((b,r),(b′,r′))=N([ψ(a,r)ψ(a′,r′)‾]a,a′)b,b′R_\psi((b,r),(b',r'))=N([\psi(a,r)\overline{\psi(a',r')}]_{a,a'})_{b,b'}Rψ​((b,r),(b′,r′))=N([ψ(a,r)ψ(a′,r′)​]a,a′​)b,b′​, let RB=Tr⁡ARR_B=\operatorname{Tr}_A RRB​=TrA​R and RA=Tr⁡BRR_A=\operatorname{Tr}_B RRA​=TrB​R, and put H(X)=−Re⁡tr⁡[f(X)]H(X)=-\operatorname{Re}\operatorname{tr}[f(X)]H(X)=−Retr[f(X)], where f(x)=xlog⁡2xf(x)=x\log_2xf(x)=xlog2​x is applied by continuous functional calculus. Set I(R)=H(RB)+H(RA)−H(R)I(R)=H(R_B)+H(R_A)-H(R)I(R)=H(RB​)+H(RA​)−H(R) and CN=sup⁡∥ψ∥=1I(Rψ)C_N=\sup_{\|\psi\|=1}I(R_\psi)CN​=sup∥ψ∥=1​I(Rψ​). For R=RψR=R_\psiR=Rψ​, define S=RB⊗RAS=R_B\otimes R_AS=RB​⊗RA​, D=Re⁡tr⁡[g(R)−Rln⁡S]/ln⁡2D=\operatorname{Re}\operatorname{tr}[g(R)-R\ln S]/\ln2D=Retr[g(R)−RlnS]/ln2, with g(x)=xln⁡xg(x)=x\ln xg(x)=xlnx, and L=log⁡2R−log⁡2S−D 1L=\log_2R-\log_2S-D\,1L=log2​R−log2​S−D1, using continuous functional calculus throughout. The defined value is

sup⁡{Re⁡tr⁡(RL2): ∥ψ∥=1, R=Rψ, I(Rψ)=CN}.\sup\left\{\operatorname{Re}\operatorname{tr}(RL^2):\ \|\psi\|=1,\ R=R_\psi,\ I(R_\psi)=C_N\right\}.sup{Retr(RL2): ∥ψ∥=1, R=Rψ​, I(Rψ​)=CN​}.

There is no assumption that NNN is a channel, that either type is nonempty, or that the capacity supremum is attained. This is a real supremum, which is 000 for an empty set or a set unbounded above; in particular, the optimizer set is empty when A=∅A=\varnothingA=∅. All logarithms and functional calculus use their total conventions, including ln⁡0=0\ln0=0ln0=0.

QAlgorithms.Papers.Independent.Bridge50.P01.varianceMin

For finite types A,BA,BA,B with decidable equality and any function N:CA×A→CB×BN:\mathbb C^{A\times A}\to\mathbb C^{B\times B}N:CA×A→CB×B, this defines a real number as follows. For each unit vector ψ∈CA×A\psi\in\mathbb C^{A\times A}ψ∈CA×A, form the matrix RψR_\psiRψ​ indexed by B×AB\times AB×A, with entries Rψ((b,r),(b′,r′))=N([ψ(a,r)ψ(a′,r′)‾]a,a′)b,b′R_\psi((b,r),(b',r'))=N([\psi(a,r)\overline{\psi(a',r')}]_{a,a'})_{b,b'}Rψ​((b,r),(b′,r′))=N([ψ(a,r)ψ(a′,r′)​]a,a′​)b,b′​. Write RB=Tr⁡ARR_B=\operatorname{Tr}_A RRB​=TrA​R, RA=Tr⁡BRR_A=\operatorname{Tr}_B RRA​=TrB​R, H(X)=−Re⁡tr⁡[f(X)]H(X)=-\operatorname{Re}\operatorname{tr}[f(X)]H(X)=−Retr[f(X)], where f(x)=xlog⁡2xf(x)=x\log_2xf(x)=xlog2​x is applied by continuous functional calculus, and I(R)=H(RB)+H(RA)−H(R)I(R)=H(R_B)+H(R_A)-H(R)I(R)=H(RB​)+H(RA​)−H(R). Set CN=sup⁡∥ψ∥=1I(Rψ)C_N=\sup_{\|\psi\|=1}I(R_\psi)CN​=sup∥ψ∥=1​I(Rψ​). For any RRR, put S=RB⊗RAS=R_B\otimes R_AS=RB​⊗RA​, D=Re⁡tr⁡[g(R)−Rln⁡S]/ln⁡2D=\operatorname{Re}\operatorname{tr}[g(R)-R\ln S]/\ln2D=Retr[g(R)−RlnS]/ln2, where g(x)=xln⁡xg(x)=x\ln xg(x)=xlnx, and L=log⁡2R−log⁡2S−D 1L=\log_2R-\log_2S-D\,1L=log2​R−log2​S−D1, again using continuous functional calculus. The defined value is

inf⁡{Re⁡tr⁡(RL2): ∥ψ∥=1, R=Rψ, I(Rψ)=CN}.\inf\left\{\operatorname{Re}\operatorname{tr}(RL^2):\ \|\psi\|=1,\ R=R_\psi,\ I(R_\psi)=C_N\right\}.inf{Retr(RL2): ∥ψ∥=1, R=Rψ​, I(Rψ​)=CN​}.

No channel, positivity, normalization of RψR_\psiRψ​, nonempty-type, or optimizer-attainment assumption is imposed. This is a real infimum: an empty set, including the case A=∅A=\varnothingA=∅, has infimum 000; the real infimum also defaults to 000 for a set unbounded below. The logarithms and functional calculus retain their total-function conventions, including ln⁡0=0\ln0=0ln0=0.

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