Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for One-shot Marton inner bound for classical-quantum broadcast channel

Definition
QAlgorithms_Papers_Independent_Extend50_P49

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

prove2quantum

The objects the formalized statements of One-shot Marton inner bound for classical-quantum broadcast channel (arXiv:1410.3248) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • AuxiliaryLaw: Finite normalized law, PDF pp.3,5. Empty alphabets admit no such law.
  • extendedLog2: Base-two logarithm with its extended value at zero, Definitions 3,4,7, PDF pp.5,11. All applications have nonnegative arguments.
  • leftLawMarginal: First marginal of a finite joint weight table, PDF p.5.
  • secondMarginal: Second marginal of a finite joint weight table, PDF p.5.
  • setMass: Probability mass of a subset, Definitions 4,7, PDF pp.5,11.
  • logRatio: Log likelihood ratio, Definition 4, PDF p.5. Zero joint mass has value -infinity; positive joint mass with zero product mass has value +infinity. The latter cannot occur for a normalized nonnegative joint law and its actual marginals.
  • strictSmoothMaxInformation: Definition 4, PDF p.5: STRICT retained mass; original marginals remain fixed. Extended extrema make the empty feasible family at epsilon=0 have value +infinity.
  • smoothClassicalMin: Definition 7, PDF p.11: NON-STRICT retained mass, including epsilon=0. Zero comparison mass contributes +infinity, never Real.log's junk value.
  • smoothQuantumMin: Definition 3, PDF p.5: STRICT quantum acceptance and the actual product marginals. The supremum is extended, so an empty family has value -infinity.
  • CqChannel: Definition 1, PDF p.5, with the printed H_A x H_B corrected to H_B tensor H_C. Arbitrary nonzero finite output dimensions are allowed, including dimension one.
  • ClassicalBroadcastChannel: Definition 5, PDF p.10: arbitrary finite classical transition probabilities.
  • inducedState: Equation (4), PDF p.3: actual cq density matrix from the auxiliary law, map, and channel.
  • inducedUB: U,B marginal of (4), PDF pp.3,6; the other auxiliary and Charlie are traced out.
  • inducedVC: V,C marginal of (4), PDF pp.3,6; the other auxiliary and Bob are traced out.
  • inducedUY: The actual U,Y law in Theorem 4, PDF p.3.
  • inducedVZ: The actual V,Z law in Theorem 4, PDF p.3.
  • CqCode: Definition 2, PDF p.5: fixed deterministic encoder and separate fixed local POVMs.
  • cqJointError: Definition 2, (12), PDF p.5: independent uniform messages and average joint error. Theorems require both message counts positive.
  • PrivateClassicalCode: Definition 6, PDF p.10: deterministic encoding and separate deterministic decoders.
  • classicalError: Definition 6, PDF p.10: actual average probability that either private message is wrong.
  • MartonConstraints: Equations (5)-(7) and (8)-(10), PDF p.3: the three inequalities with constants 5,2,11,5. Rates are literal log2 positive integer message counts; no rounding convention is hidden.
  • PositiveBlockWord: Positive block length k+1, Definitions 8-10, PDF pp.15-17.
  • strictPositiveSpectralProjector: Positive spectral projector, Definition 9's words, PDF p.16.
  • spectralAcceptance: Corrected Definition 9, PDF p.16: sum_u Tr[P_u (p(u) rho_(B|u))]. Printed: Tr[P_u rho_B]; changed: Tr[P_u rho_(B|u)] before weighting by p(u). Why: the printed marginal gives zero limiting mass for orthogonal iid signals, contradicting (47) and the Theorem 6 testing argument, PDF pp.16-17. Using unnormalized blocks avoids division on null auxiliary symbols.
  • spectralInfMutualInformation: Corrected spectral inf quantum information rate, Definition 9, PDF p.16. Extended supremum and an actual limit of acceptance probabilities.
  • informationTail: Probability tail of the information density, Definition 10, PDF p.17. Zero joint mass is excluded before taking a logarithm.
  • spectralSupMutualInformation: Spectral sup classical information rate, Definition 10, PDF p.17. The probability tail tends to zero along the entire sequence.
  • SpectrumAchievable: Definition 8, PDF pp.15-16, corrected second message domain/decoder labels. Counts are positive integers. The two eventual lower bounds express liminf rate constraints without totalized real infima on unbounded sequences.
  • Padding: The four padding constraints (13)-(16), (35)-(38), PDF pp.6,11. The ceiling is integer-valued; the two message rates are log2 actual counts.
  • Codebook: A realization of the source random codebook, PDF pp.7,11-12. Retained bits are exactly the pushforward of the independent uniform rejection coins. Repeated U,V values do not identify different row/column indices.
  • rejectionChance: Rejection acceptance probability (18),(39), PDF pp.7,12. Clipping is exactly the event eta <= ratio for eta uniform on [0,1]. Null marginal rows have sampling probability zero and their coin boundary has measure zero.
  • bookWeight: Computed finite law of the full random codebook, PDF pp.7,11-12. Rows and columns are mutually independent; rejection coins are independent conditional on them. This is the exact finite pushforward law, not an assumption on desired events.
  • selectPair: Lexicographically first good retained pair in the message rectangle, PDF pp.7,12. Global zero-based indices have the same order and bands as the source's one-based indices.
  • selectedInput: Source encoder, PDF pp.7,12: selected codeword, or one fixed input on failure.
  • classicalGood: Classical local test acceptance alpha,beta, PDF p.12.
  • ClassicalSetup: Data fixed before generating a classical random codebook, PDF pp.11-13. Test acceptances and comparison masses are the source test conditions, not event probability bounds. All information values are computed from N,p,f.
  • ErrorEvent: The five events on PDF p.13, without any probability assumptions.
  • classicalEvent: Actual error event for the first message rectangle, PDF p.13. A miss/collision is counted only after a good pair has been selected. Other rows/columns include indices with the same auxiliary symbol, exactly as in the source.
  • classicalEventProbability: Probability of each constructed event over the actual random codebook AND the actual channel output, PDF pp.13-14; messages are fixed at (1,1) by symmetry.
  • firstHit: Actual first-hit index decoder, PDF p.12, retaining row identity, with fixed zero-index fallback. Its band gives the message decoder.
  • classicalIndexError: Classical average failure to recover the actual selected row AND column, PDF pp.12-14. Encoding failure is counted as failure even if fallback decoders agree.
  • QuantumSetup: Quantum construction parameters, PDF pp.6-8. The test effects act on the actual computed U,B and V,C states and satisfy exactly the source acceptance/comparison bounds.
  • testBlock: Diagonal test block (19)-(20), PDF p.7.
  • quantumGood: Quantum pair-selection acceptance tests alpha,beta, PDF p.7.
  • completedPgm: Square-root decoder (21)-(22), PDF p.7, completed on the kernel by assigning the residual projector to fixed index zero. On the support it is precisely S^(-1/2) L_k S^(-1/2). The completion only increases success at that outcome.
  • quantumIndexError: Quantum actual-index error, PDF pp.8-10, with full local index POVMs. A failed encoder is counted as failure; the two receiver probabilities use their actual joint output state, not the product of the marginal states.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Ensemble
import Definitions.Def_QAlgorithms_Defs_Measurement

/-!
Radhakrishnan, Sen, Warsi, arXiv:1410.3248v5. PDF page numbers; bits throughout.
Paper-local definitions under the independent-paper override. The joint cq state is
computed, never supplied as an unrelated witness. Definition 9's marginal-weighted
trace is corrected to the conditional-state trace, as explained in the audit.
Compilation is pending the separate batch handoff.
-/

noncomputable section

namespace QAlgorithms.Papers.Independent.Extend50.P49

open QAlgorithms MeasureTheory Filter
open scoped BigOperators Matrix ComplexOrder Topology

attribute [local instance] Classical.propDecidable Classical.decEq

/-- Finite normalized law, PDF pp.3,5. Empty alphabets admit no such law. -/
structure AuxiliaryLaw (A : Type) [Fintype A] where
  prob : A → ℝ
  nonneg : ∀ a, 0 ≤ prob a
  total : ∑ a, prob a = 1

/-- Base-two logarithm with its extended value at zero, Definitions 3,4,7, PDF pp.5,11.
All applications have nonnegative arguments. -/
def extendedLog2 (x : ℝ) : EReal :=
  if 0 < x then (Real.logb 2 x : EReal) else ⊥

/-- First marginal of a finite joint weight table, PDF p.5. -/
def leftLawMarginal {A B : Type} [Fintype B] (p : A × B → ℝ) (a : A) : ℝ :=
  ∑ b, p (a, b)

/-- Second marginal of a finite joint weight table, PDF p.5. -/
def secondMarginal {A B : Type} [Fintype A] (p : A × B → ℝ) (b : B) : ℝ :=
  ∑ a, p (a, b)

/-- Probability mass of a subset, Definitions 4,7, PDF pp.5,11. -/
def setMass {A : Type} [Fintype A] (p : A → ℝ) (G : Finset A) : ℝ :=
  ∑ a ∈ G, p a

/-- Log likelihood ratio, Definition 4, PDF p.5. Zero joint mass has value -infinity;
positive joint mass with zero product mass has value +infinity. The latter cannot
occur for a normalized nonnegative joint law and its actual marginals. -/
def logRatio {A B : Type} [Fintype A] [Fintype B] (p : A × B → ℝ) (ab : A × B) : EReal :=
  if p ab = 0 then ⊥ else
    if leftLawMarginal p ab.1 * secondMarginal p ab.2 = 0 then ⊤ else
      extendedLog2 (p ab / (leftLawMarginal p ab.1 * secondMarginal p ab.2))

/-- Definition 4, PDF p.5: STRICT retained mass; original marginals remain fixed.
Extended extrema make the empty feasible family at epsilon=0 have value +infinity. -/
def strictSmoothMaxInformation {A B : Type} [Fintype A] [Fintype B]
    (p : A × B → ℝ) (epsilon : ℝ) : EReal :=
  sInf {t | ∃ G : Finset (A × B), 1 - epsilon < setMass p G ∧
    t = sSup ((fun ab => logRatio p ab) '' (↑G : Set (A × B)))}

/-- Definition 7, PDF p.11: NON-STRICT retained mass, including epsilon=0.
Zero comparison mass contributes +infinity, never Real.log's junk value. -/
def smoothClassicalMin {A B : Type} [Fintype A] [Fintype B]
    (p : A × B → ℝ) (epsilon : ℝ) : EReal :=
  sSup {t | ∃ G : Finset (A × B), 1 - epsilon ≤ setMass p G ∧
    t = -extendedLog2 (∑ ab ∈ G, leftLawMarginal p ab.1 * secondMarginal p ab.2)}

/-- Definition 3, PDF p.5: STRICT quantum acceptance and the actual product marginals.
The supremum is extended, so an empty family has value -infinity. -/
def smoothQuantumMin {A B : Type} [Fintype A] [Fintype B]
    (rho : Matrix (A × B) (A × B) ℂ) (epsilon : ℝ) : EReal :=
  sSup {t | ∃ G : Matrix (A × B) (A × B) ℂ,
    IsEffect G ∧ 1 - epsilon < effectProb G rho ∧
    t = -extendedLog2 (effectProb G (Matrix.kronecker (traceRight rho) (traceLeft rho)))}

/-- Definition 1, PDF p.5, with the printed H_A x H_B corrected to H_B tensor H_C.
Arbitrary nonzero finite output dimensions are allowed, including dimension one. -/
structure CqChannel (X B C : Type) [Fintype B] [Fintype C] where
  input_nonempty : Nonempty X
  bob_nonempty : Nonempty B
  charlie_nonempty : Nonempty C
  output : X → Matrix (B × C) (B × C) ℂ
  density : ∀ x, IsDensityMatrix (output x)

/-- Definition 5, PDF p.10: arbitrary finite classical transition probabilities. -/
structure ClassicalBroadcastChannel (X Y Z : Type) [Fintype Y] [Fintype Z] where
  input_nonempty : Nonempty X
  output : X → AuxiliaryLaw (Y × Z)

/-- Equation (4), PDF p.3: actual cq density matrix from the auxiliary law, map, and channel. -/
def inducedState {X U V B C : Type} [Fintype U] [Fintype V] [Fintype B] [Fintype C]
    (N : CqChannel X B C) (p : AuxiliaryLaw (U × V)) (f : U → V → X) :
    Matrix ((U × V) × (B × C)) ((U × V) × (B × C)) ℂ :=
  fun a b => if a.1 = b.1 then (p.prob a.1 : ℂ) * N.output (f a.1.1 a.1.2) a.2 b.2 else 0

/-- U,B marginal of (4), PDF pp.3,6; the other auxiliary and Charlie are traced out. -/
def inducedUB {X U V B C : Type} [Fintype U] [Fintype V] [Fintype B] [Fintype C]
    (N : CqChannel X B C) (p : AuxiliaryLaw (U × V)) (f : U → V → X) :
    Matrix (U × B) (U × B) ℂ :=
  fun a b => if a.1 = b.1 then
    ∑ v, (p.prob (a.1, v) : ℂ) * traceRight (N.output (f a.1 v)) a.2 b.2 else 0

/-- V,C marginal of (4), PDF pp.3,6; the other auxiliary and Bob are traced out. -/
def inducedVC {X U V B C : Type} [Fintype U] [Fintype V] [Fintype B] [Fintype C]
    (N : CqChannel X B C) (p : AuxiliaryLaw (U × V)) (f : U → V → X) :
    Matrix (V × C) (V × C) ℂ :=
  fun a b => if a.1 = b.1 then
    ∑ u, (p.prob (u, a.1) : ℂ) * traceLeft (N.output (f u a.1)) a.2 b.2 else 0

/-- The actual U,Y law in Theorem 4, PDF p.3. -/
def inducedUY {X U V Y Z : Type} [Fintype U] [Fintype V] [Fintype Y] [Fintype Z]
    (N : ClassicalBroadcastChannel X Y Z) (p : AuxiliaryLaw (U × V)) (f : U → V → X) (uy : U × Y) : ℝ :=
  ∑ v, p.prob (uy.1, v) * ∑ z, (N.output (f uy.1 v)).prob (uy.2, z)

/-- The actual V,Z law in Theorem 4, PDF p.3. -/
def inducedVZ {X U V Y Z : Type} [Fintype U] [Fintype V] [Fintype Y] [Fintype Z]
    (N : ClassicalBroadcastChannel X Y Z) (p : AuxiliaryLaw (U × V)) (f : U → V → X) (vz : V × Z) : ℝ :=
  ∑ u, p.prob (u, vz.1) * ∑ y, (N.output (f u vz.1)).prob (y, vz.2)

/-- Definition 2, PDF p.5: fixed deterministic encoder and separate fixed local POVMs. -/
structure CqCode (X B C : Type) [Fintype B] [Fintype C] (M1 M2 : ℕ) where
  encode : Fin M1 → Fin M2 → X
  bob : Fin M1 → Matrix B B ℂ
  charlie : Fin M2 → Matrix C C ℂ
  bob_povm : IsPOVM bob
  charlie_povm : IsPOVM charlie

/-- Definition 2, (12), PDF p.5: independent uniform messages and average joint error.
Theorems require both message counts positive. -/
def cqJointError {X B C : Type} [Fintype B] [Fintype C] {M1 M2 : ℕ}
    (N : CqChannel X B C) (D : CqCode X B C M1 M2) : ℝ :=
  ((M1 : ℝ) * M2)⁻¹ * ∑ m1, ∑ m2,
    (1 - effectProb (Matrix.kronecker (D.bob m1) (D.charlie m2)) (N.output (D.encode m1 m2)))

/-- Definition 6, PDF p.10: deterministic encoding and separate deterministic decoders. -/
structure PrivateClassicalCode (X Y Z : Type) (M1 M2 : ℕ) where
  encode : Fin M1 → Fin M2 → X
  bob : Y → Fin M1
  charlie : Z → Fin M2

/-- Definition 6, PDF p.10: actual average probability that either private message is wrong. -/
def classicalError {X Y Z : Type} [Fintype Y] [Fintype Z] {M1 M2 : ℕ}
    (N : ClassicalBroadcastChannel X Y Z) (D : PrivateClassicalCode X Y Z M1 M2) : ℝ :=
  ((M1 : ℝ) * M2)⁻¹ * ∑ m1, ∑ m2, ∑ yz : Y × Z,
    if D.bob yz.1 = m1 ∧ D.charlie yz.2 = m2 then 0
    else (N.output (D.encode m1 m2)).prob yz

/-- Equations (5)-(7) and (8)-(10), PDF p.3: the three inequalities with constants 5,2,11,5.
Rates are literal log2 positive integer message counts; no rounding convention is hidden. -/
def MartonConstraints (a b c : EReal) (M1 M2 : ℕ) (tildeEpsilon : ℝ) : Prop :=
  let R1 : EReal := (Real.logb 2 (M1 : ℝ) : EReal)
  let R2 : EReal := (Real.logb 2 (M2 : ℝ) : EReal)
  let L : EReal := (Real.logb 2 (1 / tildeEpsilon) : EReal)
  R1 ≤ a - 5 * L - 2 ∧ R2 ≤ b - 5 * L - 2 ∧
    R1 + R2 ≤ a + b - c - 11 * L - 5

/-- Positive block length k+1, Definitions 8-10, PDF pp.15-17. -/
abbrev PositiveBlockWord (A : Type) (k : ℕ) := Fin (k + 1) → A

/-- Positive spectral projector, Definition 9's words, PDF p.16. -/
def strictPositiveSpectralProjector {A : Type} [Fintype A] (H : Matrix A A ℂ) : Matrix A A ℂ :=
  cfc (fun x : ℝ => if 0 < x then 1 else 0) H

/-- Corrected Definition 9, PDF p.16: sum_u Tr[P_u (p(u) rho_(B|u))].
Printed: Tr[P_u rho_B]; changed: Tr[P_u rho_(B|u)] before weighting by p(u).
Why: the printed marginal gives zero limiting mass for orthogonal iid signals,
contradicting (47) and the Theorem 6 testing argument, PDF pp.16-17.
Using unnormalized blocks avoids division on null auxiliary symbols. -/
def spectralAcceptance {U B : Type} [Fintype U] [Fintype B]
    (n gamma : ℝ) (rho : Matrix (U × B) (U × B) ℂ) : ℝ :=
  ∑ u, let block : Matrix B B ℂ := fun b b2 => rho (u, b) (u, b2)
    let marginal := traceLeft rho
    let weight := (Matrix.trace block).re
    effectProb (strictPositiveSpectralProjector (block - ((2 : ℝ) ^ (n * gamma) * weight : ℝ) • marginal)) block

/-- Corrected spectral inf quantum information rate, Definition 9, PDF p.16.
Extended supremum and an actual limit of acceptance probabilities. -/
def spectralInfMutualInformation {U B : Type} [Fintype U] [Fintype B]
    (rho : (k : ℕ) → Matrix (PositiveBlockWord U k × PositiveBlockWord B k) (PositiveBlockWord U k × PositiveBlockWord B k) ℂ) : EReal :=
  sSup {t : EReal | ∃ gamma : ℝ, t = (gamma : EReal) ∧
    Tendsto (fun k : ℕ => spectralAcceptance ((k + 1 : ℕ) : ℝ) gamma (rho k)) atTop (nhds 1)}

