Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Quantum wiretap channel with non-uniform random number and its exponent and equivocation rate of leaked information

Definition
QAlgorithms_Papers_Independent_Advance50_P23

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

prove2quantum

The objects the formalized statements of Quantum wiretap channel with non-uniform random number and its exponent and equivocation rate of leaked information (arXiv:1202.0325) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • hayashiIsCQ: PDF p.2: normalized finite cq outputs.
  • hayashiIsStochastic: PDF p.2: a classical stochastic encoder.
  • hayashiCompose: PDF p.2: actual composition of a cq channel and a stochastic matrix.
  • cqJoint: PDF pp.2,4: the cq matrix in quantum-then-classical tensor order.
  • cqReference: PDF p.4: reference sigma tensor the classical law, in the same tensor order.
  • hayashiPetzD: PDF pp.2–3, (3): shifted-order Petz divergence, with the Umegaki branch at zero. Negative-order zero overlap uses extended log(0)=-infinity; support failure at positive s gives +infinity. At s=-1 the numerator power is the support projection.
  • underlinedD: PDF p.2, (2): the paper's underlined divergence. The logarithm is extended spectrally: a nonzero rho weight on the kernel of B gives -infinity, rather than silently replacing log(0) by zero. This is not Umegaki or sandwiched divergence.
  • starMoment: PDF p.2, (4): positive-parameter starred trace moment, without a sandwiched power of rho. Only 0<s<=1 is used below.
  • petzInfo: PDF pp.4–5, (23),(39): Petz cq information. Its zero value is the Holevo information; for normalized finite cq data the displayed trace is strictly positive.
  • referenceInfo: PDF p.4, (29): Petz information relative to a specified normalized state.
  • powerAverage: PDF pp.4–5, (32): the weighted power average A_s.
  • gallagerTrace: PDF p.5, Lemma 3: concrete Gallager trace functional, including s=0.
  • gallagerInfo: PDF pp.4–5, (32)–(33): Gallager information with its continuous zero branch.
  • renyiOptimizer: PDF p.5, Lemma 1: constructed attaining reference, not a free optimizer.
  • hayashiShannon: PDF p.2: natural Shannon entropy, with zero-weight terms contributing zero.
  • hayashiRenyiEntropy: PDF pp.2,13: classical order-1+s Renyi entropy, including the Shannon limit. All uses have s>=0 and IsLaw P, so the power sum is positive.
  • eigenCount: PDF p.3: number of DISTINCT spectral values, including zero if present.
  • spectralSpread: PDF p.10: log spectral spread on the positive output support. Normalization by trace cancels in this difference. Never include ambient zero eigenvalues.
  • hayashiMu: PDF p.10, (71): the two spectral branches; the square root includes the ceiling.
  • traceCorrelation: PDF p.6: full trace-norm correlation of a cq ensemble at input P.
  • Imix: PDF pp.6,9: uniform-message Holevo leakage.
  • Imax: PDF pp.6,9: source-universal Holevo leakage over all normalized input laws. For density outputs on nonempty finite alphabets this is a nonempty bounded supremum.
  • d1mix: PDF pp.6,9: uniform-message full trace-norm leakage, without a factor 1/2.
  • d1max: PDF pp.6,9: source-universal full trace-norm leakage. Its defining value set is nonempty and bounded by two for normalized finite cq data.
  • WiretapCode: PDF p.9: a genuine M-message code with stochastic encoder and normalized POVM.
  • tableEncoder: PDF p.10, (62): pushforward of the SOLE runtime auxiliary random variable.
  • UsesLaw: PDF pp.9–10: no extra runtime mixing source is allowed. The deterministic table is selected before communication and does not depend on the sampled l or m.
  • messageError: PDF p.9: probability of error on one specified message; fixes printed free i to m.
  • hayashiCodeError: PDF p.9: average error for a uniform message.
  • maxError: PDF p.9: worst-message error, over the nonempty finite message set.
  • hayashiReliability: PDF pp.9–10, (69): hayashiReliability objective, with continuous value one at t=0.
  • secrecy: PDF p.10, (70): secrecy objective, used only for 0<s<=1.
  • traceBound: PDF p.10, (71): Gallager full trace-norm objective.
  • mapOutput: PDF p.7: a deterministic map pushes PA into the actual output mixture.
  • PairwiseMap: PDF p.7: pairwise independent map coordinates, all with the prescribed marginal. These are hypotheses on the random map law, not assertions about a selected map.
  • expectE: PDF pp.7–8: finite expectation of an extended quantity; zero-weight samples contribute zero even if the integrand is infinite.
  • expectExp: PDF pp.7–8: exponential moments preserve exp(-infinity)=0 and exp(+infinity)=infinity.
  • bookLaw: PDF p.9: iid codebook law. The table is sampled once before communication.
  • exponentR: PDF p.14: the two optimized exponents, including the attained zero objective at s=0.
  • exponentG: PDF p.14: Gallager exponent, with the same closed-interval convention.
  • IsAdditiveCQ: PDF pp.7,29: additive cq means an actual projective unitary orbit.
  • Universal2: PDF p.30, Condition 3: universal2 under a finite seed law.
  • hayashiBalanced: PDF p.30: balanced fibres, expressed without truncated natural division.
  • Condition1: PDF p.8, Condition 1: fixed submodule size and the nonzero-membership bound.
  • Condition2: PDF p.8, Condition 2: actual injective linear maps, constrained only at nonzero inputs and outputs. For singleton G the guarded denominator is never used.
  • cosetOutput: PDF p.8: output of a uniformly sampled affine coset, with actual submodule cardinality. It is nonzero because a submodule contains zero.
  • shiftExpect: PDF p.8: independent uniform ambient translation, averaged AFTER the seed.
  • shiftExpectE: PDF pp.8–9: same joint law for extended divergence expectations.
  • shiftExpectExp: PDF pp.8–9: exponential moment under independent uniform translation.
  • toeplitz: PDF p.9: Toeplitz diagonal index i-j represented without negative naturals. Empty-height/width matrices use their genuine matrix type.
  • systematicSubmodule: PDF p.9: systematic image {(a,Za)}. It is a submodule, not an arbitrary assigned-cost code. All r+l-1 diagonal seeds are independent uniform field elements.
  • uniformMomentBound: PDF pp.21–22: moment RHS using an L-point uniform auxiliary law.
  • uniformTraceBound: PDF pp.21–22: uniform linear-code trace-norm objective before its factor two.
  • NestedPair: PDF p.19: actual nested submodules, prescribed sizes, and a complete, unique set of quotient representatives. The representatives merely label the messages.
  • pairOutput: PDF p.19: uniform mixture on the indicated coset, with ambient translation y.
  • pairEncoder: PDF p.19: the actual stochastic coset encoder on the physical input alphabet.
  • GroupedDecoder: PDF p.19: a quotient decoder groups the underlying NORMALIZED codeword POVM. The latter acts on C1+y, labeled by x in C1. This predicate constructs no error bound.
  • AffinePair: PDF pp.22–23: nonuniform linear encoding data, with all quotient cosets represented exactly once. The auxiliary law is supplied independently.
  • affinePairOutput: PDF pp.22–23: actual nonuniform output states; no quotient symmetry is assumed.
  • matrixTensor: PDF p.13: physical tensor powers, including the one-dimensional zeroth power.
  • hayashiProductLaw: PDF p.13: the iid input law. No independence is imposed on general encoders.
  • blockMu: PDF p.13, (85): block prefactor keeps the exact tensor spectral count and n lambda.
  • CodeSequence: PDF pp.13,16: a sequence of actual codes on the physical n-fold channel. Every size is positive. Block zero is harmless and never used for a finite-block bound.
  • ReliableRate: PDF p.16: asymptotic rate and vanishing average decoding error.
  • wiretapCapacity: PDF p.13: operational private capacity over UNRESTRICTED stochastic encoders. The complete extended lattice avoids empty or unbounded real supremum defaults.
  • leakedRate: PDF p.16: operational minimum leakage rate, using precisely the sequences whose ordinary normalized-leakage limits exist. Empty infimum is +infinity.
  • receiverCapacity: PDF p.17: receiver capacity, with a bounded nonempty value set on normalized finite cq data. The theorem's feasibility hypothesis excludes rates above this value.
  • constrainedPrivate: PDF pp.16–17, (100): constrained, normalized private information over every finite auxiliary and every stochastic preprocessing. Empty optimization is -infinity.
  • equivocationFunction: PDF pp.16–17: H(R) via the liminf explicitly identified with the limit on p.17. Convergence is theorem content, never a field imposed on a supplied optimizer.
  • ensembleInfo: PDF p.13: actual ensemble leakage for a sampled iid codebook.
  • ensembleTrace: PDF p.13: actual ensemble full trace-norm leakage.
  • lowerExponent: PDF p.13: corrected lower-asymptotic decay rate, with +infinity at zero leakage. The value at n=0 is irrelevant to liminf as n tends to infinity.
  • phaseAmplitude: PDF p.25, (153): explicit phase-error cq vector, with omega=exp(2 pi i/d). This is a mathematical cq family, not the disputed complement of printed (151).
  • phaseCQ: PDF p.25, (152)–(153): the explicit cq family with arbitrary correlated classical law PZ(z) P(x|z); output basis is (x,z).
  • hayashiConditionalRenyi: PDF p.25: averaged-power conditional Renyi entropy, NOT Arimoto conditional entropy. At order zero only positive conditional probabilities are counted.
  • classicalRenyi: PDF p.26: unconditional Renyi entropy at arbitrary order, with Shannon limit and the order-zero support convention, rather than assigning 0^0=1.
  • phasePure: PDF p.26, (162): reduced pure-state channel in the independent-error case.
  • previousExponent: PDF p.15: the earlier book's exponent objective, including its zero endpoint.
  • hashedDistance: PDF pp.6,30: actual full trace distance from uniform and independent hashed output; hashed blocks are subnormalized and the comparison marginal is common.
  • conditionalRenyiReference: PDF p.4, (25), extended to a specified reference as immediately below (29). The classical reference is identity, not the classical probability law.
  • decodedConditionalEntropy: PDF pp.18–19: Shannon conditional entropy H(M|Mhat) from the actual decoded joint law and its output marginal. Reuse Support50.P07.decodedJoint with the identity receiver dilation and a one-dimensional environment, then read its diagonal. The normalization guard only supplies the frozen KeyCode's proof field; it holds for every normalized cq channel and stochastic encoder used in the theorem below. Outside this physical domain the conditional entropy is assigned zero.
  • operationalEquivocationRate: PDF p.17, corrected operational equivocation: SUPREMUM of the existing conditional-entropy rates of actual reliable codes. Empty supremum is -infinity. The printed infimum is corrected because p.2 calls this the maximum and the identity H(M|E)=log M-I(M;E) reverses the leakage infimum.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Ensemble
import Definitions.Def_QAlgorithms_Defs_MatrixDistances
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P56
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P71
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P21
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P28
import Definitions.Def_QAlgorithms_Papers_Independent_Support50_P07

/-!
Hayashi, arXiv:1202.0325v3. Finite classical alphabets and finite complex matrix
systems; natural logarithms and full trace norm. Definitions are paper-local.
Theorems deliberately have no proofs. Deferred nodes and source discrepancies
are recorded in the assigned unit's HARD.md and GAPS.json. Compilation pending.
-/

noncomputable section

namespace QAlgorithms.Papers.Independent.Advance50.P23

open scoped BigOperators Matrix ComplexConjugate ComplexOrder ENNReal
open Filter
open QAlgorithms.Papers.Independent.Information100.P56
  (IsLaw entropy average holevo uniform ProjectiveRep orbit productOutput)
open QAlgorithms.Papers.Independent.Information100.P71 (supportPower)
open QAlgorithms.Papers.Independent.Dependency50.P21 (IsSupported relativeEntropy)
open QAlgorithms.Papers.Independent.Dependency50.P28 (pinch logNonnegativeExtended)

attribute [local instance] Classical.propDecidable Classical.decEq

variable {X A Z B E : Type} [Fintype X] [Fintype A] [Fintype Z]
  [Fintype B] [DecidableEq B] [Fintype E] [DecidableEq E]

/-- PDF p.2: normalized finite cq outputs. -/
def hayashiIsCQ (W : X → Matrix E E ℂ) : Prop := ∀ x, IsDensityMatrix (W x)

/-- PDF p.2: a classical stochastic encoder. -/
def hayashiIsStochastic (G : A → X → ℝ) : Prop := ∀ a, IsLaw (G a)

/-- PDF p.2: actual composition of a cq channel and a stochastic matrix. -/
def hayashiCompose (W : X → Matrix E E ℂ) (G : A → X → ℝ) : A → Matrix E E ℂ :=
  fun a => average W (G a)

/-- PDF pp.2,4: the cq matrix in quantum-then-classical tensor order. -/
def cqJoint (W : X → Matrix E E ℂ) (P : X → ℝ) : Matrix (E × X) (E × X) ℂ :=
  fun i j => if i.2 = j.2 then (P i.2 : ℂ) * W i.2 i.1 j.1 else 0

/-- PDF p.4: reference sigma tensor the classical law, in the same tensor order. -/
def cqReference (sigma : Matrix E E ℂ) (P : X → ℝ) : Matrix (E × X) (E × X) ℂ :=
  fun i j => if i.2 = j.2 then (P i.2 : ℂ) * sigma i.1 j.1 else 0

/-- PDF pp.2–3, (3): shifted-order Petz divergence, with the Umegaki branch at zero.
Negative-order zero overlap uses extended log(0)=-infinity; support failure at positive
s gives +infinity. At s=-1 the numerator power is the support projection. -/
def hayashiPetzD (s : ℝ) (rho sigma : Matrix E E ℂ) : EReal :=
  if s = 0 then relativeEntropy rho sigma
  else if 0 < s ∧ ¬ IsSupported rho sigma then ⊤
  else ((s⁻¹ : ℝ) : EReal) *
    logNonnegativeExtended ((supportPower rho (1 + s) * supportPower sigma (-s)).trace.re)

/-- PDF p.2, (2): the paper's underlined divergence. The logarithm is extended
spectrally: a nonzero rho weight on the kernel of B gives -infinity, rather than
silently replacing log(0) by zero. This is not Umegaki or sandwiched divergence. -/
def underlinedD (rho sigma : Matrix E E ℂ) : EReal :=
  let S := supportPower sigma (-(1 / 2 : ℝ))
  let T := S * rho * S
  if IsSupported rho T then ((rho * cfc Real.log T).trace.re : EReal) else ⊥

/-- PDF p.2, (4): positive-parameter starred trace moment, without a sandwiched
power of rho. Only 0<s<=1 is used below. -/
def starMoment (s : ℝ) (rho sigma : Matrix E E ℂ) : ℝ :=
  let S := supportPower sigma (-(1 / 2 : ℝ))
  (rho * supportPower (S * rho * S) s).trace.re

/-- PDF pp.4–5, (23),(39): Petz cq information. Its zero value is the Holevo
information; for normalized finite cq data the displayed trace is strictly positive. -/
def petzInfo (s : ℝ) (W : X → Matrix E E ℂ) (P : X → ℝ) : ℝ :=
  if s = 0 then holevo P W else
    Real.log ((∑ x, (P x : ℂ) •
      (supportPower (W x) (1 + s) * supportPower (average W P) (-s))).trace.re) / s

/-- PDF p.4, (29): Petz information relative to a specified normalized state. -/
def referenceInfo (s : ℝ) (W : X → Matrix E E ℂ) (P : X → ℝ)
    (sigma : Matrix E E ℂ) : EReal := hayashiPetzD s (cqJoint W P) (cqReference sigma P)

/-- PDF pp.4–5, (32): the weighted power average A_s. -/
def powerAverage (s : ℝ) (W : X → Matrix E E ℂ) (P : X → ℝ) : Matrix E E ℂ :=
  ∑ x, (P x : ℂ) • supportPower (W x) (1 + s)

/-- PDF p.5, Lemma 3: concrete Gallager trace functional, including s=0. -/
def gallagerTrace (s : ℝ) (W : X → Matrix E E ℂ) (P : X → ℝ) : ℝ :=
  (supportPower (powerAverage s W P) (1 / (1 + s))).trace.re

/-- PDF pp.4–5, (32)–(33): Gallager information with its continuous zero branch. -/
def gallagerInfo (s : ℝ) (W : X → Matrix E E ℂ) (P : X → ℝ) : ℝ :=
  if s = 0 then holevo P W else (1 + s) / s * Real.log (gallagerTrace s W P)

/-- PDF p.5, Lemma 1: constructed attaining reference, not a free optimizer. -/
def renyiOptimizer (s : ℝ) (W : X → Matrix E E ℂ) (P : X → ℝ) : Matrix E E ℂ :=
  (gallagerTrace s W P : ℂ)⁻¹ • supportPower (powerAverage s W P) (1 / (1 + s))

/-- PDF p.2: natural Shannon entropy, with zero-weight terms contributing zero. -/
def hayashiShannon (P : A → ℝ) : ℝ := -∑ a, P a * Real.log (P a)

/-- PDF pp.2,13: classical order-1+s Renyi entropy, including the Shannon limit.
All uses have s>=0 and IsLaw P, so the power sum is positive. -/
def hayashiRenyiEntropy (s : ℝ) (P : A → ℝ) : ℝ :=
  if s = 0 then hayashiShannon P else -Real.log (∑ a, Real.rpow (P a) (1 + s)) / s

/-- PDF p.3: number of DISTINCT spectral values, including zero if present. -/
def eigenCount (sigma : Matrix E E ℂ) : ℕ :=
  (Finset.univ.image (ascEigenvalues sigma)).card

