Definitions for Quantum wiretap channel with non-uniform random number and its exponent and equivocation rate of leaked information
DefinitionQAlgorithms_Papers_Independent_Advance50_P23The 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.
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
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Advance50.P23.AffinePair
For a ring , additive commutative groups equipped with -module structures, a finite enumeration of , and a natural number , this structure consists of a submodule , an injective -linear map whose image lies in , and representatives for , satisfying
The asserted unique index is ; injectivity of also makes unique once is fixed. No finite enumeration of is assumed by the structure, although its injection into finite forces it to be finite. The requirements cannot be satisfied when , since .
QAlgorithms.Papers.Independent.Advance50.P23.CodeSequence
For finite types , with decidable equality on , this structure consists of a function and, for every natural number , a code with exactly messages. Such a code includes a proof that ; an encoder for each , satisfying and ; and decoder matrices that are positive semidefinite and satisfy . Here and mean functions from to the respective types. Codes are required also at , 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 is empty the required encoder laws at positive block lengths cannot be satisfied.
QAlgorithms.Papers.Independent.Advance50.P23.Condition1
For a finite indexing type , a ring , an additive commutative group equipped with a -module structure and a finite enumeration, real weights , submodules , and , this predicate requires all three conditions
The zero element is excluded from the last condition. The group and every submodule contain zero, so their cardinalities are positive; satisfying the predicate therefore forces . An empty cannot satisfy the normalization requirement. If consists only of zero, the final condition is vacuous.
QAlgorithms.Papers.Independent.Advance50.P23.Condition2
For a finite indexing type , a ring , additive commutative groups with -module structures, a finite enumeration of , real weights , and -linear maps , this predicate requires for every , , injectivity of every , and
for every nonzero and nonzero , provided . No finiteness assumption on is stated. The last requirement is vacuous if has no nonzero element or , while the law and injectivity requirements remain. Empty cannot satisfy the law requirement; the denominator in each applicable bound is strictly positive.
QAlgorithms.Papers.Independent.Advance50.P23.GroupedDecoder
For a ring , a finite additive commutative group equipped with a -module structure, a finite type with decidable equality, and natural numbers , let consist of nested submodules of sizes and , with representatives giving each element of a unique coset index. Let , and let be a code with , an encoder satisfying and for each , and decoder matrices that are positive semidefinite and sum to the identity. This predicate means that
and that there exists a family of positive semidefinite matrices , indexed by , such that
The decoder grouping condition uses , while the encoder condition uses . No channel output family occurs in this predicate.
QAlgorithms.Papers.Independent.Advance50.P23.Imax
For finite types , with decidable equality on , and every family , define , using natural logarithms and the real continuous functional calculus. The declaration defines the real supremum
The matrices are unrestricted; no density-matrix hypothesis or attainment assertion is included. Empty is allowed, in which case no such exists and the total real supremum of the empty set is zero.
QAlgorithms.Papers.Independent.Advance50.P23.Imix
For finite types , with decidable equality on , and every family , let , using the convention , and let , with natural logarithms and the real continuous functional calculus. The declaration defines
There is no assumption that the matrices are Hermitian, positive, or normalized. Empty types are allowed; when is empty the function has no entries and the displayed expression is zero.
QAlgorithms.Papers.Independent.Advance50.P23.IsAdditiveCQ
For an additive commutative group , a finite type with decidable equality, and , this predicate means that there exist a matrix and a projective unitary representation of the multiplicative version of such that is positive semidefinite with , and
Explicitly, the representation consists of unitary matrices and complex numbers satisfying and for every ; no further conditions on these phases are part of the representation structure. The group need not be finite. If is empty, the trace-one requirement cannot be satisfied.
QAlgorithms.Papers.Independent.Advance50.P23.NestedPair
For a ring , a finite additive commutative group equipped with a -module structure, and natural numbers , this structure consists of two -submodules and representatives for , together with the requirements
and
The uniqueness concerns the representative index. Although 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 , any types , real functions and , and a family of functions , this predicate is the conjunction
and
There is no separate probability-law requirement on . If is empty, both displayed marginal and pair conditions are vacuous; if has at most one element, the distinct-pair condition is vacuous. The predicate cannot hold when is empty.
QAlgorithms.Papers.Independent.Advance50.P23.ReliableRate
For finite types , with decidable equality on , arbitrary matrices , a real number , and a code sequence , this predicate means
where . The sequence supplies positive integers , nonnegative encoder weights summing to , and positive semidefinite decoder matrices summing to the identity, for every . The logarithm is natural. No assumption says that the matrices are density matrices. The sequences include , with empty products equal to and real division by zero equal to ; the limits concern .
QAlgorithms.Papers.Independent.Advance50.P23.Universal2
For a finite indexing type , any type , a finite type , real weights , and functions , this predicate requires that every pair of distinct satisfy
The weights are not required to be nonnegative or normalized, so the left side is a weighted sum without an assumed probability interpretation. If has no distinct pair, the requirement is vacuous. Empty is allowed and gives a zero sum; if is empty, the reciprocal on the right is , using the total real inverse.
QAlgorithms.Papers.Independent.Advance50.P23.UsesLaw
For finite types , with decidable equality on , natural numbers , any real function on , and a wiretap code with messages, this predicate means that there exists a table such that its encoder satisfies
Here the code already requires each 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 , although the displayed equality forces . In particular, it cannot hold when .
QAlgorithms.Papers.Independent.Advance50.P23.WiretapCode
For finite types and , with decidable equality on , and a natural number , a wiretap code consists of a proof that , real numbers for and , and complex matrices indexed by , satisfying
Thus each message has a probability distribution on , and the decoder matrices form a positive operator valued measurement. No such code exists when or is empty; nonemptiness of is not assumed.
QAlgorithms.Papers.Independent.Advance50.P23.affinePairOutput
For a ring , finite additive commutative groups equipped with -module structures, a natural number , matrices , and arbitrary real weights , let consist of a submodule , an injective linear map with image in , and representatives such that every element of has exactly one index for which it can be written . For any shift , this defines
with the real weights embedded in . No nonnegativity or normalization is required of , and no positivity or trace condition is required of . Existence of the supplied structure forces .
QAlgorithms.Papers.Independent.Advance50.P23.blockMu
For finite types , with decidable equality on , a natural number , a real number , arbitrary matrices , and an arbitrary function , put
where uses the real continuous functional calculus and the total real-power function. Let have entries . For any matrix , let be its eigenvalues in ascending order when is Hermitian, and let every be otherwise; write for the number of distinct values among these , and let be the smallest strictly positive such value, or if none exists. Define
The declared value is
where the ceiling is an integer subsequently regarded as a real number. No distribution or density-matrix assumptions are imposed. All operations are total: , and the real square root of a negative number is . When , the tensor matrix is the matrix with entry , so the value is ; empty or is also allowed.
QAlgorithms.Papers.Independent.Advance50.P23.bookLaw
For any type , natural numbers , real-valued function , and array , this defines the real number
There is no assumption that is nonnegative or sums to one, and entries of may repeat. If or , the product equals .
QAlgorithms.Papers.Independent.Advance50.P23.classicalRenyi
For a finite type , any real number , and any function , this defines
No nonnegativity or normalization of , and no restriction on , is required. Powers use the total real-power function, while zero entries are explicitly assigned contribution zero for every , including and negative . The real logarithm satisfies and takes the logarithm of the absolute value on negative arguments. An empty is included and gives value zero.
QAlgorithms.Papers.Independent.Advance50.P23.conditionalRenyiReference
For finite types with the required decidable equality, arbitrary , arbitrary matrices and , and an arbitrary real function , form matrices on by
This defines the extended-real quantity . To specify , let mean , let be functional calculus with scalar function zero at zero and elsewhere, and let for and otherwise. At , is embedded in the extended reals when holds, and otherwise; at it is if fails; in every remaining case with , it is
No density or probability-law hypotheses are imposed, and the reference blocks are without factors . In particular, positive with failed support inclusion gives conditional reference value .
QAlgorithms.Papers.Independent.Advance50.P23.constrainedPrivate
For finite types , with decidable equality on , any natural number , real number , and arbitrary matrix families , define and , where uses real continuous functional calculus and natural logarithms. Consider every positive integer , probability law , and collection of probability laws on ; thus all these weights are nonnegative and each law sums to . Put
The declared value is the extended real supremum of the embedded real numbers over precisely those choices satisfying . No decoder is required, and neither output family is assumed to consist of density matrices. There is no sign restriction on . At , empty products are , the constraint is satisfied and the value is , using real division by zero . An empty admissible set has supremum , and an unbounded one has supremum .
QAlgorithms.Papers.Independent.Advance50.P23.cosetOutput
For a ring , a finite additive commutative group with a -module structure, an output index type , any matrix-valued function , a submodule , and , this defines
The real reciprocal is embedded into and used for matrix scalar multiplication. No positivity or trace condition is imposed on . The finite submodule contains zero, so its cardinality is never zero; for , the value is .
QAlgorithms.Papers.Independent.Advance50.P23.cqJoint
For types , a family , and an arbitrary function , this defines a complex matrix indexed by , with entries
The coefficient 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 , a complex matrix , and an arbitrary function , this defines the matrix indexed by whose entries are
Here is regarded as a complex scalar. No positivity or normalization of or 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 , with decidable equality on , and every family , the declaration defines the real supremum
with matrix square roots interpreted through the real continuous functional calculus. No density-matrix assumption on , and no assertion that the supremum is attained, is included. If 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 , with decidable equality on , and every family , let , with , and . The declaration defines
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 with decidable equality, any matrix-valued function , and a code with a positive number of messages, let be its encoder laws, so and , and let be its decoder effects, so every is positive semidefinite and . Put . If every is positive semidefinite with trace one, define
Then the defined value is . If even one fails the density-matrix condition, the defined value is . There is no assumption that the individual matrices are density matrices; the branch condition concerns their encoded averages. Natural logarithms are used, with , and cannot occur because the code includes the requirement .
QAlgorithms.Papers.Independent.Advance50.P23.eigenCount
For every finite type with decidable equality and every complex matrix , form a real sequence indexed by : when 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 is empty the count is zero; if is nonempty and is not Hermitian, the count is one.
QAlgorithms.Papers.Independent.Advance50.P23.ensembleInfo
For finite types , with decidable equality on , natural numbers , arbitrary matrices , and arbitrary real functions , , consider every table . Define
The declared value is
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 , empty sums equal , and ; in particular, the value is when or .
QAlgorithms.Papers.Independent.Advance50.P23.ensembleTrace
For finite types , with decidable equality on , natural numbers , an arbitrary matrix family , and arbitrary real functions on and on , consider all tables . Put
This defines
where the matrix square root is given by real continuous functional calculus. There is no factor in this expression. Neither weight function is required to be nonnegative or normalized, and need not be a density matrix. Empty products are , empty sums are , and division by zero is ; consequently the value is when or .
QAlgorithms.Papers.Independent.Advance50.P23.equivocationFunction
For finite types , with decidable equality on , a real number , and arbitrary matrix families , this defines in the extended reals. Here is the extended real supremum described explicitly as follows: choose a positive integer , nonnegative weights summing to , and, for each , nonnegative weights on summing to ; set
where and , with evaluated by real continuous functional calculus. Then is the supremum of the embedded real values subject to . Natural logarithms are used, no decoder or density-matrix condition is imposed, and may have either sign. Empty admissible sets give , unbounded sets give , and is included with total division by zero and ; that initial value does not affect the limit inferior.
QAlgorithms.Papers.Independent.Advance50.P23.expectE
For a finite type , any real function , and any function , this definition is the extended-real finite sum
with each real coefficient embedded in the extended real numbers and multiplication and addition taken there. No nonnegativity or normalization is assumed for , and infinite values of are allowed. The sum is zero when 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 , any real weights , any , and any extended-real-valued function , this defines
as a nonnegative extended real number. Multiplication inside the exponential uses extended-real arithmetic, and the extended exponential sends to and to . No nonnegativity or normalization of is assumed: negative weights are replaced by zero. The empty sum is zero; when , extended-real multiplication gives , including for infinite , so the value is .
QAlgorithms.Papers.Independent.Advance50.P23.exponentG
For finite types , with decidable equality on , any , matrices , and real weights , this defines
Here , for , and is continuous functional calculus with scalar function equal to at and to the real power otherwise. Neither nor is required to describe probabilities or density matrices. The logarithm and functional calculus use their total Lean definitions, including . The defining set contains ; attainment is not asserted, and the total real supremum returns if the set is unbounded above. Empty finite types are included.
QAlgorithms.Papers.Independent.Advance50.P23.exponentR
For finite types , with decidable equality on , any , matrices indexed by , and real weights , this defines
where , with , and denotes continuous functional calculus with scalar function when , and otherwise, using real powers. No probability-law, positivity, or density-matrix assumptions are imposed. All logarithms are Lean’s total real logarithm, including ; the functional calculus is also total. The supremum is a real supremum, not an asserted maximum; its defining set contains , and the total real supremum operation returns if that set is unbounded above. Empty finite types are permitted.
QAlgorithms.Papers.Independent.Advance50.P23.gallagerInfo
For finite types , with decidable equality on , any real , any family of complex matrices , and any function , define when and otherwise, using total real powers, and put and , where matrix functions use the real continuous functional calculus. Writing , the declaration defines
No positivity, normalization, or Hermitian assumptions are imposed on or . Logarithms are natural and total, with ; division by zero is zero, including the exponent at . Empty finite indexing types are allowed.
QAlgorithms.Papers.Independent.Advance50.P23.gallagerTrace
For finite types , with decidable equality on , , arbitrary real weights , and arbitrary matrices , write for real continuous functional calculus with scalar function at zero and total real power elsewhere. This defines the real number
No density-matrix, probability-law, or support hypothesis is imposed. Division is total, so at both displayed exponents are ; these functional-calculus zeroth powers still assign zero to zero spectral values. If or is empty, the value is .
QAlgorithms.Papers.Independent.Advance50.P23.hashedDistance
For finite types , with the decidable equality required for the matrix operations, any matrix family , any real function , and any function , this defines
There is no assumption that is a probability law or that the matrices are density matrices, and no nonemptiness assumption is imposed. If is empty, the outer sum is ; the inverse of its cardinality is also defined as .
QAlgorithms.Papers.Independent.Advance50.P23.hayashiBalanced
For finite types and a function , this predicate requires, for every , the natural-number equality
Thus the condition is stated by multiplication, without dividing by . No nonemptiness is assumed: if is empty, every required equality is ; if is empty, the universal condition is vacuous, with the supplied function necessarily forcing to be empty as well.
QAlgorithms.Papers.Independent.Advance50.P23.hayashiCodeError
For finite types , with decidable equality on , a natural number , an arbitrary family of complex matrices, and a wiretap code , this definition gives
The code requires , nonnegative encoder entries with for each message, and positive semidefinite decoder matrices with . Hence this is the uniform average of the displayed message errors, with no zero-message case. The matrices need not be density matrices, and no bound is part of the definition.
QAlgorithms.Papers.Independent.Advance50.P23.hayashiCompose
For types , a finite type , a family , and arbitrary real coefficients , this defines the matrix-valued function
where each real coefficient is regarded as a complex scalar. Neither positivity or normalization of nor nonnegativity or normalization of is assumed. If is empty, the resulting matrix is zero for every .
QAlgorithms.Papers.Independent.Advance50.P23.hayashiConditionalRenyi
For arbitrary finite types , a real number , and arbitrary real functions and , this defines
The powers in the second branch are the total real-power function used by the code. In particular, zero entries contribute zero even when or . No probability-law, nonnegativity, or restriction on is assumed. The real logarithm is total, with and for negative . Either finite type may be empty; if either is empty, the defined value is zero.
QAlgorithms.Papers.Independent.Advance50.P23.hayashiIsCQ
For a type , a finite type , and a family , this predicate means that every is positive semidefinite and has complex trace exactly . No condition is imposed on how depends on . If is empty, the predicate holds vacuously; if is empty and is nonempty, it cannot hold, since an empty matrix has trace .
QAlgorithms.Papers.Independent.Advance50.P23.hayashiIsStochastic
For a type , a finite type , and a function , this predicate means that, for every , all are nonnegative and . If is empty, this holds vacuously; if is empty and is nonempty, it cannot hold.
QAlgorithms.Papers.Independent.Advance50.P23.hayashiMu
For finite types , with decidable equality on , any , matrices , and real function , put , where , otherwise, and matrix functions use the real continuous functional calculus. From the ascending eigenvalue sequence of , defined as an all-zero sequence if is not Hermitian, let be its set of distinct values, , and its smallest positive entry or zero if none exists. Set if is empty and otherwise. The declaration defines
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: , 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 with decidable equality, arbitrary complex matrices , and , write for , and write for the real continuous functional calculus of applied to the function that is at and is the total real power elsewhere. The defined value lies in the extended real numbers. At , it is
For with false, it is . In every remaining case, necessarily , it is , where for and for . No Hermitian, positivity, or trace-normalization hypothesis is imposed; negative does not trigger the support-failure branch, and zero spectral values remain zero even for exponent or negative exponents.
QAlgorithms.Papers.Independent.Advance50.P23.hayashiProductLaw
For any type , natural number , and function , this defines a function on strings by
There is no assumption that is nonnegative or sums to . When , there is exactly one empty string, and its value is , including when is empty.
QAlgorithms.Papers.Independent.Advance50.P23.hayashiReliability
For finite types , with decidable equality on , natural numbers , any real , arbitrary complex matrices , and any real function , put . Write
where denotes real continuous functional calculus and is the total real power operation. The defined number is
No probability-law, positivity, normalization, or sign assumptions are imposed on . The branch is exactly , including when ; all other powers and logarithms use their total real definitions, including .
QAlgorithms.Papers.Independent.Advance50.P23.hayashiRenyiEntropy
For every finite type , real , and real function , the declaration defines
Logarithms are natural, and real powers and logarithms use their total conventions; in particular, and . No probability-law assumption is imposed on , and negative entries are permitted. The parameter is included. If is empty, the value is zero for every .
QAlgorithms.Papers.Independent.Advance50.P23.hayashiShannon
For every finite type and every real function , the declaration defines
The logarithm is natural, with the total real-logarithm convention and for negative . No nonnegativity or normalization assumption is imposed on . Zero entries contribute zero, and an empty type gives value zero.
QAlgorithms.Papers.Independent.Advance50.P23.leakedRate
For finite types , with decidable equality on , arbitrary matrix families on respectively, and any real number , this defines an extended real infimum over real numbers and code sequences. Such a sequence has, for every , a positive message count , probability laws on , and positive semidefinite decoder matrices on summing to . Write
with , and let , where is applied by real continuous functional calculus. The value is the infimum of the embedded real numbers for which
There is no separate sign restriction on , and no density-matrix assumption on either output family. Natural logarithms and total real division are used, including at . The infimum of an empty set is , in particular when ; an infimum unbounded below is .
QAlgorithms.Papers.Independent.Advance50.P23.lowerExponent
For any function , this defines the extended real number
where is first computed as a real number and then embedded in the extended reals, and is natural. No positivity or boundedness assumption is imposed on . For , the term is when , and when . At , the term is , using 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 , any types , arbitrary complex matrices indexed by , any function , and any real function , this definition gives the complex matrix
The coefficients are interpreted as complex scalars. No nonnegativity, normalization, or density-matrix assumptions are imposed. If is empty, the result is the zero matrix.
QAlgorithms.Papers.Independent.Advance50.P23.matrixTensor
For a natural number , an arbitrary type , and a complex matrix indexed by , this defines a matrix indexed by pairs of functions , with entries
No finiteness, positivity, Hermitian, or trace assumption is imposed on or . For , the function index set has one element and the empty product is , so the result is the matrix , even if is empty.
QAlgorithms.Papers.Independent.Advance50.P23.maxError
For finite types , with decidable equality on , a natural number , an arbitrary family of complex matrices, and a wiretap code , this definition is the real supremum
The code requires , , , , and . The supremum is therefore over a finite nonempty set and is its maximum. No density-matrix assumption on , or resulting restriction, is included.
QAlgorithms.Papers.Independent.Advance50.P23.messageError
For finite types , with decidable equality on , a natural number , an arbitrary family of complex matrices, a wiretap code , and a message , the message error is the real number
where , , , and , and the code requires . No positivity or trace condition is imposed on , so the definition does not itself restrict this number to .
QAlgorithms.Papers.Independent.Advance50.P23.operationalEquivocationRate
For finite types with decidable equality, arbitrary functions , , and any real , the defined value is the supremum in the extended real numbers of all finite real numbers for which the following code sequence exists. At every natural block length , including , choose a positive message count , encoder laws on , and a POVM on . For , define
and
where is defined by continuous functional calculus. The required conditions are , , , and , all as . No density-matrix assumption on or is imposed by this definition. Logarithms are natural; at , empty products are and real division by zero is . If there is no such sequence and finite limit, the supremum is ; it may be if its finite candidate values are unbounded above.
QAlgorithms.Papers.Independent.Advance50.P23.pairEncoder
For a ring , a finite additive commutative group equipped with a -module structure, and natural numbers , let consist of nested submodules of sizes and , with representatives such that every element of lies in exactly one coset . For any , this defines the real-valued function
Thus its specified value is constant on the shifted coset and zero elsewhere. The data force .
QAlgorithms.Papers.Independent.Advance50.P23.pairOutput
For a ring , a finite additive commutative group equipped with a -module structure, natural numbers , and matrices , let consist of submodules with sizes and , respectively, and representatives such that every element of belongs to exactly one coset . For any shift , this defines an -indexed family of matrices by
The scalar weights are viewed as complex numbers. No positivity or trace condition is imposed on . The structure forces , including when is the trivial group.
QAlgorithms.Papers.Independent.Advance50.P23.petzInfo
For finite types , with decidable equality on , an arbitrary family , arbitrary real weights , and , set and . Write for real continuous functional calculus with scalar value at zero and total real power elsewhere. This defines
No probability-law or density-matrix assumptions are imposed, and there is no support test. The logarithm is the total real logarithm, so and negative arguments use the logarithm of their absolute value. Zero spectral values remain zero even for nonpositive exponents. If or is empty, the value is .
QAlgorithms.Papers.Independent.Advance50.P23.phaseAmplitude
For every natural number , every function , and every , this defines the complex number
where are the least nonnegative representatives and the real square root is included into . There is no assumption that is nonnegative or sums to one; the real square root used here is zero on negative inputs. The case is included, and is excluded.
QAlgorithms.Papers.Independent.Advance50.P23.phaseCQ
For every natural number , arbitrary real functions and , and , this defines a complex matrix indexed by pairs , whose entries are
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 or on any function , so the definition itself does not assert that this matrix is a density matrix. The case is included.
QAlgorithms.Papers.Independent.Advance50.P23.phasePure
For every natural number , arbitrary , and , this defines the complex matrix
where bars denote least nonnegative representatives and square roots are real square roots, zero on negative inputs. Equivalently, its entries are for . No nonnegativity or normalization hypothesis on is present; in particular, the definition does not assert that the matrix has trace one. The case is included.
QAlgorithms.Papers.Independent.Advance50.P23.powerAverage
For a finite type , a finite type with decidable equality, , arbitrary real coefficients , and arbitrary complex matrices , this defines
where powers are total real powers and coefficients are cast to complex scalars. No nonnegativity or normalization of , and no positivity or Hermitian condition on , is required. Zero spectral values contribute zero even at , when the exponent is , or when the exponent is negative. An empty gives the zero matrix.
QAlgorithms.Papers.Independent.Advance50.P23.previousExponent
For finite index types with the required decidable equality, arbitrary , arbitrary matrices , and an arbitrary real function , this defines the real number
Here , , with , and for ,
The power is functional calculus with scalar function at zero and elsewhere. No positivity, normalization, nonemptiness, or sign condition on is imposed. The supremum includes both endpoints, and its term is ; ordinary real logarithms and division retain their total definitions, including .
QAlgorithms.Papers.Independent.Advance50.P23.receiverCapacity
For finite types , with decidable equality on , and any matrix family , this defines the real supremum
where is evaluated by real continuous functional calculus and is natural. The matrices are not assumed positive semidefinite or of trace . Empty types are permitted; when is empty there is no such probability law and the real supremum is . This is the total real supremum operation, which also returns for a set unbounded above.
QAlgorithms.Papers.Independent.Advance50.P23.referenceInfo
For finite types with decidable equality, an arbitrary family , real weights , a complex matrix , and , define matrices indexed by through and when , with both entries zero otherwise. Write , using total real powers, and for . At , this defines if holds, and otherwise. For with false it is ; in all remaining cases it is
No density or probability-law conditions are assumed. Zero spectral values remain zero for every exponent; if or is empty, the value is at and otherwise.
QAlgorithms.Papers.Independent.Advance50.P23.renyiOptimizer
For finite types , with decidable equality on , any , matrices , and real function , let and for , using total real powers, and set and , with matrix functions interpreted through the real continuous functional calculus. The declaration defines the matrix
There are no assumptions that 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 and are included without separate branches; at , the exponent is zero. Empty indexing types are allowed.
QAlgorithms.Papers.Independent.Advance50.P23.secrecy
For finite types , with decidable equality on , any real , arbitrary complex matrices , and arbitrary real functions and , put . Let be real continuous functional calculus applied to the function that is at and elsewhere, and let count the distinct entries of the following real eigenvalue list: the eigenvalues in ascending order when is Hermitian, and the identically zero list otherwise. Define
and
The definition gives
No probability or density-matrix assumptions are required. Division by zero is defined as zero, so this expression is at . Empty index types are allowed; in particular in dimension zero, while for a non-Hermitian matrix of positive dimension it is .
QAlgorithms.Papers.Independent.Advance50.P23.shiftExpect
For finite types , arbitrary real weights , and , this defines the real number
No group structure on , nonnegativity of the weights, or normalization of their sum is required. When is nonempty, the inner expression is its uniform average. If is empty, the reciprocal is and the inner sum is empty, giving value ; empty also gives .
QAlgorithms.Papers.Independent.Advance50.P23.shiftExpectE
For finite types , arbitrary real weights , and , this defines the extended real number
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 may take either infinite value, so the expression uses Lean’s total arithmetic even when opposite infinities occur. No group structure or nonemptiness of is required. Empty gives an empty inner sum and value , and empty likewise gives .
QAlgorithms.Papers.Independent.Advance50.P23.shiftExpectExp
For finite types and , an arbitrary function , a real number , and a function , this defines the extended nonnegative real number
Here the weights are embedded in , the exponential and the multiplication use extended-real arithmetic, and the reciprocal of is first computed in , where . No nonnegativity or normalization assumption is imposed on . If either indexing type is empty, the value is ; products involving and follow extended nonnegative real arithmetic.
QAlgorithms.Papers.Independent.Advance50.P23.spectralSpread
For every finite type with decidable equality and every , let be the set of distinct values of the ascending eigenvalue sequence of , where that sequence is defined to consist entirely of zeros when is not Hermitian. Let be the smallest strictly positive entry of this sequence if any exists, and zero otherwise. The declaration defines
No positivity or Hermitian assumption is imposed. The logarithms are natural and total, so if there is no positive entry the second logarithm is , and negative arguments use . An empty , or a non-Hermitian , gives value zero.
QAlgorithms.Papers.Independent.Advance50.P23.starMoment
For a finite type with decidable equality, , and arbitrary complex matrices , define by real continuous functional calculus with scalar function at zero and the total real power elsewhere. With , this defines the real number
There is no support-inclusion test and no positivity, Hermitian, or trace-normalization hypothesis. Zero spectral values contribute zero for every exponent, including ; thus the zeroth power here need not be the identity. If is empty, the value is .
QAlgorithms.Papers.Independent.Advance50.P23.systematicSubmodule
For a field , natural numbers , and a sequence of length , this defines the -linear submodule of consisting exactly of pairs satisfying
The sequence length and indices use natural-number subtraction truncated at . Thus the submodule is the graph of the linear map with the displayed matrix entries. If , there are no equations and the submodule is all of ; if , the empty sums force , so the submodule contains only the zero pair.
QAlgorithms.Papers.Independent.Advance50.P23.tableEncoder
For any type , natural numbers , real function on , and table , the table encoder is the function
There is no assumption that is nonnegative or sums to one. Repeated occurrences of in a column contribute separately. When , every value is zero; when , the function has no message arguments.
QAlgorithms.Papers.Independent.Advance50.P23.toeplitz
For any type , natural numbers , and a sequence of length , this defines an matrix over , indexed starting at , by
Every subtraction in the sequence length and index is natural-number subtraction, truncated at . Whenever an entry exists, its sequence index is within the specified length. No algebraic structure on is required. If or , the matrix has no entries.
QAlgorithms.Papers.Independent.Advance50.P23.traceBound
For finite types , with decidable equality on , any real , arbitrary complex matrices , and arbitrary real functions and , let denote real continuous functional calculus for the function equal to at and to elsewhere. Put
For any matrix , use its ascending Hermitian eigenvalue list, or an identically zero list if it is non-Hermitian; let be the number of distinct entries, let be its smallest strictly positive entry or if none exists, and define
Set
where , and set and for . The defined bound is
The ceiling in is an integer, interpreted as a real number before taking its square root. There are no probability-law, positivity, normalization, or restrictions on ; all operations are total, including division by zero, , and real square root equal to zero on nonpositive arguments. Thus , empty types, and missing positive eigenvalues are included, and at the value is .
QAlgorithms.Papers.Independent.Advance50.P23.traceCorrelation
For finite types , with decidable equality on , any real function , and any matrices , put and . The declaration defines
where the matrix square root is given by the real continuous functional calculus. No nonnegativity or normalization assumption is imposed on , and the need not be density matrices. In particular, the weights are used with their signs. If or is empty, the value is zero.
QAlgorithms.Papers.Independent.Advance50.P23.underlinedD
For a finite type with decidable equality and arbitrary complex matrices , let denote its real continuous functional calculus with scalar function at zero and , interpreted through total real powers, elsewhere. Set and . This defines the extended-real value
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 the kernel condition holds and the value is , including when is empty.
QAlgorithms.Papers.Independent.Advance50.P23.uniformMomentBound
For finite types , with decidable equality on , a natural number , a real number , arbitrary complex matrices indexed by , and arbitrary real weights , put . Write for the continuous functional calculus of the real function at , and define , where and for , using the real-power operation. Let count the distinct values in the list of eigenvalues of in ascending order, with multiplicity discarded; if is not Hermitian, that list is defined to consist entirely of zeros. Define
The declaration defines the real number
There are no assumptions that is a probability law, that the matrices are density matrices, that , or that lies in any interval. Empty types and are included, and all powers, logarithms, functional-calculus expressions, and divisions retain their total-function conventions; in particular, division by zero is zero and .
QAlgorithms.Papers.Independent.Advance50.P23.uniformTraceBound
For finite types , with decidable equality on , a natural number , a real number , arbitrary complex matrices indexed by , and arbitrary real weights , write for continuous functional calculus and set , where and for . Put
and define
Let be the number of distinct ascending eigenvalues of , where a non-Hermitian matrix is assigned an all-zero eigenvalue list. If this list is nonempty, let
taking the smallest strictly positive value to be when none exists; for an empty list put . With
where the integer ceiling is viewed as a real number inside the square root, the declaration defines
No probability, positivity, normalization, or parameter-range hypotheses are imposed. In particular , , and empty indexing types are allowed; division by zero is zero, , and real square roots of nonpositive numbers are zero.
QAlgorithms.Papers.Independent.Advance50.P23.wiretapCapacity
For finite types , with decidable equality on , and arbitrary matrix families , , this defines an extended real supremum over real numbers and code sequences as follows. For every , a sequence supplies a positive message count , probability laws on , and positive semidefinite decoder matrices on summing to . Put
where , and define , with evaluated by real continuous functional calculus. The supremum includes , embedded in the extended reals, precisely when
All logarithms are natural. Neither output family is assumed to consist of density matrices. Block length is included, with singleton string spaces, empty products , and division by zero . The supremum of an empty admissible set is , and an unbounded supremum is .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.