/-- Probability tail of the information density, Definition 10, PDF p.17.
Zero joint mass is excluded before taking a logarithm. -/
def informationTail {U V : Type} [Fintype U] [Fintype V]
    (p : AuxiliaryLaw (U × V)) (n lambda : ℝ) : ℝ :=
  ∑ uv, if 0 < p.prob uv ∧
      lambda < Real.logb 2 (p.prob uv /
        (leftLawMarginal p.prob uv.1 * secondMarginal p.prob uv.2)) / n
    then p.prob uv else 0

/-- Spectral sup classical information rate, Definition 10, PDF p.17.
The probability tail tends to zero along the entire sequence. -/
def spectralSupMutualInformation {U V : Type} [Fintype U] [Fintype V]
    (p : (k : ℕ) → AuxiliaryLaw (PositiveBlockWord U k × PositiveBlockWord V k)) : EReal :=
  sInf {t : EReal | ∃ lambda : ℝ, t = (lambda : EReal) ∧
    Tendsto (fun k => informationTail (p k) (k + 1) lambda) atTop (nhds 0)}

/-- Definition 8, PDF pp.15-16, corrected second message domain/decoder labels.
Counts are positive integers. The two eventual lower bounds express liminf rate
constraints without totalized real infima on unbounded sequences. -/
def SpectrumAchievable {X B C : Type} [Fintype B] [Fintype C]
    (N : (k : ℕ) → CqChannel (PositiveBlockWord X k) (PositiveBlockWord B k) (PositiveBlockWord C k)) (R1 R2 : ℝ) : Prop :=
  ∃ M1 M2 : ℕ → ℕ, (∀ k, 0 < M1 k ∧ 0 < M2 k) ∧
    ∃ D : (k : ℕ) → CqCode (PositiveBlockWord X k) (PositiveBlockWord B k) (PositiveBlockWord C k) (M1 k) (M2 k),
      Tendsto (fun k => cqJointError (N k) (D k)) atTop (nhds 0) ∧
      (∀ delta > (0 : ℝ), ∀ᶠ k in atTop,
        R1 - delta ≤ Real.logb 2 (M1 k : ℝ) / (k + 1)) ∧
      (∀ delta > (0 : ℝ), ∀ᶠ k in atTop,
        R2 - delta ≤ Real.logb 2 (M2 k : ℝ) / (k + 1))

/-- Sanity check: the extended logarithm sends zero to minus infinity. -/
example : extendedLog2 0 = ⊥ := by simp [extendedLog2]

example (p : Unit × Unit → ℝ) : leftLawMarginal p () = p ((), ()) := by
  simp [leftLawMarginal]

example (p : Unit × Unit → ℝ) : secondMarginal p () = p ((), ()) := by
  simp [secondMarginal]

example {A : Type} [Fintype A] (p : A → ℝ) : setMass p ∅ = 0 := by
  simp [setMass]

example {U V : Type} [Fintype U] [Fintype V] (p : U × V → ℝ)
    (uv : U × V) (h : p uv = 0) : logRatio p uv = ⊥ := by simp [logRatio, h]

example : IsEffect (0 : Matrix Unit Unit ℂ) := by
  exact ⟨Matrix.PosSemidef.zero, by simpa using (Matrix.PosSemidef.one :
    (1 : Matrix Unit Unit ℂ).PosSemidef)⟩

example {X U V B C : Type} [Fintype U] [Fintype V] [Fintype B] [Fintype C]
    (N : CqChannel X B C) (p : AuxiliaryLaw (U × V)) (f : U → V → X)
    (uv : U × V) (bc bc2 : B × C) :
    inducedState N p f (uv, bc) (uv, bc2) =
      (p.prob uv : ℂ) * N.output (f uv.1 uv.2) bc bc2 := by simp [inducedState]

example {X Y Z : Type} [Fintype Y] [Fintype Z]
    (N : ClassicalBroadcastChannel X Y Z) (D : PrivateClassicalCode X Y Z 1 1) :
    classicalError N D = 0 := by
  have h1 : ∀ y, D.bob y = (0 : Fin 1) := fun _ => Subsingleton.elim _ _
  have h2 : ∀ z, D.charlie z = (0 : Fin 1) := fun _ => Subsingleton.elim _ _
  simp [classicalError, h1, h2]

example (A : Type) : PositiveBlockWord A 0 = (Fin 1 → A) := rfl

example {U V : Type} [Fintype U] [Fintype V] (p : AuxiliaryLaw (U × V))
    (n lambda : ℝ) : informationTail p n lambda =
      ∑ uv, if 0 < p.prob uv ∧ lambda < Real.logb 2
        (p.prob uv / (leftLawMarginal p.prob uv.1 * secondMarginal p.prob uv.2)) / n
      then p.prob uv else 0 := rfl

/-- The four padding constraints (13)-(16), (35)-(38), PDF pp.6,11.
The ceiling is integer-valued; the two message rates are log2 actual counts. -/
def Padding (a b c tildeEpsilon : ℝ) (M1 M2 r1 r2 : ℕ) : Prop :=
  let L := Real.logb 2 (1 / tildeEpsilon)
  0 < r1 ∧ 0 < r2 ∧
    Real.logb 2 (M1 : ℝ) + r1 ≤ a - 4 * L - 1 ∧
    Real.logb 2 (M2 : ℝ) + r2 ≤ b - 4 * L - 1 ∧
    L ≤ (r1 : ℝ) ∧ L ≤ (r2 : ℝ) ∧
    ((r1 + r2 : ℕ) : ℤ) = Int.ceil (c + 3 * L)

/-- A realization of the source random codebook, PDF pp.7,11-12. Retained bits are
exactly the pushforward of the independent uniform rejection coins. Repeated U,V
values do not identify different row/column indices. -/
structure Codebook (U V : Type) (rows columns : ℕ) where
  row : Fin rows → U
  column : Fin columns → V
  retained : Fin rows → Fin columns → Bool
  deriving Fintype

/-- Rejection acceptance probability (18),(39), PDF pp.7,12.
Clipping is exactly the event eta <= ratio for eta uniform on [0,1]. Null marginal
rows have sampling probability zero and their coin boundary has measure zero. -/
def rejectionChance {U V : Type} [Fintype U] [Fintype V]
    (p : AuxiliaryLaw (U × V)) (c : ℝ) (u : U) (v : V) : ℝ :=
  min 1 (max 0 (p.prob (u, v) /
    ((2 : ℝ) ^ c * leftLawMarginal p.prob u * secondMarginal p.prob v)))

/-- Computed finite law of the full random codebook, PDF pp.7,11-12. Rows and columns
are mutually independent; rejection coins are independent conditional on them.
This is the exact finite pushforward law, not an assumption on desired events. -/
def bookWeight {U V : Type} [Fintype U] [Fintype V] {rows columns : ℕ}
    (p : AuxiliaryLaw (U × V)) (c : ℝ) (book : Codebook U V rows columns) : ℝ :=
  (∏ k, leftLawMarginal p.prob (book.row k)) *
    (∏ l, secondMarginal p.prob (book.column l)) *
    ∏ k, ∏ l, if book.retained k l then
      rejectionChance p c (book.row k) (book.column l)
    else 1 - rejectionChance p c (book.row k) (book.column l)

/-- Lexicographically first good retained pair in the message rectangle, PDF pp.7,12.
Global zero-based indices have the same order and bands as the source's one-based indices. -/
def selectPair {U V : Type} {M1 M2 r1 r2 : ℕ}
    (book : Codebook U V (M1 * 2 ^ r1) (M2 * 2 ^ r2))
    (good : U → V → Prop) (m1 : Fin M1) (m2 : Fin M2) :
    Option (Fin (M1 * 2 ^ r1) × Fin (M2 * 2 ^ r2)) :=
  ((List.finRange (M1 * 2 ^ r1)).flatMap fun k =>
    (List.finRange (M2 * 2 ^ r2)).map fun l => (k, l)).find? fun kl =>
      decide (kl.1.val / 2 ^ r1 = m1.val ∧ kl.2.val / 2 ^ r2 = m2.val ∧
        book.retained kl.1 kl.2 = true ∧ good (book.row kl.1) (book.column kl.2))

/-- Source encoder, PDF pp.7,12: selected codeword, or one fixed input on failure. -/
def selectedInput {X U V : Type} {M1 M2 r1 r2 : ℕ}
    (fallback : X) (f : U → V → X)
    (book : Codebook U V (M1 * 2 ^ r1) (M2 * 2 ^ r2))
    (good : U → V → Prop) (m1 : Fin M1) (m2 : Fin M2) : X :=
  match selectPair book good m1 m2 with
  | none => fallback
  | some kl => f (book.row kl.1) (book.column kl.2)

/-- Classical local test acceptance alpha,beta, PDF p.12. -/
def classicalGood {X U V Y Z : Type} [Fintype Y] [Fintype Z]
    (N : ClassicalBroadcastChannel X Y Z) (f : U → V → X)
    (A1 : Finset (U × Y)) (A2 : Finset (V × Z)) (epsilon0 : ℝ) (u : U) (v : V) : Prop :=
  1 - 4 * epsilon0 < (∑ y, if (u, y) ∈ A1 then ∑ z, (N.output (f u v)).prob (y, z) else 0) ∧
  1 - 4 * epsilon0 < (∑ z, if (v, z) ∈ A2 then ∑ y, (N.output (f u v)).prob (y, z) else 0)

/-- Data fixed before generating a classical random codebook, PDF pp.11-13.
Test acceptances and comparison masses are the source test conditions, not event
probability bounds. All information values are computed from N,p,f. -/
structure ClassicalSetup (X U V Y Z : Type) [Fintype U] [Fintype V] [Fintype Y] [Fintype Z] where
  channel : ClassicalBroadcastChannel X Y Z
  law : AuxiliaryLaw (U × V)
  map : U → V → X
  M1 : ℕ
  M2 : ℕ
  positive1 : 0 < M1
  positive2 : 0 < M2
  r1 : ℕ
  r2 : ℕ
  epsilon0 : ℝ
  epsilonInfinity : ℝ
  tildeEpsilon : ℝ
  zero_domain : 0 < epsilon0 ∧ epsilon0 < 1
  infinity_domain : 0 < epsilonInfinity ∧ epsilonInfinity ≤ 1 / 4
  tilde_domain : 0 < tildeEpsilon ∧ tildeEpsilon ≤ 1 / 37
  a : ℝ
  b : ℝ
  c : ℝ
  a_value : smoothClassicalMin (inducedUY channel law map) epsilon0 = (a : EReal)
  b_value : smoothClassicalMin (inducedVZ channel law map) epsilon0 = (b : EReal)
  c_value : strictSmoothMaxInformation law.prob epsilonInfinity = (c : EReal)
  test1 : Finset (U × Y)
  test2 : Finset (V × Z)
  acceptance1 : 1 - epsilon0 < setMass (inducedUY channel law map) test1
  acceptance2 : 1 - epsilon0 < setMass (inducedVZ channel law map) test2
  comparison1 : (∑ uy ∈ test1, leftLawMarginal (inducedUY channel law map) uy.1 *
    secondMarginal (inducedUY channel law map) uy.2) ≤ (2 : ℝ) ^ (-a)
  comparison2 : (∑ vz ∈ test2, leftLawMarginal (inducedVZ channel law map) vz.1 *
    secondMarginal (inducedVZ channel law map) vz.2) ≤ (2 : ℝ) ^ (-b)
  padding : Padding a b c tildeEpsilon M1 M2 r1 r2

/-- The five events on PDF p.13, without any probability assumptions. -/
inductive ErrorEvent where
  | noPair
  | bobMiss
  | charlieMiss
  | bobCollision
  | charlieCollision
  deriving DecidableEq

/-- Actual error event for the first message rectangle, PDF p.13. A miss/collision
is counted only after a good pair has been selected. Other rows/columns include
indices with the same auxiliary symbol, exactly as in the source. -/
def classicalEvent {X U V Y Z : Type} [Fintype U] [Fintype V] [Fintype Y] [Fintype Z]
    (D : ClassicalSetup X U V Y Z)
    (book : Codebook U V (D.M1 * 2 ^ D.r1) (D.M2 * 2 ^ D.r2))
    (event : ErrorEvent) (yz : Y × Z) : Prop :=
  match selectPair book (classicalGood D.channel D.map D.test1 D.test2 D.epsilon0)
      ⟨0, D.positive1⟩ ⟨0, D.positive2⟩ with
  | none => event = .noPair
  | some kl => match event with
    | .noPair => False
    | .bobMiss => (book.row kl.1, yz.1) ∉ D.test1
    | .charlieMiss => (book.column kl.2, yz.2) ∉ D.test2
    | .bobCollision => ∃ k, k ≠ kl.1 ∧ (book.row k, yz.1) ∈ D.test1
    | .charlieCollision => ∃ l, l ≠ kl.2 ∧ (book.column l, yz.2) ∈ D.test2

/-- Probability of each constructed event over the actual random codebook AND the
actual channel output, PDF pp.13-14; messages are fixed at (1,1) by symmetry. -/
def classicalEventProbability {X U V Y Z : Type}
    [Fintype U] [Fintype V] [Fintype Y] [Fintype Z]
    (D : ClassicalSetup X U V Y Z) (event : ErrorEvent) : ℝ :=
  ∑ book : Codebook U V (D.M1 * 2 ^ D.r1) (D.M2 * 2 ^ D.r2),
    bookWeight D.law D.c book * ∑ yz,
      (D.channel.output (selectedInput (Classical.choice D.channel.input_nonempty) D.map book
        (classicalGood D.channel D.map D.test1 D.test2 D.epsilon0)
        ⟨0, D.positive1⟩ ⟨0, D.positive2⟩)).prob yz *
        (if classicalEvent D book event yz then 1 else 0)

/-- Actual first-hit index decoder, PDF p.12, retaining row identity, with fixed
zero-index fallback. Its band gives the message decoder. -/
def firstHit {A O : Type} {n : ℕ} (h : 0 < n) (symbols : Fin n → A)
    (test : Finset (A × O)) (outcome : O) : Fin n :=
  ((List.finRange n).find? fun k => decide ((symbols k, outcome) ∈ test)).getD ⟨0, h⟩

/-- Classical average failure to recover the actual selected row AND column,
PDF pp.12-14. Encoding failure is counted as failure even if fallback decoders agree. -/
def classicalIndexError {X U V Y Z : Type}
    [Fintype U] [Fintype V] [Fintype Y] [Fintype Z]
    (D : ClassicalSetup X U V Y Z)
    (book : Codebook U V (D.M1 * 2 ^ D.r1) (D.M2 * 2 ^ D.r2)) : ℝ :=
  ((D.M1 : ℝ) * D.M2)⁻¹ * ∑ m1 : Fin D.M1, ∑ m2 : Fin D.M2,
    match selectPair book (classicalGood D.channel D.map D.test1 D.test2 D.epsilon0) m1 m2 with
    | none => 1
    | some kl => ∑ yz, (D.channel.output (D.map (book.row kl.1) (book.column kl.2))).prob yz *
        (if firstHit (Nat.mul_pos D.positive1 (by positivity)) book.row D.test1 yz.1 = kl.1 ∧
          firstHit (Nat.mul_pos D.positive2 (by positivity)) book.column D.test2 yz.2 = kl.2
        then 0 else 1)

/-- Quantum construction parameters, PDF pp.6-8. The test effects act on the actual
computed U,B and V,C states and satisfy exactly the source acceptance/comparison bounds. -/
structure QuantumSetup (X U V B C : Type) [Fintype U] [Fintype V] [Fintype B] [Fintype C] where
  channel : CqChannel X B C
  law : AuxiliaryLaw (U × V)
  map : U → V → X
  M1 : ℕ
  M2 : ℕ
  positive1 : 0 < M1
  positive2 : 0 < M2
  r1 : ℕ
  r2 : ℕ
  epsilon0 : ℝ
  epsilonInfinity : ℝ
  tildeEpsilon : ℝ
  zero_domain : 0 < epsilon0 ∧ epsilon0 < 1
  infinity_domain : 0 < epsilonInfinity ∧ epsilonInfinity ≤ 1 / 4
  tilde_domain : 0 < tildeEpsilon ∧ tildeEpsilon ≤ 1 / 40
  a : ℝ
  b : ℝ
  c : ℝ
  a_value : smoothQuantumMin (inducedUB channel law map) epsilon0 = (a : EReal)
  b_value : smoothQuantumMin (inducedVC channel law map) epsilon0 = (b : EReal)
  c_value : strictSmoothMaxInformation law.prob epsilonInfinity = (c : EReal)
  test1 : Matrix (U × B) (U × B) ℂ
  test2 : Matrix (V × C) (V × C) ℂ
  effect1 : IsEffect test1
  effect2 : IsEffect test2
  acceptance1 : 1 - epsilon0 ≤ effectProb test1 (inducedUB channel law map)
  acceptance2 : 1 - epsilon0 ≤ effectProb test2 (inducedVC channel law map)
  comparison1 : effectProb test1 (Matrix.kronecker (traceRight (inducedUB channel law map))
    (traceLeft (inducedUB channel law map))) ≤ (2 : ℝ) ^ (-a)
  comparison2 : effectProb test2 (Matrix.kronecker (traceRight (inducedVC channel law map))
    (traceLeft (inducedVC channel law map))) ≤ (2 : ℝ) ^ (-b)
  padding : Padding a b c tildeEpsilon M1 M2 r1 r2

/-- Diagonal test block (19)-(20), PDF p.7. -/
def testBlock {A B : Type} (G : Matrix (A × B) (A × B) ℂ) (a : A) : Matrix B B ℂ :=
  fun b b2 => G (a, b) (a, b2)

/-- Quantum pair-selection acceptance tests alpha,beta, PDF p.7. -/
def quantumGood {X U V B C : Type} [Fintype U] [Fintype V] [Fintype B] [Fintype C]
    (D : QuantumSetup X U V B C) (u : U) (v : V) : Prop :=
  1 - 4 * D.epsilon0 < effectProb (testBlock D.test1 u) (traceRight (D.channel.output (D.map u v))) ∧
  1 - 4 * D.epsilon0 < effectProb (testBlock D.test2 v) (traceLeft (D.channel.output (D.map u v)))

/-- Square-root decoder (21)-(22), PDF p.7, completed on the kernel by assigning the
residual projector to fixed index zero. On the support it is precisely S^(-1/2) L_k S^(-1/2).
The completion only increases success at that outcome. -/
def completedPgm {B : Type} [Fintype B] {n : ℕ}
    (L : Fin n → Matrix B B ℂ) (k : Fin n) : Matrix B B ℂ :=
  let S := ∑ j, L j
  let K := cfc (fun x : ℝ => (Real.sqrt x)⁻¹) S
  K * L k * K + if k.val = 0 then 1 - strictPositiveSpectralProjector S else 0

