Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Noisy channel coding via privacy amplification and information reconciliation

Definition
QAlgorithms_Papers_Independent_Intakenext100_P30

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

prove2quantum

The objects the formalized statements of Noisy channel coding via privacy amplification and information reconciliation (arXiv:1012.4814) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • RRDistribution: Normalized classical law; PDF pp.2–4. Zero-probability letters are allowed.
  • rrUniform: Uniform law, used only on explicitly nonempty alphabets; PDF pp.2–4.
  • RRIsCq: Cq channel validity: every output is PSD and has trace one; PDF p.2.
  • RRCode: A stochastic encoder with private randomness and a normalized POVM decoder; PDF pp.2–4, (1)–(3). Both maps are fixed for the whole message alphabet.
  • rrEncoded: Encoded channel output, averaging only the encoder's private randomness; PDF p.2, (3).
  • rrCodeError: Messagewise probability of a decoding error; PDF p.2, (1).
  • rrCodeLeak: Half the trace norm to one fixed reference, not necessarily an average; PDF p.2, (2) and footnote 2. The reference is required normalized at use sites.
  • RRPublicGood: Reliability for every message; PDF p.2, (1).
  • RRPrivateGood: Messagewise reliability and secrecy with one normalized reference chosen before the message; PDF p.2, (1)–(2), footnote 2.
  • rrPublicCapacity: Public one-shot capacity in bits, as an extended supremum over all finite nonempty message alphabets; PDF p.2. Corrects printed log2 n to n bits: (1) defines n = log2 |M|, and all subsequent formulas use that convention.
  • rrPrivateCapacity: Private one-shot capacity, with arbitrary stochastic encoding and no shared key or entanglement; PDF p.2. Only the two output marginals matter.
  • rrCqState: Cq state with classical first register; PDF p.3 and appendix p.7.
  • rrClassicalState: Classical state with a trivial conditioning register; PDF p.7, (26).
  • RRSubnormalized: Positive subnormalized smoothing candidates; PDF p.7, (29).
  • rrPurifiedToCenter: Purified distance to the normalized center used in this paper; PDF p.7, (29). Root fidelity is the frozen primitive, so it is squared exactly once.
  • rrMinEntropy: Extended conditional min-entropy, PDF p.7, (26). The exponent set is embedded before its supremum; the zero operator therefore has value +infinity.
  • rrMaxEntropy: Extended max-entropy, PDF p.7, (25). The fidelity supremum is finite on finite-dimensional PSD states and positive for nonzero states; zero has value -infinity, not the default Real.logb value.
  • rrSmoothMin: Smooth min-entropy over the full subnormalized purified-distance ball; PDF p.7, (29)–(30). Normalization of the center is supplied by its construction.
  • rrSmoothMax: Smooth max-entropy; PDF p.7, (29), (31). Radius ≥ 1 includes zero and hence gives -infinity at a normalized center.
  • rrPreprocess: Stochastic preprocessing T → X; PDF p.2, (6)–(7), and p.4.
  • rrPublicDirectInfo: Optimized smooth public entropy difference, with the additive cost outside the optimization (it is uniform in the input law); PDF p.2, (4).
  • rrPublicConverseInfo: Public converse expression, unsmoothed Hmin and smoothed Hmax; PDF p.2, (5).
  • rrPrivateInfo: Private entropy difference optimized over every finite nonempty auxiliary T and stochastic map T → X; PDF p.2, (6)–(7). No attainment or bound on |T| is assumed. Fin (k+1) enumerates finite auxiliaries up to relabeling.
  • rrConditionalEntropy: Conditional von Neumann entropy in bits, PDF p.7, following (28).
  • rrPublicInformation: Optimized one-use public information on the fixed cq alphabet; PDF p.5, (16), (18). Extended suprema avoid junk values on unbounded sets.
  • rrPrivateInformation: Private information over all finite auxiliaries and stochastic encoders, PDF p.5, (17), (19). Each entropy is computed from the same law and encoder.
  • rrChannelPower: Independent uses of the fixed cq channel, with arbitrary joint classical input strings, PDF pp.5–6, (15)–(17). The empty product is one.
  • rrPerUse: Reciprocal blocklength scaling; only n+1 is used in all limits below. PDF p.5, (15)–(17).
  • RRIsOperationalRate: Relational form of the iterated operational rate (15), PDF p.5. Existence of both limits is part of a theorem, not a default-value definition. The punctured right neighborhood may be restricted to epsilon < 1/2 without changing the outer limit.
  • RRPublicRate: Public operational rate for independent uses; PDF p.5, (15).
  • RRPrivateRate: Private operational rate, with messagewise trace-distance secrecy; PDF p.5, (15). Codes and input distributions may be correlated across uses.
  • RRClassicalOutputs: Simultaneous diagonalizability in a common orthonormal basis, separately for each output system; PDF p.5, before (18).
  • rrReconciliationError: Information reconciliation average recovery error for a supplied law; PDF p.3, section II.B. For each c, the decompressor is a normalized POVM.
  • rrAffineCodeError: Average coding error for the affine fiber a + ker(compress), with its uniform message law; PDF pp.3–4, proof of Lemma 2.
  • rrExtractedLaw: Pushforward law of a deterministic extractor; PDF p.4, section II.C.
  • rrShapedLaw: Output law of a stochastic shaper; PDF p.4, section II.C.
  • rrExtractedState: Joint extractor-output/eavesdropper state before reversing extraction; PDF p.4, section II.C. Unattained extractor outputs have zero blocks.
  • rrUniformReference: Ideal uniform classical output independent of the reference state; PDF p.4 privacy-amplification premise.
  • rrExampleReceiver: Receiver's deterministic output in Figure 2, PDF p.6.
  • rrExampleEve: Eve's output in Figure 2, PDF p.6: 0→0, 1→1, 2→fair bit.
  • rrExampleEncoder: Figure 2 private encoder: 0 is uniformly randomized over 0,1; 1 uses 2. PDF p.6. This is a probability kernel, specified as raw weights.
  • rrExampleUnprocessedInformation: Unpreprocessed private-information expression discussed below Figure 2, PDF p.6; this is not a separate deterministic operational capacity.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_QuantumInformation
import Definitions.Def_QAlgorithms_Defs_MatrixDistances

noncomputable section

open scoped BigOperators ComplexConjugate Matrix ComplexOrder
open Filter

namespace QAlgorithms.Papers.Independent.Intakenext100.P30

/-! All local objects below implement arXiv:1012.4814v2, pp.2–7.
Only frozen Defs modules are imported. Entropies use bits. The extended entropy
construction follows the audited formulas in Information100.P67, lines 812–833
of its Lean source, but is kept local to this paper as required by the workflow.
No theorem from that paper is imported or assumed. -/

variable {X Y Z M U V A B C : Type*}
variable [Fintype X] [DecidableEq X] [Fintype Y] [DecidableEq Y]
variable [Fintype Z] [DecidableEq Z] [Fintype M] [DecidableEq M]
variable [Fintype U] [DecidableEq U] [Fintype V] [DecidableEq V]
variable [Fintype A] [DecidableEq A] [Fintype B] [DecidableEq B]
variable [Fintype C] [DecidableEq C]

attribute [local instance] Classical.propDecidable

/-- Normalized classical law; PDF pp.2–4. Zero-probability letters are allowed. -/
structure RRDistribution (X : Type*) [Fintype X] where
  prob : X → ℝ
  nonnegative : ∀ x, 0 ≤ prob x
  total : ∑ x, prob x = 1

/-- Uniform law, used only on explicitly nonempty alphabets; PDF pp.2–4. -/
def rrUniform (X : Type*) [Fintype X] : X → ℝ :=
  fun _ => (Fintype.card X : ℝ)⁻¹

/-- Cq channel validity: every output is PSD and has trace one; PDF p.2. -/
def RRIsCq (theta : X → Matrix Y Y ℂ) : Prop :=
  ∀ x, IsDensityMatrix (theta x)

/-- A stochastic encoder with private randomness and a normalized POVM decoder;
PDF pp.2–4, (1)–(3). Both maps are fixed for the whole message alphabet. -/
structure RRCode (M X Y : Type*) [Fintype M] [Fintype X] [Fintype Y]
    [DecidableEq Y] where
  encoder : M → RRDistribution X
  decoder : M → Matrix Y Y ℂ
  decoder_valid : IsPOVM decoder

/-- Encoded channel output, averaging only the encoder's private randomness;
PDF p.2, (3). -/
def rrEncoded (theta : X → Matrix Y Y ℂ) (enc : M → RRDistribution X)
    (m : M) : Matrix Y Y ℂ :=
  ∑ x, ((enc m).prob x : ℂ) • theta x

/-- Messagewise probability of a decoding error; PDF p.2, (1). -/
def rrCodeError (theta : X → Matrix Y Y ℂ) (code : RRCode M X Y) (m : M) : ℝ :=
  1 - effectProb (code.decoder m) (rrEncoded theta code.encoder m)

/-- Half the trace norm to one fixed reference, not necessarily an average;
PDF p.2, (2) and footnote 2. The reference is required normalized at use sites. -/
def rrCodeLeak (theta : X → Matrix Z Z ℂ) (enc : M → RRDistribution X)
    (reference : Matrix Z Z ℂ) (m : M) : ℝ :=
  traceNorm (rrEncoded theta enc m - reference) / 2

/-- Reliability for every message; PDF p.2, (1). -/
def RRPublicGood (theta : X → Matrix Y Y ℂ) (code : RRCode M X Y) (epsilon : ℝ) : Prop :=
  ∀ m, rrCodeError theta code m ≤ epsilon

/-- Messagewise reliability and secrecy with one normalized reference chosen
before the message; PDF p.2, (1)–(2), footnote 2. -/
def RRPrivateGood (thetaY : X → Matrix Y Y ℂ) (thetaZ : X → Matrix Z Z ℂ)
    (code : RRCode M X Y) (epsilon : ℝ) : Prop :=
  RRPublicGood thetaY code epsilon ∧
    ∃ reference : Matrix Z Z ℂ, IsDensityMatrix reference ∧
      ∀ m, rrCodeLeak thetaZ code.encoder reference m ≤ epsilon

/-- Public one-shot capacity in bits, as an extended supremum over all finite
nonempty message alphabets; PDF p.2. Corrects printed `log2 n` to `n` bits:
(1) defines n = log2 |M|, and all subsequent formulas use that convention. -/
def rrPublicCapacity (theta : X → Matrix Y Y ℂ) (epsilon : ℝ) : EReal :=
  sSup {r | ∃ k : ℕ, ∃ code : RRCode (Fin (k + 1)) X Y,
    RRPublicGood theta code epsilon ∧ r = (Real.logb 2 (k + 1 : ℝ) : EReal)}

/-- Private one-shot capacity, with arbitrary stochastic encoding and no
shared key or entanglement; PDF p.2. Only the two output marginals matter. -/
def rrPrivateCapacity (thetaY : X → Matrix Y Y ℂ) (thetaZ : X → Matrix Z Z ℂ)
    (epsilon : ℝ) : EReal :=
  sSup {r | ∃ k : ℕ, ∃ code : RRCode (Fin (k + 1)) X Y,
    RRPrivateGood thetaY thetaZ code epsilon ∧
      r = (Real.logb 2 (k + 1 : ℝ) : EReal)}