/-- PDF p.10: log spectral spread on the positive output support. Normalization
by trace cancels in this difference. Never include ambient zero eigenvalues. -/
def spectralSpread (sigma : Matrix E E ℂ) : ℝ :=
  let vals := Finset.univ.image (ascEigenvalues sigma)
  if h : vals.Nonempty then Real.log (vals.max' h) - Real.log (minPositiveEigenvalue sigma)
  else 0

/-- PDF p.10, (71): the two spectral branches; the square root includes the ceiling. -/
def hayashiMu (s : ℝ) (W : X → Matrix E E ℂ) (P : X → ℝ) : ℝ :=
  min (4 + Real.sqrt (eigenCount (powerAverage s W P)))
    ((4 + Real.sqrt (Int.ceil (spectralSpread (powerAverage s W P)))) * Real.exp (s / 2))

/-- PDF p.6: full trace-norm correlation of a cq ensemble at input P. -/
def traceCorrelation (P : X → ℝ) (W : X → Matrix E E ℂ) : ℝ :=
  ∑ x, P x * traceNorm (W x - average W P)

/-- PDF pp.6,9: uniform-message Holevo leakage. -/
def Imix (W : X → Matrix E E ℂ) : ℝ := holevo uniform W

/-- PDF pp.6,9: source-universal Holevo leakage over all normalized input laws.
For density outputs on nonempty finite alphabets this is a nonempty bounded supremum. -/
def Imax (W : X → Matrix E E ℂ) : ℝ :=
  sSup {y : ℝ | ∃ P : X → ℝ, IsLaw P ∧ y = holevo P W}

/-- PDF pp.6,9: uniform-message full trace-norm leakage, without a factor 1/2. -/
def d1mix (W : X → Matrix E E ℂ) : ℝ := traceCorrelation uniform W

/-- PDF pp.6,9: source-universal full trace-norm leakage. Its defining value set
is nonempty and bounded by two for normalized finite cq data. -/
def d1max (W : X → Matrix E E ℂ) : ℝ :=
  sSup {y : ℝ | ∃ P : X → ℝ, IsLaw P ∧ y = traceCorrelation P W}

/-- PDF p.9: a genuine M-message code with stochastic encoder and normalized POVM. -/
structure WiretapCode (X B : Type) [Fintype X] [Fintype B] [DecidableEq B] (M : ℕ) where
  positive : 0 < M
  encoder : Fin M → X → ℝ
  encoder_law : hayashiIsStochastic encoder
  decoder : Fin M → Matrix B B ℂ
  decoder_povm : IsPOVM decoder

/-- PDF p.10, (62): pushforward of the SOLE runtime auxiliary random variable. -/
def tableEncoder {M L : ℕ} (P : Fin L → ℝ) (c : Fin L → Fin M → X) : Fin M → X → ℝ :=
  fun m x => ∑ l, if c l m = x then P l else 0

/-- PDF pp.9–10: no extra runtime mixing source is allowed. The deterministic
table is selected before communication and does not depend on the sampled l or m. -/
def UsesLaw {M L : ℕ} (P : Fin L → ℝ) (C : WiretapCode X B M) : Prop :=
  ∃ c : Fin L → Fin M → X, C.encoder = tableEncoder P c

/-- PDF p.9: probability of error on one specified message; fixes printed free i to m. -/
def messageError {M : ℕ} (W : X → Matrix B B ℂ) (C : WiretapCode X B M) (m : Fin M) : ℝ :=
  1 - effectProb (C.decoder m) (hayashiCompose W C.encoder m)

/-- PDF p.9: average error for a uniform message. -/
def hayashiCodeError {M : ℕ} (W : X → Matrix B B ℂ) (C : WiretapCode X B M) : ℝ :=
  ∑ m, (M : ℝ)⁻¹ * messageError W C m

/-- PDF p.9: worst-message error, over the nonempty finite message set. -/
def maxError {M : ℕ} (W : X → Matrix B B ℂ) (C : WiretapCode X B M) : ℝ :=
  sSup (Set.range (messageError W C))

/-- PDF pp.9–10, (69): hayashiReliability objective, with continuous value one at t=0. -/
def hayashiReliability (M L : ℕ) (t : ℝ) (W : X → Matrix B B ℂ) (P : X → ℝ) : ℝ :=
  if t = 0 then 1 else Real.rpow (M * L : ℕ) t * Real.exp (-t * petzInfo (-t) W P)

/-- PDF p.10, (70): secrecy objective, used only for 0<s<=1. -/
def secrecy (s : ℝ) (W : X → Matrix E E ℂ) (P : X → ℝ) (PA : A → ℝ) : ℝ :=
  Real.rpow (eigenCount (average W P)) s / s *
    Real.exp (-s * hayashiRenyiEntropy s PA + s * petzInfo s W P)

/-- PDF p.10, (71): Gallager full trace-norm objective. -/
def traceBound (s : ℝ) (W : X → Matrix E E ℂ) (P : X → ℝ) (PA : A → ℝ) : ℝ :=
  hayashiMu s W P * Real.exp (s / 2 * (gallagerInfo s W P - hayashiRenyiEntropy s PA))

/-- PDF p.7: a deterministic map pushes PA into the actual output mixture. -/
def mapOutput (W : X → Matrix E E ℂ) (f : A → X) (PA : A → ℝ) : Matrix E E ℂ :=
  ∑ a, (PA a : ℂ) • W (f a)

/-- PDF p.7: pairwise independent map coordinates, all with the prescribed marginal.
These are hypotheses on the random map law, not assertions about a selected map. -/
def PairwiseMap (PZ : Z → ℝ) (f : Z → A → X) (PX : X → ℝ) : Prop :=
  IsLaw PZ ∧ (∀ a x, (∑ z, if f z a = x then PZ z else 0) = PX x) ∧
  ∀ a b, a ≠ b → ∀ x y,
    (∑ z, if f z a = x ∧ f z b = y then PZ z else 0) = PX x * PX y

/-- PDF pp.7–8: finite expectation of an extended quantity; zero-weight samples
contribute zero even if the integrand is infinite. -/
def expectE (PZ : Z → ℝ) (f : Z → EReal) : EReal := ∑ z, (PZ z : EReal) * f z

/-- PDF pp.7–8: exponential moments preserve exp(-infinity)=0 and exp(+infinity)=infinity. -/
def expectExp (PZ : Z → ℝ) (s : ℝ) (f : Z → EReal) : ℝ≥0∞ :=
  ∑ z, ENNReal.ofReal (PZ z) * EReal.exp ((s : EReal) * f z)

/-- PDF p.9: iid codebook law. The table is sampled once before communication. -/
def bookLaw {M L : ℕ} (PX : X → ℝ) (c : Fin L → Fin M → X) : ℝ :=
  ∏ l, ∏ m, PX (c l m)

/-- PDF p.14: the two optimized exponents, including the attained zero objective at s=0. -/
def exponentR (R : ℝ) (W : X → Matrix E E ℂ) (P : X → ℝ) : ℝ :=
  sSup {y : ℝ | ∃ s ∈ Set.Icc (0 : ℝ) 1, y = s * (R - petzInfo s W P)}

/-- PDF p.14: Gallager exponent, with the same closed-interval convention. -/
def exponentG (R : ℝ) (W : X → Matrix E E ℂ) (P : X → ℝ) : ℝ :=
  sSup {y : ℝ | ∃ s ∈ Set.Icc (0 : ℝ) 1, y = s / 2 * (R - gallagerInfo s W P)}

/-- PDF pp.7,29: additive cq means an actual projective unitary orbit. -/
def IsAdditiveCQ {G : Type} [AddCommGroup G] (W : G → Matrix E E ℂ) : Prop :=
  ∃ U : ProjectiveRep (Multiplicative G) E, ∃ rho : Matrix E E ℂ,
    IsDensityMatrix rho ∧ ∀ x, W x = orbit U rho (Multiplicative.ofAdd x)

/-- PDF p.30, Condition 3: universal2 under a finite seed law. -/
def Universal2 {D : Type} [Fintype D] (PZ : Z → ℝ) (f : Z → A → D) : Prop :=
  ∀ a b, a ≠ b → (∑ z, if f z a = f z b then PZ z else 0) ≤ (Fintype.card D : ℝ)⁻¹

/-- PDF p.30: balanced fibres, expressed without truncated natural division. -/
def hayashiBalanced {D : Type} [Fintype D] (f : A → D) : Prop :=
  ∀ d, (Finset.univ.filter (fun a => f a = d)).card * Fintype.card D = Fintype.card A

/-- PDF p.8, Condition 1: fixed submodule size and the nonzero-membership bound. -/
def Condition1 {K G : Type} [Ring K] [AddCommGroup G] [Module K G] [Fintype G]
    (PZ : Z → ℝ) (C : Z → Submodule K G) (L : ℕ) : Prop :=
  IsLaw PZ ∧ (∀ z, Fintype.card (C z) = L) ∧
    ∀ x : G, x ≠ 0 → (∑ z, if x ∈ C z then PZ z else 0) ≤ L / (Fintype.card G : ℝ)

/-- PDF p.8, Condition 2: actual injective linear maps, constrained only at nonzero
inputs and outputs. For singleton G the guarded denominator is never used. -/
def Condition2 {K D G : Type} [Ring K] [AddCommGroup D] [AddCommGroup G]
    [Module K D] [Module K G] [Fintype G]
    (PZ : Z → ℝ) (f : Z → D →ₗ[K] G) : Prop :=
  IsLaw PZ ∧ (∀ z, Function.Injective (f z)) ∧
    ∀ a : D, a ≠ 0 → ∀ x : G, x ≠ 0 → 1 < Fintype.card G →
      (∑ z, if f z a = x then PZ z else 0) ≤ ((Fintype.card G : ℝ) - 1)⁻¹

/-- PDF p.8: output of a uniformly sampled affine coset, with actual submodule
cardinality. It is nonzero because a submodule contains zero. -/
def cosetOutput {K G : Type} [Ring K] [AddCommGroup G] [Module K G] [Fintype G]
    (W : G → Matrix E E ℂ) (C : Submodule K G) (y : G) : Matrix E E ℂ :=
  ∑ x : C, ((Fintype.card C : ℝ)⁻¹ : ℂ) • W (x.1 + y)

/-- PDF p.8: independent uniform ambient translation, averaged AFTER the seed. -/
def shiftExpect {G : Type} [Fintype G] (PZ : Z → ℝ) (f : Z → G → ℝ) : ℝ :=
  ∑ z, PZ z * ∑ y, (Fintype.card G : ℝ)⁻¹ * f z y

/-- PDF pp.8–9: same joint law for extended divergence expectations. -/
def shiftExpectE {G : Type} [Fintype G] (PZ : Z → ℝ) (f : Z → G → EReal) : EReal :=
  ∑ z, (PZ z : EReal) * ∑ y, (((Fintype.card G : ℝ)⁻¹ : ℝ) : EReal) * f z y

/-- PDF pp.8–9: exponential moment under independent uniform translation. -/
def shiftExpectExp {G : Type} [Fintype G] (PZ : Z → ℝ) (s : ℝ)
    (f : Z → G → EReal) : ℝ≥0∞ :=
  ∑ z, ENNReal.ofReal (PZ z) * ∑ y,
    ENNReal.ofReal ((Fintype.card G : ℝ)⁻¹) * EReal.exp ((s : EReal) * f z y)

/-- PDF p.9: Toeplitz diagonal index i-j represented without negative naturals.
Empty-height/width matrices use their genuine matrix type. -/
def toeplitz {K : Type} (r l : ℕ) (z : Fin (r + l - 1) → K) : Matrix (Fin r) (Fin l) K :=
  fun i j => z ⟨i.val + (l - 1 - j.val), by omega⟩

/-- PDF p.9: systematic image {(a,Za)}. It is a submodule, not an arbitrary
assigned-cost code. All r+l-1 diagonal seeds are independent uniform field elements. -/
def systematicSubmodule {K : Type} [Field K] (r l : ℕ) (z : Fin (r + l - 1) → K) :
    Submodule K ((Fin l → K) × (Fin r → K)) where
  carrier := {v | ∀ i, v.2 i = ∑ j, toeplitz r l z i j * v.1 j}
  zero_mem' := by simp
  add_mem' := by
    intro a b ha hb i
    change a.2 i + b.2 i = ∑ j, toeplitz r l z i j * (a.1 j + b.1 j)
    rw [ha i, hb i]
    simp [mul_add, Finset.sum_add_distrib]
  smul_mem' := by
    intro c a ha i
    change c * a.2 i = ∑ j, toeplitz r l z i j * (c * a.1 j)
    rw [ha i]
    simp [Finset.mul_sum, mul_left_comm]

/-- PDF pp.21–22: moment RHS using an L-point uniform auxiliary law. -/
def uniformMomentBound (L : ℕ) (s : ℝ) (W : X → Matrix E E ℂ) (P : X → ℝ) : ℝ :=
  Real.rpow (eigenCount (average W P)) s *
    (1 + Real.exp (s * petzInfo s W P) / Real.rpow L s)

/-- PDF pp.21–22: uniform linear-code trace-norm objective before its factor two. -/
def uniformTraceBound (L : ℕ) (s : ℝ) (W : X → Matrix E E ℂ) (P : X → ℝ) : ℝ :=
  hayashiMu s W P * Real.exp (s / 2 * gallagerInfo s W P) / Real.rpow L (s / 2)

/-- PDF p.19: actual nested submodules, prescribed sizes, and a complete, unique
set of quotient representatives. The representatives merely label the messages. -/
structure NestedPair (K G : Type) [Ring K] [AddCommGroup G] [Module K G]
    [Fintype G] (M L : ℕ) where
  outer : Submodule K G
  inner : Submodule K G
  nested : inner ≤ outer
  inner_size : Fintype.card inner = L
  outer_size : Fintype.card outer = M * L
  representative : Fin M → G
  representative_mem : ∀ m, representative m ∈ outer
  quotient_complete : ∀ x : G, x ∈ outer → ∃! m : Fin M, x - representative m ∈ inner

/-- PDF p.19: uniform mixture on the indicated coset, with ambient translation y. -/
def pairOutput {K G : Type} [Ring K] [AddCommGroup G] [Module K G] [Fintype G]
    {M L : ℕ} (W : G → Matrix E E ℂ) (C : NestedPair K G M L) (y : G) :
    Fin M → Matrix E E ℂ := fun m => cosetOutput W C.inner (C.representative m + y)

/-- PDF p.19: the actual stochastic coset encoder on the physical input alphabet. -/
def pairEncoder {K G : Type} [Ring K] [AddCommGroup G] [Module K G] [Fintype G]
    {M L : ℕ} (C : NestedPair K G M L) (y : G) : Fin M → G → ℝ :=
  fun m x => if x - (C.representative m + y) ∈ C.inner then (L : ℝ)⁻¹ else 0

/-- PDF p.19: a quotient decoder groups the underlying NORMALIZED codeword POVM.
The latter acts on C1+y, labeled by x in C1. This predicate constructs no error bound. -/
def GroupedDecoder {K G : Type} [Ring K] [AddCommGroup G] [Module K G] [Fintype G]
    {M L : ℕ} (C : NestedPair K G M L) (y : G) (D : WiretapCode G B M) : Prop :=
  D.encoder = pairEncoder C y ∧ ∃ word : C.outer → Matrix B B ℂ,
    IsPOVM word ∧ ∀ m, D.decoder m =
      ∑ x : C.outer, if x.1 - C.representative m ∈ C.inner then word x else 0

/-- PDF pp.22–23: nonuniform linear encoding data, with all quotient cosets
represented exactly once. The auxiliary law is supplied independently. -/
structure AffinePair (K D G : Type) [Ring K] [AddCommGroup D] [AddCommGroup G]
    [Module K D] [Module K G] [Fintype G] (M : ℕ) where
  outer : Submodule K G
  linear : D →ₗ[K] G
  injective : Function.Injective linear
  image_mem : ∀ a, linear a ∈ outer
  representative : Fin M → G
  representative_mem : ∀ m, representative m ∈ outer
  quotient_complete : ∀ x : G, x ∈ outer →
    ∃! m : Fin M, ∃ a : D, x = linear a + representative m

/-- PDF pp.22–23: actual nonuniform output states; no quotient symmetry is assumed. -/
def affinePairOutput {K D G : Type} [Ring K] [AddCommGroup D] [AddCommGroup G]
    [Module K D] [Module K G] [Fintype D] [Fintype G] {M : ℕ}
    (W : G → Matrix E E ℂ) (PA : D → ℝ) (C : AffinePair K D G M) (y : G) :
    Fin M → Matrix E E ℂ :=
  fun m => mapOutput W (fun a => C.linear a + (C.representative m + y)) PA

/-- PDF p.13: physical tensor powers, including the one-dimensional zeroth power. -/
def matrixTensor (n : ℕ) (sigma : Matrix E E ℂ) : Matrix (Fin n → E) (Fin n → E) ℂ :=
  fun i j => ∏ k, sigma (i k) (j k)

/-- PDF p.13: the iid input law. No independence is imposed on general encoders. -/
def hayashiProductLaw (n : ℕ) (P : X → ℝ) : (Fin n → X) → ℝ := fun x => ∏ i, P (x i)

/-- PDF p.13, (85): block prefactor keeps the exact tensor spectral count and n lambda. -/
def blockMu (n : ℕ) (s : ℝ) (W : X → Matrix E E ℂ) (P : X → ℝ) : ℝ :=
  min (4 + Real.sqrt (eigenCount (matrixTensor n (powerAverage s W P))))
    ((4 + Real.sqrt (Int.ceil (n * spectralSpread (powerAverage s W P)))) * Real.exp (s / 2))

/-- PDF pp.13,16: a sequence of actual codes on the physical n-fold channel.
Every size is positive. Block zero is harmless and never used for a finite-block bound. -/
structure CodeSequence (X B : Type) [Fintype X] [Fintype B] [DecidableEq B] where
  size : ℕ → ℕ
  code : (n : ℕ) → WiretapCode (Fin n → X) (Fin n → B) (size n)

/-- PDF p.16: asymptotic rate and vanishing average decoding error. -/
def ReliableRate (WB : X → Matrix B B ℂ) (R : ℝ) (S : CodeSequence X B) : Prop :=
  0 ≤ R ∧ Tendsto (fun n => Real.log (S.size n) / n) atTop (nhds R) ∧
    Tendsto (fun n => hayashiCodeError (productOutput n WB) (S.code n)) atTop (nhds 0)

/-- PDF p.13: operational private capacity over UNRESTRICTED stochastic encoders.
The complete extended lattice avoids empty or unbounded real supremum defaults. -/
def wiretapCapacity (WB : X → Matrix B B ℂ) (WE : X → Matrix E E ℂ) : EReal :=
  sSup {r : EReal | ∃ R : ℝ, ∃ S : CodeSequence X B, r = (R : EReal) ∧
    ReliableRate WB R S ∧
    Tendsto (fun n => Imix (hayashiCompose (productOutput n WE) (S.code n).encoder)) atTop (nhds 0)}

/-- PDF p.16: operational minimum leakage rate, using precisely the sequences
whose ordinary normalized-leakage limits exist. Empty infimum is +infinity. -/
def leakedRate (WB : X → Matrix B B ℂ) (WE : X → Matrix E E ℂ) (R : ℝ) : EReal :=
  sInf {r : EReal | ∃ l : ℝ, ∃ S : CodeSequence X B, r = (l : EReal) ∧ ReliableRate WB R S ∧
    Tendsto (fun n => Imix (hayashiCompose (productOutput n WE) (S.code n).encoder) / n) atTop (nhds l)}

/-- PDF p.17: receiver capacity, with a bounded nonempty value set on normalized
finite cq data. The theorem's feasibility hypothesis excludes rates above this value. -/
def receiverCapacity (WB : X → Matrix B B ℂ) : ℝ :=
  sSup {y : ℝ | ∃ P : X → ℝ, IsLaw P ∧ y = holevo P WB}

/-- PDF pp.16–17, (100): constrained, normalized private information over every
finite auxiliary and every stochastic preprocessing. Empty optimization is -infinity. -/
def constrainedPrivate (n : ℕ) (R : ℝ) (WB : X → Matrix B B ℂ)
    (WE : X → Matrix E E ℂ) : EReal :=
  sSup {y : EReal | ∃ C : QAlgorithms.Papers.Independent.Information100.P56.Encoder (Fin n → X),
    n * R ≤ holevo C.outer (hayashiCompose (productOutput n WB) C.conditional) ∧
    y = ((QAlgorithms.Papers.Independent.Information100.P56.encoderValue
      (productOutput n WB) (productOutput n WE) C / n : ℝ) : EReal)}

/-- PDF pp.16–17: H(R) via the liminf explicitly identified with the limit on p.17.
Convergence is theorem content, never a field imposed on a supplied optimizer. -/
def equivocationFunction (R : ℝ) (WB : X → Matrix B B ℂ) (WE : X → Matrix E E ℂ) : EReal :=
  Filter.liminf (fun n => constrainedPrivate n R WB WE) atTop

/-- PDF p.13: actual ensemble leakage for a sampled iid codebook. -/
def ensembleInfo (M L : ℕ) (W : X → Matrix E E ℂ) (PX : X → ℝ) (PL : Fin L → ℝ) : ℝ :=
  ∑ c : Fin L → Fin M → X, bookLaw PX c * Imix (hayashiCompose W (tableEncoder PL c))

/-- PDF p.13: actual ensemble full trace-norm leakage. -/
def ensembleTrace (M L : ℕ) (W : X → Matrix E E ℂ) (PX : X → ℝ) (PL : Fin L → ℝ) : ℝ :=
  ∑ c : Fin L → Fin M → X, bookLaw PX c * d1mix (hayashiCompose W (tableEncoder PL c))

/-- PDF p.13: corrected lower-asymptotic decay rate, with +infinity at zero
leakage. The value at n=0 is irrelevant to liminf as n tends to infinity. -/
def lowerExponent (f : ℕ → ℝ) : EReal :=
  Filter.liminf (fun n : ℕ => -(((n : ℝ)⁻¹ : ℝ) : EReal) * logNonnegativeExtended (f n)) atTop

/-- PDF p.25, (153): explicit phase-error cq vector, with omega=exp(2 pi i/d).
This is a mathematical cq family, not the disputed complement of printed (151). -/
def phaseAmplitude (d : ℕ) [NeZero d] (P : ZMod d → ℝ) (j x : ZMod d) : ℂ :=
  Complex.exp (((2 * Real.pi * j.val * x.val / d : ℝ) : ℂ) * Complex.I) *
    (Real.sqrt (P x) : ℂ)

/-- PDF p.25, (152)–(153): the explicit cq family with arbitrary correlated
classical law PZ(z) P(x|z); output basis is (x,z). -/
def phaseCQ (d : ℕ) [NeZero d] (PZ : ZMod d → ℝ) (P : ZMod d → ZMod d → ℝ)
    (j : ZMod d) : Matrix (ZMod d × ZMod d) (ZMod d × ZMod d) ℂ :=
  fun u v => if u.2 = v.2 then (PZ u.2 : ℂ) *
    phaseAmplitude d (P u.2) j u.1 * conj (phaseAmplitude d (P u.2) j v.1) else 0

/-- PDF p.25: averaged-power conditional Renyi entropy, NOT Arimoto conditional
entropy. At order zero only positive conditional probabilities are counted. -/
def hayashiConditionalRenyi {D F : Type} [Fintype D] [Fintype F]
    (alpha : ℝ) (PZ : F → ℝ) (P : F → D → ℝ) : ℝ :=
  if alpha = 1 then ∑ z, PZ z * hayashiShannon (P z) else
    Real.log (∑ z, PZ z * ∑ x, if P z x = 0 then 0 else Real.rpow (P z x) alpha) / (1 - alpha)

/-- PDF p.26: unconditional Renyi entropy at arbitrary order, with Shannon limit
and the order-zero support convention, rather than assigning 0^0=1. -/
def classicalRenyi (alpha : ℝ) (P : A → ℝ) : ℝ :=
  if alpha = 1 then hayashiShannon P else
    Real.log (∑ a, if P a = 0 then 0 else Real.rpow (P a) alpha) / (1 - alpha)

/-- PDF p.26, (162): reduced pure-state channel in the independent-error case. -/
def phasePure (d : ℕ) [NeZero d] (P : ZMod d → ℝ) (j : ZMod d) : Matrix (ZMod d) (ZMod d) ℂ :=
  fun x y => phaseAmplitude d P j x * conj (phaseAmplitude d P j y)

/-! Sanity checks pin endpoint branches, tensor order, and deterministic runtime mixing. -/

example (rho sigma : Matrix E E ℂ) : hayashiPetzD 0 rho sigma = relativeEntropy rho sigma := by
  simp [hayashiPetzD]

example (W : X → Matrix E E ℂ) (P : X → ℝ) : petzInfo 0 W P = holevo P W := by
  simp [petzInfo]

example (W : X → Matrix E E ℂ) (P : X → ℝ) : gallagerInfo 0 W P = holevo P W := by
  simp [gallagerInfo]

example (P : A → ℝ) : hayashiRenyiEntropy 0 P = hayashiShannon P := by simp [hayashiRenyiEntropy]

example (M L : ℕ) (W : X → Matrix B B ℂ) (P : X → ℝ) : hayashiReliability M L 0 W P = 1 := by
  simp [hayashiReliability]

example (W : X → Matrix E E ℂ) (P : X → ℝ) (e eprime : E) (x : X) :
    cqJoint W P (e, x) (eprime, x) = (P x : ℂ) * W x e eprime := by simp [cqJoint]

example (x : X) : tableEncoder (fun _ : Fin 1 => (1 : ℝ)) (fun _ _ : Fin 1 => x) 0 x = 1 := by
  simp [tableEncoder]

example (P : Z → ℝ) (s : ℝ) : expectE P (fun _ => (0 : EReal)) = 0 := by simp [expectE]

example {K G : Type} [Ring K] [AddCommGroup G] [Module K G] [Fintype G]
    (PZ : Z → ℝ) (W : G → Matrix E E ℂ) :
    cosetOutput W (⊥ : Submodule K G) 0 = W 0 := by
  simp [cosetOutput]
  exact congrArg W ((Submodule.mem_bot K).mp
    (default : (⊥ : Submodule K G)).property)

example (sigma : Matrix E E ℂ) (i j : Fin 0 → E) : matrixTensor 0 sigma i j = 1 := by
  simp [matrixTensor]

example (P : X → ℝ) (x : Fin 0 → X) : hayashiProductLaw 0 P x = 1 := by simp [hayashiProductLaw]

example (P : A → ℝ) : classicalRenyi 1 P = hayashiShannon P := by simp [classicalRenyi]

example {D F : Type} [Fintype D] [Fintype F] (PZ : F → ℝ) (P : F → D → ℝ) :
    hayashiConditionalRenyi 1 PZ P = ∑ z, PZ z * hayashiShannon (P z) := by simp [hayashiConditionalRenyi]

example (d : ℕ) [NeZero d] (P : ZMod d → ℝ) (x : ZMod d) :
    phaseAmplitude d P 0 x = (Real.sqrt (P x) : ℂ) := by simp [phaseAmplitude]

example (s : ℝ) (sigma : Matrix E E ℂ) : starMoment s (0 : Matrix E E ℂ) sigma = 0 := by
  simp [starMoment]

example (s : ℝ) (W : X → Matrix E E ℂ) : powerAverage s W (fun _ => 0) = 0 := by
  simp [powerAverage]

/-- PDF p.15: the earlier book's exponent objective, including its zero endpoint. -/
def previousExponent (R : ℝ) (W : X → Matrix E E ℂ) (P : X → ℝ) : ℝ :=
  sSup {y : ℝ | ∃ s ∈ Set.Icc (0 : ℝ) 1,
    y = s * (R - petzInfo s W P) / (2 * (1 + s))}

/-- PDF pp.6,30: actual full trace distance from uniform and independent hashed
output; hashed blocks are subnormalized and the comparison marginal is common. -/
def hashedDistance {D : Type} [Fintype D]
    (W : A → Matrix E E ℂ) (PA : A → ℝ) (f : A → D) : ℝ :=
  ∑ d : D, traceNorm ((∑ a, if f a = d then (PA a : ℂ) • W a else 0) -
    (((Fintype.card D : ℝ)⁻¹ : ℂ) • average W PA))

/-- PDF p.4, (25), extended to a specified reference as immediately below (29).
The classical reference is identity, not the classical probability law. -/
def conditionalRenyiReference (s : ℝ) (W : A → Matrix E E ℂ) (PA : A → ℝ)
    (sigma : Matrix E E ℂ) : EReal :=
  -hayashiPetzD s (cqJoint W PA) (cqReference sigma (fun _ : A => 1))

/-- PDF pp.18–19: Shannon conditional entropy H(M|Mhat) from the actual decoded
joint law and its output marginal. Reuse Support50.P07.decodedJoint with the
identity receiver dilation and a one-dimensional environment, then read its diagonal.
The normalization guard only supplies the frozen KeyCode's proof field; it holds
for every normalized cq channel and stochastic encoder used in the theorem below.
Outside this physical domain the conditional entropy is assigned zero. -/
def decodedConditionalEntropy {M : ℕ} (W : X → Matrix B B ℂ) (C : WiretapCode X B M) : ℝ :=
  if h : ∀ m, IsDensityMatrix (hayashiCompose W C.encoder m) then
    let code : QAlgorithms.Papers.Independent.Support50.P07.KeyCode B B :=
      { messages := M
        positive := C.positive
        inputs := hayashiCompose W C.encoder
        normalized := h
        measurement := C.decoder
        povm := C.decoder_povm }
    let U : Matrix (B × Unit) B ℂ := fun i j => if i.1 = j then 1 else 0
    let omega := QAlgorithms.Papers.Independent.Support50.P07.decodedJoint U code
    let P : (Fin M × Fin M) → ℝ :=
      fun i => (omega (i.1, (i.2, ())) (i.1, (i.2, ()))).re
    hayashiShannon P - hayashiShannon (fun j : Fin M => ∑ i : Fin M, P (i,j))
  else 0

example {D : Type} [Fintype D] (W : A → Matrix E E ℂ) (PA : A → ℝ) (f : A → D) :
    hashedDistance W (fun _ : A => 0) f = 0 := by
  simp [hashedDistance, average, traceNorm, cfc_zero]

example (W : A → Matrix E E ℂ) (PA : A → ℝ) (sigma : Matrix E E ℂ) :
    conditionalRenyiReference 0 W PA sigma =
      -relativeEntropy (cqJoint W PA) (cqReference sigma (fun _ : A => 1)) := by
  simp [conditionalRenyiReference, hayashiPetzD]

/-- PDF p.17, corrected operational equivocation: SUPREMUM of the existing
conditional-entropy rates of actual reliable codes. Empty supremum is -infinity.
The printed infimum is corrected because p.2 calls this the maximum and the
identity H(M|E)=log M-I(M;E) reverses the leakage infimum. -/
def operationalEquivocationRate (WB : X → Matrix B B ℂ) (WE : X → Matrix E E ℂ)
    (R : ℝ) : EReal :=
  sSup {r : EReal | ∃ l : ℝ, ∃ S : CodeSequence X B,
    r = (l : EReal) ∧ ReliableRate WB R S ∧
    Tendsto (fun n => (Real.log (S.size n) -
      Imix (hayashiCompose (productOutput n WE) (S.code n).encoder)) / n)
      atTop (nhds l)}

end QAlgorithms.Papers.Independent.Advance50.P23
Source
Quantum wiretap channel with non-uniform random number and its exponent and equivocation rate of leaked information, arXiv:1202.0325v3, https://arxiv.org/abs/1202.0325v3
Read-back

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

QAlgorithms.Papers.Independent.Advance50.P23.AffinePair

For a ring KKK, additive commutative groups D,GD,GD,G equipped with KKK-module structures, a finite enumeration of GGG, and a natural number MMM, this structure consists of a submodule Cout⊆GC_{\mathrm{out}}\subseteq GCout​⊆G, an injective KKK-linear map ℓ:D→G\ell:D\to Gℓ:D→G whose image lies in CoutC_{\mathrm{out}}Cout​, and representatives rm∈Coutr_m\in C_{\mathrm{out}}rm​∈Cout​ for 0≤m<M0\le m<M0≤m<M, satisfying

∀x∈Cout,∃! m∈{0,…,M−1} such that ∃a∈D, x=ℓ(a)+rm.\forall x\in C_{\mathrm{out}},\quad \exists!\,m\in\{0,\ldots,M-1\}\ \text{such that } \exists a\in D,\ x=\ell(a)+r_m.∀x∈Cout​,∃!m∈{0,…,M−1} such that ∃a∈D, x=ℓ(a)+rm​.

The asserted unique index is mmm; injectivity of ℓ\ellℓ also makes aaa unique once mmm is fixed. No finite enumeration of DDD is assumed by the structure, although its injection into finite GGG forces it to be finite. The requirements cannot be satisfied when M=0M=0M=0, since 0∈Cout0\in C_{\mathrm{out}}0∈Cout​.

QAlgorithms.Papers.Independent.Advance50.P23.CodeSequence

For finite types X,BX,BX,B, with decidable equality on BBB, this structure consists of a function m:N→Nm:\mathbb N\to\mathbb Nm:N→N and, for every natural number nnn, a code with exactly mnm_nmn​ messages. Such a code includes a proof that mn>0m_n>0mn​>0; an encoder pn,j:Xn→Rp_{n,j}:X^n\to\mathbb Rpn,j​:Xn→R for each j<mnj<m_nj<mn​, satisfying pn,j(x)≥0p_{n,j}(x)\ge0pn,j​(x)≥0 and ∑x∈Xnpn,j(x)=1\sum_{x\in X^n}p_{n,j}(x)=1∑x∈Xn​pn,j​(x)=1; and decoder matrices Dn,j∈CBn×BnD_{n,j}\in\mathbb C^{B^n\times B^n}Dn,j​∈CBn×Bn that are positive semidefinite and satisfy ∑j<mnDn,j=I\sum_{j<m_n}D_{n,j}=I∑j<mn​​Dn,j​=I. Here XnX^nXn and BnB^nBn mean functions from {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1} to the respective types. Codes are required also at n=0n=0n=0, where both string types are singletons. No growth, computability, error, or channel condition is part of this structure. The types may be empty, although if XXX is empty the required encoder laws at positive block lengths cannot be satisfied.

QAlgorithms.Papers.Independent.Advance50.P23.Condition1

For a finite indexing type ZZZ, a ring KKK, an additive commutative group GGG equipped with a KKK-module structure and a finite enumeration, real weights PZ:Z→RP_Z:Z\to\mathbb RPZ​:Z→R, submodules Cz⊆GC_z\subseteq GCz​⊆G, and L∈NL\in\mathbb NL∈N, this predicate requires all three conditions

PZ(z)≥0 for every z,∑zPZ(z)=1;∣Cz∣=L for every z;∑z∈Zx∈CzPZ(z)≤L∣G∣ for every x≠0.P_Z(z)\ge0\ \text{for every }z,\qquad \sum_zP_Z(z)=1;\qquad |C_z|=L\ \text{for every }z;\qquad \sum_{\substack{z\in Z\\x\in C_z}}P_Z(z)\le\frac{L}{|G|} \ \text{for every }x\ne0.PZ​(z)≥0 for every z,z∑​PZ​(z)=1;∣Cz​∣=L for every z;z∈Zx∈Cz​​∑​PZ​(z)≤∣G∣L​ for every x=0.

The zero element is excluded from the last condition. The group GGG and every submodule contain zero, so their cardinalities are positive; satisfying the predicate therefore forces L≥1L\ge1L≥1. An empty ZZZ cannot satisfy the normalization requirement. If GGG consists only of zero, the final condition is vacuous.

QAlgorithms.Papers.Independent.Advance50.P23.Condition2

For a finite indexing type ZZZ, a ring KKK, additive commutative groups D,GD,GD,G with KKK-module structures, a finite enumeration of GGG, real weights PZ:Z→RP_Z:Z\to\mathbb RPZ​:Z→R, and KKK-linear maps fz:D→Gf_z:D\to Gfz​:D→G, this predicate requires PZ(z)≥0P_Z(z)\ge0PZ​(z)≥0 for every zzz, ∑zPZ(z)=1\sum_zP_Z(z)=1∑z​PZ​(z)=1, injectivity of every fzf_zfz​, and

∑z∈Zfz(a)=xPZ(z)≤1∣G∣−1\sum_{\substack{z\in Z\\f_z(a)=x}}P_Z(z)\le\frac1{|G|-1}z∈Zfz​(a)=x​∑​PZ​(z)≤∣G∣−11​

for every nonzero a∈Da\in Da∈D and nonzero x∈Gx\in Gx∈G, provided 1<∣G∣1<|G|1<∣G∣. No finiteness assumption on DDD is stated. The last requirement is vacuous if DDD has no nonzero element or ∣G∣=1|G|=1∣G∣=1, while the law and injectivity requirements remain. Empty ZZZ cannot satisfy the law requirement; the denominator in each applicable bound is strictly positive.

QAlgorithms.Papers.Independent.Advance50.P23.GroupedDecoder

For a ring KKK, a finite additive commutative group GGG equipped with a KKK-module structure, a finite type BBB with decidable equality, and natural numbers M,LM,LM,L, let CCC consist of nested submodules Cin⊆CoutC_{\mathrm{in}}\subseteq C_{\mathrm{out}}Cin​⊆Cout​ of sizes LLL and MLMLML, with representatives rm∈Coutr_m\in C_{\mathrm{out}}rm​∈Cout​ giving each element of CoutC_{\mathrm{out}}Cout​ a unique coset index. Let y∈Gy\in Gy∈G, and let DDD be a code with M>0M>0M>0, an encoder em:G→Re_m:G\to\mathbb Rem​:G→R satisfying em(x)≥0e_m(x)\ge0em​(x)≥0 and ∑xem(x)=1\sum_xe_m(x)=1∑x​em​(x)=1 for each mmm, and decoder matrices Dm∈CB×BD_m\in\mathbb C^{B\times B}Dm​∈CB×B that are positive semidefinite and sum to the identity. This predicate means that

em(x)={L−1,x−(rm+y)∈Cin,0,otherwise,e_m(x)= \begin{cases} L^{-1},&x-(r_m+y)\in C_{\mathrm{in}},\\ 0,&\text{otherwise}, \end{cases}em​(x)={L−1,0,​x−(rm​+y)∈Cin​,otherwise,​

and that there exists a family of positive semidefinite matrices Fx∈CB×BF_x\in\mathbb C^{B\times B}Fx​∈CB×B, indexed by x∈Coutx\in C_{\mathrm{out}}x∈Cout​, such that

∑x∈CoutFx=IB,Dm=∑x∈Coutx−rm∈CinFxfor every m.\sum_{x\in C_{\mathrm{out}}}F_x=I_B,\qquad D_m=\sum_{\substack{x\in C_{\mathrm{out}}\\x-r_m\in C_{\mathrm{in}}}}F_x \quad\text{for every }m.x∈Cout​∑​Fx​=IB​,Dm​=x∈Cout​x−rm​∈Cin​​∑​Fx​for every m.

The decoder grouping condition uses x−rmx-r_mx−rm​, while the encoder condition uses x−(rm+y)x-(r_m+y)x−(rm​+y). No channel output family occurs in this predicate.

QAlgorithms.Papers.Independent.Advance50.P23.Imax

For finite types X,EX,EX,E, with decidable equality on EEE, and every family Wx∈CE×EW_x\in\mathbb C^{E\times E}Wx​∈CE×E, define H(A)=−Re⁡tr⁡[(t↦tlog⁡t)(A)]H(A)=-\operatorname{Re}\operatorname{tr}[(t\mapsto t\log t)(A)]H(A)=−Retr[(t↦tlogt)(A)], using natural logarithms and the real continuous functional calculus. The declaration defines the real supremum

sup⁡P:X→RP(x)≥0 ∀x, ∑xP(x)=1[H ⁣(∑xP(x)Wx)−∑xP(x)H(Wx)].\sup_{\substack{P:X\to\mathbb R\\P(x)\ge0\ \forall x,\ \sum_xP(x)=1}} \left[ H\!\left(\sum_x P(x)W_x\right)-\sum_x P(x)H(W_x) \right].P:X→RP(x)≥0 ∀x, ∑x​P(x)=1​sup​[H(x∑​P(x)Wx​)−x∑​P(x)H(Wx​)].

The matrices WxW_xWx​ are unrestricted; no density-matrix hypothesis or attainment assertion is included. Empty XXX is allowed, in which case no such PPP exists and the total real supremum of the empty set is zero.

QAlgorithms.Papers.Independent.Advance50.P23.Imix

For finite types X,EX,EX,E, with decidable equality on EEE, and every family Wx∈CE×EW_x\in\mathbb C^{E\times E}Wx​∈CE×E, let u(x)=∣X∣−1u(x)=|X|^{-1}u(x)=∣X∣−1, using the convention 0−1=00^{-1}=00−1=0, and let H(A)=−Re⁡tr⁡[(t↦tlog⁡t)(A)]H(A)=-\operatorname{Re}\operatorname{tr}[(t\mapsto t\log t)(A)]H(A)=−Retr[(t↦tlogt)(A)], with natural logarithms and the real continuous functional calculus. The declaration defines

H ⁣(∑xu(x)Wx)−∑xu(x)H(Wx).H\!\left(\sum_x u(x)W_x\right)-\sum_x u(x)H(W_x).H(x∑​u(x)Wx​)−x∑​u(x)H(Wx​).

There is no assumption that the matrices are Hermitian, positive, or normalized. Empty types are allowed; when XXX is empty the function uuu has no entries and the displayed expression is zero.

QAlgorithms.Papers.Independent.Advance50.P23.IsAdditiveCQ

For an additive commutative group GGG, a finite type EEE with decidable equality, and W:G→CE×EW:G\to\mathbb C^{E\times E}W:G→CE×E, this predicate means that there exist a matrix ρ\rhoρ and a projective unitary representation of the multiplicative version of GGG such that ρ\rhoρ is positive semidefinite with tr⁡ρ=1\operatorname{tr}\rho=1trρ=1, and

W(x)=UxρUx†(x∈G).W(x)=U_x\rho U_x^\dagger\qquad(x\in G).W(x)=Ux​ρUx†​(x∈G).

Explicitly, the representation consists of unitary matrices UxU_xUx​ and complex numbers ω(x,y)\omega(x,y)ω(x,y) satisfying ∣ω(x,y)∣=1|\omega(x,y)|=1∣ω(x,y)∣=1 and Ux+y=ω(x,y)UxUyU_{x+y}=\omega(x,y)U_xU_yUx+y​=ω(x,y)Ux​Uy​ for every x,y∈Gx,y\in Gx,y∈G; no further conditions on these phases are part of the representation structure. The group GGG need not be finite. If EEE is empty, the trace-one requirement cannot be satisfied.

QAlgorithms.Papers.Independent.Advance50.P23.NestedPair

For a ring KKK, a finite additive commutative group GGG equipped with a KKK-module structure, and natural numbers M,LM,LM,L, this structure consists of two KKK-submodules Cout,Cin⊆GC_{\mathrm{out}},C_{\mathrm{in}}\subseteq GCout​,Cin​⊆G and representatives rm∈Gr_m\in Grm​∈G for 0≤m<M0\le m<M0≤m<M, together with the requirements

Cin⊆Cout,∣Cin∣=L,∣Cout∣=ML,rm∈Cout,C_{\mathrm{in}}\subseteq C_{\mathrm{out}},\qquad |C_{\mathrm{in}}|=L,\qquad |C_{\mathrm{out}}|=ML,\qquad r_m\in C_{\mathrm{out}},Cin​⊆Cout​,∣Cin​∣=L,∣Cout​∣=ML,rm​∈Cout​,

and

∀x∈Cout,∃! m∈{0,…,M−1} such that x−rm∈Cin.\forall x\in C_{\mathrm{out}},\quad \exists!\,m\in\{0,\ldots,M-1\}\ \text{such that }x-r_m\in C_{\mathrm{in}}.∀x∈Cout​,∃!m∈{0,…,M−1} such that x−rm​∈Cin​.

The uniqueness concerns the representative index. Although M,LM,LM,L are supplied as arbitrary natural numbers, an instance of this structure cannot exist when either is zero: the inner submodule contains zero, and the representative condition must cover zero in the outer submodule.

QAlgorithms.Papers.Independent.Advance50.P23.PairwiseMap

For a finite type ZZZ, any types A,XA,XA,X, real functions PZ:Z→RP_Z:Z\to\mathbb RPZ​:Z→R and PX:X→RP_X:X\to\mathbb RPX​:X→R, and a family of functions fz:A→Xf_z:A\to Xfz​:A→X, this predicate is the conjunction

PZ(z)≥0 for all z,∑zPZ(z)=1,P_Z(z)\ge0\ \text{for all }z,\qquad \sum_zP_Z(z)=1,PZ​(z)≥0 for all z,z∑​PZ​(z)=1, ∑z∈Zfz(a)=xPZ(z)=PX(x)for every a∈A, x∈X,\sum_{\substack{z\in Z\\f_z(a)=x}}P_Z(z)=P_X(x) \quad\text{for every }a\in A,\ x\in X,z∈Zfz​(a)=x​∑​PZ​(z)=PX​(x)for every a∈A, x∈X,

and

∑z∈Zfz(a)=x, fz(b)=yPZ(z)=PX(x)PX(y)for every distinct a,b∈A and every x,y∈X.\sum_{\substack{z\in Z\\f_z(a)=x,\ f_z(b)=y}}P_Z(z) =P_X(x)P_X(y) \quad\text{for every distinct }a,b\in A\text{ and every }x,y\in X.z∈Zfz​(a)=x, fz​(b)=y​∑​PZ​(z)=PX​(x)PX​(y)for every distinct a,b∈A and every x,y∈X.

There is no separate probability-law requirement on PXP_XPX​. If AAA is empty, both displayed marginal and pair conditions are vacuous; if AAA has at most one element, the distinct-pair condition is vacuous. The predicate cannot hold when ZZZ is empty.

QAlgorithms.Papers.Independent.Advance50.P23.ReliableRate

For finite types X,BX,BX,B, with decidable equality on BBB, arbitrary matrices WB(x)∈CB×BW_B(x)\in\mathbb C^{B\times B}WB​(x)∈CB×B, a real number RRR, and a code sequence SSS, this predicate means

R≥0,lim⁡n→∞log⁡mnn=R,lim⁡n→∞[1−1mn∑j<mnRe⁡Tr⁡ ⁣(Dn,j∑x∈Xnpn,j(x) WB(n)(x))]=0,R\ge0,\qquad \lim_{n\to\infty}\frac{\log m_n}{n}=R,\qquad \lim_{n\to\infty} \left[ 1-\frac1{m_n}\sum_{j<m_n} \operatorname{Re}\operatorname{Tr}\!\left( D_{n,j}\sum_{x\in X^n}p_{n,j}(x)\,W_B^{(n)}(x) \right) \right]=0,R≥0,n→∞lim​nlogmn​​=R,n→∞lim​[1−mn​1​j<mn​∑​ReTr(Dn,j​x∈Xn∑​pn,j​(x)WB(n)​(x))]=0,

where WB(n)(x)u,v=∏i<nWB(xi)ui,viW_B^{(n)}(x)_{u,v}=\prod_{i<n}W_B(x_i)_{u_i,v_i}WB(n)​(x)u,v​=∏i<n​WB​(xi​)ui​,vi​​. The sequence supplies positive integers mnm_nmn​, nonnegative encoder weights pn,jp_{n,j}pn,j​ summing to 111, and positive semidefinite decoder matrices Dn,jD_{n,j}Dn,j​ summing to the identity, for every nnn. The logarithm is natural. No assumption says that the matrices WB(x)W_B(x)WB​(x) are density matrices. The sequences include n=0n=0n=0, with empty products equal to 111 and real division by zero equal to 000; the limits concern n→∞n\to\inftyn→∞.

QAlgorithms.Papers.Independent.Advance50.P23.Universal2

For a finite indexing type ZZZ, any type AAA, a finite type DDD, real weights PZ:Z→RP_Z:Z\to\mathbb RPZ​:Z→R, and functions fz:A→Df_z:A\to Dfz​:A→D, this predicate requires that every pair of distinct a,b∈Aa,b\in Aa,b∈A satisfy

∑z∈Zfz(a)=fz(b)PZ(z)≤1∣D∣.\sum_{\substack{z\in Z\\f_z(a)=f_z(b)}}P_Z(z)\le\frac1{|D|}.z∈Zfz​(a)=fz​(b)​∑​PZ​(z)≤∣D∣1​.

The weights are not required to be nonnegative or normalized, so the left side is a weighted sum without an assumed probability interpretation. If AAA has no distinct pair, the requirement is vacuous. Empty ZZZ is allowed and gives a zero sum; if DDD is empty, the reciprocal on the right is 000, using the total real inverse.

QAlgorithms.Papers.Independent.Advance50.P23.UsesLaw

For finite types X,BX,BX,B, with decidable equality on BBB, natural numbers M,LM,LM,L, any real function PPP on {0,…,L−1}\{0,\ldots,L-1\}{0,…,L−1}, and a wiretap code CCC with M>0M>0M>0 messages, this predicate means that there exists a table c:{0,…,L−1}×{0,…,M−1}→Xc:\{0,\ldots,L-1\}\times\{0,\ldots,M-1\}\to Xc:{0,…,L−1}×{0,…,M−1}→X such that its encoder satisfies

C.em(x)=∑0≤l<Lc(l,m)=xP(l)for every m,x.C.e_m(x)=\sum_{\substack{0\le l<L\\c(l,m)=x}}P(l) \quad\text{for every }m,x.C.em​(x)=0≤l<Lc(l,m)=x​∑​P(l)for every m,x.

Here the code already requires each C.emC.e_mC.em​ to be nonnegative and sum to one, and requires its decoder matrices to be positive semidefinite and sum to the identity. The predicate imposes no separate nonnegativity condition on PPP, although the displayed equality forces ∑lP(l)=1\sum_lP(l)=1∑l​P(l)=1. In particular, it cannot hold when L=0L=0L=0.

QAlgorithms.Papers.Independent.Advance50.P23.WiretapCode

For finite types XXX and BBB, with decidable equality on BBB, and a natural number MMM, a wiretap code consists of a proof that M>0M>0M>0, real numbers em(x)e_m(x)em​(x) for 0≤m<M0\le m<M0≤m<M and x∈Xx\in Xx∈X, and complex matrices DmD_mDm​ indexed by B×BB\times BB×B, satisfying

em(x)≥0,∑x∈Xem(x)=1,Dm⪰0,∑m=0M−1Dm=I.e_m(x)\ge0,\qquad \sum_{x\in X}e_m(x)=1,\qquad D_m\succeq0,\qquad \sum_{m=0}^{M-1}D_m=I.em​(x)≥0,x∈X∑​em​(x)=1,Dm​⪰0,m=0∑M−1​Dm​=I.

Thus each message has a probability distribution on XXX, and the decoder matrices form a positive operator valued measurement. No such code exists when M=0M=0M=0 or XXX is empty; nonemptiness of BBB is not assumed.

QAlgorithms.Papers.Independent.Advance50.P23.affinePairOutput

For a ring KKK, finite additive commutative groups D,GD,GD,G equipped with KKK-module structures, a natural number MMM, matrices Wg∈CE×EW_g\in\mathbb C^{E\times E}Wg​∈CE×E, and arbitrary real weights PA:D→RP_A:D\to\mathbb RPA​:D→R, let CCC consist of a submodule Cout⊆GC_{\mathrm{out}}\subseteq GCout​⊆G, an injective linear map ℓ:D→G\ell:D\to Gℓ:D→G with image in CoutC_{\mathrm{out}}Cout​, and representatives rm∈Coutr_m\in C_{\mathrm{out}}rm​∈Cout​ such that every element of CoutC_{\mathrm{out}}Cout​ has exactly one index mmm for which it can be written ℓ(a)+rm\ell(a)+r_mℓ(a)+rm​. For any shift y∈Gy\in Gy∈G, this defines

affinePairOutput⁡(m)=∑a∈DPA(a) Wℓ(a)+(rm+y)(0≤m<M),\operatorname{affinePairOutput}(m) =\sum_{a\in D}P_A(a)\,W_{\ell(a)+(r_m+y)} \qquad(0\le m<M),affinePairOutput(m)=a∈D∑​PA​(a)Wℓ(a)+(rm​+y)​(0≤m<M),

with the real weights embedded in C\mathbb CC. No nonnegativity or normalization is required of PAP_APA​, and no positivity or trace condition is required of WWW. Existence of the supplied structure forces M>0M>0M>0.

QAlgorithms.Papers.Independent.Advance50.P23.blockMu

For finite types X,EX,EX,E, with decidable equality on EEE, a natural number nnn, a real number sss, arbitrary matrices Wx∈CE×EW_x\in\mathbb C^{E\times E}Wx​∈CE×E, and an arbitrary function P:X→RP:X\to\mathbb RP:X→R, put

A=∑x∈XP(x) h1+s(Wx),ht(z)={0,z=0,zt,z≠0,A=\sum_{x\in X}P(x)\,h_{1+s}(W_x), \qquad h_t(z)= \begin{cases} 0,&z=0,\\ z^t,&z\ne0, \end{cases}A=x∈X∑​P(x)h1+s​(Wx​),ht​(z)={0,zt,​z=0,z=0,​

where ht(Wx)h_t(W_x)ht​(Wx​) uses the real continuous functional calculus and the total real-power function. Let A⊗nA^{\otimes n}A⊗n have entries ∏i=0n−1Aui,vi\prod_{i=0}^{n-1}A_{u_i,v_i}∏i=0n−1​Aui​,vi​​. For any matrix CCC, let λj(C)\lambda_j(C)λj​(C) be its eigenvalues in ascending order when CCC is Hermitian, and let every λj(C)\lambda_j(C)λj​(C) be 000 otherwise; write e(C)e(C)e(C) for the number of distinct values among these λj(C)\lambda_j(C)λj​(C), and let m+(C)m_+(C)m+​(C) be the smallest strictly positive such value, or 000 if none exists. Define

spread⁡(C)={log⁡ ⁣(max⁡jλj(C))−log⁡m+(C),if the index set is nonempty,0,otherwise.\operatorname{spread}(C)= \begin{cases} \log\!\bigl(\max_j\lambda_j(C)\bigr)-\log m_+(C),&\text{if the index set is nonempty},\\ 0,&\text{otherwise}. \end{cases}spread(C)={log(maxj​λj​(C))−logm+​(C),0,​if the index set is nonempty,otherwise.​

The declared value is

min⁡ ⁣{4+e(A⊗n), (4+⌈n spread⁡(A)⌉)es/2},\min\!\left\{ 4+\sqrt{e(A^{\otimes n})},\ \left(4+\sqrt{\left\lceil n\,\operatorname{spread}(A)\right\rceil}\right)e^{s/2} \right\},min{4+e(A⊗n)​, (4+⌈nspread(A)⌉​)es/2},

where the ceiling is an integer subsequently regarded as a real number. No distribution or density-matrix assumptions are imposed. All operations are total: log⁡0=0\log0=0log0=0, and the real square root of a negative number is 000. When n=0n=0n=0, the tensor matrix is the 1×11\times11×1 matrix with entry 111, so the value is min⁡{5,4es/2}\min\{5,4e^{s/2}\}min{5,4es/2}; empty XXX or EEE is also allowed.

QAlgorithms.Papers.Independent.Advance50.P23.bookLaw

For any type XXX, natural numbers M,LM,LM,L, real-valued function PX:X→RP_X:X\to\mathbb RPX​:X→R, and array c:{0,…,L−1}×{0,…,M−1}→Xc:\{0,\ldots,L-1\}\times\{0,\ldots,M-1\}\to Xc:{0,…,L−1}×{0,…,M−1}→X, this defines the real number

∏l=0L−1∏m=0M−1PX(c(l,m)).\prod_{l=0}^{L-1}\prod_{m=0}^{M-1}P_X(c(l,m)).l=0∏L−1​m=0∏M−1​PX​(c(l,m)).

There is no assumption that PXP_XPX​ is nonnegative or sums to one, and entries of ccc may repeat. If L=0L=0L=0 or M=0M=0M=0, the product equals 111.

QAlgorithms.Papers.Independent.Advance50.P23.classicalRenyi

For a finite type AAA, any real number α\alphaα, and any function P:A→RP:A\to\mathbb RP:A→R, this defines

Hα(P)={−∑a∈AP(a)log⁡P(a),α=1,log⁡ ⁣(∑a∈A{0,P(a)=0,P(a)α,P(a)≠0)1−α,α≠1.H_\alpha(P)= \begin{cases} -\displaystyle\sum_{a\in A}P(a)\log P(a),&\alpha=1,\\[2mm] \dfrac{\displaystyle\log\!\left( \sum_{a\in A} \begin{cases} 0,&P(a)=0,\\ P(a)^\alpha,&P(a)\neq0 \end{cases}\right)}{1-\alpha},&\alpha\neq1. \end{cases}Hα​(P)=⎩⎨⎧​−a∈A∑​P(a)logP(a),1−αlog(a∈A∑​{0,P(a)α,​P(a)=0,P(a)=0​)​,​α=1,α=1.​

No nonnegativity or normalization of PPP, and no restriction on α\alphaα, is required. Powers use the total real-power function, while zero entries are explicitly assigned contribution zero for every α\alphaα, including α=0\alpha=0α=0 and negative α\alphaα. The real logarithm satisfies log⁡0=0\log0=0log0=0 and takes the logarithm of the absolute value on negative arguments. An empty AAA is included and gives value zero.

QAlgorithms.Papers.Independent.Advance50.P23.conditionalRenyiReference

For finite types A,EA,EA,E with the required decidable equality, arbitrary s∈Rs\in\mathbb Rs∈R, arbitrary matrices Wa∈ME(C)W_a\in M_E(\mathbb C)Wa​∈ME​(C) and σ∈ME(C)\sigma\in M_E(\mathbb C)σ∈ME​(C), and an arbitrary real function PAP_APA​, form matrices on E×AE\times AE×A by

J(e,a),(e′,a′)={PA(a)Wa(e,e′)a=a′,0a≠a′,S(e,a),(e′,a′)={σ(e,e′)a=a′,0a≠a′.J_{(e,a),(e',a')}= \begin{cases}P_A(a)W_a(e,e')&a=a',\\0&a\ne a',\end{cases} \qquad S_{(e,a),(e',a')}= \begin{cases}\sigma(e,e')&a=a',\\0&a\ne a'.\end{cases}J(e,a),(e′,a′)​={PA​(a)Wa​(e,e′)0​a=a′,a=a′,​S(e,a),(e′,a′)​={σ(e,e′)0​a=a′,a=a′.​

This defines the extended-real quantity −Ds(J∥S)-D_s(J\|S)−Ds​(J∥S). To specify DsD_sDs​, let K(ρ,τ)K(\rho,\tau)K(ρ,τ) mean ker⁡τ⊆ker⁡ρ\ker\tau\subseteq\ker\rhokerτ⊆kerρ, let A[t]A^{[t]}A[t] be functional calculus with scalar function zero at zero and xtx^txt elsewhere, and let ℓ(x)=log⁡x\ell(x)=\log xℓ(x)=logx for x>0x>0x>0 and −∞-\infty−∞ otherwise. At s=0s=0s=0, D0(ρ∥τ)D_0(\rho\|\tau)D0​(ρ∥τ) is Re⁡tr⁡[cfc⁡(x↦xlog⁡x)(ρ)−ρ cfc⁡(log⁡)(τ)]\operatorname{Re}\operatorname{tr}[\operatorname{cfc}(x\mapsto x\log x)(\rho)-\rho\,\operatorname{cfc}(\log)(\tau)]Retr[cfc(x↦xlogx)(ρ)−ρcfc(log)(τ)] embedded in the extended reals when K(ρ,τ)K(\rho,\tau)K(ρ,τ) holds, and +∞+\infty+∞ otherwise; at s>0s>0s>0 it is +∞+\infty+∞ if K(ρ,τ)K(\rho,\tau)K(ρ,τ) fails; in every remaining case with s≠0s\ne0s=0, it is

s−1ℓ ⁣(Re⁡tr⁡[ρ[1+s]τ[−s]]).s^{-1}\ell\!\left(\operatorname{Re}\operatorname{tr} [\rho^{[1+s]}\tau^{[-s]}]\right).s−1ℓ(Retr[ρ[1+s]τ[−s]]).

No density or probability-law hypotheses are imposed, and the reference blocks are σ\sigmaσ without factors PA(a)P_A(a)PA​(a). In particular, positive sss with failed support inclusion gives conditional reference value −∞-\infty−∞.

QAlgorithms.Papers.Independent.Advance50.P23.constrainedPrivate

For finite types X,B,EX,B,EX,B,E, with decidable equality on B,EB,EB,E, any natural number nnn, real number RRR, and arbitrary matrix families WB,WEW_B,W_EWB​,WE​, define W(n)(x)u,v=∏i<nW(xi)ui,viW^{(n)}(x)_{u,v}=\prod_{i<n}W(x_i)_{u_i,v_i}W(n)(x)u,v​=∏i<n​W(xi​)ui​,vi​​ and H(A)=−Re⁡Tr⁡(f(A))H(A)=-\operatorname{Re}\operatorname{Tr}(f(A))H(A)=−ReTr(f(A)), where f(t)=tlog⁡tf(t)=t\log tf(t)=tlogt uses real continuous functional calculus and natural logarithms. Consider every positive integer mmm, probability law a:{0,…,m−1}→Ra:\{0,\ldots,m-1\}\to\mathbb Ra:{0,…,m−1}→R, and collection of probability laws pvp_vpv​ on XnX^nXn; thus all these weights are nonnegative and each law sums to 111. Put

VB,v=∑xpv(x)WB(n)(x),VE,v=∑xpv(x)WE(n)(x),χB=H ⁣(∑vavVB,v)−∑vavH(VB,v),χE=H ⁣(∑vavVE,v)−∑vavH(VE,v).V_{B,v}=\sum_xp_v(x)W_B^{(n)}(x),\quad V_{E,v}=\sum_xp_v(x)W_E^{(n)}(x),\quad \chi_B=H\!\left(\sum_va_vV_{B,v}\right)-\sum_va_vH(V_{B,v}),\quad \chi_E=H\!\left(\sum_va_vV_{E,v}\right)-\sum_va_vH(V_{E,v}).VB,v​=x∑​pv​(x)WB(n)​(x),VE,v​=x∑​pv​(x)WE(n)​(x),χB​=H(v∑​av​VB,v​)−v∑​av​H(VB,v​),χE​=H(v∑​av​VE,v​)−v∑​av​H(VE,v​).

The declared value is the extended real supremum of the embedded real numbers (χB−χE)/n(\chi_B-\chi_E)/n(χB​−χE​)/n over precisely those choices satisfying nR≤χBnR\le\chi_BnR≤χB​. No decoder is required, and neither output family is assumed to consist of density matrices. There is no sign restriction on RRR. At n=0n=0n=0, empty products are 111, the constraint is satisfied and the value is 000, using real division by zero 000. An empty admissible set has supremum −∞-\infty−∞, and an unbounded one has supremum +∞+\infty+∞.

QAlgorithms.Papers.Independent.Advance50.P23.cosetOutput

For a ring KKK, a finite additive commutative group GGG with a KKK-module structure, an output index type EEE, any matrix-valued function W:G→CE×EW:G\to\mathbb C^{E\times E}W:G→CE×E, a submodule C⊆GC\subseteq GC⊆G, and y∈Gy\in Gy∈G, this defines

1∣C∣∑x∈CW(x+y).\frac1{|C|}\sum_{x\in C}W(x+y).∣C∣1​x∈C∑​W(x+y).

The real reciprocal 1/∣C∣1/|C|1/∣C∣ is embedded into C\mathbb CC and used for matrix scalar multiplication. No positivity or trace condition is imposed on WWW. The finite submodule CCC contains zero, so its cardinality is never zero; for C={0}C=\{0\}C={0}, the value is W(y)W(y)W(y).

QAlgorithms.Papers.Independent.Advance50.P23.cqJoint

For types X,EX,EX,E, a family W:X→CE×EW:X\to\mathbb C^{E\times E}W:X→CE×E, and an arbitrary function P:X→RP:X\to\mathbb RP:X→R, this defines a complex matrix indexed by E×XE\times XE×X, with entries

J(e,x),(f,y)={P(x) Wx(e,f),x=y,0,x≠y.J_{(e,x),(f,y)} = \begin{cases} P(x)\,W_x(e,f),&x=y,\\ 0,&x\ne y. \end{cases}J(e,x),(f,y)​={P(x)Wx​(e,f),0,​x=y,x=y.​

The coefficient P(x)P(x)P(x) is cast to a complex number. No finiteness, positivity, trace, or probability-law condition is part of this definition; if either indexing type is empty, the matrix has no entries.

QAlgorithms.Papers.Independent.Advance50.P23.cqReference

For types X,EX,EX,E, a complex matrix σ∈CE×E\sigma\in\mathbb C^{E\times E}σ∈CE×E, and an arbitrary function P:X→RP:X\to\mathbb RP:X→R, this defines the matrix indexed by E×XE\times XE×X whose entries are

R(e,x),(f,y)={P(x) σ(e,f),x=y,0,x≠y.R_{(e,x),(f,y)} = \begin{cases} P(x)\,\sigma(e,f),&x=y,\\ 0,&x\ne y. \end{cases}R(e,x),(f,y)​={P(x)σ(e,f),0,​x=y,x=y.​

Here P(x)P(x)P(x) is regarded as a complex scalar. No positivity or normalization of σ\sigmaσ or PPP is required, and no finiteness assumption is needed for this entrywise definition. Empty indexing types yield a matrix with no entries.

QAlgorithms.Papers.Independent.Advance50.P23.d1max

For finite types X,EX,EX,E, with decidable equality on EEE, and every family Wx∈CE×EW_x\in\mathbb C^{E\times E}Wx​∈CE×E, the declaration defines the real supremum

sup⁡P:X→RP(x)≥0 ∀x, ∑xP(x)=1∑xP(x)Re⁡tr⁡(Wx−W‾P)†(Wx−W‾P),W‾P=∑xP(x)Wx,\sup_{\substack{P:X\to\mathbb R\\P(x)\ge0\ \forall x,\ \sum_xP(x)=1}} \sum_x P(x)\operatorname{Re}\operatorname{tr} \sqrt{(W_x-\overline W_P)^\dagger(W_x-\overline W_P)}, \qquad \overline W_P=\sum_x P(x)W_x,P:X→RP(x)≥0 ∀x, ∑x​P(x)=1​sup​x∑​P(x)Retr(Wx​−WP​)†(Wx​−WP​)​,WP​=x∑​P(x)Wx​,

with matrix square roots interpreted through the real continuous functional calculus. No density-matrix assumption on WxW_xWx​, and no assertion that the supremum is attained, is included. If XXX is empty there are no admissible probability laws, and the total real supremum of the empty set is zero.

QAlgorithms.Papers.Independent.Advance50.P23.d1mix

For finite types X,EX,EX,E, with decidable equality on EEE, and every family Wx∈CE×EW_x\in\mathbb C^{E\times E}Wx​∈CE×E, let u(x)=∣X∣−1u(x)=|X|^{-1}u(x)=∣X∣−1, with 0−1=00^{-1}=00−1=0, and W‾=∑xu(x)Wx\overline W=\sum_x u(x)W_xW=∑x​u(x)Wx​. The declaration defines

∑xu(x)Re⁡tr⁡(Wx−W‾)†(Wx−W‾),\sum_x u(x)\operatorname{Re}\operatorname{tr} \sqrt{(W_x-\overline W)^\dagger(W_x-\overline W)},x∑​u(x)Retr(Wx​−W)†(Wx​−W)​,

where the matrix square root uses the real continuous functional calculus. The matrices need not be Hermitian, positive, or normalized. Empty indexing types are included and give value zero.

QAlgorithms.Papers.Independent.Advance50.P23.decodedConditionalEntropy

For finite types X,BX,BX,B with decidable equality, any matrix-valued function W:X→CB×BW:X\to\mathbb C^{B\times B}W:X→CB×B, and a code CCC with a positive number MMM of messages, let Gm:X→RG_m:X\to\mathbb RGm​:X→R be its encoder laws, so Gm(x)≥0G_m(x)\ge0Gm​(x)≥0 and ∑xGm(x)=1\sum_xG_m(x)=1∑x​Gm​(x)=1, and let DmD_mDm​ be its decoder effects, so every DmD_mDm​ is positive semidefinite and ∑mDm=IB\sum_mD_m=I_B∑m​Dm​=IB​. Put ρm=∑xGm(x)Wx\rho_m=\sum_xG_m(x)W_xρm​=∑x​Gm​(x)Wx​. If every ρm\rho_mρm​ is positive semidefinite with trace one, define

P(i,j)=1MRe⁡tr⁡(Djρi),PJ(j)=∑iP(i,j),Hnat(q)=−∑zq(z)log⁡q(z).P(i,j)=\frac1M\operatorname{Re}\operatorname{tr}(D_j\rho_i), \qquad P_J(j)=\sum_iP(i,j), \qquad H_{\mathrm{nat}}(q)=-\sum_zq(z)\log q(z).P(i,j)=M1​Retr(Dj​ρi​),PJ​(j)=i∑​P(i,j),Hnat​(q)=−z∑​q(z)logq(z).

Then the defined value is Hnat(P)−Hnat(PJ)H_{\mathrm{nat}}(P)-H_{\mathrm{nat}}(P_J)Hnat​(P)−Hnat​(PJ​). If even one ρm\rho_mρm​ fails the density-matrix condition, the defined value is 000. There is no assumption that the individual matrices WxW_xWx​ are density matrices; the branch condition concerns their encoded averages. Natural logarithms are used, with log⁡0=0\log0=0log0=0, and M=0M=0M=0 cannot occur because the code includes the requirement M>0M>0M>0.

QAlgorithms.Papers.Independent.Advance50.P23.eigenCount

For every finite type EEE with decidable equality and every complex matrix σ∈CE×E\sigma\in\mathbb C^{E\times E}σ∈CE×E, form a real sequence indexed by 0,…,∣E∣−10,\ldots,|E|-10,…,∣E∣−1: when σ\sigmaσ is Hermitian, this is its eigenvalue sequence in ascending order, including multiplicities; otherwise every entry is defined to be zero. The declaration defines the number of distinct values in this sequence, so repeated eigenvalues are counted once and zero is counted if it occurs. No Hermitian or positivity hypothesis is required. If EEE is empty the count is zero; if EEE is nonempty and σ\sigmaσ is not Hermitian, the count is one.

QAlgorithms.Papers.Independent.Advance50.P23.ensembleInfo

For finite types X,EX,EX,E, with decidable equality on EEE, natural numbers M,LM,LM,L, arbitrary matrices Wx∈CE×EW_x\in\mathbb C^{E\times E}Wx​∈CE×E, and arbitrary real functions PX:X→RP_X:X\to\mathbb RPX​:X→R, PL:{0,…,L−1}→RP_L:\{0,\ldots,L-1\}\to\mathbb RPL​:{0,…,L−1}→R, consider every table c:{0,…,L−1}×{0,…,M−1}→Xc:\{0,\ldots,L-1\}\times\{0,\ldots,M-1\}\to Xc:{0,…,L−1}×{0,…,M−1}→X. Define

bc=∏l<L∏m<MPX(cl,m),Vc,m=∑x∈X(∑l<Lcl,m=xPL(l))Wx,V‾c=1M∑m<MVc,m.b_c=\prod_{l<L}\prod_{m<M}P_X(c_{l,m}),\qquad V_{c,m}=\sum_{x\in X} \left(\sum_{\substack{l<L\\c_{l,m}=x}}P_L(l)\right)W_x,\qquad \overline V_c=\frac1M\sum_{m<M}V_{c,m}.bc​=l<L∏​m<M∏​PX​(cl,m​),Vc,m​=x∈X∑​​l<Lcl,m​=x​∑​PL​(l)​Wx​,Vc​=M1​m<M∑​Vc,m​.

The declared value is

∑cbc[H(V‾c)−1M∑m<MH(Vc,m)],H(A)=−Re⁡Tr⁡(f(A)),f(t)=tlog⁡t,\sum_c b_c\left[H(\overline V_c)-\frac1M\sum_{m<M}H(V_{c,m})\right], \qquad H(A)=-\operatorname{Re}\operatorname{Tr}(f(A)),\quad f(t)=t\log t,c∑​bc​[H(Vc​)−M1​m<M∑​H(Vc,m​)],H(A)=−ReTr(f(A)),f(t)=tlogt,

using real continuous functional calculus and natural logarithms. Neither weight function is assumed to be a probability law, and the matrices are not assumed to be density matrices. Empty products equal 111, empty sums equal 000, and 1/0=01/0=01/0=0; in particular, the value is 000 when M=0M=0M=0 or L=0L=0L=0.

QAlgorithms.Papers.Independent.Advance50.P23.ensembleTrace

For finite types X,EX,EX,E, with decidable equality on EEE, natural numbers M,LM,LM,L, an arbitrary matrix family W:X→CE×EW:X\to\mathbb C^{E\times E}W:X→CE×E, and arbitrary real functions PXP_XPX​ on XXX and PLP_LPL​ on {0,…,L−1}\{0,\ldots,L-1\}{0,…,L−1}, consider all tables c:{0,…,L−1}×{0,…,M−1}→Xc:\{0,\ldots,L-1\}\times\{0,\ldots,M-1\}\to Xc:{0,…,L−1}×{0,…,M−1}→X. Put

bc=∏l<L∏m<MPX(cl,m),Vc,m=∑x∈X(∑l<Lcl,m=xPL(l))Wx,V‾c=1M∑m<MVc,m.b_c=\prod_{l<L}\prod_{m<M}P_X(c_{l,m}),\qquad V_{c,m}=\sum_{x\in X} \left(\sum_{\substack{l<L\\c_{l,m}=x}}P_L(l)\right)W_x,\qquad \overline V_c=\frac1M\sum_{m<M}V_{c,m}.bc​=l<L∏​m<M∏​PX​(cl,m​),Vc,m​=x∈X∑​​l<Lcl,m​=x​∑​PL​(l)​Wx​,Vc​=M1​m<M∑​Vc,m​.

This defines

∑cbc 1M∑m<M∥Vc,m−V‾c∥1,∥A∥1=Re⁡Tr⁡A†A,\sum_c b_c\,\frac1M\sum_{m<M}\|V_{c,m}-\overline V_c\|_1, \qquad \|A\|_1=\operatorname{Re}\operatorname{Tr}\sqrt{A^\dagger A},c∑​bc​M1​m<M∑​∥Vc,m​−Vc​∥1​,∥A∥1​=ReTrA†A​,

where the matrix square root is given by real continuous functional calculus. There is no factor 1/21/21/2 in this expression. Neither weight function is required to be nonnegative or normalized, and WxW_xWx​ need not be a density matrix. Empty products are 111, empty sums are 000, and division by zero is 000; consequently the value is 000 when M=0M=0M=0 or L=0L=0L=0.

QAlgorithms.Papers.Independent.Advance50.P23.equivocationFunction

For finite types X,B,EX,B,EX,B,E, with decidable equality on B,EB,EB,E, a real number RRR, and arbitrary matrix families WB,WEW_B,W_EWB​,WE​, this defines lim inf⁡n→∞cn\liminf_{n\to\infty}c_nliminfn→∞​cn​ in the extended reals. Here cnc_ncn​ is the extended real supremum described explicitly as follows: choose a positive integer mmm, nonnegative weights ava_vav​ summing to 111, and, for each v<mv<mv<m, nonnegative weights pv(x)p_v(x)pv​(x) on XnX^nXn summing to 111; set

VB,v=∑xpv(x)WB(n)(x),VE,v=∑xpv(x)WE(n)(x),χ(a,V)=H ⁣(∑vavVv)−∑vavH(Vv),V_{B,v}=\sum_xp_v(x)W_B^{(n)}(x),\qquad V_{E,v}=\sum_xp_v(x)W_E^{(n)}(x), \qquad \chi(a,V)=H\!\left(\sum_va_vV_v\right)-\sum_va_vH(V_v),VB,v​=x∑​pv​(x)WB(n)​(x),VE,v​=x∑​pv​(x)WE(n)​(x),χ(a,V)=H(v∑​av​Vv​)−v∑​av​H(Vv​),

where W(n)(x)u,v=∏i<nW(xi)ui,viW^{(n)}(x)_{u,v}=\prod_{i<n}W(x_i)_{u_i,v_i}W(n)(x)u,v​=∏i<n​W(xi​)ui​,vi​​ and H(A)=−Re⁡Tr⁡(f(A))H(A)=-\operatorname{Re}\operatorname{Tr}(f(A))H(A)=−ReTr(f(A)), with f(t)=tlog⁡tf(t)=t\log tf(t)=tlogt evaluated by real continuous functional calculus. Then cnc_ncn​ is the supremum of the embedded real values (χ(a,VB)−χ(a,VE))/n\bigl(\chi(a,V_B)-\chi(a,V_E)\bigr)/n(χ(a,VB​)−χ(a,VE​))/n subject to nR≤χ(a,VB)nR\le\chi(a,V_B)nR≤χ(a,VB​). Natural logarithms are used, no decoder or density-matrix condition is imposed, and RRR may have either sign. Empty admissible sets give cn=−∞c_n=-\inftycn​=−∞, unbounded sets give cn=+∞c_n=+\inftycn​=+∞, and n=0n=0n=0 is included with total division by zero and c0=0c_0=0c0​=0; that initial value does not affect the limit inferior.

QAlgorithms.Papers.Independent.Advance50.P23.expectE

For a finite type ZZZ, any real function PZ:Z→RP_Z:Z\to\mathbb RPZ​:Z→R, and any function f:Z→[−∞,+∞]f:Z\to[-\infty,+\infty]f:Z→[−∞,+∞], this definition is the extended-real finite sum

∑z∈ZPZ(z)f(z),\sum_{z\in Z}P_Z(z)f(z),z∈Z∑​PZ​(z)f(z),

with each real coefficient embedded in the extended real numbers and multiplication and addition taken there. No nonnegativity or normalization is assumed for PZP_ZPZ​, and infinite values of fff are allowed. The sum is zero when ZZZ is empty, and a zero coefficient times either infinity is zero under these operations.

QAlgorithms.Papers.Independent.Advance50.P23.expectExp

For a finite indexing type ZZZ, any real weights PZ:Z→RP_Z:Z\to\mathbb RPZ​:Z→R, any s∈Rs\in\mathbb Rs∈R, and any extended-real-valued function f:Z→[−∞,∞]f:Z\to[-\infty,\infty]f:Z→[−∞,∞], this defines

∑z∈Zmax⁡{PZ(z),0} exp⁡ ⁣(sf(z))\sum_{z\in Z}\max\{P_Z(z),0\}\,\exp\!\bigl(s f(z)\bigr)z∈Z∑​max{PZ​(z),0}exp(sf(z))

as a nonnegative extended real number. Multiplication inside the exponential uses extended-real arithmetic, and the extended exponential sends −∞-\infty−∞ to 000 and +∞+\infty+∞ to +∞+\infty+∞. No nonnegativity or normalization of PZP_ZPZ​ is assumed: negative weights are replaced by zero. The empty sum is zero; when s=0s=0s=0, extended-real multiplication gives 0f(z)=00f(z)=00f(z)=0, including for infinite f(z)f(z)f(z), so the value is ∑zmax⁡{PZ(z),0}\sum_z\max\{P_Z(z),0\}∑z​max{PZ​(z),0}.

QAlgorithms.Papers.Independent.Advance50.P23.exponentG

For finite types X,EX,EX,E, with decidable equality on EEE, any R∈RR\in\mathbb RR∈R, matrices Wx∈CE×EW_x\in\mathbb C^{E\times E}Wx​∈CE×E, and real weights P:X→RP:X\to\mathbb RP:X→R, this defines

sup⁡{s2(R−Js):0≤s≤1},J0=H(W‾)−∑xP(x)H(Wx),Js=1+sslog⁡ ⁣(Re⁡tr⁡(∑xP(x)Wx[1+s])[1/(1+s)])(0<s≤1).\sup\left\{\frac{s}{2}(R-J_s):0\le s\le1\right\}, \qquad J_0=H(\overline W)-\sum_xP(x)H(W_x),\quad J_s=\frac{1+s}{s}\log\!\left(\operatorname{Re}\operatorname{tr} \left(\sum_xP(x)W_x^{[1+s]}\right)^{[1/(1+s)]}\right)\quad(0<s\le1).sup{2s​(R−Js​):0≤s≤1},J0​=H(W)−x∑​P(x)H(Wx​),Js​=s1+s​log​Retr(x∑​P(x)Wx[1+s]​)[1/(1+s)]​(0<s≤1).

Here W‾=∑xP(x)Wx\overline W=\sum_xP(x)W_xW=∑x​P(x)Wx​, H(A)=−Re⁡tr⁡h(A)H(A)=-\operatorname{Re}\operatorname{tr}h(A)H(A)=−Retrh(A) for h(u)=ulog⁡uh(u)=u\log uh(u)=ulogu, and A[t]A^{[t]}A[t] is continuous functional calculus with scalar function equal to 000 at u=0u=0u=0 and to the real power utu^tut otherwise. Neither PPP nor WWW is required to describe probabilities or density matrices. The logarithm and functional calculus use their total Lean definitions, including log⁡0=0\log0=0log0=0. The defining set contains 000; attainment is not asserted, and the total real supremum returns 000 if the set is unbounded above. Empty finite types are included.

QAlgorithms.Papers.Independent.Advance50.P23.exponentR

For finite types X,EX,EX,E, with decidable equality on EEE, any R∈RR\in\mathbb RR∈R, matrices Wx∈CE×EW_x\in\mathbb C^{E\times E}Wx​∈CE×E indexed by x∈Xx\in Xx∈X, and real weights P:X→RP:X\to\mathbb RP:X→R, this defines

sup⁡{s(R−Is):0≤s≤1},I0=H(W‾)−∑xP(x)H(Wx),Is=log⁡ ⁣(Re⁡tr⁡∑xP(x)Wx[1+s]W‾[−s])s(0<s≤1),\sup\{s(R-I_s):0\le s\le1\}, \qquad I_0=H(\overline W)-\sum_xP(x)H(W_x),\quad I_s=\frac{\log\!\left(\operatorname{Re}\operatorname{tr} \sum_xP(x)W_x^{[1+s]}\overline W^{[-s]}\right)}s\quad(0<s\le1),sup{s(R−Is​):0≤s≤1},I0​=H(W)−x∑​P(x)H(Wx​),Is​=slog(Retr∑x​P(x)Wx[1+s]​W[−s])​(0<s≤1),

where W‾=∑xP(x)Wx\overline W=\sum_xP(x)W_xW=∑x​P(x)Wx​, H(A)=−Re⁡tr⁡h(A)H(A)=-\operatorname{Re}\operatorname{tr}h(A)H(A)=−Retrh(A) with h(u)=ulog⁡uh(u)=u\log uh(u)=ulogu, and A[t]A^{[t]}A[t] denotes continuous functional calculus with scalar function u↦0u\mapsto0u↦0 when u=0u=0u=0, and u↦utu\mapsto u^tu↦ut otherwise, using real powers. No probability-law, positivity, or density-matrix assumptions are imposed. All logarithms are Lean’s total real logarithm, including log⁡0=0\log0=0log0=0; the functional calculus is also total. The supremum is a real supremum, not an asserted maximum; its defining set contains 000, and the total real supremum operation returns 000 if that set is unbounded above. Empty finite types are permitted.

QAlgorithms.Papers.Independent.Advance50.P23.gallagerInfo

For finite types X,EX,EX,E, with decidable equality on EEE, any real sss, any family of complex matrices Wx∈CE×EW_x\in\mathbb C^{E\times E}Wx​∈CE×E, and any function P:X→RP:X\to\mathbb RP:X→R, define fr(t)=0f_r(t)=0fr​(t)=0 when t=0t=0t=0 and fr(t)=trf_r(t)=t^rfr​(t)=tr otherwise, using total real powers, and put Bs=∑xP(x)f1+s(Wx)B_s=\sum_x P(x)f_{1+s}(W_x)Bs​=∑x​P(x)f1+s​(Wx​) and Zs=Re⁡tr⁡f1/(1+s)(Bs)Z_s=\operatorname{Re}\operatorname{tr}f_{1/(1+s)}(B_s)Zs​=Retrf1/(1+s)​(Bs​), where matrix functions use the real continuous functional calculus. Writing H(A)=−Re⁡tr⁡[(t↦tlog⁡t)(A)]H(A)=-\operatorname{Re}\operatorname{tr}[(t\mapsto t\log t)(A)]H(A)=−Retr[(t↦tlogt)(A)], the declaration defines

{H ⁣(∑xP(x)Wx)−∑xP(x)H(Wx),s=0,1+sslog⁡Zs,s≠0.\begin{cases} H\!\left(\sum_x P(x)W_x\right)-\sum_x P(x)H(W_x),&s=0,\\[2pt] \dfrac{1+s}{s}\log Z_s,&s\ne0. \end{cases}⎩⎨⎧​H(∑x​P(x)Wx​)−∑x​P(x)H(Wx​),s1+s​logZs​,​s=0,s=0.​

No positivity, normalization, or Hermitian assumptions are imposed on PPP or WWW. Logarithms are natural and total, with log⁡0=0\log0=0log0=0; division by zero is zero, including the exponent 1/(1+s)1/(1+s)1/(1+s) at s=−1s=-1s=−1. Empty finite indexing types are allowed.

QAlgorithms.Papers.Independent.Advance50.P23.gallagerTrace

For finite types X,EX,EX,E, with decidable equality on EEE, s∈Rs\in\mathbb Rs∈R, arbitrary real weights P:X→RP:X\to\mathbb RP:X→R, and arbitrary matrices Wx∈CE×EW_x\in\mathbb C^{E\times E}Wx​∈CE×E, write A[t]A^{[t]}A[t] for real continuous functional calculus with scalar function 000 at zero and total real power utu^tut elsewhere. This defines the real number

Re⁡tr⁡ ⁣((∑x∈XP(x) Wx[1+s])[ 1/(1+s) ]).\operatorname{Re}\operatorname{tr}\!\left( \left(\sum_{x\in X}P(x)\,W_x^{[1+s]}\right)^{[\,1/(1+s)\,]} \right).Retr​(x∈X∑​P(x)Wx[1+s]​)[1/(1+s)]​.

No density-matrix, probability-law, or support hypothesis is imposed. Division is total, so at s=−1s=-1s=−1 both displayed exponents are 000; these functional-calculus zeroth powers still assign zero to zero spectral values. If XXX or EEE is empty, the value is 000.

QAlgorithms.Papers.Independent.Advance50.P23.hashedDistance

For finite types A,E,DA,E,DA,E,D, with the decidable equality required for the matrix operations, any matrix family W:A→ME(C)W:A\to M_E(\mathbb C)W:A→ME​(C), any real function PA:A→RP_A:A\to\mathbb RPA​:A→R, and any function f:A→Df:A\to Df:A→D, this defines

∑d∈D∥∑a∈Af(a)=dPA(a)Wa−1∣D∣∑a∈APA(a)Wa∥1,∥T∥1=Re⁡tr⁡T†T.\sum_{d\in D} \left\| \sum_{\substack{a\in A\\f(a)=d}}P_A(a)W_a -\frac1{|D|}\sum_{a\in A}P_A(a)W_a \right\|_1, \qquad \|T\|_1=\operatorname{Re}\operatorname{tr}\sqrt{T^\dagger T}.d∈D∑​​a∈Af(a)=d​∑​PA​(a)Wa​−∣D∣1​a∈A∑​PA​(a)Wa​​1​,∥T∥1​=RetrT†T​.

There is no assumption that PAP_APA​ is a probability law or that the matrices are density matrices, and no nonemptiness assumption is imposed. If DDD is empty, the outer sum is 000; the inverse of its cardinality is also defined as 000.

QAlgorithms.Papers.Independent.Advance50.P23.hayashiBalanced

For finite types A,DA,DA,D and a function f:A→Df:A\to Df:A→D, this predicate requires, for every d∈Dd\in Dd∈D, the natural-number equality

∣{a∈A:f(a)=d}∣⋅∣D∣=∣A∣.|\{a\in A:f(a)=d\}|\cdot|D|=|A|.∣{a∈A:f(a)=d}∣⋅∣D∣=∣A∣.

Thus the condition is stated by multiplication, without dividing by ∣D∣|D|∣D∣. No nonemptiness is assumed: if AAA is empty, every required equality is 0=00=00=0; if DDD is empty, the universal condition is vacuous, with the supplied function necessarily forcing AAA to be empty as well.

QAlgorithms.Papers.Independent.Advance50.P23.hayashiCodeError

For finite types X,BX,BX,B, with decidable equality on BBB, a natural number MMM, an arbitrary family WxW_xWx​ of complex B×BB\times BB×B matrices, and a wiretap code CCC, this definition gives

∑m=0M−11M[1−Re⁡tr⁡ ⁣(Dm∑x∈Xem(x)Wx)].\sum_{m=0}^{M-1}\frac1M \left[ 1-\operatorname{Re}\operatorname{tr}\!\left( D_m\sum_{x\in X}e_m(x)W_x \right) \right].m=0∑M−1​M1​[1−Retr(Dm​x∈X∑​em​(x)Wx​)].

The code requires M>0M>0M>0, nonnegative encoder entries with ∑xem(x)=1\sum_xe_m(x)=1∑x​em​(x)=1 for each message, and positive semidefinite decoder matrices with ∑mDm=I\sum_mD_m=I∑m​Dm​=I. Hence this is the uniform average of the displayed message errors, with no zero-message case. The matrices WxW_xWx​ need not be density matrices, and no [0,1][0,1][0,1] bound is part of the definition.

QAlgorithms.Papers.Independent.Advance50.P23.hayashiCompose

For types A,EA,EA,E, a finite type XXX, a family W:X→CE×EW:X\to\mathbb C^{E\times E}W:X→CE×E, and arbitrary real coefficients G:A×X→RG:A\times X\to\mathbb RG:A×X→R, this defines the matrix-valued function

a⟼∑x∈XG(a,x) Wx,a\longmapsto \sum_{x\in X}G(a,x)\,W_x,a⟼x∈X∑​G(a,x)Wx​,

where each real coefficient is regarded as a complex scalar. Neither positivity or normalization of WxW_xWx​ nor nonnegativity or normalization of G(a,⋅)G(a,\cdot)G(a,⋅) is assumed. If XXX is empty, the resulting matrix is zero for every aaa.

QAlgorithms.Papers.Independent.Advance50.P23.hayashiConditionalRenyi

For arbitrary finite types D,FD,FD,F, a real number α\alphaα, and arbitrary real functions PZ:F→RP_Z:F\to\mathbb RPZ​:F→R and P:F→D→RP:F\to D\to\mathbb RP:F→D→R, this defines

Hα(P∣PZ)={−∑z∈FPZ(z)∑x∈DP(z,x)log⁡P(z,x),α=1,log⁡ ⁣(∑z∈FPZ(z)∑x∈D{0,P(z,x)=0,P(z,x)α,P(z,x)≠0)1−α,α≠1.H_\alpha(P\mid P_Z)= \begin{cases} -\displaystyle\sum_{z\in F}P_Z(z)\sum_{x\in D}P(z,x)\log P(z,x),&\alpha=1,\\[2mm] \dfrac{\displaystyle\log\!\left( \sum_{z\in F}P_Z(z)\sum_{x\in D} \begin{cases} 0,&P(z,x)=0,\\ P(z,x)^\alpha,&P(z,x)\neq0 \end{cases}\right)}{1-\alpha},&\alpha\neq1. \end{cases}Hα​(P∣PZ​)=⎩⎨⎧​−z∈F∑​PZ​(z)x∈D∑​P(z,x)logP(z,x),1−αlog(z∈F∑​PZ​(z)x∈D∑​{0,P(z,x)α,​P(z,x)=0,P(z,x)=0​)​,​α=1,α=1.​

The powers in the second branch are the total real-power function used by the code. In particular, zero entries contribute zero even when α=0\alpha=0α=0 or α<0\alpha<0α<0. No probability-law, nonnegativity, or restriction on α\alphaα is assumed. The real logarithm is total, with log⁡0=0\log0=0log0=0 and log⁡r=log⁡∣r∣\log r=\log|r|logr=log∣r∣ for negative rrr. Either finite type may be empty; if either is empty, the defined value is zero.

QAlgorithms.Papers.Independent.Advance50.P23.hayashiIsCQ

For a type XXX, a finite type EEE, and a family W:X→CE×EW:X\to\mathbb C^{E\times E}W:X→CE×E, this predicate means that every WxW_xWx​ is positive semidefinite and has complex trace exactly 111. No condition is imposed on how WxW_xWx​ depends on xxx. If XXX is empty, the predicate holds vacuously; if EEE is empty and XXX is nonempty, it cannot hold, since an empty matrix has trace 000.

QAlgorithms.Papers.Independent.Advance50.P23.hayashiIsStochastic

For a type AAA, a finite type XXX, and a function G:A×X→RG:A\times X\to\mathbb RG:A×X→R, this predicate means that, for every a∈Aa\in Aa∈A, all G(a,x)G(a,x)G(a,x) are nonnegative and ∑x∈XG(a,x)=1\sum_{x\in X}G(a,x)=1∑x∈X​G(a,x)=1. If AAA is empty, this holds vacuously; if XXX is empty and AAA is nonempty, it cannot hold.

QAlgorithms.Papers.Independent.Advance50.P23.hayashiMu

For finite types X,EX,EX,E, with decidable equality on EEE, any s∈Rs\in\mathbb Rs∈R, matrices Wx∈CE×EW_x\in\mathbb C^{E\times E}Wx​∈CE×E, and real function P:X→RP:X\to\mathbb RP:X→R, put B=∑xP(x)f1+s(Wx)B=\sum_x P(x)f_{1+s}(W_x)B=∑x​P(x)f1+s​(Wx​), where fr(0)=0f_r(0)=0fr​(0)=0, fr(t)=trf_r(t)=t^rfr​(t)=tr otherwise, and matrix functions use the real continuous functional calculus. From the ascending eigenvalue sequence of BBB, defined as an all-zero sequence if BBB is not Hermitian, let VVV be its set of distinct values, c=∣V∣c=|V|c=∣V∣, and m+m_+m+​ its smallest positive entry or zero if none exists. Set v=0v=0v=0 if VVV is empty and v=log⁡(max⁡V)−log⁡m+v=\log(\max V)-\log m_+v=log(maxV)−logm+​ otherwise. The declaration defines

min⁡{4+c, (4+⌈v⌉)es/2},\min\left\{4+\sqrt c,\ \bigl(4+\sqrt{\lceil v\rceil}\bigr)e^{s/2}\right\},min{4+c​, (4+⌈v⌉​)es/2},

where the ceiling is an integer subsequently regarded as a real number. No probability-law or density-matrix assumptions are imposed. All operations are total: log⁡0=0\log0=0log0=0, and the real square root of a negative argument is zero; empty indexing types are included.

QAlgorithms.Papers.Independent.Advance50.P23.hayashiPetzD

For a finite type EEE with decidable equality, arbitrary complex matrices ρ,σ∈CE×E\rho,\sigma\in\mathbb C^{E\times E}ρ,σ∈CE×E, and s∈Rs\in\mathbb Rs∈R, write K(ρ,σ)K(\rho,\sigma)K(ρ,σ) for ker⁡σ⊆ker⁡ρ\ker\sigma\subseteq\ker\rhokerσ⊆kerρ, and write H[t]H^{[t]}H[t] for the real continuous functional calculus of HHH applied to the function that is 000 at 000 and is the total real power xtx^txt elsewhere. The defined value lies in the extended real numbers. At s=0s=0s=0, it is

{Re⁡tr⁡ ⁣(cfc⁡(x↦xlog⁡x)(ρ)−ρ cfc⁡(log⁡)(σ)),K(ρ,σ),+∞,otherwise.\begin{cases} \operatorname{Re}\operatorname{tr}\!\left(\operatorname{cfc}(x\mapsto x\log x)(\rho)-\rho\,\operatorname{cfc}(\log)(\sigma)\right),&K(\rho,\sigma),\\ +\infty,&\text{otherwise}. \end{cases}{Retr(cfc(x↦xlogx)(ρ)−ρcfc(log)(σ)),+∞,​K(ρ,σ),otherwise.​

For s>0s>0s>0 with K(ρ,σ)K(\rho,\sigma)K(ρ,σ) false, it is +∞+\infty+∞. In every remaining case, necessarily s≠0s\ne0s=0, it is s−1L ⁣(Re⁡tr⁡(ρ[1+s]σ[−s]))s^{-1}L\!\left(\operatorname{Re}\operatorname{tr}(\rho^{[1+s]}\sigma^{[-s]})\right)s−1L(Retr(ρ[1+s]σ[−s])), where L(u)=log⁡uL(u)=\log uL(u)=logu for u>0u>0u>0 and L(u)=−∞L(u)=-\inftyL(u)=−∞ for u≤0u\le0u≤0. No Hermitian, positivity, or trace-normalization hypothesis is imposed; negative sss does not trigger the support-failure branch, and zero spectral values remain zero even for exponent 000 or negative exponents.

QAlgorithms.Papers.Independent.Advance50.P23.hayashiProductLaw

For any type XXX, natural number nnn, and function P:X→RP:X\to\mathbb RP:X→R, this defines a function on strings x:{0,…,n−1}→Xx:\{0,\ldots,n-1\}\to Xx:{0,…,n−1}→X by

P(n)(x)=∏i=0n−1P(xi).P^{(n)}(x)=\prod_{i=0}^{n-1}P(x_i).P(n)(x)=i=0∏n−1​P(xi​).

There is no assumption that PPP is nonnegative or sums to 111. When n=0n=0n=0, there is exactly one empty string, and its value is 111, including when XXX is empty.

QAlgorithms.Papers.Independent.Advance50.P23.hayashiReliability

For finite types X,BX,BX,B, with decidable equality on BBB, natural numbers M,LM,LM,L, any real ttt, arbitrary complex B×BB\times BB×B matrices WxW_xWx​, and any real function P:X→RP:X\to\mathbb RP:X→R, put W‾=∑xP(x)Wx\overline W=\sum_xP(x)W_xW=∑x​P(x)Wx​. Write

Pu(H)=cfc⁡ ⁣(x↦{0,x=0,rpow⁡(x,u),x≠0, H),\mathcal P_u(H)=\operatorname{cfc}\!\left( x\mapsto \begin{cases}0,&x=0,\\ \operatorname{rpow}(x,u),&x\ne0,\end{cases} \,H\right),Pu​(H)=cfc(x↦{0,rpow(x,u),​x=0,x=0,​H),

where cfc⁡\operatorname{cfc}cfc denotes real continuous functional calculus and rpow⁡\operatorname{rpow}rpow is the total real power operation. The defined number is

{1,t=0,rpow⁡(ML,t) exp⁡ ⁣(−t log⁡ ⁣(Re⁡tr⁡∑xP(x)P1−t(Wx)Pt(W‾))−t),t≠0.\begin{cases} 1,&t=0,\\[2mm] \operatorname{rpow}(ML,t)\, \exp\!\left( -t\,\dfrac{\log\!\left(\operatorname{Re}\operatorname{tr} \sum_xP(x)\mathcal P_{1-t}(W_x)\mathcal P_t(\overline W)\right)}{-t} \right),&t\ne0. \end{cases}⎩⎨⎧​1,rpow(ML,t)exp(−t−tlog(Retr∑x​P(x)P1−t​(Wx​)Pt​(W))​),​t=0,t=0.​

No probability-law, positivity, normalization, or sign assumptions are imposed on P,W,t,M,LP,W,t,M,LP,W,t,M,L. The t=0t=0t=0 branch is exactly 111, including when ML=0ML=0ML=0; all other powers and logarithms use their total real definitions, including log⁡0=0\log0=0log0=0.

QAlgorithms.Papers.Independent.Advance50.P23.hayashiRenyiEntropy

For every finite type AAA, real sss, and real function P:A→RP:A\to\mathbb RP:A→R, the declaration defines

{−∑a∈AP(a)log⁡P(a),s=0,−log⁡ ⁣(∑a∈AP(a) 1+s)s,s≠0.\begin{cases} -\displaystyle\sum_{a\in A}P(a)\log P(a),&s=0,\\[4pt] -\dfrac{\log\!\left(\sum_{a\in A}P(a)^{\,1+s}\right)}{s},&s\ne0. \end{cases}⎩⎨⎧​−a∈A∑​P(a)logP(a),−slog(∑a∈A​P(a)1+s)​,​s=0,s=0.​

Logarithms are natural, and real powers and logarithms use their total conventions; in particular, log⁡0=0\log0=0log0=0 and 00=10^0=100=1. No probability-law assumption is imposed on PPP, and negative entries are permitted. The parameter s=−1s=-1s=−1 is included. If AAA is empty, the value is zero for every sss.

QAlgorithms.Papers.Independent.Advance50.P23.hayashiShannon

For every finite type AAA and every real function P:A→RP:A\to\mathbb RP:A→R, the declaration defines

−∑a∈AP(a)log⁡P(a).-\sum_{a\in A}P(a)\log P(a).−a∈A∑​P(a)logP(a).

The logarithm is natural, with the total real-logarithm convention log⁡0=0\log0=0log0=0 and log⁡x=log⁡∣x∣\log x=\log|x|logx=log∣x∣ for negative xxx. No nonnegativity or normalization assumption is imposed on PPP. Zero entries contribute zero, and an empty type AAA gives value zero.

QAlgorithms.Papers.Independent.Advance50.P23.leakedRate

For finite types X,B,EX,B,EX,B,E, with decidable equality on B,EB,EB,E, arbitrary matrix families WB,WEW_B,W_EWB​,WE​ on B,EB,EB,E respectively, and any real number RRR, this defines an extended real infimum over real numbers ℓ\ellℓ and code sequences. Such a sequence has, for every nnn, a positive message count mnm_nmn​, probability laws pn,jp_{n,j}pn,j​ on XnX^nXn, and positive semidefinite decoder matrices Dn,jD_{n,j}Dn,j​ on BnB^nBn summing to III. Write

VB,n,j=∑xpn,j(x)WB(n)(x),VE,n,j=∑xpn,j(x)WE(n)(x),V_{B,n,j}=\sum_xp_{n,j}(x)W_B^{(n)}(x),\qquad V_{E,n,j}=\sum_xp_{n,j}(x)W_E^{(n)}(x),VB,n,j​=x∑​pn,j​(x)WB(n)​(x),VE,n,j​=x∑​pn,j​(x)WE(n)​(x),

with W(n)(x)u,v=∏i<nW(xi)ui,viW^{(n)}(x)_{u,v}=\prod_{i<n}W(x_i)_{u_i,v_i}W(n)(x)u,v​=∏i<n​W(xi​)ui​,vi​​, and let H(A)=−Re⁡Tr⁡(f(A))H(A)=-\operatorname{Re}\operatorname{Tr}(f(A))H(A)=−ReTr(f(A)), where f(t)=tlog⁡tf(t)=t\log tf(t)=tlogt is applied by real continuous functional calculus. The value is the infimum of the embedded real numbers ℓ\ellℓ for which

R≥0,log⁡mnn⟶R,1−1mn∑j<mnRe⁡Tr⁡(Dn,jVB,n,j)⟶0,H ⁣(mn−1∑jVE,n,j)−mn−1∑jH(VE,n,j)n⟶ℓ.R\ge0,\quad \frac{\log m_n}{n}\longrightarrow R,\quad 1-\frac1{m_n}\sum_{j<m_n}\operatorname{Re}\operatorname{Tr}(D_{n,j}V_{B,n,j})\longrightarrow0, \quad \frac{H\!\left(m_n^{-1}\sum_jV_{E,n,j}\right)-m_n^{-1}\sum_jH(V_{E,n,j})}{n} \longrightarrow\ell.R≥0,nlogmn​​⟶R,1−mn​1​j<mn​∑​ReTr(Dn,j​VB,n,j​)⟶0,nH(mn−1​∑j​VE,n,j​)−mn−1​∑j​H(VE,n,j​)​⟶ℓ.

There is no separate sign restriction on ℓ\ellℓ, and no density-matrix assumption on either output family. Natural logarithms and total real division are used, including at n=0n=0n=0. The infimum of an empty set is +∞+\infty+∞, in particular when R<0R<0R<0; an infimum unbounded below is −∞-\infty−∞.

QAlgorithms.Papers.Independent.Advance50.P23.lowerExponent

For any function f:N→Rf:\mathbb N\to\mathbb Rf:N→R, this defines the extended real number

lim inf⁡n→∞[−(n−1) L(f(n))],L(x)={log⁡x,x>0,−∞,x≤0,\liminf_{n\to\infty} \left[-(n^{-1})\,L(f(n))\right], \qquad L(x)= \begin{cases} \log x,&x>0,\\ -\infty,&x\le0, \end{cases}n→∞liminf​[−(n−1)L(f(n))],L(x)={logx,−∞,​x>0,x≤0,​

where n−1n^{-1}n−1 is first computed as a real number and then embedded in the extended reals, and log⁡\loglog is natural. No positivity or boundedness assumption is imposed on fff. For n>0n>0n>0, the term is −log⁡f(n)/n-\log f(n)/n−logf(n)/n when f(n)>0f(n)>0f(n)>0, and +∞+\infty+∞ when f(n)≤0f(n)\le0f(n)≤0. At n=0n=0n=0, the term is 000, using 0−1=00^{-1}=00−1=0 and extended real multiplication by zero; this initial term does not affect the limit inferior.

QAlgorithms.Papers.Independent.Advance50.P23.mapOutput

For a finite type AAA, any types X,EX,EX,E, arbitrary complex E×EE\times EE×E matrices WxW_xWx​ indexed by x∈Xx\in Xx∈X, any function f:A→Xf:A\to Xf:A→X, and any real function PA:A→RP_A:A\to\mathbb RPA​:A→R, this definition gives the complex matrix

∑a∈APA(a)Wf(a).\sum_{a\in A}P_A(a)W_{f(a)}.a∈A∑​PA​(a)Wf(a)​.

The coefficients are interpreted as complex scalars. No nonnegativity, normalization, or density-matrix assumptions are imposed. If AAA is empty, the result is the zero matrix.

QAlgorithms.Papers.Independent.Advance50.P23.matrixTensor

For a natural number nnn, an arbitrary type EEE, and a complex matrix σ\sigmaσ indexed by E×EE\times EE×E, this defines a matrix indexed by pairs of functions i,j:{0,…,n−1}→Ei,j:\{0,\ldots,n-1\}\to Ei,j:{0,…,n−1}→E, with entries

matrixTensor⁡(n,σ)i,j=∏k=0n−1σi(k),j(k).\operatorname{matrixTensor}(n,\sigma)_{i,j} =\prod_{k=0}^{n-1}\sigma_{i(k),j(k)}.matrixTensor(n,σ)i,j​=k=0∏n−1​σi(k),j(k)​.

No finiteness, positivity, Hermitian, or trace assumption is imposed on EEE or σ\sigmaσ. For n=0n=0n=0, the function index set has one element and the empty product is 111, so the result is the 1×11\times11×1 matrix [1][1][1], even if EEE is empty.

QAlgorithms.Papers.Independent.Advance50.P23.maxError

For finite types X,BX,BX,B, with decidable equality on BBB, a natural number MMM, an arbitrary family WxW_xWx​ of complex B×BB\times BB×B matrices, and a wiretap code CCC, this definition is the real supremum

sup⁡0≤m<M[1−Re⁡tr⁡ ⁣(Dm∑x∈Xem(x)Wx)].\sup_{0\le m<M} \left[ 1-\operatorname{Re}\operatorname{tr}\!\left( D_m\sum_{x\in X}e_m(x)W_x \right) \right].0≤m<Msup​[1−Retr(Dm​x∈X∑​em​(x)Wx​)].

The code requires M>0M>0M>0, em(x)≥0e_m(x)\ge0em​(x)≥0, ∑xem(x)=1\sum_xe_m(x)=1∑x​em​(x)=1, Dm⪰0D_m\succeq0Dm​⪰0, and ∑mDm=I\sum_mD_m=I∑m​Dm​=I. The supremum is therefore over a finite nonempty set and is its maximum. No density-matrix assumption on WxW_xWx​, or resulting [0,1][0,1][0,1] restriction, is included.

QAlgorithms.Papers.Independent.Advance50.P23.messageError

For finite types X,BX,BX,B, with decidable equality on BBB, a natural number MMM, an arbitrary family WxW_xWx​ of complex B×BB\times BB×B matrices, a wiretap code CCC, and a message 0≤m<M0\le m<M0≤m<M, the message error is the real number

1−Re⁡tr⁡ ⁣(Dm∑x∈Xem(x)Wx),1-\operatorname{Re}\operatorname{tr}\!\left( D_m\sum_{x\in X}e_m(x)W_x \right),1−Retr(Dm​x∈X∑​em​(x)Wx​),

where em(x)≥0e_m(x)\ge0em​(x)≥0, ∑xem(x)=1\sum_xe_m(x)=1∑x​em​(x)=1, Dm⪰0D_m\succeq0Dm​⪰0, and ∑mDm=I\sum_mD_m=I∑m​Dm​=I, and the code requires M>0M>0M>0. No positivity or trace condition is imposed on WxW_xWx​, so the definition does not itself restrict this number to [0,1][0,1][0,1].

QAlgorithms.Papers.Independent.Advance50.P23.operationalEquivocationRate

For finite types X,B,EX,B,EX,B,E with decidable equality, arbitrary functions WB:X→CB×BW_B:X\to\mathbb C^{B\times B}WB​:X→CB×B, WE:X→CE×EW_E:X\to\mathbb C^{E\times E}WE​:X→CE×E, and any real RRR, the defined value is the supremum in the extended real numbers of all finite real numbers ℓ\ellℓ for which the following code sequence exists. At every natural block length nnn, including 000, choose a positive message count MnM_nMn​, encoder laws Gn,mG_{n,m}Gn,m​ on XnX^nXn, and a POVM {Dn,m}m<Mn\{D_{n,m}\}_{m<M_n}{Dn,m​}m<Mn​​ on BnB^nBn. For Z=B,EZ=B,EZ=B,E, define

WZ(n)(x)u,v=∏i=0n−1WZ(xi)ui,vi,ρn,mZ=∑x∈XnGn,m(x)WZ(n)(x),W_Z^{(n)}(x)_{u,v}=\prod_{i=0}^{n-1}W_Z(x_i)_{u_i,v_i}, \qquad \rho^Z_{n,m}=\sum_{x\in X^n}G_{n,m}(x)W_Z^{(n)}(x),WZ(n)​(x)u,v​=i=0∏n−1​WZ​(xi​)ui​,vi​​,ρn,mZ​=x∈Xn∑​Gn,m​(x)WZ(n)​(x),

and

en=1−1Mn∑mRe⁡tr⁡(Dn,mρn,mB),χn=H ⁣(1Mn∑mρn,mE)−1Mn∑mH(ρn,mE),e_n=1-\frac1{M_n}\sum_m\operatorname{Re}\operatorname{tr}(D_{n,m}\rho^B_{n,m}), \qquad \chi_n=H\!\left(\frac1{M_n}\sum_m\rho^E_{n,m}\right) -\frac1{M_n}\sum_mH(\rho^E_{n,m}),en​=1−Mn​1​m∑​Retr(Dn,m​ρn,mB​),χn​=H(Mn​1​m∑​ρn,mE​)−Mn​1​m∑​H(ρn,mE​),

where H(σ)=−Re⁡tr⁡[(u↦ulog⁡u)(σ)]H(\sigma)=-\operatorname{Re}\operatorname{tr}[(u\mapsto u\log u)(\sigma)]H(σ)=−Retr[(u↦ulogu)(σ)] is defined by continuous functional calculus. The required conditions are R≥0R\ge0R≥0, log⁡Mn/n→R\log M_n/n\to RlogMn​/n→R, en→0e_n\to0en​→0, and (log⁡Mn−χn)/n→ℓ(\log M_n-\chi_n)/n\to\ell(logMn​−χn​)/n→ℓ, all as n→∞n\to\inftyn→∞. No density-matrix assumption on WBW_BWB​ or WEW_EWE​ is imposed by this definition. Logarithms are natural; at n=0n=0n=0, empty products are 111 and real division by zero is 000. If there is no such sequence and finite limit, the supremum is −∞-\infty−∞; it may be +∞+\infty+∞ if its finite candidate values are unbounded above.

QAlgorithms.Papers.Independent.Advance50.P23.pairEncoder

For a ring KKK, a finite additive commutative group GGG equipped with a KKK-module structure, and natural numbers M,LM,LM,L, let CCC consist of nested submodules Cin⊆CoutC_{\mathrm{in}}\subseteq C_{\mathrm{out}}Cin​⊆Cout​ of sizes LLL and MLMLML, with representatives rm∈Coutr_m\in C_{\mathrm{out}}rm​∈Cout​ such that every element of CoutC_{\mathrm{out}}Cout​ lies in exactly one coset rm+Cinr_m+C_{\mathrm{in}}rm​+Cin​. For any y∈Gy\in Gy∈G, this defines the real-valued function

pairEncoder⁡(m,x)={L−1,x−(rm+y)∈Cin,0,otherwise,0≤m<M, x∈G.\operatorname{pairEncoder}(m,x)= \begin{cases} L^{-1},&x-(r_m+y)\in C_{\mathrm{in}},\\ 0,&\text{otherwise}, \end{cases} \qquad 0\le m<M,\ x\in G.pairEncoder(m,x)={L−1,0,​x−(rm​+y)∈Cin​,otherwise,​0≤m<M, x∈G.

Thus its specified value is constant on the shifted coset rm+y+Cinr_m+y+C_{\mathrm{in}}rm​+y+Cin​ and zero elsewhere. The data CCC force M,L>0M,L>0M,L>0.

QAlgorithms.Papers.Independent.Advance50.P23.pairOutput

For a ring KKK, a finite additive commutative group GGG equipped with a KKK-module structure, natural numbers M,LM,LM,L, and matrices Wg∈CE×EW_g\in\mathbb C^{E\times E}Wg​∈CE×E, let CCC consist of submodules Cin⊆Cout⊆GC_{\mathrm{in}}\subseteq C_{\mathrm{out}}\subseteq GCin​⊆Cout​⊆G with sizes LLL and MLMLML, respectively, and representatives rm∈Coutr_m\in C_{\mathrm{out}}rm​∈Cout​ such that every element of CoutC_{\mathrm{out}}Cout​ belongs to exactly one coset rm+Cinr_m+C_{\mathrm{in}}rm​+Cin​. For any shift y∈Gy\in Gy∈G, this defines an MMM-indexed family of matrices by

pairOutput⁡(m)=∑a∈Cin1∣Cin∣ Wa+(rm+y)=1L∑a∈CinWa+rm+y.\operatorname{pairOutput}(m)= \sum_{a\in C_{\mathrm{in}}}\frac{1}{|C_{\mathrm{in}}|}\,W_{a+(r_m+y)} =\frac1L\sum_{a\in C_{\mathrm{in}}}W_{a+r_m+y}.pairOutput(m)=a∈Cin​∑​∣Cin​∣1​Wa+(rm​+y)​=L1​a∈Cin​∑​Wa+rm​+y​.

The scalar weights are viewed as complex numbers. No positivity or trace condition is imposed on WWW. The structure CCC forces M,L>0M,L>0M,L>0, including when GGG is the trivial group.

QAlgorithms.Papers.Independent.Advance50.P23.petzInfo

For finite types X,EX,EX,E, with decidable equality on EEE, an arbitrary family W:X→CE×EW:X\to\mathbb C^{E\times E}W:X→CE×E, arbitrary real weights P:X→RP:X\to\mathbb RP:X→R, and s∈Rs\in\mathbb Rs∈R, set W‾=∑xP(x)Wx\overline W=\sum_xP(x)W_xW=∑x​P(x)Wx​ and H(A)=−Re⁡tr⁡(cfc⁡(u↦ulog⁡u)(A))H(A)=-\operatorname{Re}\operatorname{tr}(\operatorname{cfc}(u\mapsto u\log u)(A))H(A)=−Retr(cfc(u↦ulogu)(A)). Write A[t]A^{[t]}A[t] for real continuous functional calculus with scalar value 000 at zero and total real power utu^tut elsewhere. This defines

{H(W‾)−∑xP(x)H(Wx),s=0,log⁡ ⁣(Re⁡tr⁡ ⁣(∑xP(x) Wx[1+s]W‾[−s]))s,s≠0.\begin{cases} H(\overline W)-\sum_xP(x)H(W_x),&s=0,\\[2pt] \displaystyle\frac{\log\!\left(\operatorname{Re}\operatorname{tr}\!\left(\sum_xP(x)\,W_x^{[1+s]}\overline W^{[-s]}\right)\right)}{s},&s\ne0. \end{cases}⎩⎨⎧​H(W)−∑x​P(x)H(Wx​),slog(Retr(∑x​P(x)Wx[1+s]​W[−s]))​,​s=0,s=0.​

No probability-law or density-matrix assumptions are imposed, and there is no support test. The logarithm is the total real logarithm, so log⁡0=0\log0=0log0=0 and negative arguments use the logarithm of their absolute value. Zero spectral values remain zero even for nonpositive exponents. If XXX or EEE is empty, the value is 000.

QAlgorithms.Papers.Independent.Advance50.P23.phaseAmplitude

For every natural number d≠0d\neq0d=0, every function P:Z/dZ→RP:\mathbb Z/d\mathbb Z\to\mathbb RP:Z/dZ→R, and every j,x∈Z/dZj,x\in\mathbb Z/d\mathbb Zj,x∈Z/dZ, this defines the complex number

aP,j(x)=exp⁡ ⁣(2πi jˉ xˉd)P(x),a_{P,j}(x)= \exp\!\left(\frac{2\pi i\,\bar j\,\bar x}{d}\right)\sqrt{P(x)},aP,j​(x)=exp(d2πijˉ​xˉ​)P(x)​,

where jˉ,xˉ∈{0,…,d−1}\bar j,\bar x\in\{0,\ldots,d-1\}jˉ​,xˉ∈{0,…,d−1} are the least nonnegative representatives and the real square root is included into C\mathbb CC. There is no assumption that PPP is nonnegative or sums to one; the real square root used here is zero on negative inputs. The case d=1d=1d=1 is included, and d=0d=0d=0 is excluded.

QAlgorithms.Papers.Independent.Advance50.P23.phaseCQ

For every natural number d≠0d\neq0d=0, arbitrary real functions PZ:Z/dZ→RP_Z:\mathbb Z/d\mathbb Z\to\mathbb RPZ​:Z/dZ→R and P:(Z/dZ)2→RP:(\mathbb Z/d\mathbb Z)^2\to\mathbb RP:(Z/dZ)2→R, and j∈Z/dZj\in\mathbb Z/d\mathbb Zj∈Z/dZ, this defines a complex matrix indexed by pairs (x,z)∈(Z/dZ)2(x,z)\in(\mathbb Z/d\mathbb Z)^2(x,z)∈(Z/dZ)2, whose entries are

Cj((x,z),(y,w))={PZ(z)exp⁡ ⁣(2πi jˉ(xˉ−yˉ)d)P(z,x)P(z,y),z=w,0,z≠w.C_j\bigl((x,z),(y,w)\bigr)= \begin{cases} P_Z(z)\exp\!\left(\dfrac{2\pi i\,\bar j(\bar x-\bar y)}{d}\right) \sqrt{P(z,x)}\sqrt{P(z,y)},&z=w,\\ 0,&z\neq w. \end{cases}Cj​((x,z),(y,w))=⎩⎨⎧​PZ​(z)exp(d2πijˉ​(xˉ−yˉ​)​)P(z,x)​P(z,y)​,0,​z=w,z=w.​

Bars denote least nonnegative residue representatives, and the square roots are real square roots, hence zero for negative arguments. No positivity or normalization assumptions are imposed on PZP_ZPZ​ or on any function P(z,⋅)P(z,\cdot)P(z,⋅), so the definition itself does not assert that this matrix is a density matrix. The case d=1d=1d=1 is included.

QAlgorithms.Papers.Independent.Advance50.P23.phasePure

For every natural number d≠0d\neq0d=0, arbitrary P:Z/dZ→RP:\mathbb Z/d\mathbb Z\to\mathbb RP:Z/dZ→R, and j∈Z/dZj\in\mathbb Z/d\mathbb Zj∈Z/dZ, this defines the complex matrix

Rj(x,y)=exp⁡ ⁣(2πi jˉ(xˉ−yˉ)d)P(x)P(y)(x,y∈Z/dZ),R_j(x,y)= \exp\!\left(\frac{2\pi i\,\bar j(\bar x-\bar y)}{d}\right) \sqrt{P(x)}\sqrt{P(y)} \qquad(x,y\in\mathbb Z/d\mathbb Z),Rj​(x,y)=exp(d2πijˉ​(xˉ−yˉ​)​)P(x)​P(y)​(x,y∈Z/dZ),

where bars denote least nonnegative representatives and square roots are real square roots, zero on negative inputs. Equivalently, its entries are a(x)a(y)‾a(x)\overline{a(y)}a(x)a(y)​ for a(x)=exp⁡(2πijˉxˉ/d)P(x)a(x)=\exp(2\pi i\bar j\bar x/d)\sqrt{P(x)}a(x)=exp(2πijˉ​xˉ/d)P(x)​. No nonnegativity or normalization hypothesis on PPP is present; in particular, the definition does not assert that the matrix has trace one. The case d=1d=1d=1 is included.

QAlgorithms.Papers.Independent.Advance50.P23.powerAverage

For a finite type XXX, a finite type EEE with decidable equality, s∈Rs\in\mathbb Rs∈R, arbitrary real coefficients P:X→RP:X\to\mathbb RP:X→R, and arbitrary complex matrices Wx∈CE×EW_x\in\mathbb C^{E\times E}Wx​∈CE×E, this defines

∑x∈XP(x) cfc⁡ ⁣(u↦{0,u=0,u1+s,u≠0)(Wx),\sum_{x\in X}P(x)\, \operatorname{cfc}\!\left(u\mapsto \begin{cases} 0,&u=0,\\ u^{1+s},&u\ne0 \end{cases}\right)(W_x),x∈X∑​P(x)cfc(u↦{0,u1+s,​u=0,u=0​)(Wx​),

where powers are total real powers and coefficients are cast to complex scalars. No nonnegativity or normalization of PPP, and no positivity or Hermitian condition on WxW_xWx​, is required. Zero spectral values contribute zero even at s=−1s=-1s=−1, when the exponent is 000, or when the exponent is negative. An empty XXX gives the zero matrix.

QAlgorithms.Papers.Independent.Advance50.P23.previousExponent

For finite index types X,EX,EX,E with the required decidable equality, arbitrary R∈RR\in\mathbb RR∈R, arbitrary matrices Wx∈ME(C)W_x\in M_E(\mathbb C)Wx​∈ME​(C), and an arbitrary real function P:X→RP:X\to\mathbb RP:X→R, this defines the real number

sup⁡0≤s≤1s(R−Is(W,P))2(1+s).\sup_{0\le s\le1}\frac{s\bigl(R-I_s(W,P)\bigr)}{2(1+s)}.0≤s≤1sup​2(1+s)s(R−Is​(W,P))​.

Here Wˉ=∑xPxWx\bar W=\sum_xP_xW_xWˉ=∑x​Px​Wx​, I0(W,P)=H(Wˉ)−∑xPxH(Wx)I_0(W,P)=H(\bar W)-\sum_xP_xH(W_x)I0​(W,P)=H(Wˉ)−∑x​Px​H(Wx​), with H(A)=−Re⁡tr⁡[cfc⁡(x↦xlog⁡x)(A)]H(A)=-\operatorname{Re}\operatorname{tr}[\operatorname{cfc}(x\mapsto x\log x)(A)]H(A)=−Retr[cfc(x↦xlogx)(A)], and for s≠0s\ne0s=0,

Is(W,P)=1slog⁡Re⁡tr⁡ ⁣[∑xPxWx[1+s]Wˉ[−s]].I_s(W,P)=\frac1s\log\operatorname{Re}\operatorname{tr} \!\left[\sum_xP_xW_x^{[1+s]}\bar W^{[-s]}\right].Is​(W,P)=s1​logRetr[x∑​Px​Wx[1+s]​Wˉ[−s]].

The power A[t]A^{[t]}A[t] is functional calculus with scalar function 000 at zero and xtx^txt elsewhere. No positivity, normalization, nonemptiness, or sign condition on RRR is imposed. The supremum includes both endpoints, and its s=0s=0s=0 term is 000; ordinary real logarithms and division retain their total definitions, including log⁡0=0\log0=0log0=0.

QAlgorithms.Papers.Independent.Advance50.P23.receiverCapacity

For finite types X,BX,BX,B, with decidable equality on BBB, and any matrix family WB:X→CB×BW_B:X\to\mathbb C^{B\times B}WB​:X→CB×B, this defines the real supremum

sup⁡P:X→RP(x)≥0, ∑xP(x)=1[H ⁣(∑xP(x)WB(x))−∑xP(x)H(WB(x))],H(A)=−Re⁡Tr⁡(f(A)),f(t)=tlog⁡t,\sup_{\substack{P:X\to\mathbb R\\ P(x)\ge0,\ \sum_xP(x)=1}} \left[ H\!\left(\sum_xP(x)W_B(x)\right)-\sum_xP(x)H(W_B(x)) \right], \qquad H(A)=-\operatorname{Re}\operatorname{Tr}(f(A)), \quad f(t)=t\log t,P:X→RP(x)≥0, ∑x​P(x)=1​sup​[H(x∑​P(x)WB​(x))−x∑​P(x)H(WB​(x))],H(A)=−ReTr(f(A)),f(t)=tlogt,

where f(A)f(A)f(A) is evaluated by real continuous functional calculus and log⁡\loglog is natural. The matrices WB(x)W_B(x)WB​(x) are not assumed positive semidefinite or of trace 111. Empty types are permitted; when XXX is empty there is no such probability law and the real supremum is 000. This is the total real supremum operation, which also returns 000 for a set unbounded above.

QAlgorithms.Papers.Independent.Advance50.P23.referenceInfo

For finite types X,EX,EX,E with decidable equality, an arbitrary family W:X→CE×EW:X\to\mathbb C^{E\times E}W:X→CE×E, real weights P:X→RP:X\to\mathbb RP:X→R, a complex matrix σ∈CE×E\sigma\in\mathbb C^{E\times E}σ∈CE×E, and s∈Rs\in\mathbb Rs∈R, define matrices J,RJ,RJ,R indexed by E×XE\times XE×X through J(e,x),(f,y)=P(x)Wx(e,f)J_{(e,x),(f,y)}=P(x)W_x(e,f)J(e,x),(f,y)​=P(x)Wx​(e,f) and R(e,x),(f,y)=P(x)σ(e,f)R_{(e,x),(f,y)}=P(x)\sigma(e,f)R(e,x),(f,y)​=P(x)σ(e,f) when x=yx=yx=y, with both entries zero otherwise. Write A[t]=cfc⁡(u↦0 if u=0, else ut)(A)A^{[t]}=\operatorname{cfc}(u\mapsto 0\text{ if }u=0,\text{ else }u^t)(A)A[t]=cfc(u↦0 if u=0, else ut)(A), using total real powers, and KKK for ker⁡R⊆ker⁡J\ker R\subseteq\ker JkerR⊆kerJ. At s=0s=0s=0, this defines Re⁡tr⁡(cfc⁡(u↦ulog⁡u)(J)−Jcfc⁡(log⁡)(R))\operatorname{Re}\operatorname{tr}(\operatorname{cfc}(u\mapsto u\log u)(J)-J\operatorname{cfc}(\log)(R))Retr(cfc(u↦ulogu)(J)−Jcfc(log)(R)) if KKK holds, and +∞+\infty+∞ otherwise. For s>0s>0s>0 with KKK false it is +∞+\infty+∞; in all remaining cases it is

s−1L ⁣(Re⁡tr⁡(J[1+s]R[−s])),L(u)={log⁡u,u>0,−∞,u≤0.s^{-1}L\!\left(\operatorname{Re}\operatorname{tr}(J^{[1+s]}R^{[-s]})\right), \qquad L(u)= \begin{cases}\log u,&u>0,\\-\infty,&u\le0.\end{cases}s−1L(Retr(J[1+s]R[−s])),L(u)={logu,−∞,​u>0,u≤0.​

No density or probability-law conditions are assumed. Zero spectral values remain zero for every exponent; if XXX or EEE is empty, the value is 000 at s=0s=0s=0 and s−1(−∞)s^{-1}(-\infty)s−1(−∞) otherwise.

QAlgorithms.Papers.Independent.Advance50.P23.renyiOptimizer

For finite types X,EX,EX,E, with decidable equality on EEE, any s∈Rs\in\mathbb Rs∈R, matrices Wx∈CE×EW_x\in\mathbb C^{E\times E}Wx​∈CE×E, and real function P:X→RP:X\to\mathbb RP:X→R, let fr(0)=0f_r(0)=0fr​(0)=0 and fr(t)=trf_r(t)=t^rfr​(t)=tr for t≠0t\ne0t=0, using total real powers, and set Bs=∑xP(x)f1+s(Wx)B_s=\sum_x P(x)f_{1+s}(W_x)Bs​=∑x​P(x)f1+s​(Wx​) and Cs=f1/(1+s)(Bs)C_s=f_{1/(1+s)}(B_s)Cs​=f1/(1+s)​(Bs​), with matrix functions interpreted through the real continuous functional calculus. The declaration defines the matrix

(Re⁡tr⁡Cs)−1Cs.\bigl(\operatorname{Re}\operatorname{tr}C_s\bigr)^{-1}C_s.(RetrCs​)−1Cs​.

There are no assumptions that PPP is a probability law or that the matrices are density matrices, and no density-matrix property is included in this definition. A zero real trace gives the zero matrix because its reciprocal is zero. The parameters s=0s=0s=0 and s=−1s=-1s=−1 are included without separate branches; at s=−1s=-1s=−1, the exponent 1/(1+s)1/(1+s)1/(1+s) is zero. Empty indexing types are allowed.

QAlgorithms.Papers.Independent.Advance50.P23.secrecy

For finite types X,E,AX,E,AX,E,A, with decidable equality on EEE, any real sss, arbitrary complex E×EE\times EE×E matrices WxW_xWx​, and arbitrary real functions P:X→RP:X\to\mathbb RP:X→R and PA:A→RP_A:A\to\mathbb RPA​:A→R, put W‾=∑xP(x)Wx\overline W=\sum_xP(x)W_xW=∑x​P(x)Wx​. Let Pu(H)\mathcal P_u(H)Pu​(H) be real continuous functional calculus applied to the function that is 000 at 000 and rpow⁡(x,u)\operatorname{rpow}(x,u)rpow(x,u) elsewhere, and let c(H)c(H)c(H) count the distinct entries of the following real eigenvalue list: the eigenvalues in ascending order when HHH is Hermitian, and the identically zero list otherwise. Define

Hs(PA)={−∑aPA(a)log⁡PA(a),s=0,−log⁡∑arpow⁡(PA(a),1+s)s,s≠0,H_s(P_A)= \begin{cases} -\sum_aP_A(a)\log P_A(a),&s=0,\\ -\dfrac{\log\sum_a\operatorname{rpow}(P_A(a),1+s)}s,&s\ne0, \end{cases}Hs​(PA​)=⎩⎨⎧​−∑a​PA​(a)logPA​(a),−slog∑a​rpow(PA​(a),1+s)​,​s=0,s=0,​

and

Is(P,W)={S(W‾)−∑xP(x)S(Wx),s=0,log⁡ ⁣(Re⁡tr⁡∑xP(x)P1+s(Wx)P−s(W‾))s,s≠0,S(H)=−Re⁡tr⁡cfc⁡(x↦xlog⁡x,H).I_s(P,W)= \begin{cases} S(\overline W)-\sum_xP(x)S(W_x),&s=0,\\ \dfrac{\log\!\left(\operatorname{Re}\operatorname{tr} \sum_xP(x)\mathcal P_{1+s}(W_x)\mathcal P_{-s}(\overline W)\right)}s,&s\ne0, \end{cases} \qquad S(H)=-\operatorname{Re}\operatorname{tr}\operatorname{cfc}(x\mapsto x\log x,H).Is​(P,W)=⎩⎨⎧​S(W)−∑x​P(x)S(Wx​),slog(Retr∑x​P(x)P1+s​(Wx​)P−s​(W))​,​s=0,s=0,​S(H)=−Retrcfc(x↦xlogx,H).

The definition gives

rpow⁡(c(W‾),s)s exp⁡ ⁣(−sHs(PA)+sIs(P,W)).\frac{\operatorname{rpow}(c(\overline W),s)}s\, \exp\!\bigl(-sH_s(P_A)+sI_s(P,W)\bigr).srpow(c(W),s)​exp(−sHs​(PA​)+sIs​(P,W)).

No probability or density-matrix assumptions are required. Division by zero is defined as zero, so this expression is 000 at s=0s=0s=0. Empty index types are allowed; in particular c(H)=0c(H)=0c(H)=0 in dimension zero, while for a non-Hermitian matrix of positive dimension it is 111.

QAlgorithms.Papers.Independent.Advance50.P23.shiftExpect

For finite types Z,GZ,GZ,G, arbitrary real weights PZ:Z→RP_Z:Z\to\mathbb RPZ​:Z→R, and f:Z×G→Rf:Z\times G\to\mathbb Rf:Z×G→R, this defines the real number

∑z∈ZPZ(z)(∑y∈G1∣G∣f(z,y)).\sum_{z\in Z}P_Z(z)\left(\sum_{y\in G}\frac1{|G|}f(z,y)\right).z∈Z∑​PZ​(z)​y∈G∑​∣G∣1​f(z,y)​.

No group structure on GGG, nonnegativity of the weights, or normalization of their sum is required. When GGG is nonempty, the inner expression is its uniform average. If GGG is empty, the reciprocal is 000 and the inner sum is empty, giving value 000; empty ZZZ also gives 000.

QAlgorithms.Papers.Independent.Advance50.P23.shiftExpectE

For finite types Z,GZ,GZ,G, arbitrary real weights PZ:Z→RP_Z:Z\to\mathbb RPZ​:Z→R, and f:Z×G→[−∞,∞]f:Z\times G\to[-\infty,\infty]f:Z×G→[−∞,∞], this defines the extended real number

∑z∈ZPZ(z)(∑y∈G1∣G∣f(z,y)),\sum_{z\in Z}P_Z(z)\left(\sum_{y\in G}\frac1{|G|}f(z,y)\right),z∈Z∑​PZ​(z)​y∈G∑​∣G∣1​f(z,y)​,

where the real weights and reciprocal are embedded into the extended reals before multiplication, and all sums use extended-real arithmetic. The weights are neither clipped nor assumed nonnegative or normalized, and fff may take either infinite value, so the expression uses Lean’s total arithmetic even when opposite infinities occur. No group structure or nonemptiness of GGG is required. Empty GGG gives an empty inner sum and value 000, and empty ZZZ likewise gives 000.

QAlgorithms.Papers.Independent.Advance50.P23.shiftExpectExp

For finite types ZZZ and GGG, an arbitrary function PZ:Z→RP_Z:Z\to\mathbb RPZ​:Z→R, a real number sss, and a function f:Z×G→[−∞,+∞]f:Z\times G\to[-\infty,+\infty]f:Z×G→[−∞,+∞], this defines the extended nonnegative real number

∑z∈Zmax⁡{PZ(z),0}∑y∈G1∣G∣exp⁡ ⁣(s f(z,y)).\sum_{z\in Z}\max\{P_Z(z),0\} \sum_{y\in G}\frac{1}{|G|}\exp\!\bigl(s\,f(z,y)\bigr).z∈Z∑​max{PZ​(z),0}y∈G∑​∣G∣1​exp(sf(z,y)).

Here the weights are embedded in [0,+∞][0,+\infty][0,+∞], the exponential and the multiplication s f(z,y)s\,f(z,y)sf(z,y) use extended-real arithmetic, and the reciprocal of ∣G∣|G|∣G∣ is first computed in R\mathbb RR, where 0−1=00^{-1}=00−1=0. No nonnegativity or normalization assumption is imposed on PZP_ZPZ​. If either indexing type is empty, the value is 000; products involving 000 and +∞+\infty+∞ follow extended nonnegative real arithmetic.

QAlgorithms.Papers.Independent.Advance50.P23.spectralSpread

For every finite type EEE with decidable equality and every σ∈CE×E\sigma\in\mathbb C^{E\times E}σ∈CE×E, let VVV be the set of distinct values of the ascending eigenvalue sequence of σ\sigmaσ, where that sequence is defined to consist entirely of zeros when σ\sigmaσ is not Hermitian. Let m+m_+m+​ be the smallest strictly positive entry of this sequence if any exists, and zero otherwise. The declaration defines

{log⁡(max⁡V)−log⁡m+,V≠∅,0,V=∅.\begin{cases} \log(\max V)-\log m_+,&V\ne\varnothing,\\ 0,&V=\varnothing. \end{cases}{log(maxV)−logm+​,0,​V=∅,V=∅.​

No positivity or Hermitian assumption is imposed. The logarithms are natural and total, so if there is no positive entry the second logarithm is log⁡0=0\log0=0log0=0, and negative arguments use log⁡x=log⁡∣x∣\log x=\log|x|logx=log∣x∣. An empty EEE, or a non-Hermitian σ\sigmaσ, gives value zero.

QAlgorithms.Papers.Independent.Advance50.P23.starMoment

For a finite type EEE with decidable equality, s∈Rs\in\mathbb Rs∈R, and arbitrary complex matrices ρ,σ∈CE×E\rho,\sigma\in\mathbb C^{E\times E}ρ,σ∈CE×E, define H[t]H^{[t]}H[t] by real continuous functional calculus with scalar function 000 at zero and the total real power xtx^txt elsewhere. With S=σ[−1/2]S=\sigma^{[-1/2]}S=σ[−1/2], this defines the real number

Re⁡tr⁡ ⁣(ρ (SρS)[s]).\operatorname{Re}\operatorname{tr}\!\left(\rho\,(S\rho S)^{[s]}\right).Retr(ρ(SρS)[s]).

There is no support-inclusion test and no positivity, Hermitian, or trace-normalization hypothesis. Zero spectral values contribute zero for every exponent, including s=0s=0s=0; thus the zeroth power here need not be the identity. If EEE is empty, the value is 000.

QAlgorithms.Papers.Independent.Advance50.P23.systematicSubmodule

For a field KKK, natural numbers r,lr,lr,l, and a sequence zzz of length r+l−1r+l-1r+l−1, this defines the KKK-linear submodule of Kl×KrK^l\times K^rKl×Kr consisting exactly of pairs (u,v)(u,v)(u,v) satisfying

vi=∑j=0l−1z i+(l−1−j)uj(0≤i<r).v_i=\sum_{j=0}^{l-1}z_{\,i+(l-1-j)}u_j \qquad(0\le i<r).vi​=j=0∑l−1​zi+(l−1−j)​uj​(0≤i<r).

The sequence length and indices use natural-number subtraction truncated at 000. Thus the submodule is the graph of the linear map with the displayed matrix entries. If r=0r=0r=0, there are no equations and the submodule is all of Kl×K0K^l\times K^0Kl×K0; if l=0l=0l=0, the empty sums force v=0v=0v=0, so the submodule contains only the zero pair.

QAlgorithms.Papers.Independent.Advance50.P23.tableEncoder

For any type XXX, natural numbers M,LM,LM,L, real function PPP on {0,…,L−1}\{0,\ldots,L-1\}{0,…,L−1}, and table c:{0,…,L−1}×{0,…,M−1}→Xc:\{0,\ldots,L-1\}\times\{0,\ldots,M-1\}\to Xc:{0,…,L−1}×{0,…,M−1}→X, the table encoder is the function

em(x)=∑0≤l<Lc(l,m)=xP(l).e_m(x)=\sum_{\substack{0\le l<L\\c(l,m)=x}}P(l).em​(x)=0≤l<Lc(l,m)=x​∑​P(l).

There is no assumption that PPP is nonnegative or sums to one. Repeated occurrences of xxx in a column contribute separately. When L=0L=0L=0, every value is zero; when M=0M=0M=0, the function has no message arguments.

QAlgorithms.Papers.Independent.Advance50.P23.toeplitz

For any type KKK, natural numbers r,lr,lr,l, and a sequence zzz of length r+l−1r+l-1r+l−1, this defines an r×lr\times lr×l matrix TTT over KKK, indexed starting at 000, by

Tij=z i+(l−1−j)(0≤i<r, 0≤j<l).T_{ij}=z_{\,i+(l-1-j)} \qquad(0\le i<r,\ 0\le j<l).Tij​=zi+(l−1−j)​(0≤i<r, 0≤j<l).

Every subtraction in the sequence length and index is natural-number subtraction, truncated at 000. Whenever an entry exists, its sequence index is within the specified length. No algebraic structure on KKK is required. If r=0r=0r=0 or l=0l=0l=0, the matrix has no entries.

QAlgorithms.Papers.Independent.Advance50.P23.traceBound

For finite types X,E,AX,E,AX,E,A, with decidable equality on EEE, any real sss, arbitrary complex E×EE\times EE×E matrices WxW_xWx​, and arbitrary real functions P:X→RP:X\to\mathbb RP:X→R and PA:A→RP_A:A\to\mathbb RPA​:A→R, let Pu(H)\mathcal P_u(H)Pu​(H) denote real continuous functional calculus for the function equal to 000 at 000 and to rpow⁡(x,u)\operatorname{rpow}(x,u)rpow(x,u) elsewhere. Put

Ks=∑xP(x)P1+s(Wx),gs=Re⁡tr⁡P1/(1+s)(Ks).K_s=\sum_xP(x)\mathcal P_{1+s}(W_x),\qquad g_s=\operatorname{Re}\operatorname{tr}\mathcal P_{1/(1+s)}(K_s).Ks​=x∑​P(x)P1+s​(Wx​),gs​=RetrP1/(1+s)​(Ks​).

For any matrix HHH, use its ascending Hermitian eigenvalue list, or an identically zero list if it is non-Hermitian; let c(H)c(H)c(H) be the number of distinct entries, let m+(H)m_+(H)m+​(H) be its smallest strictly positive entry or 000 if none exists, and define

v(H)={log⁡(max⁡ entry)−log⁡m+(H),if the list is nonempty,0,otherwise.v(H)= \begin{cases} \log(\max\text{ entry})-\log m_+(H),&\text{if the list is nonempty},\\ 0,&\text{otherwise}. \end{cases}v(H)={log(max entry)−logm+​(H),0,​if the list is nonempty,otherwise.​

Set

μs=min⁡ ⁣{4+c(Ks), (4+⌈v(Ks)⌉)es/2},Gs={S(∑xP(x)Wx)−∑xP(x)S(Wx),s=0,1+sslog⁡gs,s≠0,\mu_s=\min\!\left\{ 4+\sqrt{c(K_s)},\ \bigl(4+\sqrt{\lceil v(K_s)\rceil}\bigr)e^{s/2} \right\}, \quad G_s= \begin{cases} S(\sum_xP(x)W_x)-\sum_xP(x)S(W_x),&s=0,\\ \dfrac{1+s}{s}\log g_s,&s\ne0, \end{cases}μs​=min{4+c(Ks​)​, (4+⌈v(Ks​)⌉​)es/2},Gs​=⎩⎨⎧​S(∑x​P(x)Wx​)−∑x​P(x)S(Wx​),s1+s​loggs​,​s=0,s=0,​

where S(H)=−Re⁡tr⁡cfc⁡(x↦xlog⁡x,H)S(H)=-\operatorname{Re}\operatorname{tr}\operatorname{cfc}(x\mapsto x\log x,H)S(H)=−Retrcfc(x↦xlogx,H), and set H0=−∑aPA(a)log⁡PA(a)H_0=-\sum_aP_A(a)\log P_A(a)H0​=−∑a​PA​(a)logPA​(a) and Hs=−s−1log⁡∑arpow⁡(PA(a),1+s)H_s=-s^{-1}\log\sum_a\operatorname{rpow}(P_A(a),1+s)Hs​=−s−1log∑a​rpow(PA​(a),1+s) for s≠0s\ne0s=0. The defined bound is

μsexp⁡ ⁣(s2(Gs−Hs)).\mu_s\exp\!\left(\frac s2(G_s-H_s)\right).μs​exp(2s​(Gs​−Hs​)).

The ceiling in μs\mu_sμs​ is an integer, interpreted as a real number before taking its square root. There are no probability-law, positivity, normalization, or restrictions on sss; all operations are total, including division by zero, log⁡0=0\log0=0log0=0, and real square root equal to zero on nonpositive arguments. Thus s=−1s=-1s=−1, empty types, and missing positive eigenvalues are included, and at s=0s=0s=0 the value is μ0\mu_0μ0​.

QAlgorithms.Papers.Independent.Advance50.P23.traceCorrelation

For finite types X,EX,EX,E, with decidable equality on EEE, any real function P:X→RP:X\to\mathbb RP:X→R, and any matrices Wx∈CE×EW_x\in\mathbb C^{E\times E}Wx​∈CE×E, put W‾=∑xP(x)Wx\overline W=\sum_x P(x)W_xW=∑x​P(x)Wx​ and Dx=Wx−W‾D_x=W_x-\overline WDx​=Wx​−W. The declaration defines

∑xP(x)Re⁡tr⁡Dx†Dx,\sum_x P(x)\operatorname{Re}\operatorname{tr}\sqrt{D_x^\dagger D_x},x∑​P(x)RetrDx†​Dx​​,

where the matrix square root is given by the real continuous functional calculus. No nonnegativity or normalization assumption is imposed on PPP, and the WxW_xWx​ need not be density matrices. In particular, the weights are used with their signs. If XXX or EEE is empty, the value is zero.

QAlgorithms.Papers.Independent.Advance50.P23.underlinedD

For a finite type EEE with decidable equality and arbitrary complex matrices ρ,σ∈CE×E\rho,\sigma\in\mathbb C^{E\times E}ρ,σ∈CE×E, let σ[−1/2]\sigma^{[-1/2]}σ[−1/2] denote its real continuous functional calculus with scalar function 000 at zero and x−1/2x^{-1/2}x−1/2, interpreted through total real powers, elsewhere. Set S=σ[−1/2]S=\sigma^{[-1/2]}S=σ[−1/2] and T=SρST=S\rho ST=SρS. This defines the extended-real value

{Re⁡tr⁡ ⁣(ρ cfc⁡(log⁡)(T)),ker⁡T⊆ker⁡ρ,−∞,otherwise.\begin{cases} \operatorname{Re}\operatorname{tr}\!\left(\rho\,\operatorname{cfc}(\log)(T)\right),&\ker T\subseteq\ker\rho,\\ -\infty,&\text{otherwise}. \end{cases}{Retr(ρcfc(log)(T)),−∞,​kerT⊆kerρ,otherwise.​

No positivity, Hermitian, or normalization assumptions are required. The inverse power assigns zero to zero spectral values, and the logarithm is the total real logarithm used by the functional calculus. In particular, for ρ=0\rho=0ρ=0 the kernel condition holds and the value is 000, including when EEE is empty.

QAlgorithms.Papers.Independent.Advance50.P23.uniformMomentBound

For finite types X,EX,EX,E, with decidable equality on EEE, a natural number LLL, a real number sss, arbitrary complex matrices WxW_xWx​ indexed by E×EE\times EE×E, and arbitrary real weights PxP_xPx​, put A=∑xPxWxA=\sum_xP_xW_xA=∑x​Px​Wx​. Write Ch(H)\mathcal C_h(H)Ch​(H) for the continuous functional calculus of the real function hhh at HHH, and define H[t]=Cht(H)H^{[t]}=\mathcal C_{h_t}(H)H[t]=Cht​​(H), where ht(0)=0h_t(0)=0ht​(0)=0 and ht(u)=uth_t(u)=u^tht​(u)=ut for u≠0u\ne0u=0, using the real-power operation. Let c(A)c(A)c(A) count the distinct values in the list of eigenvalues of AAA in ascending order, with multiplicity discarded; if AAA is not Hermitian, that list is defined to consist entirely of zeros. Define

S(H)=−Re⁡tr⁡Cu↦ulog⁡u(H),Js={S(A)−∑xPxS(Wx),s=0,log⁡ ⁣(Re⁡tr⁡∑xPxWx[1+s]A[−s])s,s≠0.S(H)=-\operatorname{Re}\operatorname{tr}\mathcal C_{u\mapsto u\log u}(H), \qquad J_s= \begin{cases} S(A)-\sum_xP_xS(W_x),&s=0,\\[2mm] \displaystyle\frac{\log\!\left(\operatorname{Re}\operatorname{tr} \sum_xP_xW_x^{[1+s]}A^{[-s]}\right)}{s},&s\ne0. \end{cases}S(H)=−RetrCu↦ulogu​(H),Js​=⎩⎨⎧​S(A)−∑x​Px​S(Wx​),slog(Retr∑x​Px​Wx[1+s]​A[−s])​,​s=0,s=0.​

The declaration defines the real number

c(A)s(1+exp⁡(sJs)Ls).c(A)^s\left(1+\frac{\exp(sJ_s)}{L^s}\right).c(A)s(1+Lsexp(sJs​)​).

There are no assumptions that PPP is a probability law, that the matrices are density matrices, that L>0L>0L>0, or that sss lies in any interval. Empty types and L=0L=0L=0 are included, and all powers, logarithms, functional-calculus expressions, and divisions retain their total-function conventions; in particular, division by zero is zero and log⁡0=0\log0=0log0=0.

QAlgorithms.Papers.Independent.Advance50.P23.uniformTraceBound

For finite types X,EX,EX,E, with decidable equality on EEE, a natural number LLL, a real number sss, arbitrary complex matrices WxW_xWx​ indexed by E×EE\times EE×E, and arbitrary real weights PxP_xPx​, write Ch(H)\mathcal C_h(H)Ch​(H) for continuous functional calculus and set H[t]=Cht(H)H^{[t]}=\mathcal C_{h_t}(H)H[t]=Cht​​(H), where ht(0)=0h_t(0)=0ht​(0)=0 and ht(u)=uth_t(u)=u^tht​(u)=ut for u≠0u\ne0u=0. Put

As=∑xPxWx[1+s],gs=Re⁡tr⁡As[1/(1+s)],A_s=\sum_xP_xW_x^{[1+s]},\qquad g_s=\operatorname{Re}\operatorname{tr}A_s^{[1/(1+s)]},As​=x∑​Px​Wx[1+s]​,gs​=RetrAs[1/(1+s)]​,

and define

Js={S ⁣(∑xPxWx)−∑xPxS(Wx),s=0,1+sslog⁡gs,s≠0,S(H)=−Re⁡tr⁡Cu↦ulog⁡u(H).J_s= \begin{cases} S\!\left(\sum_xP_xW_x\right)-\sum_xP_xS(W_x),&s=0,\\[1mm] \displaystyle\frac{1+s}{s}\log g_s,&s\ne0, \end{cases} \quad S(H)=-\operatorname{Re}\operatorname{tr}\mathcal C_{u\mapsto u\log u}(H).Js​=⎩⎨⎧​S(∑x​Px​Wx​)−∑x​Px​S(Wx​),s1+s​loggs​,​s=0,s=0,​S(H)=−RetrCu↦ulogu​(H).

Let csc_scs​ be the number of distinct ascending eigenvalues of AsA_sAs​, where a non-Hermitian matrix is assigned an all-zero eigenvalue list. If this list is nonempty, let

bs=log⁡(largest listed eigenvalue)−log⁡(smallest strictly positive listed eigenvalue),b_s=\log(\text{largest listed eigenvalue}) -\log(\text{smallest strictly positive listed eigenvalue}),bs​=log(largest listed eigenvalue)−log(smallest strictly positive listed eigenvalue),

taking the smallest strictly positive value to be 000 when none exists; for an empty list put bs=0b_s=0bs​=0. With

μs=min⁡ ⁣{4+cs, (4+⌈bs⌉)es/2},\mu_s=\min\!\left\{4+\sqrt{c_s},\ \left(4+\sqrt{\lceil b_s\rceil}\right)e^{s/2}\right\},μs​=min{4+cs​​, (4+⌈bs​⌉​)es/2},

where the integer ceiling is viewed as a real number inside the square root, the declaration defines

μs esJs/2Ls/2.\frac{\mu_s\,e^{sJ_s/2}}{L^{s/2}}.Ls/2μs​esJs​/2​.

No probability, positivity, normalization, or parameter-range hypotheses are imposed. In particular L=0L=0L=0, s=−1s=-1s=−1, and empty indexing types are allowed; division by zero is zero, log⁡0=0\log0=0log0=0, and real square roots of nonpositive numbers are zero.

QAlgorithms.Papers.Independent.Advance50.P23.wiretapCapacity

For finite types X,B,EX,B,EX,B,E, with decidable equality on B,EB,EB,E, and arbitrary matrix families WB:X→CB×BW_B:X\to\mathbb C^{B\times B}WB​:X→CB×B, WE:X→CE×EW_E:X\to\mathbb C^{E\times E}WE​:X→CE×E, this defines an extended real supremum over real numbers RRR and code sequences as follows. For every nnn, a sequence supplies a positive message count mnm_nmn​, probability laws pn,jp_{n,j}pn,j​ on XnX^nXn, and positive semidefinite decoder matrices Dn,jD_{n,j}Dn,j​ on BnB^nBn summing to III. Put

VB,n,j=∑x∈Xnpn,j(x)WB(n)(x),VE,n,j=∑x∈Xnpn,j(x)WE(n)(x),V_{B,n,j}=\sum_{x\in X^n}p_{n,j}(x)W_B^{(n)}(x), \qquad V_{E,n,j}=\sum_{x\in X^n}p_{n,j}(x)W_E^{(n)}(x),VB,n,j​=x∈Xn∑​pn,j​(x)WB(n)​(x),VE,n,j​=x∈Xn∑​pn,j​(x)WE(n)​(x),

where W(n)(x)u,v=∏i<nW(xi)ui,viW^{(n)}(x)_{u,v}=\prod_{i<n}W(x_i)_{u_i,v_i}W(n)(x)u,v​=∏i<n​W(xi​)ui​,vi​​, and define H(A)=−Re⁡Tr⁡(f(A))H(A)=-\operatorname{Re}\operatorname{Tr}(f(A))H(A)=−ReTr(f(A)), with f(t)=tlog⁡tf(t)=t\log tf(t)=tlogt evaluated by real continuous functional calculus. The supremum includes RRR, embedded in the extended reals, precisely when

R≥0,log⁡mnn⟶R,1−1mn∑j<mnRe⁡Tr⁡(Dn,jVB,n,j)⟶0,H ⁣(1mn∑j<mnVE,n,j)−1mn∑j<mnH(VE,n,j)⟶0.R\ge0,\quad \frac{\log m_n}{n}\longrightarrow R,\quad 1-\frac1{m_n}\sum_{j<m_n}\operatorname{Re}\operatorname{Tr}(D_{n,j}V_{B,n,j})\longrightarrow0, \quad H\!\left(\frac1{m_n}\sum_{j<m_n}V_{E,n,j}\right) -\frac1{m_n}\sum_{j<m_n}H(V_{E,n,j})\longrightarrow0.R≥0,nlogmn​​⟶R,1−mn​1​j<mn​∑​ReTr(Dn,j​VB,n,j​)⟶0,H(mn​1​j<mn​∑​VE,n,j​)−mn​1​j<mn​∑​H(VE,n,j​)⟶0.

All logarithms are natural. Neither output family is assumed to consist of density matrices. Block length 000 is included, with singleton string spaces, empty products 111, and division by zero 000. The supremum of an empty admissible set is −∞-\infty−∞, and an unbounded supremum is +∞+\infty+∞.

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

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 2026

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

  • Endorsed by mikedeng1 · Nov 8, 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