/-- Quantum actual-index error, PDF pp.8-10, with full local index POVMs.
A failed encoder is counted as failure; the two receiver probabilities use their
actual joint output state, not the product of the marginal states. -/
def quantumIndexError {X U V B C : Type}
    [Fintype U] [Fintype V] [Fintype B] [Fintype C]
    (D : QuantumSetup X U V B C)
    (book : Codebook U V (D.M1 * 2 ^ D.r1) (D.M2 * 2 ^ D.r2)) : ℝ :=
  ((D.M1 : ℝ) * D.M2)⁻¹ * ∑ m1 : Fin D.M1, ∑ m2 : Fin D.M2,
    match selectPair book (quantumGood D) m1 m2 with
    | none => 1
    | some kl => 1 - effectProb
        (Matrix.kronecker (completedPgm (fun k => testBlock D.test1 (book.row k)) kl.1)
          (completedPgm (fun l => testBlock D.test2 (book.column l)) kl.2))
        (D.channel.output (D.map (book.row kl.1) (book.column kl.2)))

example {U V : Type} [Fintype U] [Fintype V] {r s : ℕ}
    (p : AuxiliaryLaw (U × V)) (c : ℝ) (book : Codebook U V r s) :
    bookWeight p c book = (∏ k, leftLawMarginal p.prob (book.row k)) *
      (∏ l, secondMarginal p.prob (book.column l)) *
      ∏ k, ∏ l, if book.retained k l then rejectionChance p c (book.row k) (book.column l)
        else 1 - rejectionChance p c (book.row k) (book.column l) := rfl

example {U V : Type} {M1 M2 r1 r2 : ℕ} (fallback : Unit) (f : U → V → Unit)
    (book : Codebook U V (M1 * 2 ^ r1) (M2 * 2 ^ r2))
    (good : U → V → Prop) (m1 : Fin M1) (m2 : Fin M2) :
    selectedInput fallback f book good m1 m2 = () := Subsingleton.elim _ _

example {A B : Type} (G : Matrix (A × B) (A × B) ℂ) (a : A) (b b2 : B) :
    testBlock G a b b2 = G (a, b) (a, b2) := rfl

/-- Total-extension sanity: the zero operator cannot pass the strict zero-error test. -/
example : smoothQuantumMin (0 : Matrix (Unit × Unit) (Unit × Unit) ℂ) 0 = ⊥ := by
  simp [smoothQuantumMin, effectProb]

example : strictSmoothMaxInformation (fun _ : Unit × Unit => (0 : ℝ)) 0 = ⊤ := by
  simp [strictSmoothMaxInformation, setMass]

example : smoothClassicalMin (fun _ : Unit × Unit => (0 : ℝ)) 0 = ⊥ := by
  simp [smoothClassicalMin, setMass]

/-- A normalized independent singleton pair has zero log likelihood ratio. -/
example : logRatio (fun _ : Unit × Unit => (1 : ℝ)) ((), ()) = 0 := by
  norm_num [logRatio, extendedLog2, leftLawMarginal, secondMarginal]

/-- With no good pair the explicit source encoder reports failure. -/
example {U V : Type} {M1 M2 r1 r2 : ℕ}
    (book : Codebook U V (M1 * 2 ^ r1) (M2 * 2 ^ r2))
    (m1 : Fin M1) (m2 : Fin M2) :
    selectPair book (fun _ _ => False) m1 m2 = none := by
  simp [selectPair]

/-- Kernel-completion sanity: one zero test becomes the identity measurement. -/
example : completedPgm (fun _ : Fin 1 => (0 : Matrix Unit Unit ℂ)) 0 = 1 := by
  ext i j
  simp [completedPgm, strictPositiveSpectralProjector] <;> rfl

end QAlgorithms.Papers.Independent.Extend50.P49
Source
One-shot Marton inner bound for classical-quantum broadcast channel, arXiv:1410.3248v5, https://arxiv.org/abs/1410.3248v5
Read-back

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

QAlgorithms.Papers.Independent.Extend50.P49.AuxiliaryLaw

For a finite type AAA, an auxiliary law consists of a function p:A→Rp:A\to\mathbb Rp:A→R, together with the requirements that p(a)≥0p(a)\ge 0p(a)≥0 for every a∈Aa\in Aa∈A and ∑a∈Ap(a)=1\sum_{a\in A}p(a)=1∑a∈A​p(a)=1. No such law exists when AAA is empty, because the empty sum is 000.

QAlgorithms.Papers.Independent.Extend50.P49.ClassicalBroadcastChannel

For types X,Y,ZX,Y,ZX,Y,Z, with YYY and ZZZ finite, a classical broadcast channel consists of an assertion that XXX is nonempty and, for every x∈Xx\in Xx∈X, a function qx:Y×Z→Rq_x:Y\times Z\to\mathbb Rqx​:Y×Z→R satisfying qx(y,z)≥0q_x(y,z)\ge0qx​(y,z)≥0 for every pair and ∑(y,z)∈Y×Zqx(y,z)=1\sum_{(y,z)\in Y\times Z}q_x(y,z)=1∑(y,z)∈Y×Z​qx​(y,z)=1. The type XXX need not be finite. These requirements also imply that YYY and ZZZ are nonempty, since an output law cannot exist on an empty product.

QAlgorithms.Papers.Independent.Extend50.P49.ClassicalSetup

For arbitrary XXX and finite U,V,Y,ZU,V,Y,ZU,V,Y,Z, this structure consists of a nonempty input type XXX, channel probabilities Wx(y,z)≥0W_x(y,z)\ge0Wx​(y,z)≥0 summing to 111 for every x∈Xx\in Xx∈X, joint probabilities p(u,v)≥0p(u,v)\ge0p(u,v)≥0 summing to 111, a function f:U×V→Xf:U\times V\to Xf:U×V→X, positive natural numbers M1,M2M_1,M_2M1​,M2​, natural numbers r1,r2r_1,r_2r1​,r2​, real parameters ϵ0,ϵ∞,ϵ~,a,b,c\epsilon_0,\epsilon_\infty,\widetilde\epsilon,a,b,cϵ0​,ϵ∞​,ϵ,a,b,c, and finite tests A1⊆U×YA_1\subseteq U\times YA1​⊆U×Y, A2⊆V×ZA_2\subseteq V\times ZA2​⊆V×Z. Define the induced laws

q1(u,y)=∑v,zp(u,v)Wf(u,v)(y,z),q2(v,z)=∑u,yp(u,v)Wf(u,v)(y,z).q_1(u,y)=\sum_{v,z}p(u,v)W_{f(u,v)}(y,z), \qquad q_2(v,z)=\sum_{u,y}p(u,v)W_{f(u,v)}(y,z).q1​(u,y)=v,z∑​p(u,v)Wf(u,v)​(y,z),q2​(v,z)=u,y∑​p(u,v)Wf(u,v)​(y,z).

For any joint law qqq, write qL,qRq_L,q_RqL​,qR​ for its marginals, obtained by summing over the other coordinate, and put ℓ(t)=log⁡2t\ell(t)=\log_2tℓ(t)=log2​t for t>0t>0t>0 and ℓ(t)=−∞\ell(t)=-\inftyℓ(t)=−∞ otherwise. Also set