/-- Cq state with classical first register; PDF p.3 and appendix p.7. -/
def rrCqState (p : A → ℝ) (theta : A → Matrix B B ℂ) : Matrix (A × B) (A × B) ℂ :=
  fun a b => if a.1 = b.1 then (p a.1 : ℂ) * theta a.1 a.2 b.2 else 0

/-- Classical state with a trivial conditioning register; PDF p.7, (26). -/
def rrClassicalState (p : A → ℝ) : Matrix (A × Unit) (A × Unit) ℂ :=
  rrCqState p (fun _ => (1 : Matrix Unit Unit ℂ))

/-- Positive subnormalized smoothing candidates; PDF p.7, (29). -/
def RRSubnormalized (rho : Matrix A A ℂ) : Prop :=
  rho.PosSemidef ∧ rho.trace.re ≤ 1

/-- Purified distance to the normalized center used in this paper; PDF p.7,
(29). Root fidelity is the frozen primitive, so it is squared exactly once. -/
def rrPurifiedToCenter (tau rho : Matrix A A ℂ) : ℝ :=
  Real.sqrt (1 - rootFidelity tau rho ^ 2)

/-- Extended conditional min-entropy, PDF p.7, (26). The exponent set is
embedded before its supremum; the zero operator therefore has value +infinity. -/
def rrMinEntropy (rho : Matrix (A × B) (A × B) ℂ) : EReal :=
  sSup {h : EReal | ∃ a : ℝ, h = (a : EReal) ∧
    ∃ sigma : Matrix B B ℂ, IsDensityMatrix sigma ∧
      ((Real.rpow 2 (-a) : ℂ) • Matrix.kronecker (1 : Matrix A A ℂ) sigma - rho).PosSemidef}

/-- Extended max-entropy, PDF p.7, (25). The fidelity supremum is finite on
finite-dimensional PSD states and positive for nonzero states; zero has value
-infinity, not the default Real.logb value. -/
def rrMaxEntropy (rho : Matrix (A × B) (A × B) ℂ) : EReal :=
  if rho = 0 then ⊥ else
    (Real.logb 2 (sSup {f : ℝ | ∃ sigma : Matrix B B ℂ,
      IsDensityMatrix sigma ∧
        f = rootFidelity rho (Matrix.kronecker (1 : Matrix A A ℂ) sigma) ^ 2}) : EReal)

/-- Smooth min-entropy over the full subnormalized purified-distance ball;
PDF p.7, (29)–(30). Normalization of the center is supplied by its construction. -/
def rrSmoothMin (rho : Matrix (A × B) (A × B) ℂ) (radius : ℝ) : EReal :=
  sSup {h | ∃ tau : Matrix (A × B) (A × B) ℂ, RRSubnormalized tau ∧
    rrPurifiedToCenter tau rho ≤ radius ∧ h = rrMinEntropy tau}

/-- Smooth max-entropy; PDF p.7, (29), (31). Radius ≥ 1 includes zero and
hence gives -infinity at a normalized center. -/
def rrSmoothMax (rho : Matrix (A × B) (A × B) ℂ) (radius : ℝ) : EReal :=
  sInf {h | ∃ tau : Matrix (A × B) (A × B) ℂ, RRSubnormalized tau ∧
    rrPurifiedToCenter tau rho ≤ radius ∧ h = rrMaxEntropy tau}

/-- Stochastic preprocessing T → X; PDF p.2, (6)–(7), and p.4. -/
def rrPreprocess (theta : X → Matrix B B ℂ) (enc : A → RRDistribution X) :
    A → Matrix B B ℂ :=
  rrEncoded theta enc

/-- Optimized smooth public entropy difference, with the additive cost outside
the optimization (it is uniform in the input law); PDF p.2, (4). -/
def rrPublicDirectInfo (theta : X → Matrix Y Y ℂ) (radius : ℝ) : EReal :=
  sSup {v | ∃ p : RRDistribution X,
    v = rrSmoothMin (rrClassicalState p.prob) radius -
      rrSmoothMax (rrCqState p.prob theta) radius}

/-- Public converse expression, unsmoothed Hmin and smoothed Hmax;
PDF p.2, (5). -/
def rrPublicConverseInfo (theta : X → Matrix Y Y ℂ) (radius : ℝ) : EReal :=
  sSup {v | ∃ p : RRDistribution X,
    v = rrMinEntropy (rrClassicalState p.prob) -
      rrSmoothMax (rrCqState p.prob theta) radius}

/-- Private entropy difference optimized over every finite nonempty auxiliary
T and stochastic map T → X; PDF p.2, (6)–(7). No attainment or bound on |T| is
assumed. Fin (k+1) enumerates finite auxiliaries up to relabeling. -/
def rrPrivateInfo (thetaY : X → Matrix Y Y ℂ) (thetaZ : X → Matrix Z Z ℂ)
    (radius : ℝ) : EReal :=
  sSup {v | ∃ k : ℕ, ∃ p : RRDistribution (Fin (k + 1)),
    ∃ enc : Fin (k + 1) → RRDistribution X,
      v = rrSmoothMin (rrCqState p.prob (rrPreprocess thetaZ enc)) radius -
        rrSmoothMax (rrCqState p.prob (rrPreprocess thetaY enc)) radius}

/-- Conditional von Neumann entropy in bits, PDF p.7, following (28). -/
def rrConditionalEntropy (rho : Matrix (A × B) (A × B) ℂ) : ℝ :=
  vnEntropy rho - vnEntropy (traceLeft rho)

/-- Optimized one-use public information on the fixed cq alphabet;
PDF p.5, (16), (18). Extended suprema avoid junk values on unbounded sets. -/
def rrPublicInformation (theta : X → Matrix Y Y ℂ) : EReal :=
  sSup {v | ∃ p : RRDistribution X,
    v = ((vnEntropy (Matrix.diagonal (fun x => (p.prob x : ℂ))) -
      rrConditionalEntropy (rrCqState p.prob theta) : ℝ) : EReal)}

/-- Private information over all finite auxiliaries and stochastic encoders,
PDF p.5, (17), (19). Each entropy is computed from the same law and encoder. -/
def rrPrivateInformation (thetaY : X → Matrix Y Y ℂ) (thetaZ : X → Matrix Z Z ℂ) : EReal :=
  sSup {v | ∃ k : ℕ, ∃ p : RRDistribution (Fin (k + 1)),
    ∃ enc : Fin (k + 1) → RRDistribution X,
      v = ((rrConditionalEntropy (rrCqState p.prob (rrPreprocess thetaZ enc)) -
        rrConditionalEntropy (rrCqState p.prob (rrPreprocess thetaY enc)) : ℝ) : EReal)}

/-- Independent uses of the fixed cq channel, with arbitrary joint classical
input strings, PDF pp.5–6, (15)–(17). The empty product is one. -/
def rrChannelPower (theta : X → Matrix Y Y ℂ) (n : ℕ) :
    (Fin n → X) → Matrix (Fin n → Y) (Fin n → Y) ℂ :=
  fun x a b => ∏ i, theta (x i) (a i) (b i)

/-- Reciprocal blocklength scaling; only n+1 is used in all limits below.
PDF p.5, (15)–(17). -/
def rrPerUse (n : ℕ) (v : EReal) : EReal := ((n : ℝ)⁻¹ : EReal) * v

/-- Relational form of the iterated operational rate (15), PDF p.5.
Existence of both limits is part of a theorem, not a default-value definition.
The punctured right neighborhood may be restricted to epsilon < 1/2 without
changing the outer limit. -/
def RRIsOperationalRate (capacity : ℕ → ℝ → EReal) (rate : ℝ) : Prop :=
  ∃ innerLimit : ℝ → EReal,
    (∀ epsilon : ℝ, 0 < epsilon → epsilon < 1 / 2 →
      Tendsto (fun n : ℕ => rrPerUse (n + 1) (capacity (n + 1) epsilon))
        atTop (nhds (innerLimit epsilon))) ∧
    Tendsto innerLimit (nhdsWithin 0 (Set.Ioi 0)) (nhds (rate : EReal))

/-- Public operational rate for independent uses; PDF p.5, (15). -/
def RRPublicRate (theta : X → Matrix Y Y ℂ) (rate : ℝ) : Prop :=
  RRIsOperationalRate (fun n epsilon => rrPublicCapacity (rrChannelPower theta n) epsilon) rate

/-- Private operational rate, with messagewise trace-distance secrecy;
PDF p.5, (15). Codes and input distributions may be correlated across uses. -/
def RRPrivateRate (thetaY : X → Matrix Y Y ℂ) (thetaZ : X → Matrix Z Z ℂ)
    (rate : ℝ) : Prop :=
  RRIsOperationalRate (fun n epsilon =>
    rrPrivateCapacity (rrChannelPower thetaY n) (rrChannelPower thetaZ n) epsilon) rate

/-- Simultaneous diagonalizability in a common orthonormal basis, separately
for each output system; PDF p.5, before (18). -/
def RRClassicalOutputs (theta : X → Matrix Y Y ℂ) : Prop :=
  ∃ basisChange : Matrix Y Y ℂ,
    basisChangeᴴ * basisChange = 1 ∧ basisChange * basisChangeᴴ = 1 ∧
    ∀ x a b, a ≠ b → (basisChangeᴴ * theta x * basisChange) a b = 0

/-- Information reconciliation average recovery error for a supplied law;
PDF p.3, section II.B. For each c, the decompressor is a normalized POVM. -/
def rrReconciliationError (theta : U → Matrix Y Y ℂ) (compress : U → C)
    (decompress : C → U → Matrix Y Y ℂ) (p : U → ℝ) : ℝ :=
  ∑ u, p u * (1 - effectProb (decompress (compress u) u) (theta u))

/-- Average coding error for the affine fiber a + ker(compress), with its
uniform message law; PDF pp.3–4, proof of Lemma 2. -/
def rrAffineCodeError {K : Type*} [Field K] [AddCommGroup U] [Module K U]
    [AddCommGroup C] [Module K C] (theta : U → Matrix Y Y ℂ)
    (compress : U →ₗ[K] C) (a : U)
    (decoder : {u : U // compress u = 0} → Matrix Y Y ℂ) : ℝ :=
  (Fintype.card {u : U // compress u = 0} : ℝ)⁻¹ *
    ∑ m : {u : U // compress u = 0},
      (1 - effectProb (decoder m) (theta (a + m.val)))

/-- Pushforward law of a deterministic extractor; PDF p.4, section II.C. -/
def rrExtractedLaw (p : X → ℝ) (extract : X → U) : U → ℝ :=
  fun u => ∑ x, if extract x = u then p x else 0

/-- Output law of a stochastic shaper; PDF p.4, section II.C. -/
def rrShapedLaw (p : U → ℝ) (shape : U → RRDistribution X) : X → ℝ :=
  fun x => ∑ u, p u * (shape u).prob x

/-- Joint extractor-output/eavesdropper state before reversing extraction;
PDF p.4, section II.C. Unattained extractor outputs have zero blocks. -/
def rrExtractedState (p : X → ℝ) (extract : X → U) (thetaZ : X → Matrix Z Z ℂ) :
    Matrix (U × Z) (U × Z) ℂ :=
  fun a b => if a.1 = b.1 then
    ∑ x, if extract x = a.1 then (p x : ℂ) * thetaZ x a.2 b.2 else 0
    else 0

/-- Ideal uniform classical output independent of the reference state;
PDF p.4 privacy-amplification premise. -/
def rrUniformReference (reference : Matrix Z Z ℂ) : Matrix (U × Z) (U × Z) ℂ :=
  rrCqState (rrUniform U) (fun _ => reference)

/-- Receiver's deterministic output in Figure 2, PDF p.6. -/
def rrExampleReceiver : Fin 3 → Matrix Bool Bool ℂ :=
  fun x => Matrix.diagonal (fun y => if y = decide (x = 2) then 1 else 0)

/-- Eve's output in Figure 2, PDF p.6: 0→0, 1→1, 2→fair bit. -/
def rrExampleEve : Fin 3 → Matrix Bool Bool ℂ :=
  fun x => Matrix.diagonal (fun z =>
    if x = 2 then (1 / 2 : ℂ) else if z = decide (x = 1) then 1 else 0)

/-- Figure 2 private encoder: 0 is uniformly randomized over 0,1; 1 uses 2.
PDF p.6. This is a probability kernel, specified as raw weights. -/
def rrExampleEncoder (message : Bool) (x : Fin 3) : ℝ :=
  if message then (if x = 2 then 1 else 0) else (if x = 2 then 0 else 1 / 2)

/-- Unpreprocessed private-information expression discussed below Figure 2,
PDF p.6; this is not a separate deterministic operational capacity. -/
def rrExampleUnprocessedInformation : EReal :=
  sSup {v | ∃ p : RRDistribution (Fin 3),
    v = ((rrConditionalEntropy (rrCqState p.prob rrExampleEve) -
      rrConditionalEntropy (rrCqState p.prob rrExampleReceiver) : ℝ) : EReal)}

/-! Sanity examples pin local definitions without proving any source result. -/

example : RRDistribution Unit :=
  { prob := fun _ => 1
    nonnegative := by intro x; norm_num
    total := by simp }

example : rrUniform Unit () = 1 := by simp [rrUniform]

example (rho : Matrix A A ℂ) : rrPurifiedToCenter 0 rho = 1 := by
  have hs : cfc Real.sqrt (0 : Matrix A A ℂ) = 0 := by
    rw [cfc_apply_zero, Real.sqrt_zero, map_zero]
  simp [rrPurifiedToCenter, rootFidelity, hs]

example : rrMaxEntropy (0 : Matrix (Unit × Unit) (Unit × Unit) ℂ) = ⊥ := by
  simp [rrMaxEntropy]

example (theta : X → Matrix Y Y ℂ) (x : Fin 0 → X) (a b : Fin 0 → Y) :
    rrChannelPower theta 0 x a b = 1 := by simp [rrChannelPower]

example : rrExampleEncoder false (0 : Fin 3) = 1 / 2 := by
  have hInput : (0 : Fin 3) ≠ 2 := by
    intro hEq
    have hVal := congrArg Fin.val hEq
    norm_num at hVal
  simp [rrExampleEncoder, hInput]

end QAlgorithms.Papers.Independent.Intakenext100.P30
Source
Noisy channel coding via privacy amplification and information reconciliation, arXiv:1012.4814v2, https://arxiv.org/abs/1012.4814v2
Read-back

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

QAlgorithms.Papers.Independent.Intakenext100.P30.RRClassicalOutputs

For finite matrix index type YYY, with decidable equality, an input type XXX, and any family θ:X→CY×Y\theta:X\to\mathbb C^{Y\times Y}θ:X→CY×Y, this predicate asserts that there exists a single matrix B∈CY×YB\in\mathbb C^{Y\times Y}B∈CY×Y such that

B†B=I,BB†=I,∀x∈X, ∀a≠b∈Y,(B†θ(x)B)a,b=0.B^\dagger B=I,\qquad BB^\dagger=I, \qquad \forall x\in X,\ \forall a\ne b\in Y,\quad (B^\dagger\theta(x)B)_{a,b}=0.B†B=I,BB†=I,∀x∈X, ∀a=b∈Y,(B†θ(x)B)a,b​=0.

Thus every matrix in the family is diagonal after the same unitary change of basis. No Hermiticity, positivity, or trace condition is imposed on the family. Empty types are allowed: when XXX is empty the condition on the family is vacuous, and when YYY is empty all matrix conditions hold for its unique matrix.

QAlgorithms.Papers.Independent.Intakenext100.P30.RRCode

For finite types M,X,YM,X,YM,X,Y, with decidable equality on YYY, an object of this structure consists of an encoder assigning each m∈Mm\in Mm∈M a function pm:X→Rp_m:X\to\mathbb Rpm​:X→R satisfying pm(x)≥0p_m(x)\ge0pm​(x)≥0 for every xxx and ∑xpm(x)=1\sum_xp_m(x)=1∑x​pm​(x)=1, together with decoder matrices Dm∈CY×YD_m\in\mathbb C^{Y\times Y}Dm​∈CY×Y satisfying Dm⪰0D_m\succeq0Dm​⪰0 for every mmm and ∑mDm=IY\sum_mD_m=I_Y∑m​Dm​=IY​. If MMM is empty, the encoder and individual positivity conditions are vacuous, but the decoder sum still requires 0=IY0=I_Y0=IY​. If MMM is nonempty and XXX is empty, no encoder exists.

QAlgorithms.Papers.Independent.Intakenext100.P30.RRDistribution

For a finite type XXX, an object of this structure consists of a function p:X→Rp:X\to\mathbb Rp:X→R, a proof that p(x)≥0p(x)\ge 0p(x)≥0 for every x∈Xx\in Xx∈X, and a proof that ∑x∈Xp(x)=1\sum_{x\in X}p(x)=1∑x∈X​p(x)=1. If XXX is empty, no such object exists, since the empty sum is 000.

QAlgorithms.Papers.Independent.Intakenext100.P30.RRIsCq

For a type XXX, a finite type YYY, and a family θ:X→CY×Y\theta:X\to\mathbb C^{Y\times Y}θ:X→CY×Y, this predicate means that, for every x∈Xx\in Xx∈X, the matrix θ(x)\theta(x)θ(x) is positive semidefinite and has complex trace equal to 111. The condition is vacuous when XXX is empty; if YYY is empty and XXX is nonempty, it cannot hold because every matrix on YYY has trace 000.

QAlgorithms.Papers.Independent.Intakenext100.P30.RRIsOperationalRate

For any function C:N×R→R‾C:\mathbb N\times\mathbb R\to\overline{\mathbb R}C:N×R→R and any real number rrr, this predicate holds exactly when there exists a function L:R→R‾L:\mathbb R\to\overline{\mathbb R}L:R→R such that

∀ 0<ϵ<12,lim⁡n→∞1n+1C(n+1,ϵ)=L(ϵ),lim⁡ϵ→0+L(ϵ)=r.\forall\,0<\epsilon<\tfrac12,\qquad \lim_{n\to\infty}\frac{1}{n+1}C(n+1,\epsilon)=L(\epsilon), \qquad \lim_{\epsilon\to0^+}L(\epsilon)=r.∀0<ϵ<21​,n→∞lim​n+11​C(n+1,ϵ)=L(ϵ),ϵ→0+lim​L(ϵ)=r.

The scaling uses the real reciprocal embedded into the extended reals, and both limits use the topology of the extended reals; the final value rrr is embedded from R\mathbb RR. Thus the first limit is required separately for every real ϵ\epsilonϵ in the stated open interval and uses only positive block lengths. No condition is imposed on C(0,ϵ)C(0,\epsilon)C(0,ϵ), no boundedness or monotonicity is assumed for CCC, and no value is prescribed for LLL outside that interval, including at zero.

QAlgorithms.Papers.Independent.Intakenext100.P30.RRPrivateGood

For finite types M,X,Y,ZM,X,Y,ZM,X,Y,Z, with decidable equality on YYY and ZZZ, arbitrary families θY:X→CY×Y\theta_Y:X\to\mathbb C^{Y\times Y}θY​:X→CY×Y and θZ:X→CZ×Z\theta_Z:X\to\mathbb C^{Z\times Z}θZ​:X→CZ×Z, a code with nonnegative encoder weights pm(x)p_m(x)pm​(x) summing to 111 for each message and positive semidefinite decoder matrices DmD_mDm​ summing to IYI_YIY​, and any real ϵ\epsilonϵ, this predicate requires both that 1−Re⁡tr⁡(Dm∑xpm(x)θY(x))≤ϵ1-\operatorname{Re}\operatorname{tr}(D_m\sum_xp_m(x)\theta_Y(x))\le\epsilon1−Retr(Dm​∑x​pm​(x)θY​(x))≤ϵ for every mmm, and that there exists one positive semidefinite matrix R∈CZ×ZR\in\mathbb C^{Z\times Z}R∈CZ×Z with tr⁡R=1\operatorname{tr}R=1trR=1 such that, for every mmm, writing Lm=∑xpm(x)θZ(x)−RL_m=\sum_xp_m(x)\theta_Z(x)-RLm​=∑x​pm​(x)θZ​(x)−R, one has 12Re⁡tr⁡Lm†Lm≤ϵ\frac12\operatorname{Re}\operatorname{tr}\sqrt{L_m^\dagger L_m}\le\epsilon21​RetrLm†​Lm​​≤ϵ. The same reference RRR must work for all messages. No nonnegativity assumption on ϵ\epsilonϵ or density-matrix assumption on either family is imposed. If MMM is empty, the message conditions are vacuous, but existence of RRR is still required.

QAlgorithms.Papers.Independent.Intakenext100.P30.RRPrivateRate

For finite types X,Y,ZX,Y,ZX,Y,Z, with the decidable equality needed by the matrix definitions, arbitrary families θY:X→CY×Y\theta_Y:X\to\mathbb C^{Y\times Y}θY​:X→CY×Y and θZ:X→CZ×Z\theta_Z:X\to\mathbb C^{Z\times Z}θZ​:X→CZ×Z, and a real number rrr, this predicate holds exactly when there exists L:R→R‾L:\mathbb R\to\overline{\mathbb R}L:R→R such that

∀ 0<ϵ<12,lim⁡n→∞Cn+1(ϵ)n+1=L(ϵ),lim⁡ϵ→0+L(ϵ)=r\forall\,0<\epsilon<\tfrac12,\qquad \lim_{n\to\infty}\frac{C_{n+1}(\epsilon)}{n+1}=L(\epsilon), \qquad \lim_{\epsilon\to0^+}L(\epsilon)=r∀0<ϵ<21​,n→∞lim​n+1Cn+1​(ϵ)​=L(ϵ),ϵ→0+lim​L(ϵ)=r

in the extended reals. Here Cj(ϵ)C_j(\epsilon)Cj​(ϵ) is the extended real supremum of log⁡2(k+1)\log_2(k+1)log2​(k+1) over natural numbers kkk, probability distributions eme_mem​ on XjX^jXj for messages m∈{0,…,k}m\in\{0,\ldots,k\}m∈{0,…,k}, and matrices DmD_mDm​ on YjY^jYj satisfying Dm⪰0D_m\succeq0Dm​⪰0 and ∑mDm=I\sum_mD_m=I∑m​Dm​=I, such that, for every message,

1−Re⁡tr⁡(DmσY(m))≤ϵ,1-\operatorname{Re}\operatorname{tr}(D_m\sigma_Y(m))\le\epsilon,1−Retr(Dm​σY​(m))≤ϵ,

and there exists one matrix τ\tauτ on ZjZ^jZj, common to all messages, satisfying τ⪰0\tau\succeq0τ⪰0, tr⁡τ=1\operatorname{tr}\tau=1trτ=1, and

12Re⁡tr⁡(σZ(m)−τ)†(σZ(m)−τ)≤ϵ.\frac12\operatorname{Re}\operatorname{tr} \sqrt{(\sigma_Z(m)-\tau)^\dagger(\sigma_Z(m)-\tau)} \le\epsilon.21​Retr(σZ​(m)−τ)†(σZ​(m)−τ)​≤ϵ.

In these formulas,

σB(m)=∑x∈Xjem(x)ΘB,j(x),ΘB,j(x)a,b=∏i=0j−1θB(xi)ai,bi,\sigma_B(m)=\sum_{x\in X^j}e_m(x)\Theta_{B,j}(x), \qquad \Theta_{B,j}(x)_{a,b}=\prod_{i=0}^{j-1}\theta_B(x_i)_{a_i,b_i},σB​(m)=x∈Xj∑​em​(x)ΘB,j​(x),ΘB,j​(x)a,b​=i=0∏j−1​θB​(xi​)ai​,bi​​,

and the square root is formed using the real continuous functional calculus. Every eme_mem​ has nonnegative real weights summing to one. One-message codes are included; an empty feasible set gives −∞-\infty−∞, and an unbounded set gives +∞+\infty+∞. Neither input family is assumed to consist of density matrices, and only positive block lengths enter the limits.

QAlgorithms.Papers.Independent.Intakenext100.P30.RRPublicGood

For finite types M,X,YM,X,YM,X,Y, with decidable equality on YYY, an arbitrary family θ:X→CY×Y\theta:X\to\mathbb C^{Y\times Y}θ:X→CY×Y, a code with nonnegative encoder weights pm(x)p_m(x)pm​(x) summing to 111 for each message and positive semidefinite decoder matrices DmD_mDm​ summing to IYI_YIY​, and any real number ϵ\epsilonϵ, this predicate requires, for every m∈Mm\in Mm∈M,

1−Re⁡tr⁡ ⁣(Dm∑xpm(x)θ(x))≤ϵ.1-\operatorname{Re}\operatorname{tr}\!\left(D_m\sum_xp_m(x)\theta(x)\right)\le\epsilon.1−Retr(Dm​x∑​pm​(x)θ(x))≤ϵ.

There is no assumption that ϵ≥0\epsilon\ge0ϵ≥0 or that the matrices θ(x)\theta(x)θ(x) are density matrices. For an empty message type, the universally quantified condition is vacuous whenever such a code exists.

QAlgorithms.Papers.Independent.Intakenext100.P30.RRPublicRate

For finite types X,YX,YX,Y, with the decidable equality needed by the matrix definitions, an arbitrary family θ:X→CY×Y\theta:X\to\mathbb C^{Y\times Y}θ:X→CY×Y, and a real number rrr, this predicate holds exactly when there exists L:R→R‾L:\mathbb R\to\overline{\mathbb R}L:R→R such that

∀ 0<ϵ<12,lim⁡n→∞Cn+1(ϵ)n+1=L(ϵ),lim⁡ϵ→0+L(ϵ)=r\forall\,0<\epsilon<\tfrac12,\qquad \lim_{n\to\infty}\frac{C_{n+1}(\epsilon)}{n+1}=L(\epsilon), \qquad \lim_{\epsilon\to0^+}L(\epsilon)=r∀0<ϵ<21​,n→∞lim​n+1Cn+1​(ϵ)​=L(ϵ),ϵ→0+lim​L(ϵ)=r

in the extended reals. For each block length jjj, Cj(ϵ)C_j(\epsilon)Cj​(ϵ) is the extended real supremum of log⁡2(k+1)\log_2(k+1)log2​(k+1) over natural numbers kkk and codes with message set M={0,…,k}M=\{0,\ldots,k\}M={0,…,k} as follows: each message mmm has a probability distribution eme_mem​ on XjX^jXj, meaning nonnegative real weights summing to one; there are matrices DmD_mDm​ on YjY^jYj satisfying Dm⪰0D_m\succeq0Dm​⪰0 and ∑mDm=I\sum_mD_m=I∑m​Dm​=I; and every message satisfies

1−Re⁡tr⁡ ⁣(Dm∑x∈Xjem(x)Θj(x))≤ϵ,Θj(x)a,b=∏i=0j−1θ(xi)ai,bi.1-\operatorname{Re}\operatorname{tr}\!\left( D_m\sum_{x\in X^j}e_m(x)\Theta_j(x)\right)\le\epsilon, \qquad \Theta_j(x)_{a,b}=\prod_{i=0}^{j-1}\theta(x_i)_{a_i,b_i}.1−Retr(Dm​x∈Xj∑​em​(x)Θj​(x))≤ϵ,Θj​(x)a,b​=i=0∏j−1​θ(xi​)ai​,bi​​.

One-message codes are included. An empty feasible set gives supremum −∞-\infty−∞, and an unbounded set gives +∞+\infty+∞. No density-matrix condition is imposed on θ\thetaθ; the rate predicate constrains capacities only at positive block lengths, with the inner limits required for every 0<ϵ<1/20<\epsilon<1/20<ϵ<1/2.

QAlgorithms.Papers.Independent.Intakenext100.P30.RRSubnormalized

For a finite index type AAA and a complex matrix ρ\rhoρ indexed by AAA, this defines the condition that ρ\rhoρ is positive semidefinite and Re⁡tr⁡ρ≤1\operatorname{Re}\operatorname{tr}\rho\le1Retrρ≤1. The trace bound is non-strict, and trace 111 is not required; in particular, the zero matrix satisfies the condition, including when AAA is empty.

QAlgorithms.Papers.Independent.Intakenext100.P30.rrAffineCodeError

For any field KKK, a finite KKK-vector space UUU, a KKK-vector space CCC, a finite matrix index type YYY, any family θ:U→CY×Y\theta:U\to\mathbb C^{Y\times Y}θ:U→CY×Y, any KKK-linear map c:U→Cc:U\to Cc:U→C, any a∈Ua\in Ua∈U, and any family of matrices Dm∈CY×YD_m\in\mathbb C^{Y\times Y}Dm​∈CY×Y indexed by m∈ker⁡cm\in\ker cm∈kerc, this defines

1∣ker⁡c∣∑m∈ker⁡c[1−Re⁡tr⁡(Dmθ(a+m))].\frac{1}{|\ker c|} \sum_{m\in\ker c} \left[ 1-\operatorname{Re}\operatorname{tr}\bigl(D_m\theta(a+m)\bigr) \right].∣kerc∣1​m∈kerc∑​[1−Retr(Dm​θ(a+m))].

The kernel contains zero, so its finite cardinality is positive. No normalization or positivity condition is imposed on θ\thetaθ or on the decoder matrices, and aaa is unrestricted; in particular, aaa need not lie in the kernel.

QAlgorithms.Papers.Independent.Intakenext100.P30.rrChannelPower

For types X,YX,YX,Y, any family θ:X→CY×Y\theta:X\to\mathbb C^{Y\times Y}θ:X→CY×Y, and every natural number nnn, this defines a family indexed by nnn-tuples x:{0,…,n−1}→Xx:\{0,\ldots,n-1\}\to Xx:{0,…,n−1}→X, whose matrices are indexed by nnn-tuples from YYY, by

θ(n)(x)a,b=∏i=0n−1θ(xi)ai,bi.\theta^{(n)}(x)_{a,b} =\prod_{i=0}^{n-1}\theta(x_i)_{a_i,b_i}.θ(n)(x)a,b​=i=0∏n−1​θ(xi​)ai​,bi​​.

No positivity, normalization, or unitarity condition is assumed. The case n=0n=0n=0 is included: both tuple types have one element, even when XXX or YYY is empty, and the resulting matrix is the 1×11\times11×1 matrix with entry 111, by the empty-product convention.

QAlgorithms.Papers.Independent.Intakenext100.P30.rrClassicalState

For an index type AAA with decidable equality and any function p:A→Rp:A\to\mathbb Rp:A→R, this defines a complex matrix indexed by A×{∗}A\times\{\ast\}A×{∗} whose entries are

R(a,∗),(a′,∗)={p(a),a=a′,0,a≠a′.R_{(a,\ast),(a',\ast)}= \begin{cases} p(a),&a=a',\\ 0,&a\ne a'. \end{cases}R(a,∗),(a′,∗)​={p(a),0,​a=a′,a=a′.​

There is no assumption that ppp is nonnegative or sums to 111, and AAA may be empty.

QAlgorithms.Papers.Independent.Intakenext100.P30.rrCodeError

For finite types M,X,YM,X,YM,X,Y, with decidable equality on YYY, an arbitrary family θ:X→CY×Y\theta:X\to\mathbb C^{Y\times Y}θ:X→CY×Y, a code consisting of encoder weights pm(x)≥0p_m(x)\ge0pm​(x)≥0 with ∑xpm(x)=1\sum_xp_m(x)=1∑x​pm​(x)=1 and positive semidefinite decoder matrices DmD_mDm​ with ∑mDm=IY\sum_mD_m=I_Y∑m​Dm​=IY​, and a message m∈Mm\in Mm∈M, this defines the real number

1−Re⁡tr⁡ ⁣(Dm∑x∈Xpm(x)θ(x)).1-\operatorname{Re}\operatorname{tr}\!\left(D_m\sum_{x\in X}p_m(x)\theta(x)\right).1−Retr(Dm​x∈X∑​pm​(x)θ(x)).

No density-matrix assumption is imposed on the family θ\thetaθ.

QAlgorithms.Papers.Independent.Intakenext100.P30.rrCodeLeak

For types M,X,ZM,X,ZM,X,Z, with XXX and ZZZ finite and equality on ZZZ decidable, an arbitrary family θ:X→CZ×Z\theta:X\to\mathbb C^{Z\times Z}θ:X→CZ×Z, encoder weights pm(x)≥0p_m(x)\ge0pm​(x)≥0 satisfying ∑xpm(x)=1\sum_xp_m(x)=1∑x​pm​(x)=1 for every mmm, an arbitrary reference matrix R∈CZ×ZR\in\mathbb C^{Z\times Z}R∈CZ×Z, and a message m∈Mm\in Mm∈M, set L=∑xpm(x)θ(x)−RL=\sum_xp_m(x)\theta(x)-RL=∑x​pm​(x)θ(x)−R. This defines 12Re⁡tr⁡L†L\frac12\operatorname{Re}\operatorname{tr}\sqrt{L^\dagger L}21​RetrL†L​, where L†L^\daggerL† is the conjugate transpose and the square root is given by matrix functional calculus. Neither θ(x)\theta(x)θ(x) nor RRR is required to be a density matrix; if ZZZ is empty, the value is 000.

QAlgorithms.Papers.Independent.Intakenext100.P30.rrConditionalEntropy

For finite index types A,BA,BA,B with decidable equality and any complex matrix ρ\rhoρ indexed by A×BA\times BA×B, this defines the real number

−Re⁡tr⁡Cg(ρ)+Re⁡tr⁡Cg(R),Rb,b′=∑a∈Aρ(a,b),(a,b′),g(t)=tlog⁡2t,-\operatorname{Re}\operatorname{tr}C_g(\rho) +\operatorname{Re}\operatorname{tr}C_g(R), \qquad R_{b,b'}=\sum_{a\in A}\rho_{(a,b),(a,b')}, \qquad g(t)=t\log_2 t,−RetrCg​(ρ)+RetrCg​(R),Rb,b′​=a∈A∑​ρ(a,b),(a,b′)​,g(t)=tlog2​t,

where CgC_gCg​ denotes continuous functional calculus and log⁡2\log_2log2​ is the total real logarithm to base 222. Thus RRR is obtained by tracing out the AAA index. No positivity, trace-one, or nonempty-index assumption is imposed on ρ\rhoρ; the logarithm is defined at zero with log⁡20=0\log_2 0=0log2​0=0.

QAlgorithms.Papers.Independent.Intakenext100.P30.rrCqState

For types A,BA,BA,B, with decidable equality on AAA, an arbitrary real function p:A→Rp:A\to\mathbb Rp:A→R, and an arbitrary matrix family θ:A→CB×B\theta:A\to\mathbb C^{B\times B}θ:A→CB×B, this defines the matrix indexed by A×BA\times BA×B whose entries are

C(a,u),(a′,v)={p(a) θ(a)u,v,a=a′,0,a≠a′.C_{(a,u),(a',v)} = \begin{cases} p(a)\,\theta(a)_{u,v},&a=a',\\ 0,&a\ne a'. \end{cases}C(a,u),(a′,v)​={p(a)θ(a)u,v​,0,​a=a′,a=a′.​

The real number p(a)p(a)p(a) is regarded as a complex scalar. No nonnegativity or normalization condition on ppp, and no positivity or trace condition on θ(a)\theta(a)θ(a), is required; empty index types are included.

QAlgorithms.Papers.Independent.Intakenext100.P30.rrEncoded

For a finite type XXX, types M,YM,YM,Y, an arbitrary family θ:X→CY×Y\theta:X\to\mathbb C^{Y\times Y}θ:X→CY×Y, an encoder assigning each m∈Mm\in Mm∈M nonnegative real weights pm(x)p_m(x)pm​(x) with ∑xpm(x)=1\sum_xp_m(x)=1∑x​pm​(x)=1, and a message m∈Mm\in Mm∈M, this defines the matrix ∑x∈Xpm(x)θ(x)\sum_{x\in X}p_m(x)\theta(x)∑x∈X​pm​(x)θ(x), with each real weight regarded as a complex scalar. No positivity or trace condition is imposed on θ(x)\theta(x)θ(x). The sum over an empty XXX is zero, although such an encoder cannot exist for a specified message when XXX is empty.

QAlgorithms.Papers.Independent.Intakenext100.P30.rrExampleEncoder

For every Boolean message bbb and input x∈{0,1,2}x\in\{0,1,2\}x∈{0,1,2}, this defines a real number E(b,x)E(b,x)E(b,x). Its values, with columns ordered as x=0,1,2x=0,1,2x=0,1,2, are

(E(false,0),E(false,1),E(false,2))=(12,12,0),(E(true,0),E(true,1),E(true,2))=(0,0,1).\bigl(E(\mathrm{false},0),E(\mathrm{false},1),E(\mathrm{false},2)\bigr) =\left(\tfrac12,\tfrac12,0\right), \qquad \bigl(E(\mathrm{true},0),E(\mathrm{true},1),E(\mathrm{true},2)\bigr) =(0,0,1).(E(false,0),E(false,1),E(false,2))=(21​,21​,0),(E(true,0),E(true,1),E(true,2))=(0,0,1).

QAlgorithms.Papers.Independent.Intakenext100.P30.rrExampleEve

This defines a family of complex matrices indexed by the Boolean values, with input x∈{0,1,2}x\in\{0,1,2\}x∈{0,1,2}. In the row and column order (false,true)(\mathrm{false},\mathrm{true})(false,true), the matrices are

θZ(0)=(1000),θZ(1)=(0001),θZ(2)=(120012).\theta_Z(0)= \begin{pmatrix}1&0\\0&0\end{pmatrix}, \qquad \theta_Z(1)= \begin{pmatrix}0&0\\0&1\end{pmatrix}, \qquad \theta_Z(2)= \begin{pmatrix}\tfrac12&0\\0&\tfrac12\end{pmatrix}.θZ​(0)=(10​00​),θZ​(1)=(00​01​),θZ​(2)=(21​0​021​​).

QAlgorithms.Papers.Independent.Intakenext100.P30.rrExampleReceiver

This defines a family of complex matrices indexed by the Boolean values, with input x∈{0,1,2}x\in\{0,1,2\}x∈{0,1,2}. In the row and column order (false,true)(\mathrm{false},\mathrm{true})(false,true), the matrices are

θY(0)=θY(1)=(1000),θY(2)=(0001).\theta_Y(0)=\theta_Y(1)= \begin{pmatrix}1&0\\0&0\end{pmatrix}, \qquad \theta_Y(2)= \begin{pmatrix}0&0\\0&1\end{pmatrix}.θY​(0)=θY​(1)=(10​00​),θY​(2)=(00​01​).

QAlgorithms.Papers.Independent.Intakenext100.P30.rrExampleUnprocessedInformation

This defines an extended real number as

sup⁡p0,p1,p2≥0p0+p1+p2=1[S(ΩZ(p))−S ⁣(∑x=02pxθZ(x))−S(ΩY(p))+S ⁣(∑x=02pxθY(x))],\sup_{\substack{p_0,p_1,p_2\ge0\\p_0+p_1+p_2=1}} \left[ S(\Omega_Z(p))-S\!\left(\sum_{x=0}^2p_x\theta_Z(x)\right) -S(\Omega_Y(p))+S\!\left(\sum_{x=0}^2p_x\theta_Y(x)\right) \right],p0​,p1​,p2​≥0p0​+p1​+p2​=1​sup​[S(ΩZ​(p))−S(x=0∑2​px​θZ​(x))−S(ΩY​(p))+S(x=0∑2​px​θY​(x))],

where each bracketed real number is embedded into the extended reals before taking the supremum. Here ΩB(p)\Omega_B(p)ΩB​(p), for B=Y,ZB=Y,ZB=Y,Z, has entries ΩB(p)(x,b),(x′,b′)=pxθB(x)b,b′\Omega_B(p)_{(x,b),(x',b')}=p_x\theta_B(x)_{b,b'}ΩB​(p)(x,b),(x′,b′)​=px​θB​(x)b,b′​ when x=x′x=x'x=x′, and zero otherwise; S(R)=−Re⁡tr⁡(f(R))S(R)=-\operatorname{Re}\operatorname{tr}\bigl(f(R)\bigr)S(R)=−Retr(f(R)), where f(t)=tlog⁡2tf(t)=t\log_2tf(t)=tlog2​t and f(R)f(R)f(R) is defined by continuous functional calculus. In Boolean order (false,true)(\mathrm{false},\mathrm{true})(false,true), the receiver matrices are θY(0)=θY(1)=diag⁡(1,0)\theta_Y(0)=\theta_Y(1)=\operatorname{diag}(1,0)θY​(0)=θY​(1)=diag(1,0) and θY(2)=diag⁡(0,1)\theta_Y(2)=\operatorname{diag}(0,1)θY​(2)=diag(0,1), while θZ(0)=diag⁡(1,0)\theta_Z(0)=\operatorname{diag}(1,0)θZ​(0)=diag(1,0), θZ(1)=diag⁡(0,1)\theta_Z(1)=\operatorname{diag}(0,1)θZ​(1)=diag(0,1), and θZ(2)=12I\theta_Z(2)=\tfrac12 IθZ​(2)=21​I.

QAlgorithms.Papers.Independent.Intakenext100.P30.rrExtractedLaw

For a finite type XXX, a type UUU with equality decided as needed for the conditional, any function p:X→Rp:X\to\mathbb Rp:X→R, and any function e:X→Ue:X\to Ue:X→U, this defines the real-valued function on UUU given by

q(u)=∑x∈Xe(x)=up(x).q(u)=\sum_{\substack{x\in X\\e(x)=u}}p(x).q(u)=x∈Xe(x)=u​∑​p(x).

No nonnegativity or normalization assumption is imposed on ppp. An empty fiber contributes zero, so q(u)=0q(u)=0q(u)=0 outside the image of eee; if XXX is empty, qqq is identically zero.

QAlgorithms.Papers.Independent.Intakenext100.P30.rrExtractedState

For a finite index type XXX, types U,ZU,ZU,Z, any real function p:X→Rp:X\to\mathbb Rp:X→R, any function e:X→Ue:X\to Ue:X→U, and any family of complex matrices θZ(x)\theta_Z(x)θZ​(x) indexed by ZZZ, this defines the complex matrix RRR indexed by U×ZU\times ZU×Z through

R(u,z),(u′,z′)={∑x∈Xe(x)=up(x) θZ(x)z,z′,u=u′,0,u≠u′.R_{(u,z),(u',z')}= \begin{cases} \displaystyle\sum_{\substack{x\in X\\e(x)=u}}p(x)\,\theta_Z(x)_{z,z'},&u=u',\\ 0,&u\ne u'. \end{cases}R(u,z),(u′,z′)​=⎩⎨⎧​x∈Xe(x)=u​∑​p(x)θZ​(x)z,z′​,0,​u=u′,u=u′.​

Equality tests use decidable equality where needed. No nonnegativity or normalization of ppp, or density-matrix condition on θZ(x)\theta_Z(x)θZ​(x), is required. If XXX is empty, every entry is zero.

QAlgorithms.Papers.Independent.Intakenext100.P30.rrMaxEntropy

For finite index types A,BA,BA,B with decidable equality and any complex matrix ρ\rhoρ indexed by A×BA\times BA×B, this defines −∞-\infty−∞ when ρ=0\rho=0ρ=0 and otherwise defines the real number

log⁡2 ⁣(sup⁡R{F(ρ,IA⊗σ)2:σ∈CB×B, σ⪰0, tr⁡σ=1})\log_2\!\left( \sup_{\mathbb R} \left\{F(\rho,I_A\otimes\sigma)^2: \sigma\in\mathbb C^{B\times B},\ \sigma\succeq0,\ \operatorname{tr}\sigma=1 \right\}\right)log2​(Rsup​{F(ρ,IA​⊗σ)2:σ∈CB×B, σ⪰0, trσ=1})

embedded into the extended reals, where

F(S,T)=Re⁡tr⁡C⋅ ⁣(C⋅(S) T C⋅(S))F(S,T)=\operatorname{Re}\operatorname{tr} C_{\sqrt{\cdot}}\!\left(C_{\sqrt{\cdot}}(S)\,T\,C_{\sqrt{\cdot}}(S)\right)F(S,T)=RetrC⋅​​(C⋅​​(S)TC⋅​​(S))

and CgC_gCg​ denotes continuous functional calculus. No positivity or normalization is assumed for ρ\rhoρ. The inner supremum is taken in R\mathbb RR, with value 000 for an empty set or a set unbounded above, and the total real logarithm has log⁡20=0\log_2 0=0log2​0=0.

QAlgorithms.Papers.Independent.Intakenext100.P30.rrMinEntropy

For finite index types A,BA,BA,B with decidable equality and any complex matrix ρ\rhoρ indexed by A×BA\times BA×B, this defines the extended-real supremum

sup⁡R‾{a∈R:∃σ∈CB×B, σ⪰0, tr⁡σ=1, 2−a(IA⊗σ)−ρ⪰0},\sup_{\overline{\mathbb R}} \left\{a\in\mathbb R: \exists \sigma\in\mathbb C^{B\times B},\ \sigma\succeq0,\ \operatorname{tr}\sigma=1,\ 2^{-a}(I_A\otimes\sigma)-\rho\succeq0 \right\},Rsup​{a∈R:∃σ∈CB×B, σ⪰0, trσ=1, 2−a(IA​⊗σ)−ρ⪰0},

where each real aaa is embedded into the extended reals, IAI_AIA​ is the identity matrix, and ⊗\otimes⊗ is the Kronecker product. No positivity or normalization assumption is imposed on ρ\rhoρ. The supremum is −∞-\infty−∞ if the set is empty and +∞+\infty+∞ if it is unbounded above; in particular, an empty BBB admits no trace-one σ\sigmaσ and gives an empty set.

QAlgorithms.Papers.Independent.Intakenext100.P30.rrPerUse

For every natural number nnn and every extended real number v∈R∪{−∞,+∞}v\in\mathbb R\cup\{-\infty,+\infty\}v∈R∪{−∞,+∞}, this defines the extended real product

rrPerUse⁡(n,v)=((n:R)−1:R‾)v.\operatorname{rrPerUse}(n,v)=\bigl((n:\mathbb R)^{-1}:\overline{\mathbb R}\bigr)v.rrPerUse(n,v)=((n:R)−1:R)v.

For n>0n>0n>0, this scales vvv by the positive real number 1/n1/n1/n. The case n=0n=0n=0 is included: the real inverse of zero is defined to be zero, so the result is zero, including when v=±∞v=\pm\inftyv=±∞.

QAlgorithms.Papers.Independent.Intakenext100.P30.rrPreprocess

For index types A,BA,BA,B, a finite index type XXX, any family θ:X→CB×B\theta:X\to\mathbb C^{B\times B}θ:X→CB×B, and an encoder assigning to every a∈Aa\in Aa∈A a function pa:X→Rp_a:X\to\mathbb Rpa​:X→R satisfying pa(x)≥0p_a(x)\ge0pa​(x)≥0 for every xxx and ∑xpa(x)=1\sum_xp_a(x)=1∑x​pa​(x)=1, this defines the family

a⟼∑x∈Xpa(x) θ(x).a\longmapsto\sum_{x\in X}p_a(x)\,\theta(x).a⟼x∈X∑​pa​(x)θ(x).

No positivity or trace condition is imposed on the matrices θ(x)\theta(x)θ(x). If XXX is empty, no such probability distribution exists, so an encoder can exist only when AAA is empty.

QAlgorithms.Papers.Independent.Intakenext100.P30.rrPrivateCapacity

For finite types X,Y,ZX,Y,ZX,Y,Z, with decidable equality on YYY and ZZZ, arbitrary families θY:X→CY×Y\theta_Y:X\to\mathbb C^{Y\times Y}θY​:X→CY×Y and θZ:X→CZ×Z\theta_Z:X\to\mathbb C^{Z\times Z}θZ​:X→CZ×Z, and any real ϵ\epsilonϵ, this defines the extended real supremum of log⁡2(k+1)\log_2(k+1)log2​(k+1) over natural numbers kkk for which there exist nonnegative encoder weights pm(x)p_m(x)pm​(x) summing to 111 for each m∈{0,…,k}m\in\{0,\ldots,k\}m∈{0,…,k}, positive semidefinite decoder matrices DmD_mDm​ summing to IYI_YIY​, and one positive semidefinite reference matrix R∈CZ×ZR\in\mathbb C^{Z\times Z}R∈CZ×Z with trace 111, such that every message satisfies

1−Re⁡tr⁡ ⁣(Dm∑xpm(x)θY(x))≤ϵ,12Re⁡tr⁡Lm†Lm≤ϵ,Lm=∑xpm(x)θZ(x)−R.1-\operatorname{Re}\operatorname{tr}\!\left(D_m\sum_xp_m(x)\theta_Y(x)\right)\le\epsilon, \qquad \frac12\operatorname{Re}\operatorname{tr}\sqrt{L_m^\dagger L_m}\le\epsilon, \quad L_m=\sum_xp_m(x)\theta_Z(x)-R.1−Retr(Dm​x∑​pm​(x)θY​(x))≤ϵ,21​RetrLm†​Lm​​≤ϵ,Lm​=x∑​pm​(x)θZ​(x)−R.

The square root is the matrix square root supplied by functional calculus, and the same RRR is used for all messages. The logarithms are embedded into the extended real numbers. One-message codes (k=0k=0k=0) are included, zero-message codes are excluded, and the supremum is −∞-\infty−∞ if no admissible value exists and +∞+\infty+∞ if the values are unbounded. Neither family is assumed to consist of density matrices, and ϵ\epsilonϵ is unrestricted.

QAlgorithms.Papers.Independent.Intakenext100.P30.rrPrivateInfo

For finite index types X,Y,ZX,Y,ZX,Y,Z with decidable equality, arbitrary families θY:X→CY×Y\theta_Y:X\to\mathbb C^{Y\times Y}θY​:X→CY×Y and θZ:X→CZ×Z\theta_Z:X\to\mathbb C^{Z\times Z}θZ​:X→CZ×Z, and any real radius rrr, this defines

sup⁡k∈N, U={0,…,k}p:U→R, p≥0, ∑up(u)=1qu:X→R, qu≥0, ∑xqu(x)=1 ∀u[sup⁡τ∈Dr(RZ)Hmin⁡U∣Z(τ)−inf⁡ω∈Dr(RY)Hmax⁡U∣Y(ω)]\sup_{\substack{k\in\mathbb N,\ U=\{0,\ldots,k\}\\ p:U\to\mathbb R,\ p\ge0,\ \sum_up(u)=1\\ q_u:X\to\mathbb R,\ q_u\ge0,\ \sum_xq_u(x)=1\ \forall u}} \left[ \sup_{\tau\in\mathcal D_r(R_Z)}H_{\min}^{U\mid Z}(\tau) - \inf_{\omega\in\mathcal D_r(R_Y)}H_{\max}^{U\mid Y}(\omega) \right]k∈N, U={0,…,k}p:U→R, p≥0, ∑u​p(u)=1qu​:X→R, qu​≥0, ∑x​qu​(x)=1 ∀u​sup​[τ∈Dr​(RZ​)sup​HminU∣Z​(τ)−ω∈Dr​(RY​)inf​HmaxU∣Y​(ω)]

in the extended reals, where θˉK(u)=∑xqu(x)θK(x)\bar\theta_K(u)=\sum_xq_u(x)\theta_K(x)θˉK​(u)=∑x​qu​(x)θK​(x) for K=Y,ZK=Y,ZK=Y,Z and (RK)(u,b),(u′,b′)=1u=u′p(u)θˉK(u)b,b′(R_K)_{(u,b),(u',b')}=\mathbf1_{u=u'}p(u)\bar\theta_K(u)_{b,b'}(RK​)(u,b),(u′,b′)​=1u=u′​p(u)θˉK​(u)b,b′​. For either product index set U×KU\times KU×K, all quantities in the formula mean

F(S,T)=Re⁡tr⁡C⋅ ⁣(C⋅(S)TC⋅(S)),Dr(R)={T⪰0:Re⁡tr⁡T≤1, 1−F(T,R)2≤r},Hmin⁡U∣K(T)=sup⁡R‾{a∈R:∃σ⪰0, tr⁡σ=1, 2−a(IU⊗σ)−T⪰0},Hmax⁡U∣K(T)={−∞,T=0,log⁡2sup⁡σ⪰0tr⁡σ=1F(T,IU⊗σ)2,T≠0.\begin{gathered} F(S,T)=\operatorname{Re}\operatorname{tr} C_{\sqrt{\cdot}}\!\left(C_{\sqrt{\cdot}}(S)T C_{\sqrt{\cdot}}(S)\right),\qquad \mathcal D_r(R)=\{T\succeq0:\operatorname{Re}\operatorname{tr}T\le1,\ \sqrt{1-F(T,R)^2}\le r\},\\ H_{\min}^{U\mid K}(T)= \sup_{\overline{\mathbb R}} \{a\in\mathbb R:\exists\sigma\succeq0,\ \operatorname{tr}\sigma=1,\ 2^{-a}(I_U\otimes\sigma)-T\succeq0\},\\ H_{\max}^{U\mid K}(T)= \begin{cases} -\infty,&T=0,\\ \displaystyle\log_2\sup_{\substack{\sigma\succeq0\\\operatorname{tr}\sigma=1}} F(T,I_U\otimes\sigma)^2,&T\ne0. \end{cases} \end{gathered}F(S,T)=RetrC⋅​​(C⋅​​(S)TC⋅​​(S)),Dr​(R)={T⪰0:RetrT≤1, 1−F(T,R)2​≤r},HminU∣K​(T)=Rsup​{a∈R:∃σ⪰0, trσ=1, 2−a(IU​⊗σ)−T⪰0},HmaxU∣K​(T)=⎩⎨⎧​−∞,log2​σ⪰0trσ=1​sup​F(T,IU​⊗σ)2,​T=0,T=0.​​

Here σ\sigmaσ is indexed by KKK, CgC_gCg​ denotes continuous functional calculus, real entropy values are embedded into the extended reals, and subtraction is extended-real subtraction. The choice k=0k=0k=0, giving one auxiliary label, is included; the auxiliary alphabet is never empty. No positivity or normalization is assumed for either θ\thetaθ family. Negative square-root arguments give 000; empty extended-real suprema and infima give −∞-\infty−∞ and +∞+\infty+∞; an empty or unbounded-above real supremum gives 000, and log⁡20=0\log_2 0=0log2​0=0. Negative rrr makes the smoothing sets empty, while empty XXX prevents any encoder distributions and makes the outer supremum empty.

QAlgorithms.Papers.Independent.Intakenext100.P30.rrPrivateInformation

For finite types X,Y,ZX,Y,ZX,Y,Z, with decidable equality where required for the matrix functional calculus, and arbitrary families θY:X→CY×Y\theta_Y:X\to\mathbb C^{Y\times Y}θY​:X→CY×Y and θZ:X→CZ×Z\theta_Z:X\to\mathbb C^{Z\times Z}θZ​:X→CZ×Z, this defines the extended real supremum over every natural number kkk, every probability distribution ppp on M={0,…,k}M=\{0,\ldots,k\}M={0,…,k}, and every assignment of a probability distribution eme_mem​ on XXX to each m∈Mm\in Mm∈M, of

[S(ΩZ)−S ⁣(∑mp(m)σZ(m))]−[S(ΩY)−S ⁣(∑mp(m)σY(m))].\left[S(\Omega_Z)-S\!\left(\sum_m p(m)\sigma_Z(m)\right)\right] - \left[S(\Omega_Y)-S\!\left(\sum_m p(m)\sigma_Y(m)\right)\right].[S(ΩZ​)−S(m∑​p(m)σZ​(m))]−[S(ΩY​)−S(m∑​p(m)σY​(m))].

Here probability distributions have nonnegative real values summing to one,

σB(m)=∑xem(x)θB(x),\sigma_B(m)=\sum_xe_m(x)\theta_B(x),σB​(m)=x∑​em​(x)θB​(x),

and ΩB\Omega_BΩB​, indexed by M×BM\times BM×B, has entry p(m)σB(m)b,b′p(m)\sigma_B(m)_{b,b'}p(m)σB​(m)b,b′​ when its two message indices agree, and zero otherwise, for B=Y,ZB=Y,ZB=Y,Z. The notation S(A)S(A)S(A) means −Re⁡tr⁡(f(A))-\operatorname{Re}\operatorname{tr}(f(A))−Retr(f(A)), where f(t)=tlog⁡2tf(t)=t\log_2tf(t)=tlog2​t is applied using the real continuous functional calculus; the resulting real difference is embedded into the extended reals before taking the supremum. The choice k=0k=0k=0, giving one message, is included. No density-matrix assumptions are imposed on either input family. If XXX is empty, no such encoders exist and the supremum is −∞-\infty−∞.

QAlgorithms.Papers.Independent.Intakenext100.P30.rrPublicCapacity

For finite types X,YX,YX,Y, with decidable equality on YYY, an arbitrary family θ:X→CY×Y\theta:X\to\mathbb C^{Y\times Y}θ:X→CY×Y, and any real ϵ\epsilonϵ, this defines an extended real number: the supremum of log⁡2(k+1)\log_2(k+1)log2​(k+1) over all natural numbers kkk for which there exist encoder weights pm(x)≥0p_m(x)\ge0pm​(x)≥0, indexed by m∈{0,…,k}m\in\{0,\ldots,k\}m∈{0,…,k}, with ∑xpm(x)=1\sum_xp_m(x)=1∑x​pm​(x)=1, and positive semidefinite decoder matrices DmD_mDm​ with ∑mDm=IY\sum_mD_m=I_Y∑m​Dm​=IY​, such that

1−Re⁡tr⁡ ⁣(Dm∑xpm(x)θ(x))≤ϵfor every m.1-\operatorname{Re}\operatorname{tr}\!\left(D_m\sum_xp_m(x)\theta(x)\right)\le\epsilon \quad\text{for every }m.1−Retr(Dm​x∑​pm​(x)θ(x))≤ϵfor every m.

The logarithm is embedded into the extended real numbers before taking the supremum. The case k=0k=0k=0, representing one message, is included; zero messages are excluded. An empty set of admissible values has supremum −∞-\infty−∞, and an unbounded set has supremum +∞+\infty+∞. No density-matrix assumption on θ\thetaθ or sign restriction on ϵ\epsilonϵ is imposed.

QAlgorithms.Papers.Independent.Intakenext100.P30.rrPublicConverseInfo

For finite index types X,YX,YX,Y with decidable equality, any family θ:X→CY×Y\theta:X\to\mathbb C^{Y\times Y}θ:X→CY×Y, and any real radius rrr, this defines the extended-real quantity

sup⁡p:X→Rp≥0, ∑xp(x)=1[Hmin⁡X∣{∗}(Rp)−inf⁡ω∈Dr(Rp,θ)Hmax⁡X∣Y(ω)],\sup_{\substack{p:X\to\mathbb R\\p\ge0,\ \sum_xp(x)=1}} \left[ H_{\min}^{X\mid\{\ast\}}(R_p) - \inf_{\omega\in\mathcal D_r(R_{p,\theta})}H_{\max}^{X\mid Y}(\omega) \right],p:X→Rp≥0, ∑x​p(x)=1​sup​[HminX∣{∗}​(Rp​)−ω∈Dr​(Rp,θ​)inf​HmaxX∣Y​(ω)],

where (Rp)(x,∗),(x′,∗)=1x=x′p(x)(R_p)_{(x,\ast),(x',\ast)}=\mathbf1_{x=x'}p(x)(Rp​)(x,∗),(x′,∗)​=1x=x′​p(x) and (Rp,θ)(x,y),(x′,y′)=1x=x′p(x)θ(x)y,y′(R_{p,\theta})_{(x,y),(x',y')}=\mathbf1_{x=x'}p(x)\theta(x)_{y,y'}(Rp,θ​)(x,y),(x′,y′)​=1x=x′​p(x)θ(x)y,y′​. For a product index set J×KJ\times KJ×K, the quantities used here are

F(S,T)=Re⁡tr⁡C⋅ ⁣(C⋅(S)TC⋅(S)),Dr(R)={T⪰0:Re⁡tr⁡T≤1, 1−F(T,R)2≤r},Hmin⁡J∣K(T)=sup⁡R‾{a∈R:∃σ⪰0, tr⁡σ=1, 2−a(IJ⊗σ)−T⪰0},Hmax⁡J∣K(T)={−∞,T=0,log⁡2sup⁡σ⪰0tr⁡σ=1F(T,IJ⊗σ)2,T≠0.\begin{gathered} F(S,T)=\operatorname{Re}\operatorname{tr} C_{\sqrt{\cdot}}\!\left(C_{\sqrt{\cdot}}(S)T C_{\sqrt{\cdot}}(S)\right),\qquad \mathcal D_r(R)=\{T\succeq0:\operatorname{Re}\operatorname{tr}T\le1,\ \sqrt{1-F(T,R)^2}\le r\},\\ H_{\min}^{J\mid K}(T)= \sup_{\overline{\mathbb R}} \{a\in\mathbb R:\exists\sigma\succeq0,\ \operatorname{tr}\sigma=1,\ 2^{-a}(I_J\otimes\sigma)-T\succeq0\},\\ H_{\max}^{J\mid K}(T)= \begin{cases} -\infty,&T=0,\\ \displaystyle\log_2\sup_{\substack{\sigma\succeq0\\\operatorname{tr}\sigma=1}} F(T,I_J\otimes\sigma)^2,&T\ne0. \end{cases} \end{gathered}F(S,T)=RetrC⋅​​(C⋅​​(S)TC⋅​​(S)),Dr​(R)={T⪰0:RetrT≤1, 1−F(T,R)2​≤r},HminJ∣K​(T)=Rsup​{a∈R:∃σ⪰0, trσ=1, 2−a(IJ​⊗σ)−T⪰0},HmaxJ∣K​(T)=⎩⎨⎧​−∞,log2​σ⪰0trσ=1​sup​F(T,IJ​⊗σ)2,​T=0,T=0.​​

Here σ\sigmaσ is indexed by KKK, CgC_gCg​ denotes continuous functional calculus, real entropy values are embedded into the extended reals, and subtraction is extended-real subtraction. No density-matrix assumption is imposed on θ(x)\theta(x)θ(x) and rrr is unrestricted. Negative square-root arguments give 000; empty extended-real suprema and infima give −∞-\infty−∞ and +∞+\infty+∞; an empty or unbounded-above real supremum gives 000, and log⁡20=0\log_2 0=0log2​0=0. Negative rrr makes the smoothing set empty, and empty XXX makes the outer set of distributions empty.

QAlgorithms.Papers.Independent.Intakenext100.P30.rrPublicDirectInfo

For finite index types X,YX,YX,Y with decidable equality, any family θ:X→CY×Y\theta:X\to\mathbb C^{Y\times Y}θ:X→CY×Y, and any real radius rrr, this defines

sup⁡p:X→Rp≥0, ∑xp(x)=1[sup⁡τ∈Dr(Rp)Hmin⁡X∣{∗}(τ)−inf⁡ω∈Dr(Rp,θ)Hmax⁡X∣Y(ω)]\sup_{\substack{p:X\to\mathbb R\\p\ge0,\ \sum_xp(x)=1}} \left[ \sup_{\tau\in\mathcal D_r(R_p)}H_{\min}^{X\mid\{\ast\}}(\tau) - \inf_{\omega\in\mathcal D_r(R_{p,\theta})}H_{\max}^{X\mid Y}(\omega) \right]p:X→Rp≥0, ∑x​p(x)=1​sup​[τ∈Dr​(Rp​)sup​HminX∣{∗}​(τ)−ω∈Dr​(Rp,θ​)inf​HmaxX∣Y​(ω)]

in the extended reals, where RpR_pRp​ is indexed by X×{∗}X\times\{\ast\}X×{∗} with entries 1x=x′p(x)\mathbf1_{x=x'}p(x)1x=x′​p(x) and (Rp,θ)(x,y),(x′,y′)=1x=x′p(x)θ(x)y,y′(R_{p,\theta})_{(x,y),(x',y')}=\mathbf1_{x=x'}p(x)\theta(x)_{y,y'}(Rp,θ​)(x,y),(x′,y′)​=1x=x′​p(x)θ(x)y,y′​. For either relevant product index set J×KJ\times KJ×K, the notation in this formula means

F(S,T)=Re⁡tr⁡C⋅ ⁣(C⋅(S)TC⋅(S)),Dr(R)={T⪰0:Re⁡tr⁡T≤1, 1−F(T,R)2≤r},Hmin⁡J∣K(T)=sup⁡R‾{a∈R:∃σ⪰0, tr⁡σ=1, 2−a(IJ⊗σ)−T⪰0},Hmax⁡J∣K(T)={−∞,T=0,log⁡2sup⁡σ⪰0tr⁡σ=1F(T,IJ⊗σ)2,T≠0,\begin{gathered} F(S,T)=\operatorname{Re}\operatorname{tr} C_{\sqrt{\cdot}}\!\left(C_{\sqrt{\cdot}}(S)T C_{\sqrt{\cdot}}(S)\right),\qquad \mathcal D_r(R)=\{T\succeq0:\operatorname{Re}\operatorname{tr}T\le1,\ \sqrt{1-F(T,R)^2}\le r\},\\ H_{\min}^{J\mid K}(T)= \sup_{\overline{\mathbb R}} \{a\in\mathbb R:\exists\sigma\succeq0,\ \operatorname{tr}\sigma=1,\ 2^{-a}(I_J\otimes\sigma)-T\succeq0\},\\ H_{\max}^{J\mid K}(T)= \begin{cases} -\infty,&T=0,\\ \displaystyle\log_2\sup_{\substack{\sigma\succeq0\\\operatorname{tr}\sigma=1}} F(T,I_J\otimes\sigma)^2,&T\ne0, \end{cases} \end{gathered}F(S,T)=RetrC⋅​​(C⋅​​(S)TC⋅​​(S)),Dr​(R)={T⪰0:RetrT≤1, 1−F(T,R)2​≤r},HminJ∣K​(T)=Rsup​{a∈R:∃σ⪰0, trσ=1, 2−a(IJ​⊗σ)−T⪰0},HmaxJ∣K​(T)=⎩⎨⎧​−∞,log2​σ⪰0trσ=1​sup​F(T,IJ​⊗σ)2,​T=0,T=0,​​

with σ\sigmaσ indexed by KKK and CgC_gCg​ denoting continuous functional calculus. The real logarithms are embedded into the extended reals, and subtraction is extended-real subtraction. No density-matrix assumption is made on θ(x)\theta(x)θ(x) or restriction on rrr. Negative square-root arguments give 000; empty extended-real suprema and infima give −∞-\infty−∞ and +∞+\infty+∞, respectively; an empty or unbounded-above real supremum gives 000, with log⁡20=0\log_2 0=0log2​0=0. In particular, r<0r<0r<0 makes each smoothing set empty, and empty XXX makes the outer set of distributions empty.

QAlgorithms.Papers.Independent.Intakenext100.P30.rrPublicInformation

For finite types X,YX,YX,Y, with decidable equality, and any family of complex matrices θ:X→CY×Y\theta:X\to\mathbb C^{Y\times Y}θ:X→CY×Y, this defines the extended real number

sup⁡p[S(diag⁡p)−S(Ωp)+S ⁣(∑x∈Xp(x)θ(x))],\sup_p\left[S(\operatorname{diag}p)-S(\Omega_p)+S\!\left(\sum_{x\in X}p(x)\theta(x)\right)\right],psup​[S(diagp)−S(Ωp​)+S(x∈X∑​p(x)θ(x))],

where ppp ranges over all functions X→RX\to\mathbb RX→R satisfying p(x)≥0p(x)\ge0p(x)≥0 for every xxx and ∑xp(x)=1\sum_xp(x)=1∑x​p(x)=1, and Ωp\Omega_pΩp​ is the matrix indexed by X×YX\times YX×Y whose ((x,y),(x′,y′))((x,y),(x',y'))((x,y),(x′,y′))-entry is p(x)θ(x)y,y′p(x)\theta(x)_{y,y'}p(x)θ(x)y,y′​ when x=x′x=x'x=x′, and zero otherwise. Here

S(A)=−Re⁡tr⁡ ⁣(f(A)),f(t)=tlog⁡2t,S(A)=-\operatorname{Re}\operatorname{tr}\!\left(f(A)\right), \qquad f(t)=t\log_2t,S(A)=−Retr(f(A)),f(t)=tlog2​t,

with f(A)f(A)f(A) formed by the real continuous functional calculus in the definition; each real expression inside the supremum is embedded into the extended reals. There is no assumption that any θ(x)\theta(x)θ(x) is positive semidefinite, Hermitian, or trace one. Empty finite types are allowed; if XXX is empty, there is no admissible ppp, and the supremum is −∞-\infty−∞.

QAlgorithms.Papers.Independent.Intakenext100.P30.rrPurifiedToCenter

For a finite index type AAA with decidable equality and arbitrary complex matrices τ,ρ\tau,\rhoτ,ρ indexed by AAA, this defines

1−(Re⁡tr⁡C⋅ ⁣(C⋅(τ) ρ C⋅(τ)))2,\sqrt{1-\left(\operatorname{Re}\operatorname{tr} C_{\sqrt{\cdot}}\!\left(C_{\sqrt{\cdot}}(\tau)\,\rho\,C_{\sqrt{\cdot}}(\tau)\right)\right)^2},1−(RetrC⋅​​(C⋅​​(τ)ρC⋅​​(τ)))2​,

where Cg(M)C_g(M)Cg​(M) denotes the continuous functional calculus of the real function ggg applied to MMM. Neither matrix is assumed positive semidefinite or normalized. The real square root is total and equals 000 on negative arguments, so the displayed value is 000 whenever the squared real trace exceeds 111.

QAlgorithms.Papers.Independent.Intakenext100.P30.rrReconciliationError

For a finite type UUU, a type CCC, a finite matrix index type YYY, any family θ:U→CY×Y\theta:U\to\mathbb C^{Y\times Y}θ:U→CY×Y, any function c:U→Cc:U\to Cc:U→C, any family D:C×U→CY×YD:C\times U\to\mathbb C^{Y\times Y}D:C×U→CY×Y, and any real-valued function p:U→Rp:U\to\mathbb Rp:U→R, this defines the real number

∑u∈Up(u)[1−Re⁡tr⁡(D(c(u),u)θ(u))].\sum_{u\in U}p(u)\left[ 1-\operatorname{Re}\operatorname{tr}\bigl(D(c(u),u)\theta(u)\bigr) \right].u∈U∑​p(u)[1−Retr(D(c(u),u)θ(u))].

There is no requirement that ppp be nonnegative or sum to one, that θ(u)\theta(u)θ(u) be a density matrix, or that the matrices D(c,u)D(c,u)D(c,u) form measurements or effects. If UUU is empty, the sum is zero.

QAlgorithms.Papers.Independent.Intakenext100.P30.rrShapedLaw

For finite types U,XU,XU,X, any function p:U→Rp:U\to\mathbb Rp:U→R, and any assignment to each u∈Uu\in Uu∈U of a probability distribution su:X→Rs_u:X\to\mathbb Rsu​:X→R, meaning su(x)≥0s_u(x)\ge0su​(x)≥0 for every xxx and ∑xsu(x)=1\sum_xs_u(x)=1∑x​su​(x)=1, this defines the function on XXX

q(x)=∑u∈Up(u)su(x).q(x)=\sum_{u\in U}p(u)s_u(x).q(x)=u∈U∑​p(u)su​(x).

There is no nonnegativity or normalization assumption on ppp. If UUU is empty, the result is identically zero. If XXX is empty and UUU is inhabited, no assignment of the required probability distributions exists.

QAlgorithms.Papers.Independent.Intakenext100.P30.rrSmoothMax

For finite index types A,BA,BA,B with decidable equality, any complex matrix ρ\rhoρ indexed by A×BA\times BA×B, and any real radius rrr, this defines

inf⁡R‾{Hmax⁡(τ):τ∈Dr(ρ)},Dr(ρ)={τ:τ⪰0, Re⁡tr⁡τ≤1, 1−F(τ,ρ)2≤r},\inf_{\overline{\mathbb R}}\{H_{\max}(\tau):\tau\in\mathcal D_r(\rho)\}, \qquad \mathcal D_r(\rho)= \left\{\tau:\tau\succeq0,\ \operatorname{Re}\operatorname{tr}\tau\le1,\ \sqrt{1-F(\tau,\rho)^2}\le r\right\},Rinf​{Hmax​(τ):τ∈Dr​(ρ)},Dr​(ρ)={τ:τ⪰0, Retrτ≤1, 1−F(τ,ρ)2​≤r},

where

F(S,T)=Re⁡tr⁡C⋅ ⁣(C⋅(S) T C⋅(S)),Hmax⁡(T)={−∞,T=0,log⁡2sup⁡σ⪰0tr⁡σ=1F(T,IA⊗σ)2,T≠0.F(S,T)=\operatorname{Re}\operatorname{tr} C_{\sqrt{\cdot}}\!\left(C_{\sqrt{\cdot}}(S)\,T\,C_{\sqrt{\cdot}}(S)\right), \qquad H_{\max}(T)= \begin{cases} -\infty,&T=0,\\ \displaystyle\log_2\sup_{\substack{\sigma\succeq0\\\operatorname{tr}\sigma=1}} F(T,I_A\otimes\sigma)^2,&T\ne0. \end{cases}F(S,T)=RetrC⋅​​(C⋅​​(S)TC⋅​​(S)),Hmax​(T)=⎩⎨⎧​−∞,log2​σ⪰0trσ=1​sup​F(T,IA​⊗σ)2,​T=0,T=0.​

Here σ\sigmaσ is indexed by BBB, CgC_gCg​ denotes continuous functional calculus, the inner supremum is in R\mathbb RR, and its logarithm is embedded into the extended reals. No positivity or normalization is required of ρ\rhoρ. Negative square-root arguments give 000, an empty or unbounded-above real supremum gives 000, and log⁡20=0\log_2 0=0log2​0=0. An empty outer feasible set gives +∞+\infty+∞, in particular whenever r<0r<0r<0; for r≥1r\ge1r≥1, the feasible zero matrix gives the result −∞-\infty−∞.

QAlgorithms.Papers.Independent.Intakenext100.P30.rrSmoothMin

For finite index types A,BA,BA,B with decidable equality, any complex matrix ρ\rhoρ indexed by A×BA\times BA×B, and any real radius rrr, this defines

sup⁡R‾{Hmin⁡(τ):τ∈Dr(ρ)},Dr(ρ)={τ:τ⪰0, Re⁡tr⁡τ≤1, 1−F(τ,ρ)2≤r},\sup_{\overline{\mathbb R}}\{H_{\min}(\tau):\tau\in\mathcal D_r(\rho)\}, \qquad \mathcal D_r(\rho)= \left\{\tau:\tau\succeq0,\ \operatorname{Re}\operatorname{tr}\tau\le1,\ \sqrt{1-F(\tau,\rho)^2}\le r\right\},Rsup​{Hmin​(τ):τ∈Dr​(ρ)},Dr​(ρ)={τ:τ⪰0, Retrτ≤1, 1−F(τ,ρ)2​≤r},

where

F(S,T)=Re⁡tr⁡C⋅ ⁣(C⋅(S) T C⋅(S)),Hmin⁡(T)=sup⁡R‾{a∈R:∃σ⪰0, tr⁡σ=1, 2−a(IA⊗σ)−T⪰0}.F(S,T)=\operatorname{Re}\operatorname{tr} C_{\sqrt{\cdot}}\!\left(C_{\sqrt{\cdot}}(S)\,T\,C_{\sqrt{\cdot}}(S)\right), \qquad H_{\min}(T)= \sup_{\overline{\mathbb R}} \left\{a\in\mathbb R: \exists\sigma\succeq0,\ \operatorname{tr}\sigma=1,\ 2^{-a}(I_A\otimes\sigma)-T\succeq0\right\}.F(S,T)=RetrC⋅​​(C⋅​​(S)TC⋅​​(S)),Hmin​(T)=Rsup​{a∈R:∃σ⪰0, trσ=1, 2−a(IA​⊗σ)−T⪰0}.

Here σ\sigmaσ is indexed by BBB, CgC_gCg​ denotes continuous functional calculus, and real values in the entropy supremum are embedded into the extended reals. No positivity or normalization is required of ρ\rhoρ. Real square roots of negative arguments are 000; if r<0r<0r<0, the outer feasible set is empty and the result is −∞-\infty−∞. All extended-real suprema use −∞-\infty−∞ for the empty set.

QAlgorithms.Papers.Independent.Intakenext100.P30.rrUniform

For every finite type XXX, this defines the function u:X→Ru:X\to\mathbb Ru:X→R by u(x)=∣X∣−1u(x)=|X|^{-1}u(x)=∣X∣−1 for every x∈Xx\in Xx∈X. If XXX is empty, this is the unique empty function; the expression ∣X∣−1|X|^{-1}∣X∣−1 is then 000, using the convention 0−1=00^{-1}=00−1=0. The declaration defines a function and does not package it with proofs of nonnegativity or total mass 111.

QAlgorithms.Papers.Independent.Intakenext100.P30.rrUniformReference

For a finite type UUU with decidable equality, an index type ZZZ, and any complex matrix RRR indexed by ZZZ, this defines the matrix indexed by U×ZU\times ZU×Z whose entries are

(rrUniformReference⁡(R))(u,z),(u′,z′)={∣U∣−1Rz,z′,u=u′,0,u≠u′.\bigl(\operatorname{rrUniformReference}(R)\bigr)_{(u,z),(u',z')}= \begin{cases} |U|^{-1}R_{z,z'},&u=u',\\ 0,&u\ne u'. \end{cases}(rrUniformReference(R))(u,z),(u′,z′)​={∣U∣−1Rz,z′​,0,​u=u′,u=u′.​

Here ∣U∣−1|U|^{-1}∣U∣−1 is the inverse of the real cardinality, subsequently regarded as a complex scalar. The matrix RRR need not be positive or normalized. Empty UUU is allowed; its cardinality has inverse zero, and the resulting matrix has an empty index set.

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

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 31, 2026

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

View graph

Get started

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

About Prove2Me

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

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me