Λp(u,v)={−∞,p(u,v)=0,+∞,p(u,v)≠0 and pU(u)pV(v)=0,ℓ ⁣(p(u,v)pU(u)pV(v)),otherwise.\Lambda_p(u,v)= \begin{cases} -\infty,&p(u,v)=0,\\ +\infty,&p(u,v)\ne0\ \text{and }p_U(u)p_V(v)=0,\\ \ell\!\left(\dfrac{p(u,v)}{p_U(u)p_V(v)}\right),&\text{otherwise}. \end{cases}Λp​(u,v)=⎩⎨⎧​−∞,+∞,ℓ(pU​(u)pV​(v)p(u,v)​),​p(u,v)=0,p(u,v)=0 and pU​(u)pV​(v)=0,otherwise.​

The structure requires

0<ϵ0<1,0<ϵ∞≤14,0<ϵ~≤137,0<\epsilon_0<1,\qquad 0<\epsilon_\infty\le\tfrac14,\qquad 0<\widetilde\epsilon\le\tfrac1{37},0<ϵ0​<1,0<ϵ∞​≤41​,0<ϵ≤371​,

and, writing a1=a,a2=ba_1=a,a_2=ba1​=a,a2​=b, requires the following equalities in the extended real numbers, where GGG ranges over finite subsets of the appropriate product:

ai=sup⁡∑s∈Gqi(s) ≥ 1−ϵ0[−ℓ ⁣(∑s∈Gqi,L(sL)qi,R(sR))](i=1,2),c=inf⁡∑(u,v)∈Gp(u,v) > 1−ϵ∞ sup⁡(u,v)∈GΛp(u,v).a_i= \sup_{\sum_{s\in G}q_i(s)\,\ge\,1-\epsilon_0} \left[-\ell\!\left(\sum_{s\in G}q_{i,L}(s_L)q_{i,R}(s_R)\right)\right] \quad(i=1,2), \qquad c= \inf_{\sum_{(u,v)\in G}p(u,v)\,>\,1-\epsilon_\infty} \ \sup_{(u,v)\in G}\Lambda_p(u,v).ai​=∑s∈G​qi​(s)≥1−ϵ0​sup​[−ℓ(s∈G∑​qi,L​(sL​)qi,R​(sR​))](i=1,2),c=∑(u,v)∈G​p(u,v)>1−ϵ∞​inf​ (u,v)∈Gsup​Λp​(u,v).

Its supplied tests must satisfy, for i=1,2i=1,2i=1,2,

1−ϵ0<∑s∈Aiqi(s),∑s∈Aiqi,L(sL)qi,R(sR)≤2−ai.1-\epsilon_0<\sum_{s\in A_i}q_i(s), \qquad \sum_{s\in A_i}q_{i,L}(s_L)q_{i,R}(s_R)\le2^{-a_i}.1−ϵ0​<s∈Ai​∑​qi​(s),s∈Ai​∑​qi,L​(sL​)qi,R​(sR​)≤2−ai​.

Finally, with L=log⁡2(1/ϵ~)L=\log_2(1/\widetilde\epsilon)L=log2​(1/ϵ), it requires

ri>0,log⁡2Mi+ri≤ai−4L−1,L≤ri(i=1,2),r1+r2=⌈c+3L⌉,r_i>0,\qquad \log_2 M_i+r_i\le a_i-4L-1,\qquad L\le r_i \quad(i=1,2),\qquad r_1+r_2=\lceil c+3L\rceil,ri​>0,log2​Mi​+ri​≤ai​−4L−1,L≤ri​(i=1,2),r1​+r2​=⌈c+3L⌉,

where the last equality is an equality of integers. Thus the initially natural-valued rir_iri​ must actually be positive. Empty finite sets are included in the displayed extrema, with their empty sums and extended-real suprema interpreted in the usual way; the normalization requirements force U,V,Y,ZU,V,Y,ZU,V,Y,Z to be nonempty. No finiteness assumption is placed on XXX.

QAlgorithms.Papers.Independent.Extend50.P49.Codebook

For arbitrary types U,VU,VU,V and natural numbers rows,columns\mathrm{rows},\mathrm{columns}rows,columns, a codebook consists of a function row:{0,…,rows−1}→U\mathrm{row}:\{0,\ldots,\mathrm{rows}-1\}\to Urow:{0,…,rows−1}→U, a function column:{0,…,columns−1}→V\mathrm{column}:\{0,\ldots,\mathrm{columns}-1\}\to Vcolumn:{0,…,columns−1}→V, and a Boolean-valued function retained\mathrm{retained}retained on the product of these two index sets. There are no distinctness, coverage, or compatibility conditions on these functions, and either dimension may be zero. When U,VU,VU,V are finite, the codebook type is equipped with a finite enumeration; if UUU is empty and the row count is positive, or VVV is empty and the column count is positive, no such codebook exists.

QAlgorithms.Papers.Independent.Extend50.P49.CqChannel

For types X,B,CX,B,CX,B,C, with BBB and CCC finite, a channel of this structure consists of assertions that each of X,B,CX,B,CX,B,C is nonempty, together with a function x↦ρxx\mapsto\rho_xx↦ρx​ assigning to each x∈Xx\in Xx∈X a complex matrix indexed by B×CB\times CB×C, such that ρx\rho_xρx​ is positive semidefinite and tr⁡(ρx)=1\operatorname{tr}(\rho_x)=1tr(ρx​)=1. No finiteness assumption is made on XXX, and the nonemptiness requirements exclude empty input or output types.

QAlgorithms.Papers.Independent.Extend50.P49.CqCode

For any types X,B,CX,B,CX,B,C, with B,CB,CB,C finite, and any natural numbers M1,M2M_1,M_2M1​,M2​, a value of this structure consists of a function e:{0,…,M1−1}×{0,…,M2−1}→Xe:\{0,\ldots,M_1-1\}\times\{0,\ldots,M_2-1\}\to Xe:{0,…,M1​−1}×{0,…,M2​−1}→X, complex matrices EiE_iEi​ on BBB for each 0≤i<M10\le i<M_10≤i<M1​, and complex matrices FjF_jFj​ on CCC for each 0≤j<M20\le j<M_20≤j<M2​, together with proofs that

Ei⪰0,∑i=0M1−1Ei=IB,Fj⪰0,∑j=0M2−1Fj=IC.E_i\succeq0,\qquad \sum_{i=0}^{M_1-1}E_i=I_B, \qquad F_j\succeq0,\qquad \sum_{j=0}^{M_2-1}F_j=I_C.Ei​⪰0,i=0∑M1​−1​Ei​=IB​,Fj​⪰0,j=0∑M2​−1​Fj​=IC​.

Neither message count is explicitly required to be positive, and none of the types is explicitly required to be nonempty. If M1=0M_1=0M1​=0, its empty matrix sum must equal IBI_BIB​, which is possible only when BBB is empty; likewise, M2=0M_2=0M2​=0 requires CCC to be empty. The structure contains no channel or error requirement.

QAlgorithms.Papers.Independent.Extend50.P49.ErrorEvent

This defines a type with exactly five distinct values, named noPair, bobMiss, charlieMiss, bobCollision, and charlieCollision. None of these values carries additional data. Equality between any two values is decidable; the names themselves impose no conditions on a channel, codebook, or outcome.

QAlgorithms.Papers.Independent.Extend50.P49.MartonConstraints

For arbitrary extended real numbers a,b,c∈R∪{−∞,+∞}a,b,c\in\mathbb R\cup\{-\infty,+\infty\}a,b,c∈R∪{−∞,+∞}, natural numbers M1,M2M_1,M_2M1​,M2​, and a real number ϵ~\widetilde\epsilonϵ, define RiR_iRi​ to be the finite extended real obtained from the total real logarithm log⁡2Mi\log_2 M_ilog2​Mi​, and define LLL similarly from log⁡2(1/ϵ~)\log_2(1/\widetilde\epsilon)log2​(1/ϵ). The proposition is precisely the conjunction

R1≤a−5L−2,R2≤b−5L−2,R1+R2≤a+b−c−11L−5,R_1\le a-5L-2,\qquad R_2\le b-5L-2,\qquad R_1+R_2\le a+b-c-11L-5,R1​≤a−5L−2,R2​≤b−5L−2,R1​+R2​≤a+b−c−11L−5,

with arithmetic and comparisons in the extended reals. No positivity assumptions are imposed on M1,M2M_1,M_2M1​,M2​ or ϵ~\widetilde\epsilonϵ. Here real division is total, with 1/0=01/0=01/0=0, and the real logarithm used satisfies log⁡20=0\log_2 0=0log2​0=0 and log⁡2x=ln⁡∣x∣/ln⁡2\log_2 x=\ln|x|/\ln2log2​x=ln∣x∣/ln2 for x≠0x\ne0x=0; consequently Mi=0M_i=0Mi​=0 gives Ri=0R_i=0Ri​=0, and ϵ~=0\widetilde\epsilon=0ϵ=0 gives L=0L=0L=0.

QAlgorithms.Papers.Independent.Extend50.P49.Padding

For arbitrary real numbers a,b,c,ϵ~a,b,c,\widetilde\epsilona,b,c,ϵ and natural numbers M1,M2,r1,r2M_1,M_2,r_1,r_2M1​,M2​,r1​,r2​, put L=log⁡2(1/ϵ~)L=\log_2(1/\widetilde\epsilon)L=log2​(1/ϵ). The defined property is the conjunction

r1>0,r2>0,log⁡2M1+r1≤a−4L−1,log⁡2M2+r2≤b−4L−1,L≤r1,L≤r2,r1+r2=⌈c+3L⌉.\begin{gathered} r_1>0,\qquad r_2>0,\\ \log_2 M_1+r_1\le a-4L-1,\qquad \log_2 M_2+r_2\le b-4L-1,\\ L\le r_1,\qquad L\le r_2,\qquad r_1+r_2=\lceil c+3L\rceil. \end{gathered}r1​>0,r2​>0,log2​M1​+r1​≤a−4L−1,log2​M2​+r2​≤b−4L−1,L≤r1​,L≤r2​,r1​+r2​=⌈c+3L⌉.​

Natural numbers in real expressions are interpreted as real numbers, and the final equality is an equality of integers, with the natural sum on the left embedded in the integers. No positivity assumptions are imposed on M1,M2M_1,M_2M1​,M2​ or ϵ~\widetilde\epsilonϵ: zero message counts and zero or negative ϵ~\widetilde\epsilonϵ are included, using total real division with 1/0=01/0=01/0=0 and the total real logarithm, for which log⁡20=0\log_2 0=0log2​0=0 and log⁡2x=log⁡2∣x∣\log_2 x=\log_2|x|log2​x=log2​∣x∣ for negative xxx.

QAlgorithms.Papers.Independent.Extend50.P49.PositiveBlockWord

For any type AAA and natural number kkk, PositiveBlockWord⁡(A,k)\operatorname{PositiveBlockWord}(A,k)PositiveBlockWord(A,k) is the type of functions {0,…,k}→A\{0,\ldots,k\}\to A{0,…,k}→A, equivalently words of length k+1k+1k+1 over AAA. Thus k=0k=0k=0 gives words of length one, and no value of kkk gives an empty word; if AAA is empty, this word type is empty.

QAlgorithms.Papers.Independent.Extend50.P49.PrivateClassicalCode

For any types X,Y,ZX,Y,ZX,Y,Z, without finiteness or nonemptiness assumptions, and any natural numbers M1,M2M_1,M_2M1​,M2​, a value of this structure consists of exactly three functions:

e:{0,…,M1−1}×{0,…,M2−1}→X,dB:Y→{0,…,M1−1},dC:Z→{0,…,M2−1}.e:\{0,\ldots,M_1-1\}\times\{0,\ldots,M_2-1\}\to X,\qquad d_B:Y\to\{0,\ldots,M_1-1\},\qquad d_C:Z\to\{0,\ldots,M_2-1\}.e:{0,…,M1​−1}×{0,…,M2​−1}→X,dB​:Y→{0,…,M1​−1},dC​:Z→{0,…,M2​−1}.

There are no additional conditions on these functions. Zero message counts are allowed as parameters: M1=0M_1=0M1​=0 requires YYY to be empty for dBd_BdB​ to exist, and M2=0M_2=0M2​=0 requires ZZZ to be empty for dCd_CdC​ to exist.

QAlgorithms.Papers.Independent.Extend50.P49.QuantumSetup

For arbitrary XXX and finite U,V,B,CU,V,B,CU,V,B,C, this structure consists of proofs that X,B,CX,B,CX,B,C are nonempty, a channel assigning to each x∈Xx\in Xx∈X a positive semidefinite complex matrix WxW_xWx​ on B×CB\times CB×C with Tr⁡Wx=1\operatorname{Tr}W_x=1TrWx​=1, joint probabilities p(u,v)≥0p(u,v)\ge0p(u,v)≥0 summing to 111, a map f:U×V→Xf:U\times V\to Xf:U×V→X, positive natural numbers M1,M2M_1,M_2M1​,M2​, natural numbers r1,r2r_1,r_2r1​,r2​, real parameters ϵ0,ϵ∞,ϵ~,a,b,c\epsilon_0,\epsilon_\infty,\widetilde\epsilon,a,b,cϵ0​,ϵ∞​,ϵ,a,b,c, and complex test matrices T1,T2T_1,T_2T1​,T2​ on U×B,V×CU\times B,V\times CU×B,V×C, respectively. Define

ρ1((u,b),(u′,b′))={∑v,c′p(u,v) Wf(u,v)((b,c′),(b′,c′)),u=u′,0,u≠u′,ρ2((v,c′),(v′,c′′))={∑u,bp(u,v) Wf(u,v)((b,c′),(b,c′′)),v=v′,0,v≠v′.\begin{aligned} \rho_1((u,b),(u',b'))&= \begin{cases} \displaystyle\sum_{v,c'}p(u,v)\, W_{f(u,v)}((b,c'),(b',c')),&u=u',\\ 0,&u\ne u', \end{cases}\\ \rho_2((v,c'),(v',c''))&= \begin{cases} \displaystyle\sum_{u,b}p(u,v)\, W_{f(u,v)}((b,c'),(b,c'')),&v=v',\\ 0,&v\ne v'. \end{cases} \end{aligned}ρ1​((u,b),(u′,b′))ρ2​((v,c′),(v′,c′′))​=⎩⎨⎧​v,c′∑​p(u,v)Wf(u,v)​((b,c′),(b′,c′)),0,​u=u′,u=u′,​=⎩⎨⎧​u,b∑​p(u,v)Wf(u,v)​((b,c′),(b,c′′)),0,​v=v′,v=v′.​​

For a matrix ρ\rhoρ indexed by S×TS\times TS×T, write

ρL(s,s′)=∑tρ((s,t),(s′,t)),ρR(t,t′)=∑sρ((s,t),(s,t′)),\rho_L(s,s')=\sum_t\rho((s,t),(s',t)),\qquad \rho_R(t,t')=\sum_s\rho((s,t),(s,t')),ρL​(s,s′)=t∑​ρ((s,t),(s′,t)),ρR​(t,t′)=s∑​ρ((s,t),(s,t′)),

and write E(H,ρ)=Re⁡Tr⁡(Hρ)E(H,\rho)=\operatorname{Re}\operatorname{Tr}(H\rho)E(H,ρ)=ReTr(Hρ). An effect is a matrix HHH satisfying H⪰0H\succeq0H⪰0 and I−H⪰0I-H\succeq0I−H⪰0. Put ℓ(t)=log⁡2t\ell(t)=\log_2tℓ(t)=log2​t when t>0t>0t>0 and −∞-\infty−∞ otherwise. The structure requires

0<ϵ0<1,0<ϵ∞≤14,0<ϵ~≤140,0<\epsilon_0<1,\qquad 0<\epsilon_\infty\le\tfrac14,\qquad 0<\widetilde\epsilon\le\tfrac1{40},0<ϵ0​<1,0<ϵ∞​≤41​,0<ϵ≤401​,

and, with a1=a,a2=ba_1=a,a_2=ba1​=a,a2​=b, the following equalities in the extended real numbers:

ai=sup⁡H⪰0, I−H⪰0E(H,ρi)>1−ϵ0[−ℓ ⁣(E(H,ρi,L⊗ρi,R))](i=1,2),c=inf⁡∑(u,v)∈Gp(u,v)>1−ϵ∞ sup⁡(u,v)∈GΛp(u,v),a_i= \sup_{\substack{H\succeq0,\ I-H\succeq0\\ E(H,\rho_i)>1-\epsilon_0}} \left[-\ell\!\left(E(H,\rho_{i,L}\otimes\rho_{i,R})\right)\right] \quad(i=1,2), \qquad c= \inf_{\sum_{(u,v)\in G}p(u,v)>1-\epsilon_\infty} \ \sup_{(u,v)\in G}\Lambda_p(u,v),ai​=H⪰0, I−H⪰0E(H,ρi​)>1−ϵ0​​sup​[−ℓ(E(H,ρi,L​⊗ρi,R​))](i=1,2),c=∑(u,v)∈G​p(u,v)>1−ϵ∞​inf​ (u,v)∈Gsup​Λp​(u,v),

where GGG ranges over finite subsets of U×VU\times VU×V, pU(u)=∑vp(u,v)p_U(u)=\sum_vp(u,v)pU​(u)=∑v​p(u,v), pV(v)=∑up(u,v)p_V(v)=\sum_up(u,v)pV​(v)=∑u​p(u,v), and

Λp(u,v)={−∞,p(u,v)=0,+∞,p(u,v)≠0 and pU(u)pV(v)=0,ℓ ⁣(p(u,v)pU(u)pV(v)),otherwise.\Lambda_p(u,v)= \begin{cases} -\infty,&p(u,v)=0,\\ +\infty,&p(u,v)\ne0\ \text{and }p_U(u)p_V(v)=0,\\ \ell\!\left(\dfrac{p(u,v)}{p_U(u)p_V(v)}\right),&\text{otherwise}. \end{cases}Λp​(u,v)=⎩⎨⎧​−∞,+∞,ℓ(pU​(u)pV​(v)p(u,v)​),​p(u,v)=0,p(u,v)=0 and pU​(u)pV​(v)=0,otherwise.​

The supplied matrices TiT_iTi​ must themselves be effects and must satisfy the non-strict acceptance and comparison inequalities

1−ϵ0≤E(Ti,ρi),E(Ti,ρi,L⊗ρi,R)≤2−ai(i=1,2).1-\epsilon_0\le E(T_i,\rho_i),\qquad E(T_i,\rho_{i,L}\otimes\rho_{i,R})\le2^{-a_i} \quad(i=1,2).1−ϵ0​≤E(Ti​,ρi​),E(Ti​,ρi,L​⊗ρi,R​)≤2−ai​(i=1,2).

Finally, with L=log⁡2(1/ϵ~)L=\log_2(1/\widetilde\epsilon)L=log2​(1/ϵ), it requires

ri>0,log⁡2Mi+ri≤ai−4L−1,L≤ri(i=1,2),r1+r2=⌈c+3L⌉r_i>0,\qquad \log_2M_i+r_i\le a_i-4L-1,\qquad L\le r_i\quad(i=1,2),\qquad r_1+r_2=\lceil c+3L\rceilri​>0,log2​Mi​+ri​≤ai​−4L−1,L≤ri​(i=1,2),r1​+r2​=⌈c+3L⌉

as an integer equality. Thus neither message count nor padding count may be zero; normalization of ppp also forces U,VU,VU,V to be nonempty. The strict acceptance condition inside the supremum and the non-strict acceptance conditions on the supplied tests are separate requirements.

QAlgorithms.Papers.Independent.Extend50.P49.SpectrumAchievable

Let XXX be any type and B,CB,CB,C finite types. For each natural number kkk, let NkN_kNk​ be a channel assigning to every input word in Xk+1X^{k+1}Xk+1 a positive semidefinite complex matrix of trace one on Bk+1×Ck+1B^{k+1}\times C^{k+1}Bk+1×Ck+1; the channel data also require the input and both output word types to be nonempty. For arbitrary real numbers R1,R2R_1,R_2R1​,R2​, the stated property means that there exist natural-number sequences M1(k),M2(k)M_1(k),M_2(k)M1​(k),M2​(k), both strictly positive for every kkk, and, for every kkk, an encoder

ek:{0,…,M1(k)−1}×{0,…,M2(k)−1}→Xk+1,e_k:\{0,\ldots,M_1(k)-1\}\times \{0,\ldots,M_2(k)-1\}\to X^{k+1},ek​:{0,…,M1​(k)−1}×{0,…,M2​(k)−1}→Xk+1,

together with positive semidefinite matrices Ek,iE_{k,i}Ek,i​ on Bk+1B^{k+1}Bk+1 and Fk,jF_{k,j}Fk,j​ on Ck+1C^{k+1}Ck+1 satisfying ∑iEk,i=I\sum_iE_{k,i}=I∑i​Ek,i​=I and ∑jFk,j=I\sum_jF_{k,j}=I∑j​Fk,j​=I, such that

1M1(k)M2(k)∑i=0M1(k)−1∑j=0M2(k)−1[1−Re⁡tr⁡((Ek,i⊗Fk,j)Nk(ek(i,j)))]⟶0.\frac{1}{M_1(k)M_2(k)} \sum_{i=0}^{M_1(k)-1}\sum_{j=0}^{M_2(k)-1} \left[ 1-\operatorname{Re}\operatorname{tr} \left((E_{k,i}\otimes F_{k,j})N_k(e_k(i,j))\right) \right]\longrightarrow0.M1​(k)M2​(k)1​i=0∑M1​(k)−1​j=0∑M2​(k)−1​[1−Retr((Ek,i​⊗Fk,j​)Nk​(ek​(i,j)))]⟶0.

Furthermore, for every real δ>0\delta>0δ>0, all sufficiently large kkk satisfy R1−δ≤log⁡2(M1(k))/(k+1)R_1-\delta\le\log_2(M_1(k))/(k+1)R1​−δ≤log2​(M1​(k))/(k+1), and for every real δ>0\delta>0δ>0, all sufficiently large kkk satisfy R2−δ≤log⁡2(M2(k))/(k+1)R_2-\delta\le\log_2(M_2(k))/(k+1)R2​−δ≤log2​(M2​(k))/(k+1). The two eventual conditions may have different thresholds. Block lengths begin at one, zero message counts are excluded, and this definition itself imposes no nonnegativity condition on the rates.

QAlgorithms.Papers.Independent.Extend50.P49.bookWeight

For finite types U,VU,VU,V, natural numbers R,CR,CR,C, a function p:U×V→Rp:U\times V\to\mathbb Rp:U×V→R satisfying p(u,v)≥0p(u,v)\ge0p(u,v)≥0 and ∑u,vp(u,v)=1\sum_{u,v}p(u,v)=1∑u,v​p(u,v)=1, a real number ccc, and a codebook consisting of row symbols uk∈Uu_k\in Uuk​∈U for 0≤k<R0\le k<R0≤k<R, column symbols vl∈Vv_l\in Vvl​∈V for 0≤l<C0\le l<C0≤l<C, and Boolean retention flags hklh_{kl}hkl​, this definition returns

(∏k=0R−1pU(uk))(∏l=0C−1pV(vl))∏k=0R−1∏l=0C−1{s(uk,vl),hkl=true,1−s(uk,vl),hkl=false,\left(\prod_{k=0}^{R-1}p_U(u_k)\right) \left(\prod_{l=0}^{C-1}p_V(v_l)\right) \prod_{k=0}^{R-1}\prod_{l=0}^{C-1} \begin{cases} s(u_k,v_l),&h_{kl}=\mathrm{true},\\ 1-s(u_k,v_l),&h_{kl}=\mathrm{false}, \end{cases}(k=0∏R−1​pU​(uk​))(l=0∏C−1​pV​(vl​))k=0∏R−1​l=0∏C−1​{s(uk​,vl​),1−s(uk​,vl​),​hkl​=true,hkl​=false,​

where pU(u)=∑vp(u,v)p_U(u)=\sum_v p(u,v)pU​(u)=∑v​p(u,v), pV(v)=∑up(u,v)p_V(v)=\sum_u p(u,v)pV​(v)=∑u​p(u,v), and

s(u,v)=min⁡ ⁣(1,max⁡ ⁣(0,p(u,v)2cpU(u)pV(v))).s(u,v)=\min\!\left(1,\max\!\left(0,\frac{p(u,v)}{2^c p_U(u)p_V(v)}\right)\right).s(u,v)=min(1,max(0,2cpU​(u)pV​(v)p(u,v)​)).

Division by zero has value zero in this expression. Row and column symbols may repeat, the flags are unrestricted, and RRR or CCC may be zero; every empty product equals 111.

QAlgorithms.Papers.Independent.Extend50.P49.classicalError

For any types X,Y,ZX,Y,ZX,Y,Z, with Y,ZY,ZY,Z finite, let XXX be nonempty and let NNN assign each x∈Xx\in Xx∈X a nonnegative real function qxq_xqx​ on Y×ZY\times ZY×Z with ∑y,zqx(y,z)=1\sum_{y,z}q_x(y,z)=1∑y,z​qx​(y,z)=1. For natural numbers M1,M2M_1,M_2M1​,M2​, let DDD consist of an encoder e:{0,…,M1−1}×{0,…,M2−1}→Xe:\{0,\ldots,M_1-1\}\times\{0,\ldots,M_2-1\}\to Xe:{0,…,M1​−1}×{0,…,M2​−1}→X and functions dB:Y→{0,…,M1−1}d_B:Y\to\{0,\ldots,M_1-1\}dB​:Y→{0,…,M1​−1} and dC:Z→{0,…,M2−1}d_C:Z\to\{0,\ldots,M_2-1\}dC​:Z→{0,…,M2​−1}. The definition gives

err⁡cl(N,D)=(M1M2)−1∑i=0M1−1∑j=0M2−1∑(y,z)∈Y×Z{0,dB(y)=i and dC(z)=j,qe(i,j)(y,z),otherwise.\operatorname{err}_{\mathrm{cl}}(N,D) =(M_1M_2)^{-1} \sum_{i=0}^{M_1-1}\sum_{j=0}^{M_2-1} \sum_{(y,z)\in Y\times Z} \begin{cases} 0,&d_B(y)=i\ \text{and}\ d_C(z)=j,\\ q_{e(i,j)}(y,z),&\text{otherwise}. \end{cases}errcl​(N,D)=(M1​M2​)−1i=0∑M1​−1​j=0∑M2​−1​(y,z)∈Y×Z∑​{0,qe(i,j)​(y,z),​dB​(y)=i and dC​(z)=j,otherwise.​

The inverse is real, with 0−1=00^{-1}=00−1=0; thus the formula gives 000 for a zero message count. Under the channel assumptions, Y,ZY,ZY,Z are nonempty, so the decoder functions cannot exist when their respective message counts are zero.

QAlgorithms.Papers.Independent.Extend50.P49.classicalEvent

For arbitrary XXX and finite U,V,Y,ZU,V,Y,ZU,V,Y,Z, let DDD supply a nonempty XXX, normalized nonnegative channel laws Wx(y,z)W_x(y,z)Wx​(y,z), a normalized nonnegative joint law p(u,v)p(u,v)p(u,v), a map f:U×V→Xf:U\times V\to Xf:U×V→X, positive natural numbers M1,M2M_1,M_2M1​,M2​, natural numbers r1,r2r_1,r_2r1​,r2​, real numbers ϵ0,ϵ∞,ϵ~,a,b,c\epsilon_0,\epsilon_\infty,\widetilde\epsilon,a,b,cϵ0​,ϵ∞​,ϵ,a,b,c, and tests A1⊆U×Y,A2⊆V×ZA_1\subseteq U\times Y,A_2\subseteq V\times ZA1​⊆U×Y,A2​⊆V×Z. Its required conditions are as follows: define q1(u,y)=∑v,zp(u,v)Wf(u,v)(y,z)q_1(u,y)=\sum_{v,z}p(u,v)W_{f(u,v)}(y,z)q1​(u,y)=∑v,z​p(u,v)Wf(u,v)​(y,z), q2(v,z)=∑u,yp(u,v)Wf(u,v)(y,z)q_2(v,z)=\sum_{u,y}p(u,v)W_{f(u,v)}(y,z)q2​(v,z)=∑u,y​p(u,v)Wf(u,v)​(y,z), let qL,qRq_L,q_RqL​,qR​ denote marginals, and let ℓ(t)=log⁡2t\ell(t)=\log_2tℓ(t)=log2​t for t>0t>0t>0 and −∞-\infty−∞ otherwise; then, with a1=a,a2=ba_1=a,a_2=ba1​=a,a2​=b,

0<ϵ0<1,0<ϵ∞≤14,0<ϵ~≤137,ai=sup⁡∑Gqi≥1−ϵ0−ℓ ⁣(∑s∈Gqi,L(sL)qi,R(sR)),1−ϵ0<∑s∈Aiqi(s),∑s∈Aiqi,L(sL)qi,R(sR)≤2−ai(i=1,2),c=inf⁡∑Gp>1−ϵ∞sup⁡(u,v)∈GΛp(u,v),\begin{gathered} 0<\epsilon_0<1,\quad0<\epsilon_\infty\le\tfrac14,\quad 0<\widetilde\epsilon\le\tfrac1{37},\\ a_i=\sup_{\sum_Gq_i\ge1-\epsilon_0} -\ell\!\left(\sum_{s\in G}q_{i,L}(s_L)q_{i,R}(s_R)\right),\quad 1-\epsilon_0<\sum_{s\in A_i}q_i(s),\quad \sum_{s\in A_i}q_{i,L}(s_L)q_{i,R}(s_R)\le2^{-a_i} \quad(i=1,2),\\ c=\inf_{\sum_Gp>1-\epsilon_\infty}\sup_{(u,v)\in G}\Lambda_p(u,v), \end{gathered}0<ϵ0​<1,0<ϵ∞​≤41​,0<ϵ≤371​,ai​=∑G​qi​≥1−ϵ0​sup​−ℓ(s∈G∑​qi,L​(sL​)qi,R​(sR​)),1−ϵ0​<s∈Ai​∑​qi​(s),s∈Ai​∑​qi,L​(sL​)qi,R​(sR​)≤2−ai​(i=1,2),c=∑G​p>1−ϵ∞​inf​(u,v)∈Gsup​Λp​(u,v),​

where the extrema are in the extended reals over finite subsets, and Λp(u,v)\Lambda_p(u,v)Λp​(u,v) is −∞-\infty−∞ if p(u,v)=0p(u,v)=0p(u,v)=0, +∞+\infty+∞ if p(u,v)≠0p(u,v)\ne0p(u,v)=0 but pU(u)pV(v)=0p_U(u)p_V(v)=0pU​(u)pV​(v)=0, and otherwise ℓ(p(u,v)/(pU(u)pV(v)))\ell(p(u,v)/(p_U(u)p_V(v)))ℓ(p(u,v)/(pU​(u)pV​(v))). With L=log⁡2(1/ϵ~)L=\log_2(1/\widetilde\epsilon)L=log2​(1/ϵ), the remaining conditions are ri>0r_i>0ri​>0, L≤riL\le r_iL≤ri​, log⁡2Mi+ri≤ai−4L−1\log_2M_i+r_i\le a_i-4L-1log2​Mi​+ri​≤ai​−4L−1 for i=1,2i=1,2i=1,2, and r1+r2=⌈c+3L⌉r_1+r_2=\lceil c+3L\rceilr1​+r2​=⌈c+3L⌉. Given a codebook with R=M12r1R=M_1 2^{r_1}R=M1​2r1​ row symbols uku_kuk​, C=M22r2C=M_2 2^{r_2}C=M2​2r2​ column symbols vlv_lvl​, and Boolean flags hklh_{kl}hkl​, an event label eee among the five named values, and an outcome (y,z)∈Y×Z(y,z)\in Y\times Z(y,z)∈Y×Z, select the first pair in increasing kkk, then increasing lll, satisfying

⌊k/2r1⌋=0,⌊l/2r2⌋=0,hkl=true,∑y′$uk,y′)∈A1∑z′Wf(uk,vl)(y′,z′)>1−4ϵ0,∑z′(vl,z′)∈A2∑y′Wf(uk,vl)(y′,z′)>1−4ϵ0.\left\lfloor k/2^{r_1}\right\rfloor=0,\quad \left\lfloor l/2^{r_2}\right\rfloor=0,\quad h_{kl}=\mathrm{true},\quad \sum_{\substack{y'\$u_k,y')\in A_1}}\sum_{z'}W_{f(u_k,v_l)}(y',z')>1-4\epsilon_0,\quad \sum_{\substack{z'\\(v_l,z')\in A_2}}\sum_{y'}W_{f(u_k,v_l)}(y',z')>1-4\epsilon_0.⌊k/2r1​⌋=0,⌊l/2r2​⌋=0,hkl​=true,y′$uk​,y′)∈A1​​∑​z′∑​Wf(uk​,vl​)​(y′,z′)>1−4ϵ0​,z′(vl​,z′)∈A2​​∑​y′∑​Wf(uk​,vl​)​(y′,z′)>1−4ϵ0​.

If there is no such pair, the defined predicate holds exactly when (e=\texttt{noPair},independentlyof, independently of ,independentlyof(y,z).Iftheselectedpairis. If the selected pair is .Iftheselectedpairis(k_,l_),thepredicateisfalsefor‘noPair‘;for‘bobMiss‘itmeans, the predicate is false for `noPair`; for `bobMiss` it means ,thepredicateisfalsefor‘noPair‘;for‘bobMiss‘itmeans(u_{k_},y)\notin A_1;for‘charlieMiss‘itmeans; for `charlieMiss` it means ;for‘charlieMiss‘itmeans(v_{l_},z)\notin A_2;for‘bobCollision‘itmeansthatsome; for `bobCollision` it means that some ;for‘bobCollision‘itmeansthatsome0\le k<Rwithwithwithk\ne k_satisfiessatisfiessatisfies(u_k,y)\in A_1;andfor‘charlieCollision‘itmeansthatsome; and for `charlieCollision` it means that some ;andfor‘charlieCollision‘itmeansthatsome0\le l<Cwithwithwithl\ne l_satisfiessatisfiessatisfies(v_l,z)\in A_2$. The collision indices range over the entire codebook, without a retention, goodness, or message-block restriction, and distinct indices may carry equal symbols.

QAlgorithms.Papers.Independent.Extend50.P49.classicalEventProbability

For arbitrary XXX and finite U,V,Y,ZU,V,Y,ZU,V,Y,Z, let DDD consist of a nonempty input type XXX, channel laws Wx(y,z)≥0W_x(y,z)\ge0Wx​(y,z)≥0 summing to 111, a joint law p(u,v)≥0p(u,v)\ge0p(u,v)≥0 summing to 111, a map f:U×V→Xf:U\times V\to Xf:U×V→X, positive natural numbers M1,M2M_1,M_2M1​,M2​, natural numbers r1,r2r_1,r_2r1​,r2​, real parameters ϵ0,ϵ∞,ϵ~,a,b,c\epsilon_0,\epsilon_\infty,\widetilde\epsilon,a,b,cϵ0​,ϵ∞​,ϵ,a,b,c, and finite tests A1,A2A_1,A_2A1​,A2​ on U×Y,V×ZU\times Y,V\times ZU×Y,V×Z. Put q1(u,y)=∑v,zp(u,v)Wf(u,v)(y,z)q_1(u,y)=\sum_{v,z}p(u,v)W_{f(u,v)}(y,z)q1​(u,y)=∑v,z​p(u,v)Wf(u,v)​(y,z), q2(v,z)=∑u,yp(u,v)Wf(u,v)(y,z)q_2(v,z)=\sum_{u,y}p(u,v)W_{f(u,v)}(y,z)q2​(v,z)=∑u,y​p(u,v)Wf(u,v)​(y,z), and denote marginals of any joint law by subscripts L,RL,RL,R. Let ℓ(t)=log⁡2t\ell(t)=\log_2tℓ(t)=log2​t for t>0t>0t>0, and −∞-\infty−∞ otherwise; let Λp(u,v)\Lambda_p(u,v)Λp​(u,v) be −∞-\infty−∞ when p(u,v)=0p(u,v)=0p(u,v)=0, +∞+\infty+∞ when p(u,v)≠0p(u,v)\ne0p(u,v)=0 and pU(u)pV(v)=0p_U(u)p_V(v)=0pU​(u)pV​(v)=0, and otherwise ℓ(p(u,v)/(pU(u)pV(v)))\ell(p(u,v)/(p_U(u)p_V(v)))ℓ(p(u,v)/(pU​(u)pV​(v))). The data must satisfy, with a1=a,a2=ba_1=a,a_2=ba1​=a,a2​=b and extended-real extrema over finite subsets,

0<ϵ0<1,0<ϵ∞≤14,0<ϵ~≤137,ai=sup⁡∑Gqi≥1−ϵ0−ℓ ⁣(∑s∈Gqi,L(sL)qi,R(sR)),1−ϵ0<∑s∈Aiqi(s),∑s∈Aiqi,L(sL)qi,R(sR)≤2−ai(i=1,2),c=inf⁡∑Gp>1−ϵ∞sup⁡(u,v)∈GΛp(u,v).\begin{gathered} 0<\epsilon_0<1,\quad0<\epsilon_\infty\le\tfrac14,\quad 0<\widetilde\epsilon\le\tfrac1{37},\\ a_i=\sup_{\sum_Gq_i\ge1-\epsilon_0} -\ell\!\left(\sum_{s\in G}q_{i,L}(s_L)q_{i,R}(s_R)\right),\quad 1-\epsilon_0<\sum_{s\in A_i}q_i(s),\quad \sum_{s\in A_i}q_{i,L}(s_L)q_{i,R}(s_R)\le2^{-a_i} \quad(i=1,2),\\ c=\inf_{\sum_Gp>1-\epsilon_\infty}\sup_{(u,v)\in G}\Lambda_p(u,v). \end{gathered}0<ϵ0​<1,0<ϵ∞​≤41​,0<ϵ≤371​,ai​=∑G​qi​≥1−ϵ0​sup​−ℓ(s∈G∑​qi,L​(sL​)qi,R​(sR​)),1−ϵ0​<s∈Ai​∑​qi​(s),s∈Ai​∑​qi,L​(sL​)qi,R​(sR​)≤2−ai​(i=1,2),c=∑G​p>1−ϵ∞​inf​(u,v)∈Gsup​Λp​(u,v).​

Writing L=log⁡2(1/ϵ~)L=\log_2(1/\widetilde\epsilon)L=log2​(1/ϵ), they must also satisfy ri>0r_i>0ri​>0, L≤riL\le r_iL≤ri​, log⁡2Mi+ri≤ai−4L−1\log_2M_i+r_i\le a_i-4L-1log2​Mi​+ri​≤ai​−4L−1, and r1+r2=⌈c+3L⌉r_1+r_2=\lceil c+3L\rceilr1​+r2​=⌈c+3L⌉. For an event label eee among noPair, bobMiss, charlieMiss, bobCollision, charlieCollision, the definition returns

∑Bw(B)∑y,zWxB(y,z) 1Ee(B,y,z).\sum_{\mathcal B} w(\mathcal B)\sum_{y,z} W_{x_{\mathcal B}}(y,z)\,\mathbf1_{E_e(\mathcal B,y,z)}.B∑​w(B)y,z∑​WxB​​(y,z)1Ee​(B,y,z)​.

Here B\mathcal BB ranges over all row-symbol functions uk∈Uu_k\in Uuk​∈U, column-symbol functions vl∈Vv_l\in Vvl​∈V, and Boolean arrays hklh_{kl}hkl​, with 0≤k<R=M12r10\le k<R=M_1 2^{r_1}0≤k<R=M1​2r1​, 0≤l<C=M22r20\le l<C=M_2 2^{r_2}0≤l<C=M2​2r2​; its weight is

w(B)=(∏kpU(uk))(∏lpV(vl))∏k,l{s(uk,vl),hkl=true,1−s(uk,vl),hkl=false,s(u,v)=min⁡ ⁣(1,max⁡ ⁣(0,p(u,v)2cpU(u)pV(v))),w(\mathcal B)= \left(\prod_kp_U(u_k)\right)\left(\prod_lp_V(v_l)\right) \prod_{k,l} \begin{cases} s(u_k,v_l),&h_{kl}=\mathrm{true},\\ 1-s(u_k,v_l),&h_{kl}=\mathrm{false}, \end{cases} \qquad s(u,v)=\min\!\left(1,\max\!\left(0,\frac{p(u,v)}{2^c p_U(u)p_V(v)}\right)\right),w(B)=(k∏​pU​(uk​))(l∏​pV​(vl​))k,l∏​{s(uk​,vl​),1−s(uk​,vl​),​hkl​=true,hkl​=false,​s(u,v)=min(1,max(0,2cpU​(u)pV​(v)p(u,v)​)),

with division by zero interpreted as zero. A pair is good when both channel acceptance sums for (uk,A1)(u_k,A_1)(uk​,A1​) and (vl,A2)(v_l,A_2)(vl​,A2​) strictly exceed 1−4ϵ01-4\epsilon_01−4ϵ0​. Among good retained pairs with k<2r1k<2^{r_1}k<2r1​, l<2r2l<2^{r_2}l<2r2​, choose the first by increasing kkk, then lll. If it is (k∗,l∗)(k_*,l_*)(k∗​,l∗​), put xB=f(uk∗,vl∗)x_{\mathcal B}=f(u_{k_*},v_{l_*})xB​=f(uk∗​​,vl∗​​); otherwise use a fixed element of XXX chosen from its nonemptiness. With no selected pair, EeE_eEe​ holds exactly for noPair. With a selected pair, it is false for noPair, means (uk∗,y)∉A1(u_{k_*},y)\notin A_1(uk∗​​,y)∈/A1​ for bobMiss, means (vl∗,z)∉A2(v_{l_*},z)\notin A_2(vl∗​​,z)∈/A2​ for charlieMiss, means ∃k≠k∗:(uk,y)∈A1\exists k\ne k_*:(u_k,y)\in A_1∃k=k∗​:(uk​,y)∈A1​ for bobCollision, and means ∃l≠l∗:(vl,z)∈A2\exists l\ne l_*:(v_l,z)\in A_2∃l=l∗​:(vl​,z)∈A2​ for charlieCollision; these existential indices range over all rows or columns. The indicator is 111 when its condition holds and 000 otherwise.

QAlgorithms.Papers.Independent.Extend50.P49.classicalGood

For arbitrary types X,U,VX,U,VX,U,V, finite types Y,ZY,ZY,Z, a classical channel consisting of a nonempty input type XXX and, for each x∈Xx\in Xx∈X, numbers Wx(y,z)≥0W_x(y,z)\ge0Wx​(y,z)≥0 with ∑y,zWx(y,z)=1\sum_{y,z}W_x(y,z)=1∑y,z​Wx​(y,z)=1, a function f:U×V→Xf:U\times V\to Xf:U×V→X, finite sets A1⊆U×YA_1\subseteq U\times YA1​⊆U×Y and A2⊆V×ZA_2\subseteq V\times ZA2​⊆V×Z, an arbitrary real number ϵ0\epsilon_0ϵ0​, and elements u∈U,v∈Vu\in U,v\in Vu∈U,v∈V, this predicate means that both strict inequalities hold:

1−4ϵ0<∑y∈Y$u,y)∈A1∑z∈ZWf(u,v)(y,z),1−4ϵ0<∑z∈Z(v,z)∈A2∑y∈YWf(u,v)(y,z).1-4\epsilon_0 < \sum_{\substack{y\in Y\$u,y)\in A_1}}\sum_{z\in Z}W_{f(u,v)}(y,z), \qquad 1-4\epsilon_0 < \sum_{\substack{z\in Z\\(v,z)\in A_2}}\sum_{y\in Y}W_{f(u,v)}(y,z).1−4ϵ0​<y∈Y$u,y)∈A1​​∑​z∈Z∑​Wf(u,v)​(y,z),1−4ϵ0​<z∈Z(v,z)∈A2​​∑​y∈Y∑​Wf(u,v)​(y,z).

No range restriction on (\epsilon_0isimposedbythisdefinition.Inparticular,whenis imposed by this definition. In particular, whenisimposedbythisdefinition.Inparticular,when\epsilon_0\le0,theseconditionscannotholdbecauseeachsumisatmost, these conditions cannot hold because each sum is at most ,theseconditionscannotholdbecauseeachsumisatmost1.Theexistenceofthechannelrequires. The existence of the channel requires .TheexistenceofthechannelrequiresYandandandZ$ to be nonempty.

QAlgorithms.Papers.Independent.Extend50.P49.classicalIndexError

For arbitrary XXX and finite U,V,Y,ZU,V,Y,ZU,V,Y,Z, let DDD supply a nonempty XXX, normalized nonnegative channel laws Wx(y,z)W_x(y,z)Wx​(y,z), a normalized nonnegative law p(u,v)p(u,v)p(u,v), a map f:U×V→Xf:U\times V\to Xf:U×V→X, positive natural numbers M1,M2M_1,M_2M1​,M2​, natural numbers r1,r2r_1,r_2r1​,r2​, reals ϵ0,ϵ∞,ϵ~,a,b,c\epsilon_0,\epsilon_\infty,\widetilde\epsilon,a,b,cϵ0​,ϵ∞​,ϵ,a,b,c, and finite tests A1⊆U×Y,A2⊆V×ZA_1\subseteq U\times Y,A_2\subseteq V\times ZA1​⊆U×Y,A2​⊆V×Z. Define q1(u,y)=∑v,zp(u,v)Wf(u,v)(y,z)q_1(u,y)=\sum_{v,z}p(u,v)W_{f(u,v)}(y,z)q1​(u,y)=∑v,z​p(u,v)Wf(u,v)​(y,z), q2(v,z)=∑u,yp(u,v)Wf(u,v)(y,z)q_2(v,z)=\sum_{u,y}p(u,v)W_{f(u,v)}(y,z)q2​(v,z)=∑u,y​p(u,v)Wf(u,v)​(y,z), let subscripts L,RL,RL,R denote marginals, and put ℓ(t)=log⁡2t\ell(t)=\log_2tℓ(t)=log2​t for t>0t>0t>0, −∞-\infty−∞ otherwise. The requirements on DDD are

0<ϵ0<1,0<ϵ∞≤14,0<ϵ~≤137,ai=sup⁡∑Gqi≥1−ϵ0−ℓ ⁣(∑s∈Gqi,L(sL)qi,R(sR)),1−ϵ0<∑s∈Aiqi(s),∑s∈Aiqi,L(sL)qi,R(sR)≤2−ai(i=1,2),c=inf⁡∑Gp>1−ϵ∞sup⁡(u,v)∈GΛp(u,v),\begin{gathered} 0<\epsilon_0<1,\quad0<\epsilon_\infty\le\tfrac14,\quad 0<\widetilde\epsilon\le\tfrac1{37},\\ a_i=\sup_{\sum_Gq_i\ge1-\epsilon_0} -\ell\!\left(\sum_{s\in G}q_{i,L}(s_L)q_{i,R}(s_R)\right),\quad 1-\epsilon_0<\sum_{s\in A_i}q_i(s),\quad \sum_{s\in A_i}q_{i,L}(s_L)q_{i,R}(s_R)\le2^{-a_i} \quad(i=1,2),\\ c=\inf_{\sum_Gp>1-\epsilon_\infty}\sup_{(u,v)\in G}\Lambda_p(u,v), \end{gathered}0<ϵ0​<1,0<ϵ∞​≤41​,0<ϵ≤371​,ai​=∑G​qi​≥1−ϵ0​sup​−ℓ(s∈G∑​qi,L​(sL​)qi,R​(sR​)),1−ϵ0​<s∈Ai​∑​qi​(s),s∈Ai​∑​qi,L​(sL​)qi,R​(sR​)≤2−ai​(i=1,2),c=∑G​p>1−ϵ∞​inf​(u,v)∈Gsup​Λp​(u,v),​

where a1=a,a2=ba_1=a,a_2=ba1​=a,a2​=b, the extrema are extended-real extrema over finite subsets, and Λp\Lambda_pΛp​ equals −∞-\infty−∞ at p=0p=0p=0, +∞+\infty+∞ at p≠0p\ne0p=0 with zero product of marginals, and otherwise ℓ(p/(pUpV))\ell(p/(p_Up_V))ℓ(p/(pU​pV​)). With L=log⁡2(1/ϵ~)L=\log_2(1/\widetilde\epsilon)L=log2​(1/ϵ), the remaining requirements are ri>0r_i>0ri​>0, L≤riL\le r_iL≤ri​, log⁡2Mi+ri≤ai−4L−1\log_2M_i+r_i\le a_i-4L-1log2​Mi​+ri​≤ai​−4L−1, and r1+r2=⌈c+3L⌉r_1+r_2=\lceil c+3L\rceilr1​+r2​=⌈c+3L⌉. Given row symbols uku_kuk​, column symbols vlv_lvl​, and Boolean flags hklh_{kl}hkl​, indexed by 0≤k<R=M12r10\le k<R=M_1 2^{r_1}0≤k<R=M1​2r1​, 0≤l<C=M22r20\le l<C=M_2 2^{r_2}0≤l<C=M2​2r2​, define K(y)K(y)K(y) as the least row index with (uk,y)∈A1(u_k,y)\in A_1(uk​,y)∈A1​, defaulting to 000 when there is none, and define J(z)J(z)J(z) analogously using all columns and A2A_2A2​. For every message pair 0≤mi<Mi0\le m_i<M_i0≤mi​<Mi​, select the first pair (k,l)(k,l)(k,l), ordered by increasing row then column, with

⌊k/2r1⌋=m1,⌊l/2r2⌋=m2,hkl=true,\left\lfloor k/2^{r_1}\right\rfloor=m_1,\quad \left\lfloor l/2^{r_2}\right\rfloor=m_2,\quad h_{kl}=\mathrm{true},⌊k/2r1​⌋=m1​,⌊l/2r2​⌋=m2​,hkl​=true,

for which both test acceptance probabilities under Wf(uk,vl)W_{f(u_k,v_l)}Wf(uk​,vl​)​, namely ∑y:(uk,y)∈A1∑zWf(uk,vl)(y,z)\sum_{y:(u_k,y)\in A_1}\sum_zW_{f(u_k,v_l)}(y,z)∑y:(uk​,y)∈A1​​∑z​Wf(uk​,vl​)​(y,z) and ∑z:(vl,z)∈A2∑yWf(uk,vl)(y,z)\sum_{z:(v_l,z)\in A_2}\sum_yW_{f(u_k,v_l)}(y,z)∑z:(vl​,z)∈A2​​∑y​Wf(uk​,vl​)​(y,z), strictly exceed 1−4ϵ01-4\epsilon_01−4ϵ0​. Define e(m1,m2)=1e(m_1,m_2)=1e(m1​,m2​)=1 if no pair is selected; otherwise, for the selected pair (k∗,l∗)(k_*,l_*)(k∗​,l∗​), define

e(m1,m2)=∑y,zWf(uk∗,vl∗)(y,z) 1¬(K(y)=k∗ ∧ J(z)=l∗).e(m_1,m_2)= \sum_{y,z}W_{f(u_{k_*},v_{l_*})}(y,z)\, \mathbf1_{\neg(K(y)=k_*\ \land\ J(z)=l_*)}.e(m1​,m2​)=y,z∑​Wf(uk∗​​,vl∗​​)​(y,z)1¬(K(y)=k∗​ ∧ J(z)=l∗​)​.

The definition returns

1M1M2∑m1=0M1−1∑m2=0M2−1e(m1,m2).\frac1{M_1M_2}\sum_{m_1=0}^{M_1-1}\sum_{m_2=0}^{M_2-1}e(m_1,m_2).M1​M2​1​m1​=0∑M1​−1​m2​=0∑M2​−1​e(m1​,m2​).

Its denominator and decoder index ranges are positive. Because each decoder defaults to 000, equality with a selected index 000 can hold even when no symbol passes that decoder’s test.

QAlgorithms.Papers.Independent.Extend50.P49.completedPgm

For any finite type BBB, natural number nnn, family L0,…,Ln−1L_0,\ldots,L_{n-1}L0​,…,Ln−1​ of complex matrices on BBB, and index k∈{0,…,n−1}k\in\{0,\ldots,n-1\}k∈{0,…,n−1}, let S=∑j=0n−1LjS=\sum_{j=0}^{n-1}L_jS=∑j=0n−1​Lj​. Using the total real continuous functional calculus, define K=f(S)K=f(S)K=f(S) for f(x)=(x)−1f(x)=(\sqrt{x})^{-1}f(x)=(x​)−1, and P+=g(S)P_+=g(S)P+​=g(S) for g(x)=1g(x)=1g(x)=1 when x>0x>0x>0 and g(x)=0g(x)=0g(x)=0 otherwise. The resulting matrix is

KLkK+{I−P+,k=0,0,k≠0.K L_k K+ \begin{cases} I-P_+,&k=0,\\ 0,&k\ne0. \end{cases}KLk​K+{I−P+​,0,​k=0,k=0.​

For Hermitian SSS, these functional-calculus expressions apply the indicated functions to its eigenvalues; the real square root and inverse are total, so f(x)=0f(x)=0f(x)=0 for x≤0x\le0x≤0. No positivity, Hermitian, or sum-to-identity condition is assumed for the matrices LjL_jLj​. The type BBB may be empty. When n=0n=0n=0, no index kkk exists, so there is no indexed output to evaluate.

QAlgorithms.Papers.Independent.Extend50.P49.cqJointError

For any types X,B,CX,B,CX,B,C, with B,CB,CB,C finite, let NNN include nonemptiness assumptions for X,B,CX,B,CX,B,C and assign each x∈Xx\in Xx∈X a positive semidefinite matrix NxN_xNx​ on B×CB\times CB×C with trace 111. For natural numbers M1,M2M_1,M_2M1​,M2​, let DDD consist of an encoder e:{0,…,M1−1}×{0,…,M2−1}→Xe:\{0,\ldots,M_1-1\}\times\{0,\ldots,M_2-1\}\to Xe:{0,…,M1​−1}×{0,…,M2​−1}→X and positive semidefinite matrices EiE_iEi​ on BBB and FjF_jFj​ on CCC satisfying ∑iEi=IB\sum_iE_i=I_B∑i​Ei​=IB​ and ∑jFj=IC\sum_jF_j=I_C∑j​Fj​=IC​. The definition gives

err⁡cq(N,D)=(M1M2)−1∑i=0M1−1∑j=0M2−1[1−Re⁡tr⁡ ⁣((Ei⊗Fj)Ne(i,j))],\operatorname{err}_{\mathrm{cq}}(N,D) =(M_1M_2)^{-1} \sum_{i=0}^{M_1-1}\sum_{j=0}^{M_2-1} \left[1-\operatorname{Re}\operatorname{tr}\!\left((E_i\otimes F_j)N_{e(i,j)}\right)\right],errcq​(N,D)=(M1​M2​)−1i=0∑M1​−1​j=0∑M2​−1​[1−Retr((Ei​⊗Fj​)Ne(i,j)​)],

where (Ei⊗Fj)(b,c),(b′,c′)=(Ei)b,b′(Fj)c,c′(E_i\otimes F_j)_{(b,c),(b',c')}=(E_i)_{b,b'}(F_j)_{c,c'}(Ei​⊗Fj​)(b,c),(b′,c′)​=(Ei​)b,b′​(Fj​)c,c′​, and the inverse is taken in R\mathbb RR. Real inversion assigns 0−1=00^{-1}=00−1=0, so the formula itself evaluates to 000 if either message count is zero; however, with the stated nonempty receiver types, no such DDD can satisfy the corresponding empty-sum identity.

QAlgorithms.Papers.Independent.Extend50.P49.extendedLog2

For every real number xxx, the extended base-two logarithm takes values in R∪{−∞,+∞}\mathbb R\cup\{-\infty,+\infty\}R∪{−∞,+∞} and is defined by

extendedLog⁡2(x)={log⁡2x,x>0,−∞,x≤0.\operatorname{extendedLog}_2(x)= \begin{cases} \log_2 x,&x>0,\\ -\infty,&x\le 0. \end{cases}extendedLog2​(x)={log2​x,−∞,​x>0,x≤0.​

In particular, both zero and negative arguments give −∞-\infty−∞.

QAlgorithms.Papers.Independent.Extend50.P49.firstHit

For arbitrary types A,OA,OA,O, a natural number nnn supplied with a proof that n>0n>0n>0, symbols sk∈As_k\in Ask​∈A indexed by 0≤k<n0\le k<n0≤k<n, a finite test set T⊆A×OT\subseteq A\times OT⊆A×O, and an outcome o∈Oo\in Oo∈O, this definition returns the least index kkk for which (sk,o)∈T(s_k,o)\in T(sk​,o)∈T, if one exists. If no such index exists, it returns index 000. The symbols may repeat, and the returned fallback index need not satisfy the test. The case n=0n=0n=0 is excluded by the required positivity hypothesis.

QAlgorithms.Papers.Independent.Extend50.P49.inducedState

For types X,U,V,B,CX,U,V,B,CX,U,V,B,C, with U,V,B,CU,V,B,CU,V,B,C finite, let NNN consist of nonemptiness assertions for X,B,CX,B,CX,B,C and matrices ρx\rho_xρx​ indexed by B×CB\times CB×C, one for every x∈Xx\in Xx∈X, each positive semidefinite with trace 111. Let p:U×V→Rp:U\times V\to\mathbb Rp:U×V→R satisfy p(u,v)≥0p(u,v)\ge0p(u,v)≥0 and ∑u,vp(u,v)=1\sum_{u,v}p(u,v)=1∑u,v​p(u,v)=1, and let f:U→V→Xf:U\to V\to Xf:U→V→X be any function. The induced matrix Ω\OmegaΩ, indexed by (U×V)×(B×C)(U\times V)\times(B\times C)(U×V)×(B×C), is defined entrywise by

Ω((u,v),(b,c)), ((u′,v′),(b′,c′))={p(u,v) (ρf(u,v))(b,c),(b′,c′),(u,v)=(u′,v′),0,(u,v)≠(u′,v′).\Omega_{((u,v),(b,c)),\,((u',v'),(b',c'))} = \begin{cases} p(u,v)\,(\rho_{f(u,v)})_{(b,c),(b',c')}, &(u,v)=(u',v'),\\ 0,&(u,v)\ne(u',v'). \end{cases}Ω((u,v),(b,c)),((u′,v′),(b′,c′))​={p(u,v)(ρf(u,v)​)(b,c),(b′,c′)​,0,​(u,v)=(u′,v′),(u,v)=(u′,v′).​

Here the real weight is viewed as a complex scalar. No finiteness assumption is imposed on XXX; the law ppp forces UUU and VVV to be nonempty.

QAlgorithms.Papers.Independent.Extend50.P49.inducedUB

For types X,U,V,B,CX,U,V,B,CX,U,V,B,C, with U,V,B,CU,V,B,CU,V,B,C finite, let NNN assign to each x∈Xx\in Xx∈X a positive semidefinite complex matrix NxN_xNx​ on B×CB\times CB×C with trace 111, together with assumptions that X,B,CX,B,CX,B,C are nonempty. Let p:U×V→Rp:U\times V\to\mathbb Rp:U×V→R satisfy p(u,v)≥0p(u,v)\ge0p(u,v)≥0 and ∑u,vp(u,v)=1\sum_{u,v}p(u,v)=1∑u,v​p(u,v)=1, and let f:U×V→Xf:U\times V\to Xf:U×V→X be any function. The definition gives the complex matrix ρUB\rho_{UB}ρUB​ on U×BU\times BU×B whose entries are

ρUB((u,b),(u′,b′))={∑v∈Vp(u,v)∑c∈CNf(u,v)((b,c),(b′,c)),u=u′,0,u≠u′.\rho_{UB}\bigl((u,b),(u',b')\bigr)= \begin{cases} \displaystyle\sum_{v\in V}p(u,v)\sum_{c\in C} N_{f(u,v)}\bigl((b,c),(b',c)\bigr),&u=u',\\ 0,&u\ne u'. \end{cases}ρUB​((u,b),(u′,b′))=⎩⎨⎧​v∈V∑​p(u,v)c∈C∑​Nf(u,v)​((b,c),(b′,c)),0,​u=u′,u=u′.​

The probability-law assumption on ppp forces UUU and VVV to be nonempty; no further condition is imposed on fff.

QAlgorithms.Papers.Independent.Extend50.P49.inducedUY

For types X,U,V,Y,ZX,U,V,Y,ZX,U,V,Y,Z, with U,V,Y,ZU,V,Y,ZU,V,Y,Z finite, let XXX be nonempty and let NNN assign to each x∈Xx\in Xx∈X a function qx:Y×Z→Rq_x:Y\times Z\to\mathbb Rqx​:Y×Z→R satisfying qx(y,z)≥0q_x(y,z)\ge0qx​(y,z)≥0 and ∑y,zqx(y,z)=1\sum_{y,z}q_x(y,z)=1∑y,z​qx​(y,z)=1. Let p:U×V→Rp:U\times V\to\mathbb Rp:U×V→R satisfy p(u,v)≥0p(u,v)\ge0p(u,v)≥0 and ∑u,vp(u,v)=1\sum_{u,v}p(u,v)=1∑u,v​p(u,v)=1, and let f:U×V→Xf:U\times V\to Xf:U×V→X be any function. For every (u,y)∈U×Y(u,y)\in U\times Y(u,y)∈U×Y, the definition gives the real number

qUY(u,y)=∑v∈Vp(u,v)∑z∈Zqf(u,v)(y,z).q_{UY}(u,y)=\sum_{v\in V}p(u,v)\sum_{z\in Z}q_{f(u,v)}(y,z).qUY​(u,y)=v∈V∑​p(u,v)z∈Z∑​qf(u,v)​(y,z).

These assumptions force U,V,Y,ZU,V,Y,ZU,V,Y,Z to be nonempty.

QAlgorithms.Papers.Independent.Extend50.P49.inducedVC

For types X,U,V,B,CX,U,V,B,CX,U,V,B,C, with U,V,B,CU,V,B,CU,V,B,C finite, let NNN assign to each x∈Xx\in Xx∈X a positive semidefinite complex matrix NxN_xNx​ on B×CB\times CB×C with trace 111, together with assumptions that X,B,CX,B,CX,B,C are nonempty. Let p:U×V→Rp:U\times V\to\mathbb Rp:U×V→R satisfy p(u,v)≥0p(u,v)\ge0p(u,v)≥0 and ∑u,vp(u,v)=1\sum_{u,v}p(u,v)=1∑u,v​p(u,v)=1, and let f:U×V→Xf:U\times V\to Xf:U×V→X be any function. The definition gives the complex matrix ρVC\rho_{VC}ρVC​ on V×CV\times CV×C whose entries are

ρVC((v,c),(v′,c′))={∑u∈Up(u,v)∑b∈BNf(u,v)((b,c),(b,c′)),v=v′,0,v≠v′.\rho_{VC}\bigl((v,c),(v',c')\bigr)= \begin{cases} \displaystyle\sum_{u\in U}p(u,v)\sum_{b\in B} N_{f(u,v)}\bigl((b,c),(b,c')\bigr),&v=v',\\ 0,&v\ne v'. \end{cases}ρVC​((v,c),(v′,c′))=⎩⎨⎧​u∈U∑​p(u,v)b∈B∑​Nf(u,v)​((b,c),(b,c′)),0,​v=v′,v=v′.​

The probability-law assumption on ppp forces UUU and VVV to be nonempty; no further condition is imposed on fff.

QAlgorithms.Papers.Independent.Extend50.P49.inducedVZ

For types X,U,V,Y,ZX,U,V,Y,ZX,U,V,Y,Z, with U,V,Y,ZU,V,Y,ZU,V,Y,Z finite, let XXX be nonempty and let NNN assign to each x∈Xx\in Xx∈X a function qx:Y×Z→Rq_x:Y\times Z\to\mathbb Rqx​:Y×Z→R satisfying qx(y,z)≥0q_x(y,z)\ge0qx​(y,z)≥0 and ∑y,zqx(y,z)=1\sum_{y,z}q_x(y,z)=1∑y,z​qx​(y,z)=1. Let p:U×V→Rp:U\times V\to\mathbb Rp:U×V→R satisfy p(u,v)≥0p(u,v)\ge0p(u,v)≥0 and ∑u,vp(u,v)=1\sum_{u,v}p(u,v)=1∑u,v​p(u,v)=1, and let f:U×V→Xf:U\times V\to Xf:U×V→X be any function. For every (v,z)∈V×Z(v,z)\in V\times Z(v,z)∈V×Z, the definition gives the real number

qVZ(v,z)=∑u∈Up(u,v)∑y∈Yqf(u,v)(y,z).q_{VZ}(v,z)=\sum_{u\in U}p(u,v)\sum_{y\in Y}q_{f(u,v)}(y,z).qVZ​(v,z)=u∈U∑​p(u,v)y∈Y∑​qf(u,v)​(y,z).

These assumptions force U,V,Y,ZU,V,Y,ZU,V,Y,Z to be nonempty.

QAlgorithms.Papers.Independent.Extend50.P49.informationTail

Let U,VU,VU,V be finite types and let p:U×V→Rp:U\times V\to\mathbb Rp:U×V→R satisfy p(u,v)≥0p(u,v)\ge0p(u,v)≥0 and ∑u,vp(u,v)=1\sum_{u,v}p(u,v)=1∑u,v​p(u,v)=1. Write pU(u)=∑vp(u,v)p_U(u)=\sum_vp(u,v)pU​(u)=∑v​p(u,v) and pV(v)=∑up(u,v)p_V(v)=\sum_up(u,v)pV​(v)=∑u​p(u,v). For arbitrary real numbers n,λn,\lambdan,λ, the definition is

informationTail⁡(p,n,λ)=∑(u,v)∈U×Vp(u,v)>0,λ<1nlog⁡2(p(u,v)pU(u)pV(v))p(u,v).\operatorname{informationTail}(p,n,\lambda) = \sum_{\substack{(u,v)\in U\times V\\ p(u,v)>0,\; \lambda<\frac{1}{n}\log_2\!\left( \frac{p(u,v)}{p_U(u)p_V(v)} \right)}} p(u,v).informationTail(p,n,λ)=(u,v)∈U×Vp(u,v)>0,λ<n1​log2​(pU​(u)pV​(v)p(u,v)​)​∑​p(u,v).

The threshold comparison is strict, and zero-mass pairs contribute zero. On positive-mass pairs both marginals are positive. No positivity assumption is made on nnn; division uses the total real convention x/0=0x/0=0x/0=0, so at n=0n=0n=0 the value is 111 when λ<0\lambda<0λ<0 and 000 when λ≥0\lambda\ge0λ≥0. The existence of the stipulated probability law rules out an empty UUU or VVV.

QAlgorithms.Papers.Independent.Extend50.P49.leftLawMarginal

For any types A,BA,BA,B, with BBB finite, any function p:A×B→Rp:A\times B\to\mathbb Rp:A×B→R, and any a∈Aa\in Aa∈A, the left marginal is defined as

pA(a)=∑b∈Bp(a,b).p_A(a)=\sum_{b\in B}p(a,b).pA​(a)=b∈B∑​p(a,b).

There is no finiteness assumption on AAA, and no nonnegativity or normalization assumption on ppp. If BBB is empty, this value is 000 for every aaa.

QAlgorithms.Papers.Independent.Extend50.P49.logRatio

For finite types A,BA,BA,B, any function p:A×B→Rp:A\times B\to\mathbb Rp:A×B→R, and any pair (a,b)∈A×B(a,b)\in A\times B(a,b)∈A×B, put pA(a)=∑b′∈Bp(a,b′)p_A(a)=\sum_{b'\in B}p(a,b')pA​(a)=∑b′∈B​p(a,b′), pB(b)=∑a′∈Ap(a′,b)p_B(b)=\sum_{a'\in A}p(a',b)pB​(b)=∑a′∈A​p(a′,b), and d=pA(a)pB(b)d=p_A(a)p_B(b)d=pA​(a)pB​(b). The extended-real logarithmic ratio is defined by

ℓp(a,b)={−∞,p(a,b)=0,+∞,p(a,b)≠0 and d=0,log⁡2 ⁣(p(a,b)/d),p(a,b)≠0, d≠0, p(a,b)/d>0,−∞,p(a,b)≠0, d≠0, p(a,b)/d≤0.\ell_p(a,b)= \begin{cases} -\infty,&p(a,b)=0,\\ +\infty,&p(a,b)\ne0\ \text{and}\ d=0,\\ \log_2\!\bigl(p(a,b)/d\bigr),&p(a,b)\ne0,\ d\ne0,\ p(a,b)/d>0,\\ -\infty,&p(a,b)\ne0,\ d\ne0,\ p(a,b)/d\le0. \end{cases}ℓp​(a,b)=⎩⎨⎧​−∞,+∞,log2​(p(a,b)/d),−∞,​p(a,b)=0,p(a,b)=0 and d=0,p(a,b)=0, d=0, p(a,b)/d>0,p(a,b)=0, d=0, p(a,b)/d≤0.​

No nonnegativity or normalization is assumed for ppp; the zero-numerator case takes precedence even when the denominator is also zero.

QAlgorithms.Papers.Independent.Extend50.P49.quantumGood

Let XXX be any type and let U,V,B,CU,V,B,CU,V,B,C be finite types. The argument DDD consists of the following data and requirements: X,B,CX,B,CX,B,C are nonempty; a channel assigns to every x∈Xx\in Xx∈X a positive semidefinite complex matrix ρx\rho_xρx​ on B×CB\times CB×C with trace 111; p:U×V→Rp:U\times V\to\mathbb Rp:U×V→R satisfies p(u,v)≥0p(u,v)\ge0p(u,v)≥0 and ∑u,vp(u,v)=1\sum_{u,v}p(u,v)=1∑u,v​p(u,v)=1; f:U×V→Xf:U\times V\to Xf:U×V→X is a function; M1,M2M_1,M_2M1​,M2​ are positive natural numbers; r1,r2r_1,r_2r1​,r2​ are natural numbers; and real parameters satisfy 0<ϵ0<10<\epsilon_0<10<ϵ0​<1, 0<ϵ∞≤1/40<\epsilon_\infty\le1/40<ϵ∞​≤1/4, and 0<ϵ~≤1/400<\widetilde\epsilon\le1/400<ϵ≤1/40. Define e(H,σ)=Re⁡tr⁡(Hσ)e(H,\sigma)=\operatorname{Re}\operatorname{tr}(H\sigma)e(H,σ)=Retr(Hσ), and define matrices

(σUB)(u,b),(u′,b′)={∑vp(u,v)(Tr⁡Cρf(u,v))b,b′,u=u′,0,u≠u′,(σVC)(v,c),(v′,c′)={∑up(u,v)(Tr⁡Bρf(u,v))c,c′,v=v′,0,v≠v′.(\sigma_{UB})_{(u,b),(u',b')}= \begin{cases}\displaystyle\sum_v p(u,v)(\operatorname{Tr}_C\rho_{f(u,v)})_{b,b'},&u=u',\\0,&u\ne u',\end{cases} \quad (\sigma_{VC})_{(v,c),(v',c')}= \begin{cases}\displaystyle\sum_u p(u,v)(\operatorname{Tr}_B\rho_{f(u,v)})_{c,c'},&v=v',\\0,&v\ne v'.\end{cases}(σUB​)(u,b),(u′,b′)​=⎩⎨⎧​v∑​p(u,v)(TrC​ρf(u,v)​)b,b′​,0,​u=u′,u=u′,​(σVC​)(v,c),(v′,c′)​=⎩⎨⎧​u∑​p(u,v)(TrB​ρf(u,v)​)c,c′​,0,​v=v′,v=v′.​

Here partial traces sum over the traced-out coordinate. For a matrix σ\sigmaσ on a product, write σL,σR\sigma_L,\sigma_RσL​,σR​ for its two partial traces, put ℓ(t)=log⁡2t\ell(t)=\log_2tℓ(t)=log2​t for t>0t>0t>0 and ℓ(t)=−∞\ell(t)=-\inftyℓ(t)=−∞ otherwise, and set

Sϵ(σ)=sup⁡H≥0, I−H≥01−ϵ<e(H,σ)[−ℓ(e(H,σL⊗σR))].S_\epsilon(\sigma)= \sup_{\substack{H\ge0,\ I-H\ge0\\1-\epsilon<e(H,\sigma)}} \bigl[-\ell(e(H,\sigma_L\otimes\sigma_R))\bigr].Sϵ​(σ)=H≥0, I−H≥01−ϵ<e(H,σ)​sup​[−ℓ(e(H,σL​⊗σR​))].

For pU(u)=∑vp(u,v)p_U(u)=\sum_vp(u,v)pU​(u)=∑v​p(u,v) and pV(v)=∑up(u,v)p_V(v)=\sum_up(u,v)pV​(v)=∑u​p(u,v), put rp(u,v)=−∞r_p(u,v)=-\inftyrp​(u,v)=−∞ if p(u,v)=0p(u,v)=0p(u,v)=0, put rp(u,v)=+∞r_p(u,v)=+\inftyrp​(u,v)=+∞ if p(u,v)≠0p(u,v)\ne0p(u,v)=0 but pU(u)pV(v)=0p_U(u)p_V(v)=0pU​(u)pV​(v)=0, and otherwise put rp(u,v)=ℓ(p(u,v)/(pU(u)pV(v)))r_p(u,v)=\ell(p(u,v)/(p_U(u)p_V(v)))rp​(u,v)=ℓ(p(u,v)/(pU​(u)pV​(v))); set

Iϵ(p)=inf⁡F⊆U×V1−ϵ<∑(u,v)∈Fp(u,v) sup⁡(u,v)∈Frp(u,v).I_\epsilon(p)= \inf_{\substack{F\subseteq U\times V\\1-\epsilon<\sum_{(u,v)\in F}p(u,v)}} \ \sup_{(u,v)\in F}r_p(u,v).Iϵ​(p)=F⊆U×V1−ϵ<∑(u,v)∈F​p(u,v)​inf​ (u,v)∈Fsup​rp​(u,v).

These suprema and infima are in the extended real numbers, with sup⁡∅=−∞\sup\varnothing=-\inftysup∅=−∞ and inf⁡∅=+∞\inf\varnothing=+\inftyinf∅=+∞. Further data in DDD are real numbers a,b,ca,b,ca,b,c satisfying Sϵ0(σUB)=aS_{\epsilon_0}(\sigma_{UB})=aSϵ0​​(σUB​)=a, Sϵ0(σVC)=bS_{\epsilon_0}(\sigma_{VC})=bSϵ0​​(σVC​)=b, and Iϵ∞(p)=cI_{\epsilon_\infty}(p)=cIϵ∞​​(p)=c, and matrices G1G_1G1​ on U×BU\times BU×B and G2G_2G2​ on V×CV\times CV×C, each satisfying Gi≥0G_i\ge0Gi​≥0 and I−Gi≥0I-G_i\ge0I−Gi​≥0, with

1−ϵ0≤e(G1,σUB),1−ϵ0≤e(G2,σVC),e(G1,(σUB)L⊗(σUB)R)≤2−a,e(G2,(σVC)L⊗(σVC)R)≤2−b.1-\epsilon_0\le e(G_1,\sigma_{UB}),\quad 1-\epsilon_0\le e(G_2,\sigma_{VC}),\quad e(G_1,(\sigma_{UB})_L\otimes(\sigma_{UB})_R)\le2^{-a},\quad e(G_2,(\sigma_{VC})_L\otimes(\sigma_{VC})_R)\le2^{-b}.1−ϵ0​≤e(G1​,σUB​),1−ϵ0​≤e(G2​,σVC​),e(G1​,(σUB​)L​⊗(σUB​)R​)≤2−a,e(G2​,(σVC​)L​⊗(σVC​)R​)≤2−b.

Writing L=log⁡2(1/ϵ~)L=\log_2(1/\widetilde\epsilon)L=log2​(1/ϵ), the remaining requirements are r1,r2>0r_1,r_2>0r1​,r2​>0, log⁡2M1+r1≤a−4L−1\log_2M_1+r_1\le a-4L-1log2​M1​+r1​≤a−4L−1, log⁡2M2+r2≤b−4L−1\log_2M_2+r_2\le b-4L-1log2​M2​+r2​≤b−4L−1, L≤r1L\le r_1L≤r1​, L≤r2L\le r_2L≤r2​, and r1+r2=⌈c+3L⌉r_1+r_2=\lceil c+3L\rceilr1​+r2​=⌈c+3L⌉, the last equality being an integer equality. For any such DDD, u∈Uu\in Uu∈U, and v∈Vv\in Vv∈V, the defined proposition holds exactly when

1−4ϵ0<Re⁡tr⁡ ⁣((G1)u Tr⁡Cρf(u,v))and1−4ϵ0<Re⁡tr⁡ ⁣((G2)v Tr⁡Bρf(u,v)),1-4\epsilon_0< \operatorname{Re}\operatorname{tr}\!\left((G_1)_u\,\operatorname{Tr}_C\rho_{f(u,v)}\right) \quad\text{and}\quad 1-4\epsilon_0< \operatorname{Re}\operatorname{tr}\!\left((G_2)_v\,\operatorname{Tr}_B\rho_{f(u,v)}\right),1−4ϵ0​<Retr((G1​)u​TrC​ρf(u,v)​)and1−4ϵ0​<Retr((G2​)v​TrB​ρf(u,v)​),

where ((G1)u)b,b′=(G1)(u,b),(u,b′)((G_1)_u)_{b,b'}=(G_1)_{(u,b),(u,b')}((G1​)u​)b,b′​=(G1​)(u,b),(u,b′)​ and ((G2)v)c,c′=(G2)(v,c),(v,c′)((G_2)_v)_{c,c'}=(G_2)_{(v,c),(v,c')}((G2​)v​)c,c′​=(G2​)(v,c),(v,c′)​. Both inequalities are strict. The probability law also forces U,VU,VU,V to be nonempty; no assumption ϵ0<1/4\epsilon_0<1/4ϵ0​<1/4 is included.

QAlgorithms.Papers.Independent.Extend50.P49.quantumIndexError

Let XXX be any type and U,V,B,CU,V,B,CU,V,B,C finite types. The setup argument DDD supplies nonempty X,B,CX,B,CX,B,C, channel matrices ρx≥0\rho_x\ge0ρx​≥0 on B×CB\times CB×C with tr⁡ρx=1\operatorname{tr}\rho_x=1trρx​=1, a probability law p(u,v)≥0p(u,v)\ge0p(u,v)≥0 with ∑u,vp(u,v)=1\sum_{u,v}p(u,v)=1∑u,v​p(u,v)=1, a function f:U×V→Xf:U\times V\to Xf:U×V→X, positive natural numbers M1,M2M_1,M_2M1​,M2​, natural numbers r1,r2r_1,r_2r1​,r2​, real numbers 0<ϵ0<10<\epsilon_0<10<ϵ0​<1, 0<ϵ∞≤1/40<\epsilon_\infty\le1/40<ϵ∞​≤1/4, 0<ϵ~≤1/400<\widetilde\epsilon\le1/400<ϵ≤1/40, real numbers a,b,ca,b,ca,b,c, and effects G1G_1G1​ on U×BU\times BU×B and G2G_2G2​ on V×CV\times CV×C, where an effect HHH means H≥0H\ge0H≥0 and I−H≥0I-H\ge0I−H≥0. Write e(H,σ)=Re⁡tr⁡(Hσ)e(H,\sigma)=\operatorname{Re}\operatorname{tr}(H\sigma)e(H,σ)=Retr(Hσ), and define σUB\sigma_{UB}σUB​ to have diagonal uuu-block ∑vp(u,v)Tr⁡Cρf(u,v)\sum_vp(u,v)\operatorname{Tr}_C\rho_{f(u,v)}∑v​p(u,v)TrC​ρf(u,v)​ and zero off-diagonal uuu-blocks, and σVC\sigma_{VC}σVC​ to have diagonal vvv-block ∑up(u,v)Tr⁡Bρf(u,v)\sum_up(u,v)\operatorname{Tr}_B\rho_{f(u,v)}∑u​p(u,v)TrB​ρf(u,v)​ and zero off-diagonal vvv-blocks. Partial traces sum over the traced-out coordinate; for a bipartite matrix σ\sigmaσ, denote its two marginals by σL,σR\sigma_L,\sigma_RσL​,σR​. Set ℓ(t)=log⁡2t\ell(t)=\log_2tℓ(t)=log2​t for t>0t>0t>0, and ℓ(t)=−∞\ell(t)=-\inftyℓ(t)=−∞ otherwise, and define

Sϵ(σ)=sup⁡H≥0, I−H≥01−ϵ<e(H,σ)−ℓ(e(H,σL⊗σR)).S_\epsilon(\sigma)= \sup_{\substack{H\ge0,\ I-H\ge0\\1-\epsilon<e(H,\sigma)}} -\ell(e(H,\sigma_L\otimes\sigma_R)).Sϵ​(σ)=H≥0, I−H≥01−ϵ<e(H,σ)​sup​−ℓ(e(H,σL​⊗σR​)).

For pU(u)=∑vp(u,v)p_U(u)=\sum_vp(u,v)pU​(u)=∑v​p(u,v) and pV(v)=∑up(u,v)p_V(v)=\sum_up(u,v)pV​(v)=∑u​p(u,v), define rp(u,v)r_p(u,v)rp​(u,v) to be −∞-\infty−∞ when p(u,v)=0p(u,v)=0p(u,v)=0, +∞+\infty+∞ when p(u,v)≠0p(u,v)\ne0p(u,v)=0 and pU(u)pV(v)=0p_U(u)p_V(v)=0pU​(u)pV​(v)=0, and ℓ(p(u,v)/(pU(u)pV(v)))\ell(p(u,v)/(p_U(u)p_V(v)))ℓ(p(u,v)/(pU​(u)pV​(v))) otherwise, and put

Iϵ(p)=inf⁡F⊆U×V1−ϵ<∑Fpsup⁡(u,v)∈Frp(u,v).I_\epsilon(p)= \inf_{\substack{F\subseteq U\times V\\1-\epsilon<\sum_Fp}} \sup_{(u,v)\in F}r_p(u,v).Iϵ​(p)=F⊆U×V1−ϵ<∑F​p​inf​(u,v)∈Fsup​rp​(u,v).

All these suprema and infima are extended-real, including the conventions for empty sets. The requirements on DDD are Sϵ0(σUB)=aS_{\epsilon_0}(\sigma_{UB})=aSϵ0​​(σUB​)=a, Sϵ0(σVC)=bS_{\epsilon_0}(\sigma_{VC})=bSϵ0​​(σVC​)=b, Iϵ∞(p)=cI_{\epsilon_\infty}(p)=cIϵ∞​​(p)=c, e(G1,σUB)≥1−ϵ0e(G_1,\sigma_{UB})\ge1-\epsilon_0e(G1​,σUB​)≥1−ϵ0​, e(G2,σVC)≥1−ϵ0e(G_2,\sigma_{VC})\ge1-\epsilon_0e(G2​,σVC​)≥1−ϵ0​, e(G1,(σUB)L⊗(σUB)R)≤2−ae(G_1,(\sigma_{UB})_L\otimes(\sigma_{UB})_R)\le2^{-a}e(G1​,(σUB​)L​⊗(σUB​)R​)≤2−a, and e(G2,(σVC)L⊗(σVC)R)≤2−be(G_2,(\sigma_{VC})_L\otimes(\sigma_{VC})_R)\le2^{-b}e(G2​,(σVC​)L​⊗(σVC​)R​)≤2−b; with L=log⁡2(1/ϵ~)L=\log_2(1/\widetilde\epsilon)L=log2​(1/ϵ), they also require r1,r2>0r_1,r_2>0r1​,r2​>0, log⁡2M1+r1≤a−4L−1\log_2M_1+r_1\le a-4L-1log2​M1​+r1​≤a−4L−1, log⁡2M2+r2≤b−4L−1\log_2M_2+r_2\le b-4L-1log2​M2​+r2​≤b−4L−1, L≤r1,r2L\le r_1,r_2L≤r1​,r2​, and the integer equality r1+r2=⌈c+3L⌉r_1+r_2=\lceil c+3L\rceilr1​+r2​=⌈c+3L⌉. The other argument is a codebook consisting of arbitrary row symbols uk∈Uu_k\in Uuk​∈U for 0≤k<M12r10\le k<M_1 2^{r_1}0≤k<M1​2r1​, column symbols vl∈Vv_l\in Vvl​∈V for 0≤l<M22r20\le l<M_2 2^{r_2}0≤l<M2​2r2​, and Boolean entries hklh_{kl}hkl​; symbols may repeat. Write (G1)u(G_1)_u(G1​)u​ and (G2)v(G_2)_v(G2​)v​ for the matrices obtained by fixing both corresponding auxiliary indices to uuu or vvv. A pair (u,v)(u,v)(u,v) is eligible exactly when e((G1)u,Tr⁡Cρf(u,v))>1−4ϵ0e((G_1)_u,\operatorname{Tr}_C\rho_{f(u,v)})>1-4\epsilon_0e((G1​)u​,TrC​ρf(u,v)​)>1−4ϵ0​ and e((G2)v,Tr⁡Bρf(u,v))>1−4ϵ0e((G_2)_v,\operatorname{Tr}_B\rho_{f(u,v)})>1-4\epsilon_0e((G2​)v​,TrB​ρf(u,v)​)>1−4ϵ0​. For each message pair 0≤m1<M10\le m_1<M_10≤m1​<M1​, 0≤m2<M20\le m_2<M_20≤m2​<M2​, search pairs (k,l)(k,l)(k,l) in increasing kkk, then increasing lll, and select the first satisfying ⌊k/2r1⌋=m1\lfloor k/2^{r_1}\rfloor=m_1⌊k/2r1​⌋=m1​, ⌊l/2r2⌋=m2\lfloor l/2^{r_2}\rfloor=m_2⌊l/2r2​⌋=m2​, hkl=trueh_{kl}=\mathrm{true}hkl​=true, and eligibility of (uk,vl)(u_k,v_l)(uk​,vl​). For a matrix family HjH_jHj​, define

Pj(H)=KHjK+1{j=0}(I−P+),K=[x↦(x)−1] ⁣(∑iHi),P+=[x↦1{x>0}] ⁣(∑iHi),\mathcal P_j(H)=K H_j K+\mathbf1_{\{j=0\}}(I-P_+),\qquad K=\left[x\mapsto(\sqrt{x})^{-1}\right]\!\left(\sum_iH_i\right),\quad P_+=\left[x\mapsto\mathbf1_{\{x>0\}}\right]\!\left(\sum_iH_i\right),Pj​(H)=KHj​K+1{j=0}​(I−P+​),K=[x↦(x​)−1](i∑​Hi​),P+​=[x↦1{x>0}​](i∑​Hi​),

where brackets denote the total real continuous functional calculus and inverse square roots are zero at nonpositive real arguments. Put Ek=Pk(((G1)uj)j)E_k=\mathcal P_k(((G_1)_{u_j})_j)Ek​=Pk​(((G1​)uj​​)j​) and Fl=Pl(((G2)vj)j)F_l=\mathcal P_l(((G_2)_{v_j})_j)Fl​=Pl​(((G2​)vj​​)j​). The defined real number is

1M1M2∑m1=0M1−1∑m2=0M2−1{1,if no pair is selected,1−Re⁡tr⁡ ⁣((Ek⊗Fl)ρf(uk,vl)),if (k,l) is selected.\frac1{M_1M_2}\sum_{m_1=0}^{M_1-1}\sum_{m_2=0}^{M_2-1} \begin{cases} 1,&\text{if no pair is selected},\\ 1-\operatorname{Re}\operatorname{tr}\!\left((E_k\otimes F_l)\rho_{f(u_k,v_l)}\right), &\text{if }(k,l)\text{ is selected}. \end{cases}M1​M2​1​m1​=0∑M1​−1​m2​=0∑M2​−1​{1,1−Retr((Ek​⊗Fl​)ρf(uk​,vl​)​),​if no pair is selected,if (k,l) is selected.​

The setup ensures that the message counts and codebook dimensions are positive, so this expression does not use division by zero.

QAlgorithms.Papers.Independent.Extend50.P49.rejectionChance

Let U,VU,VU,V be finite types and let p:U×V→Rp:U\times V\to\mathbb Rp:U×V→R be nonnegative with ∑u,vp(u,v)=1\sum_{u,v}p(u,v)=1∑u,v​p(u,v)=1. For any real number ccc and any u∈Uu\in Uu∈U, v∈Vv\in Vv∈V, write pU(u)=∑v′p(u,v′)p_U(u)=\sum_{v'}p(u,v')pU​(u)=∑v′​p(u,v′) and pV(v)=∑u′p(u′,v)p_V(v)=\sum_{u'}p(u',v)pV​(v)=∑u′​p(u′,v). The defined real number is

rejectionChance⁡(p,c,u,v)=min⁡ ⁣(1, max⁡ ⁣(0, p(u,v)2c pU(u) pV(v))).\operatorname{rejectionChance}(p,c,u,v) = \min\!\left( 1,\, \max\!\left( 0,\, \frac{p(u,v)}{2^c\,p_U(u)\,p_V(v)} \right) \right).rejectionChance(p,c,u,v)=min(1,max(0,2cpU​(u)pV​(v)p(u,v)​)).

There is no restriction on ccc. Division is total with x/0=0x/0=0x/0=0, so a zero marginal gives value zero; the probability-law conditions also force p(u,v)=0p(u,v)=0p(u,v)=0 in that case.

QAlgorithms.Papers.Independent.Extend50.P49.secondMarginal

For any types A,BA,BA,B, with AAA finite, any function p:A×B→Rp:A\times B\to\mathbb Rp:A×B→R, and any b∈Bb\in Bb∈B, the second marginal is defined as

pB(b)=∑a∈Ap(a,b).p_B(b)=\sum_{a\in A}p(a,b).pB​(b)=a∈A∑​p(a,b).

There is no finiteness assumption on BBB, and no nonnegativity or normalization assumption on ppp. If AAA is empty, this value is 000 for every bbb.

QAlgorithms.Papers.Independent.Extend50.P49.selectPair

For arbitrary types U,VU,VU,V, natural numbers M1,M2,r1,r2M_1,M_2,r_1,r_2M1​,M2​,r1​,r2​, a codebook with row symbols uku_kuk​ indexed by 0≤k<M12r10\le k<M_1 2^{r_1}0≤k<M1​2r1​, column symbols vlv_lvl​ indexed by 0≤l<M22r20\le l<M_2 2^{r_2}0≤l<M2​2r2​, Boolean flags hklh_{kl}hkl​, any predicate G:U×V→{true,false}G:U\times V\to\{\text{true},\text{false}\}G:U×V→{true,false}, and message indices 0≤m1<M10\le m_1<M_10≤m1​<M1​, 0≤m2<M20\le m_2<M_20≤m2​<M2​, this definition searches pairs in increasing row index and, within each row, increasing column index. It returns the first pair (k,l)(k,l)(k,l) satisfying

⌊k2r1⌋=m1,⌊l2r2⌋=m2,hkl=true,G(uk,vl),\left\lfloor\frac{k}{2^{r_1}}\right\rfloor=m_1,\qquad \left\lfloor\frac{l}{2^{r_2}}\right\rfloor=m_2,\qquad h_{kl}=\mathrm{true},\qquad G(u_k,v_l),⌊2r1​k​⌋=m1​,⌊2r2​l​⌋=m2​,hkl​=true,G(uk​,vl​),

and returns no pair if none satisfies these conditions. Repeated symbols are allowed. The exponents r1,r2r_1,r_2r1​,r2​ may be zero, giving blocks of size 111; their powers of 222 are always positive. If either Mi=0M_i=0Mi​=0, the corresponding required message index does not exist.

QAlgorithms.Papers.Independent.Extend50.P49.selectedInput

For arbitrary types X,U,VX,U,VX,U,V, natural numbers M1,M2,r1,r2M_1,M_2,r_1,r_2M1​,M2​,r1​,r2​, a fallback element x0∈Xx_0\in Xx0​∈X, a function f:U×V→Xf:U\times V\to Xf:U×V→X, row symbols uku_kuk​ for 0≤k<M12r10\le k<M_1 2^{r_1}0≤k<M1​2r1​, column symbols vlv_lvl​ for 0≤l<M22r20\le l<M_2 2^{r_2}0≤l<M2​2r2​, Boolean retention flags hklh_{kl}hkl​, an arbitrary predicate G(u,v)G(u,v)G(u,v), and indices 0≤m1<M10\le m_1<M_10≤m1​<M1​, 0≤m2<M20\le m_2<M_20≤m2​<M2​, this definition returns f(uk,vl)f(u_k,v_l)f(uk​,vl​) for the first pair, ordered by increasing kkk and then increasing lll, satisfying

⌊k2r1⌋=m1,⌊l2r2⌋=m2,hkl=true,G(uk,vl).\left\lfloor\frac{k}{2^{r_1}}\right\rfloor=m_1,\qquad \left\lfloor\frac{l}{2^{r_2}}\right\rfloor=m_2,\qquad h_{kl}=\mathrm{true},\qquad G(u_k,v_l).⌊2r1​k​⌋=m1​,⌊2r2​l​⌋=m2​,hkl​=true,G(uk​,vl​).

If no such pair exists, it returns x0x_0x0​. The symbols may repeat and r1,r2r_1,r_2r1​,r2​ may be zero. The supplied fallback requires XXX to have an element, and the supplied message indices require M1,M2>0M_1,M_2>0M1​,M2​>0.

QAlgorithms.Papers.Independent.Extend50.P49.setMass

For a finite type AAA, any function p:A→Rp:A\to\mathbb Rp:A→R, and any finite subset G⊆AG\subseteq AG⊆A, the mass assigned to GGG is defined as

mass⁡p(G)=∑a∈Gp(a).\operatorname{mass}_p(G)=\sum_{a\in G}p(a).massp​(G)=a∈G∑​p(a).

The function ppp need not be nonnegative or normalized, so this mass need not lie in [0,1][0,1][0,1]. The empty subset has mass 000.

QAlgorithms.Papers.Independent.Extend50.P49.smoothClassicalMin

For finite types A,BA,BA,B, any function p:A×B→Rp:A\times B\to\mathbb Rp:A×B→R, and any real ϵ\epsilonϵ, put pA(a)=∑bp(a,b)p_A(a)=\sum_b p(a,b)pA​(a)=∑b​p(a,b), pB(b)=∑ap(a,b)p_B(b)=\sum_a p(a,b)pB​(b)=∑a​p(a,b), and define L(x)=log⁡2xL(x)=\log_2 xL(x)=log2​x for x>0x>0x>0, with L(x)=−∞L(x)=-\inftyL(x)=−∞ for x≤0x\le0x≤0. The smooth classical minimum quantity is

sup⁡G⊆A×B1−ϵ≤∑(a,b)∈Gp(a,b)[−L ⁣(∑(a,b)∈GpA(a)pB(b))]\sup_{\substack{G\subseteq A\times B\\ 1-\epsilon\le\sum_{(a,b)\in G}p(a,b)}} \left[-L\!\left(\sum_{(a,b)\in G}p_A(a)p_B(b)\right)\right]G⊆A×B1−ϵ≤∑(a,b)∈G​p(a,b)​sup​​−L​(a,b)∈G∑​pA​(a)pB​(b)​​

in the extended reals. No nonnegativity or normalization of ppp, or restriction on ϵ\epsilonϵ, is assumed. A qualifying subset whose product-marginal sum is nonpositive contributes +∞+\infty+∞. If no subset qualifies, the value is −∞-\infty−∞; if ϵ≥1\epsilon\ge1ϵ≥1, the empty subset qualifies and contributes +∞+\infty+∞.

QAlgorithms.Papers.Independent.Extend50.P49.smoothQuantumMin

For finite types A,BA,BA,B, any complex matrix ρ\rhoρ indexed by A×BA\times BA×B, and any real ϵ\epsilonϵ, define matrices

(ρA)a,a′=∑b∈Bρ(a,b),(a′,b),(ρB)b,b′=∑a∈Aρ(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')}.(ρA​)a,a′​=b∈B∑​ρ(a,b),(a′,b)​,(ρB​)b,b′​=a∈A∑​ρ(a,b),(a,b′)​.

Write L(x)=log⁡2xL(x)=\log_2 xL(x)=log2​x for x>0x>0x>0 and L(x)=−∞L(x)=-\inftyL(x)=−∞ for x≤0x\le0x≤0. The smooth quantum minimum quantity is the extended-real supremum

sup⁡G, G⪰0, I−G⪰01−ϵ<Re⁡tr⁡(Gρ)[−L ⁣(Re⁡tr⁡(G(ρA⊗ρB)))],\sup_{\substack{G,\ G\succeq0,\ I-G\succeq0\\ 1-\epsilon<\operatorname{Re}\operatorname{tr}(G\rho)}} \left[-L\!\left(\operatorname{Re}\operatorname{tr} \bigl(G(\rho_A\otimes\rho_B)\bigr)\right)\right],G, G⪰0, I−G⪰01−ϵ<Retr(Gρ)​sup​[−L(Retr(G(ρA​⊗ρB​)))],

where GGG ranges over complex matrices indexed by A×BA\times BA×B, and the tensor product has entries (ρA⊗ρB)(a,b),(a′,b′)=(ρA)a,a′(ρB)b,b′(\rho_A\otimes\rho_B)_{(a,b),(a',b')}=(\rho_A)_{a,a'}(\rho_B)_{b,b'}(ρA​⊗ρB​)(a,b),(a′,b′)​=(ρA​)a,a′​(ρB​)b,b′​. No positivity, Hermiticity, or trace normalization is assumed for ρ\rhoρ, and ϵ\epsilonϵ is unrestricted. If no GGG satisfies the conditions, the value is −∞-\infty−∞; a qualifying GGG with nonpositive logarithm argument contributes +∞+\infty+∞. When ϵ>1\epsilon>1ϵ>1, G=0G=0G=0 qualifies and makes the value +∞+\infty+∞. If A×BA\times BA×B is empty, every acceptance value is zero, so the value is +∞+\infty+∞ for ϵ>1\epsilon>1ϵ>1 and −∞-\infty−∞ otherwise.

QAlgorithms.Papers.Independent.Extend50.P49.spectralAcceptance

For finite types U,BU,BU,B, arbitrary real numbers n,γn,\gamman,γ, and any complex matrix ρ\rhoρ indexed by (U×B)×(U×B)(U\times B)\times(U\times B)(U×B)×(U×B), form the matrices and real weights

Hu(b,b′)=ρ((u,b),(u,b′)),M(b,b′)=∑u∈Uρ((u,b),(u,b′)),wu=Re⁡tr⁡(Hu).H_u(b,b')=\rho((u,b),(u,b')),\qquad M(b,b')=\sum_{u\in U}\rho((u,b),(u,b')),\qquad w_u=\operatorname{Re}\operatorname{tr}(H_u).Hu​(b,b′)=ρ((u,b),(u,b′)),M(b,b′)=u∈U∑​ρ((u,b),(u,b′)),wu​=Retr(Hu​).

The defined real number is

spectralAcceptance⁡(n,γ,ρ)=∑u∈URe⁡tr⁡[P+ ⁣(Hu−2nγwuM)Hu],\operatorname{spectralAcceptance}(n,\gamma,\rho) = \sum_{u\in U} \operatorname{Re}\operatorname{tr} \left[ P_+\!\left(H_u-2^{n\gamma}w_uM\right)H_u \right],spectralAcceptance(n,γ,ρ)=u∈U∑​Retr[P+​(Hu​−2nγwu​M)Hu​],

where P+(K)P_+(K)P+​(K) means the real continuous functional calculus of KKK with the function that is 111 on strictly positive numbers and 000 elsewhere. There is no assumption that nnn is positive or integral, or that ρ\rhoρ is Hermitian, positive semidefinite, or normalized. Empty UUU or empty BBB is allowed, and the resulting value is zero.

QAlgorithms.Papers.Independent.Extend50.P49.spectralInfMutualInformation

Let U,BU,BU,B be finite types, and for every natural number kkk let ρk\rho_kρk​ be an arbitrary complex matrix indexed by (Uk+1×Bk+1)×(Uk+1×Bk+1)(U^{k+1}\times B^{k+1})\times(U^{k+1}\times B^{k+1})(Uk+1×Bk+1)×(Uk+1×Bk+1), where Ak+1A^{k+1}Ak+1 denotes functions {0,…,k}→A\{0,\ldots,k\}\to A{0,…,k}→A. For u∈Uk+1u\in U^{k+1}u∈Uk+1 define

Hk,u(b,b′)=ρk((u,b),(u,b′)),Mk=∑u∈Uk+1Hk,u,wk,u=Re⁡tr⁡(Hk,u),H_{k,u}(b,b')=\rho_k((u,b),(u,b')),\qquad M_k=\sum_{u\in U^{k+1}}H_{k,u},\qquad w_{k,u}=\operatorname{Re}\operatorname{tr}(H_{k,u}),Hk,u​(b,b′)=ρk​((u,b),(u,b′)),Mk​=u∈Uk+1∑​Hk,u​,wk,u​=Retr(Hk,u​),

and, for real γ\gammaγ, put

ak(γ)=∑u∈Uk+1Re⁡tr⁡[P+ ⁣(Hk,u−2(k+1)γwk,uMk)Hk,u],a_k(\gamma)= \sum_{u\in U^{k+1}} \operatorname{Re}\operatorname{tr} \left[ P_+\!\left(H_{k,u}-2^{(k+1)\gamma}w_{k,u}M_k\right)H_{k,u} \right],ak​(γ)=u∈Uk+1∑​Retr[P+​(Hk,u​−2(k+1)γwk,u​Mk​)Hk,u​],

where P+P_+P+​ is the real continuous functional calculus of the indicator of strictly positive real numbers. The definition is the extended-real supremum

sup⁡{γ∈R:ak(γ)⟶1 as k→∞},\sup\{\gamma\in\mathbb R:a_k(\gamma)\longrightarrow1 \text{ as }k\to\infty\},sup{γ∈R:ak​(γ)⟶1 as k→∞},

with each real γ\gammaγ embedded in the extended reals. No density-matrix or Hermiticity assumptions are imposed on the sequence. Block lengths begin at one; empty alphabet types are allowed. The supremum is −∞-\infty−∞ if the set is empty and +∞+\infty+∞ if it is unbounded above.

QAlgorithms.Papers.Independent.Extend50.P49.spectralSupMutualInformation

Let U,VU,VU,V be finite types, and for each natural number kkk let pkp_kpk​ be a nonnegative real probability mass function on Uk+1×Vk+1U^{k+1}\times V^{k+1}Uk+1×Vk+1, where words have length k+1k+1k+1. Write pk,Up_{k,U}pk,U​ and pk,Vp_{k,V}pk,V​ for its marginals, obtained by summing over the other word. For λ∈R\lambda\in\mathbb Rλ∈R, define

tk(λ)=∑u∈Uk+1,v∈Vk+1pk(u,v)>0,λ<1k+1log⁡2(pk(u,v)pk,U(u)pk,V(v))pk(u,v).t_k(\lambda)= \sum_{\substack{u\in U^{k+1},\,v\in V^{k+1}\\ p_k(u,v)>0,\; \lambda< \frac{1}{k+1}\log_2\!\left( \frac{p_k(u,v)}{p_{k,U}(u)p_{k,V}(v)} \right)}} p_k(u,v).tk​(λ)=u∈Uk+1,v∈Vk+1pk​(u,v)>0,λ<k+11​log2​(pk,U​(u)pk,V​(v)pk​(u,v)​)​∑​pk​(u,v).

The defined extended-real number is

inf⁡{λ∈R:tk(λ)⟶0 as k→∞},\inf\{\lambda\in\mathbb R:t_k(\lambda)\longrightarrow0 \text{ as }k\to\infty\},inf{λ∈R:tk​(λ)⟶0 as k→∞},

where each real threshold is embedded in the extended reals. The comparison inside the sum is strict, zero-mass pairs are excluded, and every block length is positive. The infimum is +∞+\infty+∞ if the threshold set is empty and −∞-\infty−∞ if it is unbounded below.

QAlgorithms.Papers.Independent.Extend50.P49.strictPositiveSpectralProjector

For any finite type AAA and any complex matrix HHH indexed by A×AA\times AA×A, define

P+(H)=1(0,∞)(H)P_+(H)=\mathbf 1_{(0,\infty)}(H)P+​(H)=1(0,∞)​(H)

using the real continuous functional calculus, where the scalar function is 111 at strictly positive real numbers and 000 at all other real numbers, including zero. For Hermitian HHH, this is the spectral projection onto its strictly positive eigenspaces. The definition accepts arbitrary HHH without a Hermiticity hypothesis and uses the total functional-calculus expression in those cases as well; AAA may be empty.

QAlgorithms.Papers.Independent.Extend50.P49.strictSmoothMaxInformation

For finite types A,BA,BA,B, any function p:A×B→Rp:A\times B\to\mathbb Rp:A×B→R, and any real ϵ\epsilonϵ, define pA(a)=∑bp(a,b)p_A(a)=\sum_b p(a,b)pA​(a)=∑b​p(a,b) and pB(b)=∑ap(a,b)p_B(b)=\sum_a p(a,b)pB​(b)=∑a​p(a,b). For each pair, define ℓp(a,b)\ell_p(a,b)ℓp​(a,b) to be −∞-\infty−∞ when p(a,b)=0p(a,b)=0p(a,b)=0; otherwise +∞+\infty+∞ when pA(a)pB(b)=0p_A(a)p_B(b)=0pA​(a)pB​(b)=0; otherwise log⁡2 ⁣(p(a,b)/(pA(a)pB(b)))\log_2\!\bigl(p(a,b)/(p_A(a)p_B(b))\bigr)log2​(p(a,b)/(pA​(a)pB​(b))) when that ratio is positive, and −∞-\infty−∞ when it is nonpositive. The strict smooth max information is the extended-real quantity

inf⁡G⊆A×B1−ϵ<∑(a,b)∈Gp(a,b) sup⁡(a,b)∈Gℓp(a,b).\inf_{\substack{G\subseteq A\times B\\ 1-\epsilon<\sum_{(a,b)\in G}p(a,b)}} \ \sup_{(a,b)\in G}\ell_p(a,b).G⊆A×B1−ϵ<∑(a,b)∈G​p(a,b)​inf​ (a,b)∈Gsup​ℓp​(a,b).

Neither probability-law assumptions on ppp nor bounds on ϵ\epsilonϵ are imposed. If no subset satisfies the strict mass condition, the value is +∞+\infty+∞. The supremum for G=∅G=\varnothingG=∅ is −∞-\infty−∞; this subset satisfies the condition exactly when ϵ>1\epsilon>1ϵ>1, in which case the overall value is −∞-\infty−∞.

QAlgorithms.Papers.Independent.Extend50.P49.testBlock

For arbitrary types AAA and BBB, a complex matrix GGG with rows and columns indexed by A×BA\times BA×B, and an element a∈Aa\in Aa∈A, this defines the complex matrix GaG_aGa​ indexed by BBB by

(Ga)b,b′=G(a,b),(a,b′)(b,b′∈B).(G_a)_{b,b'}=G_{(a,b),(a,b')}\qquad(b,b'\in B).(Ga​)b,b′​=G(a,b),(a,b′)​(b,b′∈B).

Thus both AAA-indices are fixed to the same element aaa. No finiteness, positivity, Hermitian, or normalization assumption is imposed on GGG; BBB may be empty, while supplying aaa requires AAA to be nonempty.

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

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 2026

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

View graph

Get started

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

About Prove2Me

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

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me