Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Information Spectrum Approach to Strong Converse Theorems for Degraded Wiretap Channels

Definition
QAlgorithms_Papers_Independent_Bridge50_P42

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

prove2quantum

The objects the formalized statements of Information Spectrum Approach to Strong Converse Theorems for Degraded Wiretap Channels (arXiv:1406.6758) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • StochasticRows: PDF pp.3,5: normalized stochastic rows of a classical channel.
  • DegradedDMC: PDF p.5, (39): the two actual factors of a physically degraded DMC.
  • DegradedDMC.eve: PDF p.6: the actual Eve marginal, obtained by composing the two channels.
  • DegradedDMC.joint: PDF p.5, (39): actual single-use joint law given the input.
  • inducedFiniteOutput: PDF p.3: the output law induced by a finite input law.
  • finiteChannelInformation: PDF p.5, (41), and p.6: finite Shannon mutual information in bits. Reuse the frozen joint-law information applied to p(x)V(y|x). Zero joint mass contributes zero; positive mass has positive marginal factors for normalized laws. Its joint/product likelihood ratio equals V(y|x)/P_Y(y) on actual support.
  • finiteChannelCapacity: PDF p.6: reuse the accepted Shannon capacity of a normalized finite DMC. The zero fallback is outside the normalized-channel domain used by every theorem. On fixed nonempty finite alphabets the supremum is finite and attained.
  • secrecyInfo: PDF p.5, (41): I(X;Y)-I(X;Z) for the actual degraded channel marginals.
  • secrecyCapacity: PDF p.5, (41): the finite single-letter secrecy capacity. Theorem 3 below also retains attainment of this optimization.
  • independentBlockKernel: PDF pp.5–6, (40),(43): independent component channel on a block of length k+1.
  • DiscreteWiretapCode: PDF p.3, Definition 2: arbitrary finite positive message count, stochastic encoder, and deterministic decoder, on the discrete block alphabets.
  • DiscreteWiretapCode.error: PDF p.3, (14): average error for a uniform message and the actual Bob channel.
  • DiscreteWiretapCode.messageEve: PDF p.3, Definition 1: actual joint law of the uniform message and Eve output.
  • DiscreteWiretapCode.independentEve: PDF p.3, Definition 1: product of the uniform message law and actual Eve marginal.
  • SecrecyMetric: PDF p.3, (5)–(10): the six distinct secrecy metrics, in the paper's order.
  • DiscreteWiretapCode.leakage: PDF p.3, (5)–(10): leakage in all six metrics. The threshold is arbitrary. For actual finite-message joint/product laws, positive joint mass implies positive product mass; their likelihood ratios are finite on actual support. Zero joint mass is explicitly excluded from the divergence and probability sums.
  • RateAtLeast: PDF pp.3–4, (16),(24): liminf block rate at least R, written without a real-valued liminf default on unbounded rate sequences.
  • Secure: PDF pp.3–4: a single code sequence has vanishing leakage for every eta>0. none removes the secrecy condition for the point-to-point comparison only.
  • DiscreteReliable: PDF pp.3–4, (16),(24): ordinary limsup-error and strict optimistic liminf-error criteria. The latter is a fixed positive margin on infinitely many lengths.
  • discreteOperationalCapacity: PDF pp.3–4, Definitions 3–4, using the equivalent supremum formulation (24). Extrema take place in EReal, so neither empty nor unbounded sets get default zero.
  • PartialStrongConverse: PDF p.4, Definition 5: actual endpoint equality, not just interior invariance.
  • CapacityConclusion: PDF p.4, (27)–(29): endpoint value and all error-tolerance consequences.
  • WeaklySymmetric: PDF p.6: rows are permutations and all column sums are equal.
  • capacityAverage: PDF p.6, (45)–(47): Cesaro averages over the first k+1 components.
  • maximizingInput: PDF p.6: construct a maximizing input from V itself. The zero fallback is used only outside the nonempty finite normalized-channel domain; the maximum exists in that domain. No comparison output distribution is supplied as data.
  • capacityOutput: PDF p.6: the capacity-achieving output law, constructed from the channel.
  • rowInformationVariance: PDF p.6, (46): row variance on actual row support. Unreachable outputs have mass zero and do not contribute; all reachable output denominators are positive.
  • PointStrongConverse: PDF p.6: the usual point-to-point strong converse, in endpoint-capacity form. The dummy singleton Eve output imposes no secrecy condition.
  • InputProcess: PDF p.8, (66)–(69): arbitrary block input laws, with no consistency or independence requirement across or within blocklengths.
  • blockJoint: PDF pp.5,8, (40),(68): actual joint law induced by an arbitrary block input.
  • conditionalDensity: PDF p.8, (67): normalized conditional information density. On positive actual joint support, W(z|x), P(z), P(y,z) are positive. The value off actual support is explicitly zero and never enters probabilities.
  • spectralConditionalSup: PDF pp.4,8, (31),(67)–(69): the 1-p-limsup conditional information rate, with the strict lower-tail probability condition from (31), valued in EReal.
  • realGaussianDensity: PDF p.3, (4), and p.6, (48): Gaussian density with positive standard deviation sigma in the theorem domain; Mathlib parameterizes it by variance.
  • gaussianBlockDensity: PDF p.6, (48): memoryless real Gaussian conditional output density.
  • gaussianJointDensity: PDF p.6: physical joint realization, with the source's added noise variance. Operational quantities below use its Bob and Eve marginals, respectively N(x,sigma1^2) and N(x,sigma2^2); they do not assume these two outputs independent given x.
  • powerBall: PDF p.6, (49)–(50): the CLOSED block power ball.
  • PowerConstrainedGaussianCode: PDF pp.3,6, Definition 2 and (49): all Borel stochastic encoders on the power ball, including non-atomic ones, and a deterministic measurable decoder. Uniform messages make per-message almost-sure power equivalent to (49).
  • PowerConstrainedGaussianCode.error: PDF p.3, (14), specialized to (48): average decoding error obtained by integrating the actual Bob density and stochastic input measure. For positive sigma, these are integrals of measurable probability kernels, bounded by one.
  • PowerConstrainedGaussianCode.messageEve: PDF p.3, Definition 1: the actual joint message/Eve density relative to counting measure times Lebesgue measure. Positive Gaussian noise gives a finite, strictly positive conditional output density for every z and every message.
  • PowerConstrainedGaussianCode.independentEve: PDF p.3: product of the uniform message law and the actual Eve marginal.
  • PowerConstrainedGaussianCode.leakage: PDF p.3, (5)–(10): all six metrics for the Gaussian code's actual densities. In the positive-noise domain q is positive and p/q <= M. The negative part of p log(p/q) is bounded by a constant times q; its positive part by p log M. Thus these real integrals are integrable, not Bochner defaults on bad functions.
  • GaussianReliable: PDF pp.3–4: the ordinary and strict optimistic reliability conditions for Gaussian code sequences, with the same epsilon endpoint conventions.
  • gaussianOperationalCapacity: PDF pp.3–4,6: operational capacities of the actual real Gaussian channel under the almost-sure block power constraint. Rate is liminf log M/(k+1). One code sequence works for every positive threshold eta; encoders are arbitrary Borel probability measures on the ball, not restricted Gaussian inputs.
  • gaussianSecrecyCapacity: PDF p.6, (51): the Gaussian secrecy capacity in bits per channel use.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_QuantumInformation
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P56
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P80
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P45

/-!
Tan and Bloch, arXiv:1406.6758v2. Paper-local finite classical coding models.
Block index k represents the positive length k+1; component index zero represents
component 1 in the paper. All logarithms and rates are in bits. The general-alphabet
formulas and Poisson extension are deferred in HARD.md.
-/

noncomputable section

namespace QAlgorithms.Papers.Independent.Bridge50.P42

open Filter

open QAlgorithms.Papers.Independent.Information100.P56 (IsLaw)
open QAlgorithms.Papers.Independent.Information100.P80 (log2)

attribute [local instance] Classical.propDecidable

/-- PDF pp.3,5: normalized stochastic rows of a classical channel. -/
def StochasticRows {A B : Type*} [Fintype B] (V : A → B → ℝ) : Prop :=
  ∀ a, IsLaw (V a)

/-- PDF p.5, (39): the two actual factors of a physically degraded DMC. -/
structure DegradedDMC (X Y Z : Type*) [Fintype Y] [Fintype Z] where
  main : X → Y → ℝ
  degrade : Y → Z → ℝ
  main_law : StochasticRows main
  degrade_law : StochasticRows degrade

/-- PDF p.6: the actual Eve marginal, obtained by composing the two channels. -/
def DegradedDMC.eve {X Y Z : Type*} [Fintype Y] [Fintype Z]
    (W : DegradedDMC X Y Z) (x : X) (z : Z) : ℝ :=
  ∑ y, W.main x y * W.degrade y z

/-- PDF p.5, (39): actual single-use joint law given the input. -/
def DegradedDMC.joint {X Y Z : Type*} [Fintype Y] [Fintype Z]
    (W : DegradedDMC X Y Z) (x : X) (y : Y) (z : Z) : ℝ :=
  W.main x y * W.degrade y z

/-- PDF p.3: the output law induced by a finite input law. -/
def inducedFiniteOutput {X Y : Type*} [Fintype X]
    (V : X → Y → ℝ) (p : X → ℝ) (y : Y) : ℝ := ∑ x, p x * V x y

/-- PDF p.5, (41), and p.6: finite Shannon mutual information in bits.
Reuse the frozen joint-law information applied to p(x)V(y|x). Zero joint mass
contributes zero; positive mass has positive marginal factors for normalized laws.
Its joint/product likelihood ratio equals V(y|x)/P_Y(y) on actual support. -/
def finiteChannelInformation {X Y : Type*} [Fintype X] [Fintype Y]
    (V : X → Y → ℝ) (p : X → ℝ) : ℝ :=
  QAlgorithms.mutualInfoBits (fun xy : X × Y => p xy.1 * V xy.1 xy.2)

/-- PDF p.6: reuse the accepted Shannon capacity of a normalized finite DMC.
The zero fallback is outside the normalized-channel domain used by every theorem.
On fixed nonempty finite alphabets the supremum is finite and attained. -/
def finiteChannelCapacity {X Y : Type*} [Fintype X] [Fintype Y]
    (V : X → Y → ℝ) : ℝ :=
  if h : StochasticRows V then
    QAlgorithms.Papers.Independent.Dependency50.P45.shannonCapacity
      { prob := V
        nonnegative := fun x => (h x).1
        normalized := fun x => (h x).2 }
  else 0

/-- PDF p.5, (41): I(X;Y)-I(X;Z) for the actual degraded channel marginals. -/
def secrecyInfo {X Y Z : Type*} [Fintype X] [Fintype Y] [Fintype Z]
    (W : DegradedDMC X Y Z) (p : X → ℝ) : ℝ :=
  finiteChannelInformation W.main p - finiteChannelInformation W.eve p

/-- PDF p.5, (41): the finite single-letter secrecy capacity.
Theorem 3 below also retains attainment of this optimization. -/
def secrecyCapacity {X Y Z : Type*} [Fintype X] [Fintype Y] [Fintype Z]
    (W : DegradedDMC X Y Z) : ℝ :=
  sSup {r : ℝ | ∃ p : X → ℝ, IsLaw p ∧ r = secrecyInfo W p}

/-- PDF pp.5–6, (40),(43): independent component channel on a block of length k+1. -/
def independentBlockKernel {X Y : Type*} (V : ℕ → X → Y → ℝ) (k : ℕ)
    (x : Fin (k + 1) → X) (y : Fin (k + 1) → Y) : ℝ :=
  ∏ j, V j.val (x j) (y j)

/-- PDF p.3, Definition 2: arbitrary finite positive message count, stochastic
encoder, and deterministic decoder, on the discrete block alphabets. -/
structure DiscreteWiretapCode (X Y : Type*) [Fintype X] (k : ℕ) where
  messages : ℕ
  positive : 0 < messages
  encoder : Fin messages → (Fin (k + 1) → X) → ℝ
  encoder_law : ∀ m, IsLaw (encoder m)
  decoder : (Fin (k + 1) → Y) → Fin messages

/-- PDF p.3, (14): average error for a uniform message and the actual Bob channel. -/
def DiscreteWiretapCode.error {X Y : Type*} [Fintype X] [Fintype Y] {k : ℕ}
    (c : DiscreteWiretapCode X Y k) (V : ℕ → X → Y → ℝ) : ℝ :=
  (c.messages : ℝ)⁻¹ * ∑ m, ∑ x, ∑ y,
    if c.decoder y = m then 0 else c.encoder m x * independentBlockKernel V k x y

/-- PDF p.3, Definition 1: actual joint law of the uniform message and Eve output. -/
def DiscreteWiretapCode.messageEve {X Y Z : Type*} [Fintype X] [Fintype Z] {k : ℕ}
    (c : DiscreteWiretapCode X Y k) (V : ℕ → X → Z → ℝ)
    (m : Fin c.messages) (z : Fin (k + 1) → Z) : ℝ :=
  (c.messages : ℝ)⁻¹ * ∑ x, c.encoder m x * independentBlockKernel V k x z

/-- PDF p.3, Definition 1: product of the uniform message law and actual Eve marginal. -/
def DiscreteWiretapCode.independentEve {X Y Z : Type*} [Fintype X] [Fintype Z] {k : ℕ}
    (c : DiscreteWiretapCode X Y k) (V : ℕ → X → Z → ℝ)
    (_m : Fin c.messages) (z : Fin (k + 1) → Z) : ℝ :=
  (c.messages : ℝ)⁻¹ * ∑ m, c.messageEve V m z

/-- PDF p.3, (5)–(10): the six distinct secrecy metrics, in the paper's order. -/
inductive SecrecyMetric where
  | divergence | variation | tail | normalizedDivergence | normalizedVariation | normalizedTail
  deriving DecidableEq

/-- PDF p.3, (5)–(10): leakage in all six metrics. The threshold is arbitrary.
For actual finite-message joint/product laws, positive joint mass implies positive
product mass; their likelihood ratios are finite on actual support. Zero joint
mass is explicitly excluded from the divergence and probability sums. -/
def DiscreteWiretapCode.leakage {X Y Z : Type*} [Fintype X] [Fintype Z] {k : ℕ}
    (c : DiscreteWiretapCode X Y k) (V : ℕ → X → Z → ℝ) (i : SecrecyMetric) (eta : ℝ) : ℝ :=
  let p := c.messageEve V
  let q := c.independentEve V
  let d := ∑ m, ∑ z, if p m z = 0 then 0 else p m z * log2 (p m z / q m z)
  let v := (1 / 2 : ℝ) * ∑ m, ∑ z, |p m z - q m z|
  let tail := fun (scale : ℝ) => ∑ m, ∑ z,
    if 0 < p m z ∧ eta < log2 (p m z / q m z) / scale then p m z else 0
  match i with
  | .divergence => d
  | .variation => v
  | .tail => tail 1
  | .normalizedDivergence => d / (k + 1 : ℝ)
  | .normalizedVariation => v / (k + 1 : ℝ)
  | .normalizedTail => tail (k + 1 : ℝ)

/-- PDF pp.3–4, (16),(24): liminf block rate at least R, written without a
real-valued liminf default on unbounded rate sequences. -/
def RateAtLeast {X Y : Type*} [Fintype X]
    (c : (k : ℕ) → DiscreteWiretapCode X Y k) (R : ℝ) : Prop :=
  ∀ delta : ℝ, 0 < delta → ∀ᶠ k in atTop,
    R - delta ≤ log2 ((c k).messages : ℝ) / (k + 1 : ℝ)

/-- PDF pp.3–4: a single code sequence has vanishing leakage for every eta>0.
`none` removes the secrecy condition for the point-to-point comparison only. -/
def Secure {X Y Z : Type*} [Fintype X] [Fintype Z]
    (c : (k : ℕ) → DiscreteWiretapCode X Y k) (V : ℕ → X → Z → ℝ)
    (i : Option SecrecyMetric) : Prop :=
  match i with
  | none => True
  | some metric => ∀ eta : ℝ, 0 < eta →
      Tendsto (fun k => (c k).leakage V metric eta) atTop (nhds 0)

/-- PDF pp.3–4, (16),(24): ordinary limsup-error and strict optimistic
liminf-error criteria. The latter is a fixed positive margin on infinitely many lengths. -/
def DiscreteReliable {X Y : Type*} [Fintype X] [Fintype Y]
    (c : (k : ℕ) → DiscreteWiretapCode X Y k) (V : ℕ → X → Y → ℝ)
    (optimistic : Bool) (eps : ℝ) : Prop :=
  if optimistic then
    ∃ delta : ℝ, 0 < delta ∧ ∀ N : ℕ, ∃ k : ℕ, N ≤ k ∧ (c k).error V < eps - delta
  else ∀ delta : ℝ, 0 < delta → ∀ᶠ k in atTop, (c k).error V ≤ eps + delta

/-- PDF pp.3–4, Definitions 3–4, using the equivalent supremum formulation (24).
Extrema take place in EReal, so neither empty nor unbounded sets get default zero. -/
def discreteOperationalCapacity {X Y Z : Type*} [Fintype X] [Fintype Y] [Fintype Z]
    (V : ℕ → X → Y → ℝ) (E : ℕ → X → Z → ℝ)
    (i : Option SecrecyMetric) (optimistic : Bool) (eps : ℝ) : EReal :=
  sSup {r : EReal | ∃ R : ℝ, r = (R : EReal) ∧
    ∃ c : (k : ℕ) → DiscreteWiretapCode X Y k,
      RateAtLeast c R ∧ Secure c E i ∧ DiscreteReliable c V optimistic eps}

/-- PDF p.4, Definition 5: actual endpoint equality, not just interior invariance. -/
def PartialStrongConverse {X Y Z : Type*} [Fintype X] [Fintype Y] [Fintype Z]
    (W : ℕ → DegradedDMC X Y Z) (i : SecrecyMetric) : Prop :=
  discreteOperationalCapacity (fun j => (W j).main) (fun j => (W j).eve) (some i) false 0 =
    discreteOperationalCapacity (fun j => (W j).main) (fun j => (W j).eve) (some i) true 1

/-- PDF p.4, (27)–(29): endpoint value and all error-tolerance consequences. -/
def CapacityConclusion {X Y Z : Type*} [Fintype X] [Fintype Y] [Fintype Z]
    (W : ℕ → DegradedDMC X Y Z) (i : SecrecyMetric) (C : ℝ) : Prop :=
  PartialStrongConverse W i ∧
  (∀ eps : ℝ, 0 ≤ eps → eps < 1 →
    discreteOperationalCapacity (fun j => (W j).main) (fun j => (W j).eve) (some i) false eps =
      (C : EReal)) ∧
  (∀ eps : ℝ, 0 < eps → eps ≤ 1 →
    discreteOperationalCapacity (fun j => (W j).main) (fun j => (W j).eve) (some i) true eps =
      (C : EReal))

/-- PDF p.6: rows are permutations and all column sums are equal. -/
def WeaklySymmetric {X Y : Type*} [Fintype X]
    (V : X → Y → ℝ) : Prop :=
  (∀ x x', ∃ e : Equiv.Perm Y, ∀ y, V x y = V x' (e y)) ∧
  ∀ y y', ∑ x, V x y = ∑ x, V x y'

/-- PDF p.6, (45)–(47): Cesaro averages over the first k+1 components. -/
def capacityAverage {X Y : Type*} [Fintype X] [Fintype Y]
    (V : ℕ → X → Y → ℝ) (k : ℕ) : ℝ :=
  (∑ j : Fin (k + 1), finiteChannelCapacity (V j.val)) / (k + 1 : ℝ)

/-- PDF p.6: construct a maximizing input from V itself. The zero fallback is
used only outside the nonempty finite normalized-channel domain; the maximum
exists in that domain. No comparison output distribution is supplied as data. -/
def maximizingInput {X Y : Type*} [Fintype X] [Fintype Y]
    (V : X → Y → ℝ) : X → ℝ :=
  if h : ∃ p : X → ℝ, IsLaw p ∧ ∀ q : X → ℝ, IsLaw q →
      finiteChannelInformation V q ≤ finiteChannelInformation V p then Classical.choose h else fun _ => 0

/-- PDF p.6: the capacity-achieving output law, constructed from the channel. -/
def capacityOutput {X Y : Type*} [Fintype X] [Fintype Y]
    (V : X → Y → ℝ) : Y → ℝ := inducedFiniteOutput V (maximizingInput V)

/-- PDF p.6, (46): row variance on actual row support. Unreachable outputs
have mass zero and do not contribute; all reachable output denominators are positive. -/
def rowInformationVariance {X Y : Type*} [Fintype X] [Fintype Y]
    (V : X → Y → ℝ) (x : X) : ℝ :=
  let d := fun y => if V x y = 0 then 0 else log2 (V x y / capacityOutput V y)
  let mean := ∑ y, V x y * d y
  ∑ y, V x y * (d y - mean) ^ 2

/-- PDF p.6: the usual point-to-point strong converse, in endpoint-capacity form.
The dummy singleton Eve output imposes no secrecy condition. -/
def PointStrongConverse {X Y : Type*} [Fintype X] [Fintype Y]
    (V : ℕ → X → Y → ℝ) : Prop :=
  discreteOperationalCapacity V (fun _ _ (_ : Unit) => 1) none false 0 =
    discreteOperationalCapacity V (fun _ _ (_ : Unit) => 1) none true 1

/-- PDF p.8, (66)–(69): arbitrary block input laws, with no consistency or
independence requirement across or within blocklengths. -/
def InputProcess (X : Type*) [Fintype X] :=
  (k : ℕ) → {p : (Fin (k + 1) → X) → ℝ // IsLaw p}

/-- PDF pp.5,8, (40),(68): actual joint law induced by an arbitrary block input. -/
def blockJoint {X Y Z : Type*} [Fintype X] [Fintype Y] [Fintype Z]
    (W : DegradedDMC X Y Z) (P : InputProcess X) (k : ℕ)
    (x : Fin (k + 1) → X) (y : Fin (k + 1) → Y) (z : Fin (k + 1) → Z) : ℝ :=
  (P k).val x * ∏ j, W.joint (x j) (y j) (z j)

/-- PDF p.8, (67): normalized conditional information density.
On positive actual joint support, W(z|x), P(z), P(y,z) are positive.
The value off actual support is explicitly zero and never enters probabilities. -/
def conditionalDensity {X Y Z : Type*} [Fintype X] [Fintype Y] [Fintype Z]
    (W : DegradedDMC X Y Z) (P : InputProcess X) (k : ℕ)
    (x : Fin (k + 1) → X) (y : Fin (k + 1) → Y) (z : Fin (k + 1) → Z) : ℝ :=
  let p := blockJoint W P k
  if p x y z = 0 then 0 else
    let wyz := ∏ j, W.joint (x j) (y j) (z j)
    let wz := ∏ j, W.eve (x j) (z j)
    let pyz := ∑ a, p a y z
    let pz := ∑ a, ∑ b, p a b z
    log2 ((wyz / wz) / (pyz / pz)) / (k + 1 : ℝ)

/-- PDF pp.4,8, (31),(67)–(69): the 1-p-limsup conditional information rate,
with the strict lower-tail probability condition from (31), valued in EReal. -/
def spectralConditionalSup {X Y Z : Type*} [Fintype X] [Fintype Y] [Fintype Z]
    (W : DegradedDMC X Y Z) (P : InputProcess X) : EReal :=
  sSup {r : EReal | ∃ R : ℝ, r = (R : EReal) ∧
    ∃ delta : ℝ, 0 < delta ∧ ∀ N : ℕ, ∃ k : ℕ, N ≤ k ∧
      (∑ x, ∑ y, ∑ z,
        if conditionalDensity W P k x y z ≤ R then blockJoint W P k x y z else 0)
          < 1 - delta}

/-- PDF p.3, (4), and p.6, (48): Gaussian density with positive standard
 deviation sigma in the theorem domain; Mathlib parameterizes it by variance. -/
def realGaussianDensity (sigma mu y : ℝ) : ℝ :=
  ProbabilityTheory.gaussianPDFReal mu ⟨sigma ^ 2, sq_nonneg sigma⟩ y

/-- PDF p.6, (48): memoryless real Gaussian conditional output density. -/
def gaussianBlockDensity (sigma : ℝ) (k : ℕ)
    (x y : Fin (k + 1) → ℝ) : ℝ :=
  ∏ j, realGaussianDensity sigma (x j) (y j)

/-- PDF p.6: physical joint realization, with the source's added noise variance.
Operational quantities below use its Bob and Eve marginals, respectively N(x,sigma1^2)
and N(x,sigma2^2); they do not assume these two outputs independent given x. -/
def gaussianJointDensity (sigma1 sigma2 x y z : ℝ) : ℝ :=
  realGaussianDensity sigma1 x y * realGaussianDensity (Real.sqrt (sigma2 ^ 2 - sigma1 ^ 2)) y z

/-- PDF p.6, (49)–(50): the CLOSED block power ball. -/
def powerBall (S : ℝ) (k : ℕ) : Set (Fin (k + 1) → ℝ) :=
  {x | ∑ j, (x j) ^ 2 ≤ (k + 1 : ℝ) * S}

/-- PDF pp.3,6, Definition 2 and (49): all Borel stochastic encoders on the
power ball, including non-atomic ones, and a deterministic measurable decoder.
Uniform messages make per-message almost-sure power equivalent to (49). -/
structure PowerConstrainedGaussianCode (S : ℝ) (k : ℕ) where
  messages : ℕ
  positive : 0 < messages
  encoder : Fin messages → MeasureTheory.Measure (Fin (k + 1) → ℝ)
  encoder_probability : ∀ m, MeasureTheory.IsProbabilityMeasure (encoder m)
  encoder_power : ∀ m, encoder m (powerBall S k) = 1
  decoder : (Fin (k + 1) → ℝ) → Fin messages
  decoder_measurable : ∀ m, MeasurableSet {y | decoder y = m}

/-- PDF p.3, (14), specialized to (48): average decoding error obtained by
integrating the actual Bob density and stochastic input measure. For positive
sigma, these are integrals of measurable probability kernels, bounded by one. -/
def PowerConstrainedGaussianCode.error {S : ℝ} {k : ℕ} (c : PowerConstrainedGaussianCode S k) (sigma1 : ℝ) : ℝ :=
  (c.messages : ℝ)⁻¹ * ∑ m,
    ∫ x, (∫ y, if c.decoder y = m then 0 else gaussianBlockDensity sigma1 k x y)
      ∂(c.encoder m)

/-- PDF p.3, Definition 1: the actual joint message/Eve density relative to
counting measure times Lebesgue measure. Positive Gaussian noise gives a finite,
strictly positive conditional output density for every z and every message. -/
def PowerConstrainedGaussianCode.messageEve {S : ℝ} {k : ℕ} (c : PowerConstrainedGaussianCode S k)
    (sigma2 : ℝ) (m : Fin c.messages) (z : Fin (k + 1) → ℝ) : ℝ :=
  (c.messages : ℝ)⁻¹ * ∫ x, gaussianBlockDensity sigma2 k x z ∂(c.encoder m)

/-- PDF p.3: product of the uniform message law and the actual Eve marginal. -/
def PowerConstrainedGaussianCode.independentEve {S : ℝ} {k : ℕ} (c : PowerConstrainedGaussianCode S k)
    (sigma2 : ℝ) (_m : Fin c.messages) (z : Fin (k + 1) → ℝ) : ℝ :=
  (c.messages : ℝ)⁻¹ * ∑ m, c.messageEve sigma2 m z

/-- PDF p.3, (5)–(10): all six metrics for the Gaussian code's actual densities.
In the positive-noise domain q is positive and p/q <= M. The negative part of
p log(p/q) is bounded by a constant times q; its positive part by p log M.
Thus these real integrals are integrable, not Bochner defaults on bad functions. -/
def PowerConstrainedGaussianCode.leakage {S : ℝ} {k : ℕ} (c : PowerConstrainedGaussianCode S k)
    (sigma2 : ℝ) (i : SecrecyMetric) (eta : ℝ) : ℝ :=
  let p := c.messageEve sigma2
  let q := c.independentEve sigma2
  let d := ∑ m, ∫ z, p m z * log2 (p m z / q m z)
  let v := (1 / 2 : ℝ) * ∑ m, ∫ z, |p m z - q m z|
  let tail := fun (scale : ℝ) => ∑ m, ∫ z,
    if eta < log2 (p m z / q m z) / scale then p m z else 0
  match i with
  | .divergence => d
  | .variation => v
  | .tail => tail 1
  | .normalizedDivergence => d / (k + 1 : ℝ)
  | .normalizedVariation => v / (k + 1 : ℝ)
  | .normalizedTail => tail (k + 1 : ℝ)

/-- PDF pp.3–4: the ordinary and strict optimistic reliability conditions for
Gaussian code sequences, with the same epsilon endpoint conventions. -/
def GaussianReliable {S : ℝ} (c : (k : ℕ) → PowerConstrainedGaussianCode S k)
    (sigma1 : ℝ) (optimistic : Bool) (eps : ℝ) : Prop :=
  if optimistic then
    ∃ delta : ℝ, 0 < delta ∧ ∀ N : ℕ, ∃ k : ℕ,
      N ≤ k ∧ (c k).error sigma1 < eps - delta
  else ∀ delta : ℝ, 0 < delta → ∀ᶠ k in atTop, (c k).error sigma1 ≤ eps + delta

/-- PDF pp.3–4,6: operational capacities of the actual real Gaussian channel
under the almost-sure block power constraint. Rate is liminf log M/(k+1).
One code sequence works for every positive threshold eta; encoders are arbitrary
Borel probability measures on the ball, not restricted Gaussian inputs. -/
def gaussianOperationalCapacity (sigma1 sigma2 S : ℝ) (i : SecrecyMetric)
    (optimistic : Bool) (eps : ℝ) : EReal :=
  sSup {r : EReal | ∃ R : ℝ, r = (R : EReal) ∧
    ∃ c : (k : ℕ) → PowerConstrainedGaussianCode S k,
      (∀ delta : ℝ, 0 < delta → ∀ᶠ k in atTop,
        R - delta ≤ log2 ((c k).messages : ℝ) / (k + 1 : ℝ)) ∧
      (∀ eta : ℝ, 0 < eta →
        Tendsto (fun k => (c k).leakage sigma2 i eta) atTop (nhds 0)) ∧
      GaussianReliable c sigma1 optimistic eps}

/-- PDF p.6, (51): the Gaussian secrecy capacity in bits per channel use. -/
def gaussianSecrecyCapacity (sigma1 sigma2 S : ℝ) : ℝ :=
  (1 / 2 : ℝ) * log2 (1 + S / sigma1 ^ 2) -
    (1 / 2 : ℝ) * log2 (1 + S / sigma2 ^ 2)

/-- The power constraint includes the zero vector; it is an inequality, not a sphere. -/
example (S : ℝ) (hS : 0 ≤ S) (k : ℕ) :
    (fun _ : Fin (k + 1) => (0 : ℝ)) ∈ powerBall S k := by
  change (∑ _j : Fin (k + 1), (0 : ℝ) ^ 2) ≤ (k + 1 : ℝ) * S
  simp only [zero_pow (by decide : (2 : ℕ) ≠ 0), Finset.sum_const_zero]
  positivity

/-- The scalar noise density has mass one for every positive standard deviation. -/
example (sigma : ℝ) (hsigma : 0 < sigma) :
    (∫ y, realGaussianDensity sigma 0 y) = 1 := by
  apply ProbabilityTheory.integral_gaussianPDFReal_eq_one
  have hv : (0 : NNReal) < ⟨sigma ^ 2, sq_nonneg sigma⟩ := by
    exact_mod_cast sq_pos_of_pos hsigma
  exact ne_of_gt hv

/-- Normalization and base convention sanity check. -/
example : IsLaw (fun _ : Unit => (1 : ℝ)) ∧ log2 1 = 0 := by
  simp [IsLaw, log2]

/-- The singleton input/output channel carries zero mutual information. -/
example : finiteChannelInformation (fun (_ : Unit) (_ : Unit) => (1 : ℝ)) (fun _ => 1) = 0 := by
  simp [finiteChannelInformation, QAlgorithms.mutualInfoBits]

/-- Positive block indexing: the first block contains exactly one channel use. -/
example {X Y : Type*} (V : ℕ → X → Y → ℝ) (x : Fin 1 → X) (y : Fin 1 → Y) :
    independentBlockKernel V 0 x y = V 0 (x 0) (y 0) := by
  simp [independentBlockKernel]

end QAlgorithms.Papers.Independent.Bridge50.P42
Source
Information Spectrum Approach to Strong Converse Theorems for Degraded Wiretap Channels, arXiv:1406.6758v2, https://arxiv.org/abs/1406.6758v2
Read-back

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

QAlgorithms.Papers.Independent.Bridge50.P42.CapacityConclusion

For finite types X,Y,ZX,Y,ZX,Y,Z, let (Wj)j≥0(W_j)_{j\ge0}(Wj​)j≥0​ consist of real row distributions Vj(x,y)V_j(x,y)Vj​(x,y) and Dj(y,z)D_j(y,z)Dj​(y,z), meaning that every row is nonnegative and sums to one, and put Ej(x,z)=∑yVj(x,y)Dj(y,z)E_j(x,z)=\sum_yV_j(x,y)D_j(y,z)Ej​(x,z)=∑y​Vj​(x,y)Dj​(y,z). Fix one of the six secrecy metrics iii and any real number CCC. Define Co(ε)\mathcal C_o(\varepsilon)Co​(ε) to be the extended real supremum of all real RRR for which there is a family of codes with positive message counts MkM_kMk​, encoder distributions ak,ma_{k,m}ak,m​ on Xk+1X^{k+1}Xk+1, and decoders dk:Yk+1→{0,…,Mk−1}d_k:Y^{k+1}\to\{0,\ldots,M_k-1\}dk​:Yk+1→{0,…,Mk​−1}, such that for every δ>0\delta>0δ>0,

R−δ≤log⁡Mk(k+1)log⁡2eventually as k→∞.R-\delta\le\frac{\log M_k}{(k+1)\log2} \quad\text{eventually as }k\to\infty.R−δ≤(k+1)log2logMk​​eventually as k→∞.

For this family set

ek=1Mk∑m,x,y1{dk(y)≠m}ak,m(x)∏j=0kVj(xj,yj),pk(m,z)=1Mk∑xak,m(x)∏j=0kEj(xj,zj),qk(m,z)=1Mk∑ℓpk(ℓ,z).e_k=\frac1{M_k}\sum_{m,x,y} \mathbf1_{\{d_k(y)\ne m\}}a_{k,m}(x)\prod_{j=0}^{k}V_j(x_j,y_j), \quad p_k(m,z)=\frac1{M_k}\sum_xa_{k,m}(x)\prod_{j=0}^{k}E_j(x_j,z_j), \quad q_k(m,z)=\frac1{M_k}\sum_\ell p_k(\ell,z).ek​=Mk​1​m,x,y∑​1{dk​(y)=m}​ak,m​(x)j=0∏k​Vj​(xj​,yj​),pk​(m,z)=Mk​1​x∑​ak,m​(x)j=0∏k​Ej​(xj​,zj​),qk​(m,z)=Mk​1​ℓ∑​pk​(ℓ,z).

Writing L(u)=log⁡u/log⁡2L(u)=\log u/\log2L(u)=logu/log2, let

Dkleak=∑m,z{0,pk(m,z)=0,pk(m,z)L(pk(m,z)/qk(m,z)),pk(m,z)≠0,Tk=12∑m,z∣pk(m,z)−qk(m,z)∣,Hk,η(s)=∑m,z: pk(m,z)>0η<L(pk(m,z)/qk(m,z))/spk(m,z).D_k^{\rm leak}=\sum_{m,z} \begin{cases}0,&p_k(m,z)=0,\\ p_k(m,z)L(p_k(m,z)/q_k(m,z)),&p_k(m,z)\ne0,\end{cases} \quad T_k=\frac12\sum_{m,z}|p_k(m,z)-q_k(m,z)|, \quad H_{k,\eta}(s)= \sum_{\substack{m,z:\ p_k(m,z)>0\\ \eta<L(p_k(m,z)/q_k(m,z))/s}}p_k(m,z).Dkleak​=m,z∑​{0,pk​(m,z)L(pk​(m,z)/qk​(m,z)),​pk​(m,z)=0,pk​(m,z)=0,​Tk​=21​m,z∑​∣pk​(m,z)−qk​(m,z)∣,Hk,η​(s)=m,z: pk​(m,z)>0η<L(pk​(m,z)/qk​(m,z))/s​∑​pk​(m,z).

The family must, for every η>0\eta>0η>0, have its selected leakage tend to zero, where the six metric choices respectively select DkleakD_k^{\rm leak}Dkleak​, TkT_kTk​, Hk,η(1)H_{k,\eta}(1)Hk,η​(1), Dkleak/(k+1)D_k^{\rm leak}/(k+1)Dkleak​/(k+1), Tk/(k+1)T_k/(k+1)Tk​/(k+1), or Hk,η(k+1)H_{k,\eta}(k+1)Hk,η​(k+1). When ooo is false, it must satisfy ek≤ε+δe_k\le\varepsilon+\deltaek​≤ε+δ eventually for every δ>0\delta>0δ>0; when ooo is true, some δ>0\delta>0δ>0 must satisfy that for every NNN there is k≥Nk\ge Nk≥N with ek<ε−δe_k<\varepsilon-\deltaek​<ε−δ. The defined conclusion is the conjunction

Cfalse(0)=Ctrue(1),∀ 0≤ε<1,Cfalse(ε)=C,∀ 0<ε≤1,Ctrue(ε)=C,\mathcal C_{\mathrm{false}}(0)=\mathcal C_{\mathrm{true}}(1), \qquad \forall\,0\le\varepsilon<1,\quad \mathcal C_{\mathrm{false}}(\varepsilon)=C, \qquad \forall\,0<\varepsilon\le1,\quad \mathcal C_{\mathrm{true}}(\varepsilon)=C,Cfalse​(0)=Ctrue​(1),∀0≤ε<1,Cfalse​(ε)=C,∀0<ε≤1,Ctrue​(ε)=C,

where CCC is embedded in the extended reals. The ordinary interval includes 000 and excludes 111, while the optimistic interval excludes 000 and includes 111. Rates RRR and CCC have no explicit nonnegativity requirement. All word sums have length k+1k+1k+1; division and logarithms are total, with u/0=0u/0=0u/0=0, log⁡0=0\log0=0log0=0, and log⁡u=log⁡∣u∣\log u=\log|u|logu=log∣u∣ for nonzero uuu. Empty alphabets are allowed by the binders, and an empty extended real supremum equals −∞-\infty−∞.

QAlgorithms.Papers.Independent.Bridge50.P42.DegradedDMC.eve

For any type XXX, finite types Y,ZY,ZY,Z, functions Wmain:X×Y→RW_{\mathrm{main}}:X\times Y\to\mathbb RWmain​:X×Y→R and Wdegrade:Y×Z→RW_{\mathrm{degrade}}:Y\times Z\to\mathbb RWdegrade​:Y×Z→R whose rows are nonnegative and sum to one, and elements x∈Xx\in Xx∈X, z∈Zz\in Zz∈Z, this defines the real number Weve(x,z)=∑y∈YWmain(x,y)Wdegrade(y,z)W_{\mathrm{eve}}(x,z)=\sum_{y\in Y}W_{\mathrm{main}}(x,y)W_{\mathrm{degrade}}(y,z)Weve​(x,z)=∑y∈Y​Wmain​(x,y)Wdegrade​(y,z). The sum runs over all of YYY, and an empty sum is zero.

QAlgorithms.Papers.Independent.Bridge50.P42.DegradedDMC.joint

For any type XXX, finite types Y,ZY,ZY,Z, functions Wmain:X×Y→RW_{\mathrm{main}}:X\times Y\to\mathbb RWmain​:X×Y→R and Wdegrade:Y×Z→RW_{\mathrm{degrade}}:Y\times Z\to\mathbb RWdegrade​:Y×Z→R whose rows are nonnegative and sum to one, and elements x∈Xx\in Xx∈X, y∈Yy\in Yy∈Y, z∈Zz\in Zz∈Z, this defines Wjoint(x,y,z)=Wmain(x,y)Wdegrade(y,z)W_{\mathrm{joint}}(x,y,z)=W_{\mathrm{main}}(x,y)W_{\mathrm{degrade}}(y,z)Wjoint​(x,y,z)=Wmain​(x,y)Wdegrade​(y,z). No distribution on XXX is an argument or a factor in this definition.

QAlgorithms.Papers.Independent.Bridge50.P42.DegradedDMC

For any type XXX and finite types Y,ZY,ZY,Z, a value of this structure consists of real functions Wmain:X×Y→RW_{\mathrm{main}}:X\times Y\to\mathbb RWmain​:X×Y→R and Wdegrade:Y×Z→RW_{\mathrm{degrade}}:Y\times Z\to\mathbb RWdegrade​:Y×Z→R, together with the requirements that Wmain(x,y)≥0W_{\mathrm{main}}(x,y)\ge0Wmain​(x,y)≥0, ∑y∈YWmain(x,y)=1\sum_{y\in Y}W_{\mathrm{main}}(x,y)=1∑y∈Y​Wmain​(x,y)=1 for every x∈Xx\in Xx∈X, and Wdegrade(y,z)≥0W_{\mathrm{degrade}}(y,z)\ge0Wdegrade​(y,z)≥0, ∑z∈ZWdegrade(y,z)=1\sum_{z\in Z}W_{\mathrm{degrade}}(y,z)=1∑z∈Z​Wdegrade​(y,z)=1 for every y∈Yy\in Yy∈Y. No finiteness or nonemptiness assumption is imposed on XXX. An empty YYY forces XXX to be empty; an empty ZZZ forces both YYY and XXX to be empty.

QAlgorithms.Papers.Independent.Bridge50.P42.DiscreteReliable

For finite types X,YX,YX,Y, a family (ck)k≥0(c_k)_{k\ge0}(ck​)k≥0​ of codes with Mk>0M_k>0Mk​>0 messages, encoder distributions ak,ma_{k,m}ak,m​ on Xk+1X^{k+1}Xk+1, and decoders dk:Yk+1→{0,…,Mk−1}d_k:Y^{k+1}\to\{0,\ldots,M_k-1\}dk​:Yk+1→{0,…,Mk​−1}, take any real array Vj(x,y)V_j(x,y)Vj​(x,y), a Boolean choice optimistic, and any real ε\varepsilonε. Define the real error value

ek=1Mk∑m=0Mk−1∑x∈Xk+1∑y∈Yk+1{0,dk(y)=m,ak,m(x)∏j=0kVj(xj,yj),dk(y)≠m.e_k=\frac1{M_k}\sum_{m=0}^{M_k-1} \sum_{x\in X^{k+1}}\sum_{y\in Y^{k+1}} \begin{cases} 0,&d_k(y)=m,\\ a_{k,m}(x)\displaystyle\prod_{j=0}^{k}V_j(x_j,y_j),&d_k(y)\ne m. \end{cases}ek​=Mk​1​m=0∑Mk​−1​x∈Xk+1∑​y∈Yk+1∑​⎩⎨⎧​0,ak,m​(x)j=0∏k​Vj​(xj​,yj​),​dk​(y)=m,dk​(y)=m.​

If optimistic is true, the property means that there exists a real δ>0\delta>0δ>0 such that for every natural NNN there is a natural k≥Nk\ge Nk≥N with ek<ε−δe_k<\varepsilon-\deltaek​<ε−δ. If it is false, the property means that for every real δ>0\delta>0δ>0, one has ek≤ε+δe_k\le\varepsilon+\deltaek​≤ε+δ for all sufficiently large kkk. Neither stochastic assumptions on VVV nor a range restriction on ε\varepsilonε is imposed, so eke_kek​ is not assumed here to lie in [0,1][0,1][0,1]. Block length is always k+1k+1k+1, including length one at k=0k=0k=0.

QAlgorithms.Papers.Independent.Bridge50.P42.DiscreteWiretapCode.error

For any finite types X,YX,YX,Y, natural number kkk, code consisting of a positive message count MMM, nonnegative encoder rows e(m,⋅)e(m,\cdot)e(m,⋅) summing to one on Xk+1X^{k+1}Xk+1, and decoder d:Yk+1→{0,…,M−1}d:Y^{k+1}\to\{0,\ldots,M-1\}d:Yk+1→{0,…,M−1}, and any arbitrary real family Vj:X×Y→RV_j:X\times Y\to\mathbb RVj​:X×Y→R, this defines 1M∑m=0M−1∑x∈Xk+1∑y∈Yk+11{d(y)≠m} e(m,x)∏j=0kVj(xj,yj)\frac1M\sum_{m=0}^{M-1}\sum_{x\in X^{k+1}}\sum_{y\in Y^{k+1}}\mathbf1_{\{d(y)\ne m\}}\,e(m,x)\prod_{j=0}^{k}V_j(x_j,y_j)M1​∑m=0M−1​∑x∈Xk+1​∑y∈Yk+1​1{d(y)=m}​e(m,x)∏j=0k​Vj​(xj​,yj​). The functions VjV_jVj​ are not required to be nonnegative or normalized. The denominator MMM is positive; k=0k=0k=0 gives a block of length one, and if YYY is empty, the sum over output sequences is empty and the value is zero.

QAlgorithms.Papers.Independent.Bridge50.P42.DiscreteWiretapCode.independentEve

For types X,Y,ZX,Y,ZX,Y,Z, with XXX and ZZZ finite, a natural number k≥0k\ge 0k≥0, and a code with a positive number MMM of messages, nonnegative encoder weights am(x)a_m(x)am​(x) summing to one over x∈Xk+1x\in X^{k+1}x∈Xk+1 for each message, and a decoder Yk+1→{0,…,M−1}Y^{k+1}\to\{0,\ldots,M-1\}Yk+1→{0,…,M−1}, take any real array Vj(x,z)V_j(x,z)Vj​(x,z). For every message argument mmm and word z∈Zk+1z\in Z^{k+1}z∈Zk+1, the defined value is independent of mmm and equals

qc(m,z)=1M∑ℓ=0M−1pc(ℓ,z)=1M2∑ℓ=0M−1∑x∈Xk+1aℓ(x)∏j=0kVj(xj,zj),pc(ℓ,z)=1M∑xaℓ(x)∏j=0kVj(xj,zj).q_c(m,z) =\frac1M\sum_{\ell=0}^{M-1}p_c(\ell,z) =\frac1{M^2}\sum_{\ell=0}^{M-1}\sum_{x\in X^{k+1}} a_\ell(x)\prod_{j=0}^{k}V_j(x_j,z_j), \qquad p_c(\ell,z)=\frac1M\sum_xa_\ell(x)\prod_{j=0}^{k}V_j(x_j,z_j).qc​(m,z)=M1​ℓ=0∑M−1​pc​(ℓ,z)=M21​ℓ=0∑M−1​x∈Xk+1∑​aℓ​(x)j=0∏k​Vj​(xj​,zj​),pc​(ℓ,z)=M1​x∑​aℓ​(x)j=0∏k​Vj​(xj​,zj​).

There are no stochastic assumptions on VVV, and the decoder is unused. The case k=0k=0k=0 has block length one.

QAlgorithms.Papers.Independent.Bridge50.P42.DiscreteWiretapCode.leakage

For types X,Y,ZX,Y,ZX,Y,Z, with XXX and ZZZ finite, a natural number k≥0k\ge0k≥0, and a code with M>0M>0M>0 messages, encoder weights am(x)≥0a_m(x)\ge0am​(x)≥0 summing to one over x∈Xk+1x\in X^{k+1}x∈Xk+1 for each mmm, and a decoder Yk+1→{0,…,M−1}Y^{k+1}\to\{0,\ldots,M-1\}Yk+1→{0,…,M−1}, take an arbitrary real array Vj(x,z)V_j(x,z)Vj​(x,z), one of the six metric choices iii, and any real threshold η\etaη. Define

p(m,z)=1M∑x∈Xk+1am(x)∏j=0kVj(xj,zj),q(m,z)=1M∑ℓ=0M−1p(ℓ,z),L(u)=log⁡ulog⁡2,p(m,z)=\frac1M\sum_{x\in X^{k+1}}a_m(x)\prod_{j=0}^{k}V_j(x_j,z_j), \qquad q(m,z)=\frac1M\sum_{\ell=0}^{M-1}p(\ell,z), \qquad L(u)=\frac{\log u}{\log2},p(m,z)=M1​x∈Xk+1∑​am​(x)j=0∏k​Vj​(xj​,zj​),q(m,z)=M1​ℓ=0∑M−1​p(ℓ,z),L(u)=log2logu​,

and, with all sums below over m∈{0,…,M−1}m\in\{0,\ldots,M-1\}m∈{0,…,M−1} and z∈Zk+1z\in Z^{k+1}z∈Zk+1, define

D=∑m,z{0,p(m,z)=0,p(m,z)L ⁣(p(m,z)q(m,z)),p(m,z)≠0,T=12∑m,z∣p(m,z)−q(m,z)∣,D=\sum_{m,z} \begin{cases} 0,&p(m,z)=0,\\ p(m,z)L\!\left(\frac{p(m,z)}{q(m,z)}\right),&p(m,z)\ne0, \end{cases} \quad T=\frac12\sum_{m,z}|p(m,z)-q(m,z)|,D=m,z∑​{0,p(m,z)L(q(m,z)p(m,z)​),​p(m,z)=0,p(m,z)=0,​T=21​m,z∑​∣p(m,z)−q(m,z)∣, H(s)=∑m,z{p(m,z),p(m,z)>0 and η<L(p(m,z)/q(m,z))s,0,otherwise.H(s)=\sum_{m,z} \begin{cases} p(m,z),&p(m,z)>0\ \text{and}\ \eta< \displaystyle\frac{L(p(m,z)/q(m,z))}{s},\\ 0,&\text{otherwise}. \end{cases}H(s)=m,z∑​⎩⎨⎧​p(m,z),0,​p(m,z)>0 and η<sL(p(m,z)/q(m,z))​,otherwise.​

The defined leakage is respectively DDD, TTT, H(1)H(1)H(1), D/(k+1)D/(k+1)D/(k+1), T/(k+1)T/(k+1)T/(k+1), or H(k+1)H(k+1)H(k+1) for divergence, variation, tail, normalizedDivergence, normalizedVariation, or normalizedTail. The threshold inequality is strict; η\etaη is unrestricted and is unused in the four divergence and variation cases. No stochastic assumptions on VVV are imposed. Division is total, with division by zero equal to zero, and the real logarithm is total, with log⁡0=0\log0=0log0=0 and log⁡u=log⁡∣u∣\log u=\log|u|logu=log∣u∣ for u≠0u\ne0u=0. Thus these formulas also specify values when their arguments are not probability distributions. The decoder is unused, and k=0k=0k=0 is included.

QAlgorithms.Papers.Independent.Bridge50.P42.DiscreteWiretapCode

For any finite type XXX, any type YYY, and any natural number kkk, a value of this structure consists of a positive natural number MMM of messages, an encoder e:{0,…,M−1}×Xk+1→Re:\{0,\ldots,M-1\}\times X^{k+1}\to\mathbb Re:{0,…,M−1}×Xk+1→R satisfying e(m,x)≥0e(m,x)\ge0e(m,x)≥0 and ∑x∈Xk+1e(m,x)=1\sum_{x\in X^{k+1}}e(m,x)=1∑x∈Xk+1​e(m,x)=1 for every message mmm, and a deterministic decoder d:Yk+1→{0,…,M−1}d:Y^{k+1}\to\{0,\ldots,M-1\}d:Yk+1→{0,…,M−1}. The type YYY need not be finite or nonempty. Since k+1≥1k+1\ge1k+1≥1 and M>0M>0M>0, an empty XXX makes the encoder requirements impossible. The case k=0k=0k=0 has block length one.

QAlgorithms.Papers.Independent.Bridge50.P42.DiscreteWiretapCode.messageEve

For types X,Y,ZX,Y,ZX,Y,Z, with XXX and ZZZ finite, a natural number k≥0k\ge 0k≥0, and a code ccc consisting of a positive number MMM of messages, encoder weights am(x)≥0a_m(x)\ge 0am​(x)≥0 satisfying ∑x∈Xk+1am(x)=1\sum_{x\in X^{k+1}}a_m(x)=1∑x∈Xk+1​am​(x)=1 for each message mmm, and a decoder Yk+1→{0,…,M−1}Y^{k+1}\to\{0,\ldots,M-1\}Yk+1→{0,…,M−1}, let Vj(x,z)V_j(x,z)Vj​(x,z) be arbitrary real numbers indexed by j∈Nj\in\mathbb Nj∈N, x∈Xx\in Xx∈X, and z∈Zz\in Zz∈Z. For every message m∈{0,…,M−1}m\in\{0,\ldots,M-1\}m∈{0,…,M−1} and word z∈Zk+1z\in Z^{k+1}z∈Zk+1, the defined value is

pc(m,z)=1M∑x∈Xk+1am(x)∏j=0kVj(xj,zj).p_c(m,z)=\frac1M\sum_{x\in X^{k+1}}a_m(x)\prod_{j=0}^{k}V_j(x_j,z_j).pc​(m,z)=M1​x∈Xk+1∑​am​(x)j=0∏k​Vj​(xj​,zj​).

The factor 1/M1/M1/M is included in this value. No nonnegativity or normalization is assumed for VVV, and the decoder does not enter the formula. The case k=0k=0k=0 uses words of length one; XXX cannot be empty if such a code exists.

QAlgorithms.Papers.Independent.Bridge50.P42.GaussianReliable

For every real SSS, sequence ckc_kck​ of codes on Rk+1\mathbb R^{k+1}Rk+1, real noise parameter σ1\sigma_1σ1​, Boolean choice optimistic\mathit{optimistic}optimistic, and real tolerance ε\varepsilonε, let each code have Mk>0M_k>0Mk​>0 messages, probability encoder measures μk,m\mu_{k,m}μk,m​ assigning probability one to ∑jxj2≤(k+1)S\sum_jx_j^2\leq(k+1)S∑j​xj2​≤(k+1)S, and a decoder dkd_kdk​ with measurable message fibers, and set

ek=1Mk∑m∫(∫1{dk(y)≠m}∏j=0kgσ1(yj∣xj) dy)dμk,m(x),e_k=\frac1{M_k}\sum_m\int \left(\int \mathbf1_{\{d_k(y)\ne m\}} \prod_{j=0}^{k}g_{\sigma_1}(y_j\mid x_j)\,dy\right)d\mu_{k,m}(x),ek​=Mk​1​m∑​∫(∫1{dk​(y)=m}​j=0∏k​gσ1​​(yj​∣xj​)dy)dμk,m​(x),

where gσ1g_{\sigma_1}gσ1​​ is the Gaussian density with variance σ12\sigma_1^2σ12​ and dydydy is Lebesgue measure. If optimistic\mathit{optimistic}optimistic is true, this predicate means that there exists a real δ>0\delta>0δ>0 such that for every natural NNN, some k≥Nk\geq Nk≥N satisfies ek<ε−δe_k<\varepsilon-\deltaek​<ε−δ. If it is false, the predicate means that for every real δ>0\delta>0δ>0, all sufficiently large kkk satisfy ek≤ε+δe_k\leq\varepsilon+\deltaek​≤ε+δ. No range restriction is imposed on ε\varepsilonε, and no positivity assumption is imposed on σ1\sigma_1σ1​.

QAlgorithms.Papers.Independent.Bridge50.P42.InputProcess

For a finite set XXX, an input process is a family (Pk)k≥0(P_k)_{k\ge0}(Pk​)k≥0​, where each PkP_kPk​ is a real-valued function on the strings Xk+1X^{k+1}Xk+1 satisfying Pk(x)≥0P_k(x)\ge0Pk​(x)≥0 for every string and ∑x∈Xk+1Pk(x)=1\sum_{x\in X^{k+1}}P_k(x)=1∑x∈Xk+1​Pk​(x)=1. There is no consistency requirement between different block lengths, no independence requirement within a block, and no law for a block of length zero. The set XXX is allowed to be empty; in that case no such family exists, since already X1X^1X1 is empty and cannot carry a law of total mass 111.

QAlgorithms.Papers.Independent.Bridge50.P42.PartialStrongConverse

For finite types X,Y,ZX,Y,ZX,Y,Z, let (Wj)j≥0(W_j)_{j\ge0}(Wj​)j≥0​ consist of real arrays Vj(x,y)V_j(x,y)Vj​(x,y) and Dj(y,z)D_j(y,z)Dj​(y,z) such that every row of each array is nonnegative and sums to one, and define Ej(x,z)=∑yVj(x,y)Dj(y,z)E_j(x,z)=\sum_yV_j(x,y)D_j(y,z)Ej​(x,z)=∑y​Vj​(x,y)Dj​(y,z). Fix one of the six secrecy metrics iii. The defined property is the equality of two extended real suprema: one using ordinary reliability at error parameter 000, and the other using optimistic reliability at error parameter 111. More explicitly, both suprema range over real RRR, embedded in the extended reals, and code families having Mk>0M_k>0Mk​>0 messages, encoder distributions ak,ma_{k,m}ak,m​ on Xk+1X^{k+1}Xk+1, and decoders dk:Yk+1→{0,…,Mk−1}d_k:Y^{k+1}\to\{0,\ldots,M_k-1\}dk​:Yk+1→{0,…,Mk​−1}, with

∀δ>0,R−δ≤log⁡Mk(k+1)log⁡2for all sufficiently large k.\forall\delta>0,\quad R-\delta\le\frac{\log M_k}{(k+1)\log2} \quad\text{for all sufficiently large }k.∀δ>0,R−δ≤(k+1)log2logMk​​for all sufficiently large k.

For such a family define

ek=1Mk∑m,x,y1{dk(y)≠m}ak,m(x)∏j=0kVj(xj,yj),pk(m,z)=1Mk∑xak,m(x)∏j=0kEj(xj,zj),qk(m,z)=1Mk∑ℓpk(ℓ,z).e_k=\frac1{M_k}\sum_{m,x,y} \mathbf1_{\{d_k(y)\ne m\}}a_{k,m}(x)\prod_{j=0}^{k}V_j(x_j,y_j), \quad p_k(m,z)=\frac1{M_k}\sum_xa_{k,m}(x)\prod_{j=0}^{k}E_j(x_j,z_j), \quad q_k(m,z)=\frac1{M_k}\sum_\ell p_k(\ell,z).ek​=Mk​1​m,x,y∑​1{dk​(y)=m}​ak,m​(x)j=0∏k​Vj​(xj​,yj​),pk​(m,z)=Mk​1​x∑​ak,m​(x)j=0∏k​Ej​(xj​,zj​),qk​(m,z)=Mk​1​ℓ∑​pk​(ℓ,z).

Both suprema require, for every η>0\eta>0η>0, convergence to zero of the selected leakage. With L(u)=log⁡u/log⁡2L(u)=\log u/\log2L(u)=logu/log2, define

Dkleak=∑m,z{0,pk(m,z)=0,pk(m,z)L(pk(m,z)/qk(m,z)),pk(m,z)≠0,Tk=12∑m,z∣pk(m,z)−qk(m,z)∣,Hk,η(s)=∑m,z: pk(m,z)>0η<L(pk(m,z)/qk(m,z))/spk(m,z);D_k^{\rm leak}=\sum_{m,z} \begin{cases}0,&p_k(m,z)=0,\\ p_k(m,z)L(p_k(m,z)/q_k(m,z)),&p_k(m,z)\ne0,\end{cases} \quad T_k=\frac12\sum_{m,z}|p_k(m,z)-q_k(m,z)|, \quad H_{k,\eta}(s)= \sum_{\substack{m,z:\ p_k(m,z)>0\\ \eta<L(p_k(m,z)/q_k(m,z))/s}}p_k(m,z);Dkleak​=m,z∑​{0,pk​(m,z)L(pk​(m,z)/qk​(m,z)),​pk​(m,z)=0,pk​(m,z)=0,​Tk​=21​m,z∑​∣pk​(m,z)−qk​(m,z)∣,Hk,η​(s)=m,z: pk​(m,z)>0η<L(pk​(m,z)/qk​(m,z))/s​∑​pk​(m,z);

the six choices give DkleakD_k^{\rm leak}Dkleak​, TkT_kTk​, Hk,η(1)H_{k,\eta}(1)Hk,η​(1), Dkleak/(k+1)D_k^{\rm leak}/(k+1)Dkleak​/(k+1), Tk/(k+1)T_k/(k+1)Tk​/(k+1), and Hk,η(k+1)H_{k,\eta}(k+1)Hk,η​(k+1). The first supremum additionally requires ek≤δe_k\le\deltaek​≤δ eventually for every δ>0\delta>0δ>0; the second instead requires some δ>0\delta>0δ>0 such that, for every NNN, some k≥Nk\ge Nk≥N has ek<1−δe_k<1-\deltaek​<1−δ. All word sums have length k+1k+1k+1, and RRR need not be nonnegative. Division is total with u/0=0u/0=0u/0=0, and the real logarithm has log⁡0=0\log0=0log0=0 and log⁡u=log⁡∣u∣\log u=\log|u|logu=log∣u∣ for nonzero uuu. Empty alphabets are not excluded; any empty supremum has value −∞-\infty−∞.

QAlgorithms.Papers.Independent.Bridge50.P42.PointStrongConverse

For finite sets X,YX,YX,Y, possibly empty, and any sequence of real arrays Vj:X×Y→RV_j:X\times Y\to\mathbb RVj​:X×Y→R, this property means equality of two extended-real operational suprema, C−(0)=C+(1)\mathcal C^-(0)=\mathcal C^+(1)C−(0)=C+(1). To define them, a code at index k≥0k\ge0k≥0 has block length n=k+1n=k+1n=k+1, a positive integer MkM_kMk​, a nonnegative law ak,ma_{k,m}ak,m​ on XnX^nXn for every message mmm, and a deterministic decoder dk:Yn→{0,…,Mk−1}d_k:Y^n\to\{0,\ldots,M_k-1\}dk​:Yn→{0,…,Mk​−1}; its error expression is

ek=1Mk∑m,x,y1{dk(y)≠m}ak,m(x)∏j<nVj(xj,yj).e_k=\frac1{M_k}\sum_{m,x,y}\mathbf1_{\{d_k(y)\ne m\}}a_{k,m}(x) \prod_{j<n}V_j(x_j,y_j).ek​=Mk​1​m,x,y∑​1{dk​(y)=m}​ak,m​(x)j<n∏​Vj​(xj​,yj​).

A sequence has rate at least R∈RR\in\mathbb RR∈R if, for every δ>0\delta>0δ>0, eventually R−δ≤log⁡2(Mk)/(k+1)R-\delta\le\log_2(M_k)/(k+1)R−δ≤log2​(Mk​)/(k+1). The supremum C−(0)\mathcal C^-(0)C−(0) ranges over all such real RRR admitting a code sequence for which, for every δ>0\delta>0δ>0, eventually ek≤δe_k\le\deltaek​≤δ. The supremum C+(1)\mathcal C^+(1)C+(1) instead requires some δ>0\delta>0δ>0 such that for every NNN there is k≥Nk\ge Nk≥N with ek<1−δe_k<1-\deltaek​<1−δ. There is no secrecy condition: the auxiliary output alphabet is a singleton with kernel constantly 111, and security is defined to be true. No nonnegativity restriction is imposed on the candidate rates RRR, and no stochasticity assumption is imposed on the arrays VjV_jVj​, so the error expression need not be a probability. Empty sets are permitted; an empty set of admissible rates has extended-real supremum −∞-\infty−∞.

QAlgorithms.Papers.Independent.Bridge50.P42.PowerConstrainedGaussianCode.error

For every real SSS, natural number kkk, code ccc with M>0M>0M>0 messages, probability encoder measures μm\mu_mμm​ on Rk+1\mathbb R^{k+1}Rk+1 assigning probability one to ∑jxj2≤(k+1)S\sum_jx_j^2\leq(k+1)S∑j​xj2​≤(k+1)S, and decoder ddd with measurable message fibers, and every real σ1\sigma_1σ1​, this defines

err⁡σ1(c)=1M∑m=0M−1∫Rk+1(∫Rk+11{d(y)≠m}∏j=0kgσ1(yj∣xj) dy)dμm(x),\operatorname{err}_{\sigma_1}(c) =\frac1M\sum_{m=0}^{M-1} \int_{\mathbb R^{k+1}} \left(\int_{\mathbb R^{k+1}} \mathbf1_{\{d(y)\ne m\}} \prod_{j=0}^{k}g_{\sigma_1}(y_j\mid x_j)\,dy\right)d\mu_m(x),errσ1​​(c)=M1​m=0∑M−1​∫Rk+1​(∫Rk+1​1{d(y)=m}​j=0∏k​gσ1​​(yj​∣xj​)dy)dμm​(x),

where gσ1g_{\sigma_1}gσ1​​ is the Gaussian density with variance σ12\sigma_1^2σ12​, and the inner integral uses Lebesgue measure. No sign or nonzero assumption is imposed on σ1\sigma_1σ1​; at σ1=0\sigma_1=0σ1​=0, the density factors and hence this error are zero.

QAlgorithms.Papers.Independent.Bridge50.P42.PowerConstrainedGaussianCode.independentEve

For every real SSS, natural number kkk, code ccc with M>0M>0M>0 messages, probability encoder measures μm\mu_mμm​ assigning probability one to ∑jxj2≤(k+1)S\sum_jx_j^2\leq(k+1)S∑j​xj2​≤(k+1)S, and a decoder with measurable message fibers, every real σ2\sigma_2σ2​, message argument m∈{0,…,M−1}m\in\{0,\ldots,M-1\}m∈{0,…,M−1}, and z∈Rk+1z\in\mathbb R^{k+1}z∈Rk+1, this defines

qc(m,z)=1M∑ℓ=0M−1pc(ℓ,z)=1M2∑ℓ=0M−1∫Rk+1∏j=0kgσ2(zj∣xj) dμℓ(x),q_c(m,z) =\frac1M\sum_{\ell=0}^{M-1}p_c(\ell,z) =\frac1{M^2}\sum_{\ell=0}^{M-1} \int_{\mathbb R^{k+1}} \prod_{j=0}^{k}g_{\sigma_2}(z_j\mid x_j)\,d\mu_\ell(x),qc​(m,z)=M1​ℓ=0∑M−1​pc​(ℓ,z)=M21​ℓ=0∑M−1​∫Rk+1​j=0∏k​gσ2​​(zj​∣xj​)dμℓ​(x),

where gσ2g_{\sigma_2}gσ2​​ is the Gaussian density with variance σ22\sigma_2^2σ22​. The message argument mmm is ignored, so the result is constant in that argument. Negative σ2\sigma_2σ2​ is allowed, and σ2=0\sigma_2=0σ2​=0 gives zero.

QAlgorithms.Papers.Independent.Bridge50.P42.PowerConstrainedGaussianCode.leakage

For every real SSS, natural number kkk, code ccc with M>0M>0M>0 messages, probability encoder measures μm\mu_mμm​ satisfying μm{x:∑jxj2≤(k+1)S}=1\mu_m\{x:\sum_jx_j^2\leq(k+1)S\}=1μm​{x:∑j​xj2​≤(k+1)S}=1, and a decoder with measurable message fibers, every real σ2\sigma_2σ2​, choice iii among the six stated secrecy metrics, and real threshold η\etaη, put b=k+1b=k+1b=k+1 and define

p(m,z)=1M∫Rb∏j=0kgσ2(zj∣xj) dμm(x),q(m,z)=1M∑ℓ=0M−1p(ℓ,z),p(m,z)=\frac1M\int_{\mathbb R^b} \prod_{j=0}^{k}g_{\sigma_2}(z_j\mid x_j)\,d\mu_m(x), \qquad q(m,z)=\frac1M\sum_{\ell=0}^{M-1}p(\ell,z),p(m,z)=M1​∫Rb​j=0∏k​gσ2​​(zj​∣xj​)dμm​(x),q(m,z)=M1​ℓ=0∑M−1​p(ℓ,z),

where gσ2g_{\sigma_2}gσ2​​ is the Gaussian density with variance σ22\sigma_2^2σ22​. With log⁡2u=log⁡u/log⁡2\log_2 u=\log u/\log2log2​u=logu/log2, define

D=∑m∫Rbp(m,z)log⁡2p(m,z)q(m,z) dz,V=12∑m∫Rb∣p(m,z)−q(m,z)∣ dz,D=\sum_m\int_{\mathbb R^b}p(m,z)\log_2\frac{p(m,z)}{q(m,z)}\,dz, \qquad V=\frac12\sum_m\int_{\mathbb R^b}|p(m,z)-q(m,z)|\,dz,D=m∑​∫Rb​p(m,z)log2​q(m,z)p(m,z)​dz,V=21​m∑​∫Rb​∣p(m,z)−q(m,z)∣dz,

and

T(a)=∑m∫Rb1{η<log⁡2(p(m,z)/q(m,z))/a}p(m,z) dz.T(a)=\sum_m\int_{\mathbb R^b} \mathbf1_{\left\{\eta<\log_2(p(m,z)/q(m,z))/a\right\}} p(m,z)\,dz.T(a)=m∑​∫Rb​1{η<log2​(p(m,z)/q(m,z))/a}​p(m,z)dz.

The returned value is respectively D,V,T(1),D/b,V/b,D,V,T(1),D/b,V/b,D,V,T(1),D/b,V/b, or T(b)T(b)T(b) for divergence, variation, tail, normalized divergence, normalized variation, or normalized tail. In particular, normalized tail divides the logarithmic ratio inside the strict threshold test; it does not divide the resulting integral. All zzz-integrals use Lebesgue measure. No restriction is imposed on η\etaη or σ2\sigma_2σ2​; real division and logarithms use their total conventions, including division by zero equal to zero and log⁡0=0\log0=0log0=0. At σ2=0\sigma_2=0σ2​=0, all six returned values are zero.

QAlgorithms.Papers.Independent.Bridge50.P42.PowerConstrainedGaussianCode

For every real SSS and natural number kkk, a value of this structure consists of a natural number M>0M>0M>0 of messages; for each message m∈{0,…,M−1}m\in\{0,\ldots,M-1\}m∈{0,…,M−1}, a probability measure μm\mu_mμm​ on Rk+1\mathbb R^{k+1}Rk+1 satisfying

μm ⁣{x:∑j=0kxj2≤(k+1)S}=1;\mu_m\!\left\{x:\sum_{j=0}^{k}x_j^2\leq(k+1)S\right\}=1;μm​{x:j=0∑k​xj2​≤(k+1)S}=1;

and a decoder d:Rk+1→{0,…,M−1}d:\mathbb R^{k+1}\to\{0,\ldots,M-1\}d:Rk+1→{0,…,M−1} whose fiber {y:d(y)=m}\{y:d(y)=m\}{y:d(y)=m} is measurable for every message mmm. The power condition is a probability-one constraint on each encoder measure. The parameter k=0k=0k=0 specifies a one-coordinate code. Although arbitrary real SSS is allowed as a parameter, no such structure can exist when S<0S<0S<0, because its required power set is empty.

QAlgorithms.Papers.Independent.Bridge50.P42.PowerConstrainedGaussianCode.messageEve

For every real SSS, natural number kkk, code ccc with M>0M>0M>0 messages, probability encoder measures μm\mu_mμm​ satisfying μm{x:∑jxj2≤(k+1)S}=1\mu_m\{x:\sum_jx_j^2\leq(k+1)S\}=1μm​{x:∑j​xj2​≤(k+1)S}=1, and a decoder with measurable message fibers, every real σ2\sigma_2σ2​, message m∈{0,…,M−1}m\in\{0,\ldots,M-1\}m∈{0,…,M−1}, and vector z∈Rk+1z\in\mathbb R^{k+1}z∈Rk+1, this defines

pc(m,z)=1M∫Rk+1∏j=0kgσ2(zj∣xj) dμm(x),p_c(m,z) =\frac1M\int_{\mathbb R^{k+1}} \prod_{j=0}^{k}g_{\sigma_2}(z_j\mid x_j)\,d\mu_m(x),pc​(m,z)=M1​∫Rk+1​j=0∏k​gσ2​​(zj​∣xj​)dμm​(x),

where gσ2g_{\sigma_2}gσ2​​ has mean xjx_jxj​ and variance σ22\sigma_2^2σ22​. The factor 1/M1/M1/M is part of the definition. The decoder does not enter this expression. No positivity assumption is imposed on σ2\sigma_2σ2​; when σ2=0\sigma_2=0σ2​=0, the expression is zero.

QAlgorithms.Papers.Independent.Bridge50.P42.RateAtLeast

For types X,YX,YX,Y with XXX finite, let (ck)k≥0(c_k)_{k\ge0}(ck​)k≥0​ be a family of codes, where ckc_kck​ has Mk>0M_k>0Mk​>0 messages, a nonnegative encoder distribution on Xk+1X^{k+1}Xk+1 for each message, and a decoder Yk+1→{0,…,Mk−1}Y^{k+1}\to\{0,\ldots,M_k-1\}Yk+1→{0,…,Mk​−1}. For any real number RRR, this property means that for every real δ>0\delta>0δ>0 there exists a natural number KKK such that, for every natural k≥Kk\ge Kk≥K,

R−δ≤log⁡Mk(k+1)log⁡2.R-\delta\le\frac{\log M_k}{(k+1)\log2}.R−δ≤(k+1)log2logMk​​.

There is no assumption that RRR is nonnegative. The family includes k=0k=0k=0, whose block length is one, although the condition only constrains sufficiently large kkk.

QAlgorithms.Papers.Independent.Bridge50.P42.SecrecyMetric

This defines a type with exactly six distinct values, named divergence, variation, tail, normalizedDivergence, normalizedVariation, and normalizedTail, together with decidable equality between its values. This declaration alone assigns no numerical formula or property to any of these six values.

QAlgorithms.Papers.Independent.Bridge50.P42.Secure

For types X,Y,ZX,Y,ZX,Y,Z, with XXX and ZZZ finite, let (ck)k≥0(c_k)_{k\ge0}(ck​)k≥0​ be codes with positive message counts MkM_kMk​, encoder distributions ak,ma_{k,m}ak,m​ on Xk+1X^{k+1}Xk+1, and decoders from Yk+1Y^{k+1}Yk+1 to their message sets, and let Vj(x,z)V_j(x,z)Vj​(x,z) be any real array. The selector iii is either absent or specifies one of six metrics. If it is absent, the property is true without any condition. Otherwise, for every real η>0\eta>0η>0, the selected sequence ℓk,η\ell_{k,\eta}ℓk,η​ must converge to zero as k→∞k\to\inftyk→∞. Explicitly, put

pk(m,z)=1Mk∑xak,m(x)∏j=0kVj(xj,zj),qk(m,z)=1Mk∑ℓpk(ℓ,z),L(u)=log⁡ulog⁡2,p_k(m,z)=\frac1{M_k}\sum_xa_{k,m}(x)\prod_{j=0}^{k}V_j(x_j,z_j), \qquad q_k(m,z)=\frac1{M_k}\sum_\ell p_k(\ell,z), \qquad L(u)=\frac{\log u}{\log2},pk​(m,z)=Mk​1​x∑​ak,m​(x)j=0∏k​Vj​(xj​,zj​),qk​(m,z)=Mk​1​ℓ∑​pk​(ℓ,z),L(u)=log2logu​, Dk=∑m,z{0,pk(m,z)=0,pk(m,z)L(pk(m,z)/qk(m,z)),pk(m,z)≠0,Tk=12∑m,z∣pk(m,z)−qk(m,z)∣,D_k=\sum_{m,z} \begin{cases}0,&p_k(m,z)=0,\\ p_k(m,z)L(p_k(m,z)/q_k(m,z)),&p_k(m,z)\ne0,\end{cases} \qquad T_k=\frac12\sum_{m,z}|p_k(m,z)-q_k(m,z)|,Dk​=m,z∑​{0,pk​(m,z)L(pk​(m,z)/qk​(m,z)),​pk​(m,z)=0,pk​(m,z)=0,​Tk​=21​m,z∑​∣pk​(m,z)−qk​(m,z)∣, Hk,η(s)=∑m,z: pk(m,z)>0η<L(pk(m,z)/qk(m,z))/spk(m,z),H_{k,\eta}(s)= \sum_{\substack{m,z:\ p_k(m,z)>0\\ \eta<L(p_k(m,z)/q_k(m,z))/s}}p_k(m,z),Hk,η​(s)=m,z: pk​(m,z)>0η<L(pk​(m,z)/qk​(m,z))/s​∑​pk​(m,z),

where x∈Xk+1x\in X^{k+1}x∈Xk+1, z∈Zk+1z\in Z^{k+1}z∈Zk+1, and message indices run over the appropriate message set. In the order divergence, variation, tail, normalizedDivergence, normalizedVariation, normalizedTail, the sequence ℓk,η\ell_{k,\eta}ℓk,η​ is DkD_kDk​, TkT_kTk​, Hk,η(1)H_{k,\eta}(1)Hk,η​(1), Dk/(k+1)D_k/(k+1)Dk​/(k+1), Tk/(k+1)T_k/(k+1)Tk​/(k+1), or Hk,η(k+1)H_{k,\eta}(k+1)Hk,η​(k+1). The convergence is ordinary real convergence; the positive threshold is universally quantified even for metrics whose formula does not use it. No stochastic assumptions on VVV are required. All divisions are total with u/0=0u/0=0u/0=0, and log⁡0=0\log0=0log0=0, with log⁡u=log⁡∣u∣\log u=\log|u|logu=log∣u∣ for u≠0u\ne0u=0.

QAlgorithms.Papers.Independent.Bridge50.P42.StochasticRows

For any type AAA, any finite type BBB, and any function V:A×B→RV:A\times B\to\mathbb RV:A×B→R, this predicate means that every row is nonnegative and sums to one: ∀a∈A, ∀b∈B, V(a,b)≥0\forall a\in A,\ \forall b\in B,\ V(a,b)\ge0∀a∈A, ∀b∈B, V(a,b)≥0 and ∀a∈A, ∑b∈BV(a,b)=1\forall a\in A,\ \sum_{b\in B}V(a,b)=1∀a∈A, ∑b∈B​V(a,b)=1. There is no finiteness assumption on AAA. If AAA is empty, the condition is vacuous; if BBB is empty and AAA is nonempty, it cannot hold.

QAlgorithms.Papers.Independent.Bridge50.P42.WeaklySymmetric

For any finite type XXX, any type YYY without a finiteness or nonemptiness assumption, and any real array V:X×Y→RV:X\times Y\to\mathbb RV:X×Y→R, this property is the conjunction that for every x,x′∈Xx,x'\in Xx,x′∈X there exists a bijection π:Y→Y\pi:Y\to Yπ:Y→Y such that

V(x,y)=V(x′,π(y))for every y∈Y,V(x,y)=V(x',\pi(y))\qquad\text{for every }y\in Y,V(x,y)=V(x′,π(y))for every y∈Y,

and that for every y,y′∈Yy,y'\in Yy,y′∈Y,

∑x∈XV(x,y)=∑x∈XV(x,y′).\sum_{x\in X}V(x,y)=\sum_{x\in X}V(x,y').x∈X∑​V(x,y)=x∈X∑​V(x,y′).

The bijection may depend on the ordered pair (x,x′)(x,x')(x,x′). There are no nonnegativity or row normalization assumptions. If XXX is empty or YYY is empty, the property holds through vacuous conditions and empty sums.

QAlgorithms.Papers.Independent.Bridge50.P42.blockJoint

Let X,Y,ZX,Y,ZX,Y,Z be finite sets, let WWW consist of nonnegative, row-normalized real kernels V(y∣x)V(y\mid x)V(y∣x) and D(z∣y)D(z\mid y)D(z∣y), and let P=(Pk)k≥0P=(P_k)_{k\ge0}P=(Pk​)k≥0​ assign a nonnegative law of total mass 111 to Xk+1X^{k+1}Xk+1 for every kkk, without requiring consistency between these laws. For k≥0k\ge0k≥0 and strings x∈Xk+1x\in X^{k+1}x∈Xk+1, y∈Yk+1y\in Y^{k+1}y∈Yk+1, z∈Zk+1z\in Z^{k+1}z∈Zk+1, the block joint function is defined by

pk(x,y,z)=Pk(x)∏j=0kV(yj∣xj)D(zj∣yj).p_k(x,y,z)=P_k(x)\prod_{j=0}^{k}V(y_j\mid x_j)D(z_j\mid y_j).pk​(x,y,z)=Pk​(x)j=0∏k​V(yj​∣xj​)D(zj​∣yj​).

Thus k=0k=0k=0 denotes a block containing one coordinate. No nonemptiness assumptions on the alphabets are included explicitly; the supplied laws, kernels, and strings must nevertheless exist.

QAlgorithms.Papers.Independent.Bridge50.P42.capacityAverage

For finite types X,YX,YX,Y, any sequence of real arrays Vj:X×Y→RV_j:X\times Y\to\mathbb RVj​:X×Y→R, and any natural number k≥0k\ge0k≥0, the defined value is

1k+1∑j=0kC(Vj).\frac1{k+1}\sum_{j=0}^{k}C(V_j).k+11​j=0∑k​C(Vj​).

Here C(V)=0C(V)=0C(V)=0 if some row of VVV fails to be nonnegative with sum one; otherwise

C(V)=sup⁡p:X→Rp(x)≥0, ∑xp(x)=1 ∑x∈X∑y∈Yp(x)V(x,y) log⁡2 ⁣(p(x)V(x,y)(∑y′∈Yp(x)V(x,y′))(∑x′∈Xp(x′)V(x′,y))),log⁡2u=log⁡ulog⁡2.C(V)= \sup_{\substack{p:X\to\mathbb R\\ p(x)\ge0,\ \sum_xp(x)=1}} \ \sum_{x\in X}\sum_{y\in Y} p(x)V(x,y)\, \log_2\!\left( \frac{p(x)V(x,y)} {\left(\sum_{y'\in Y}p(x)V(x,y')\right) \left(\sum_{x'\in X}p(x')V(x',y)\right)} \right), \qquad \log_2 u=\frac{\log u}{\log2}.C(V)=p:X→Rp(x)≥0, ∑x​p(x)=1​sup​ x∈X∑​y∈Y∑​p(x)V(x,y)log2​​(∑y′∈Y​p(x)V(x,y′))(∑x′∈X​p(x′)V(x′,y))p(x)V(x,y)​​,log2​u=log2logu​.

Each summand uses total real division, with division by zero equal to zero, and the total real logarithm, with log⁡0=0\log0=0log0=0 and log⁡u=log⁡∣u∣\log u=\log|u|logu=log∣u∣ for u≠0u\ne0u=0. There is no requirement that the given arrays have stochastic rows: the test and zero fallback apply separately to each VjV_jVj​. The average always has the positive denominator k+1k+1k+1, so k=0k=0k=0 gives C(V0)C(V_0)C(V0​). If either alphabet is empty, each C(Vj)C(V_j)C(Vj​) is zero, using the real supremum convention sup⁡∅=0\sup\varnothing=0sup∅=0 when no input distribution exists.

QAlgorithms.Papers.Independent.Bridge50.P42.capacityOutput

For finite sets X,YX,YX,Y, possibly empty, and any real array V:X×Y→RV:X\times Y\to\mathbb RV:X×Y→R, the function called the capacity output is

b(y)=∑x∈Xp∗(x)V(x,y).b(y)=\sum_{x\in X}p_*(x)V(x,y).b(y)=x∈X∑​p∗​(x)V(x,y).

Here p∗p_*p∗​ is a classically chosen law maximizing

IV(p)=∑x,yp(x)V(x,y)log⁡2p(x)V(x,y)(∑y′p(x)V(x,y′))(∑x′p(x′)V(x′,y))I_V(p)=\sum_{x,y}p(x)V(x,y) \log_2\frac{p(x)V(x,y)} {(\sum_{y'}p(x)V(x,y'))(\sum_{x'}p(x')V(x',y))}IV​(p)=x,y∑​p(x)V(x,y)log2​(∑y′​p(x)V(x,y′))(∑x′​p(x′)V(x′,y))p(x)V(x,y)​

over all nonnegative ppp with ∑xp(x)=1\sum_xp(x)=1∑x​p(x)=1, if such a maximizing law exists; otherwise p∗p_*p∗​ is identically zero. Thus failure of existence makes bbb identically zero, including when XXX is empty. The definition assumes neither that VVV is stochastic nor that bbb is a probability law. The logarithm is log⁡2u=log⁡u/log⁡2\log_2u=\log u/\log2log2​u=logu/log2, using the total real logarithm and division, including log⁡0=0\log0=0log0=0 and division by zero equal to 000.

QAlgorithms.Papers.Independent.Bridge50.P42.conditionalDensity

Let X,Y,ZX,Y,ZX,Y,Z be finite sets, let V(y∣x)V(y\mid x)V(y∣x) and D(z∣y)D(z\mid y)D(z∣y) be nonnegative kernels whose rows sum to 111, and let E(z∣x)=∑yV(y∣x)D(z∣y)E(z\mid x)=\sum_yV(y\mid x)D(z\mid y)E(z∣x)=∑y​V(y∣x)D(z∣y). Let PkP_kPk​, for every k≥0k\ge0k≥0, be an arbitrary law on Xk+1X^{k+1}Xk+1, with no consistency requirement across kkk. For n=k+1n=k+1n=k+1 and strings x∈Xn,y∈Yn,z∈Znx\in X^n,y\in Y^n,z\in Z^nx∈Xn,y∈Yn,z∈Zn, put

pk(x,y,z)=Pk(x)∏j<nV(yj∣xj)D(zj∣yj).p_k(x,y,z)=P_k(x)\prod_{j<n}V(y_j\mid x_j)D(z_j\mid y_j).pk​(x,y,z)=Pk​(x)j<n∏​V(yj​∣xj​)D(zj​∣yj​).

The conditional density is defined to be 000 if pk(x,y,z)=0p_k(x,y,z)=0pk​(x,y,z)=0; otherwise it is

1nlog⁡2(∏j<nV(yj∣xj)D(zj∣yj)∏j<nE(zj∣xj)∑a∈Xnpk(a,y,z)∑a∈Xn∑b∈Ynpk(a,b,z)).\frac1n\log_2 \left( \frac{\displaystyle \frac{\prod_{j<n}V(y_j\mid x_j)D(z_j\mid y_j)} {\prod_{j<n}E(z_j\mid x_j)}} {\displaystyle \frac{\sum_{a\in X^n}p_k(a,y,z)} {\sum_{a\in X^n}\sum_{b\in Y^n}p_k(a,b,z)}} \right).n1​log2​​∑a∈Xn​∑b∈Yn​pk​(a,b,z)∑a∈Xn​pk​(a,y,z)​∏j<n​E(zj​∣xj​)∏j<n​V(yj​∣xj​)D(zj​∣yj​)​​​.

Here log⁡2u=log⁡u/log⁡2\log_2u=\log u/\log2log2​u=logu/log2, and the expression uses total division and logarithm, including division by zero equal to 000 and log⁡0=0\log0=0log0=0. The index k=0k=0k=0 is included and gives block length 111; there is no block of length zero.

QAlgorithms.Papers.Independent.Bridge50.P42.discreteOperationalCapacity

For finite types X,Y,ZX,Y,ZX,Y,Z, arbitrary real arrays Vj(x,y)V_j(x,y)Vj​(x,y) and Ej(x,z)E_j(x,z)Ej​(x,z), an optional choice iii among the six secrecy metrics, a Boolean ooo, and any real ε\varepsilonε, this defines an extended real number as the supremum of all real numbers RRR, embedded in the extended reals, for which there exists a family of codes (ck)k≥0(c_k)_{k\ge0}(ck​)k≥0​ satisfying the following conditions. Each ckc_kck​ has Mk>0M_k>0Mk​>0 messages, nonnegative encoder weights ak,m(x)a_{k,m}(x)ak,m​(x) summing to one over x∈Xk+1x\in X^{k+1}x∈Xk+1 for each mmm, and a decoder dk:Yk+1→{0,…,Mk−1}d_k:Y^{k+1}\to\{0,\ldots,M_k-1\}dk​:Yk+1→{0,…,Mk​−1}; for every δ>0\delta>0δ>0, eventually

R−δ≤log⁡Mk(k+1)log⁡2.R-\delta\le\frac{\log M_k}{(k+1)\log2}.R−δ≤(k+1)log2logMk​​.

Writing

ek=1Mk∑m,x,y1{dk(y)≠m}ak,m(x)∏j=0kVj(xj,yj),e_k=\frac1{M_k}\sum_{m,x,y} \mathbf1_{\{d_k(y)\ne m\}}a_{k,m}(x)\prod_{j=0}^{k}V_j(x_j,y_j),ek​=Mk​1​m,x,y∑​1{dk​(y)=m}​ak,m​(x)j=0∏k​Vj​(xj​,yj​),

reliability means, when ooo is false, that ek≤ε+δe_k\le\varepsilon+\deltaek​≤ε+δ eventually for every δ>0\delta>0δ>0, and, when ooo is true, that some δ>0\delta>0δ>0 satisfies: for every NNN there is k≥Nk\ge Nk≥N with ek<ε−δe_k<\varepsilon-\deltaek​<ε−δ. Secrecy imposes no condition when iii is absent; otherwise, for every η>0\eta>0η>0, the chosen leakage must tend to zero. To define that leakage, put

pk(m,z)=1Mk∑xak,m(x)∏j=0kEj(xj,zj),qk(m,z)=1Mk∑ℓpk(ℓ,z),L(u)=log⁡ulog⁡2,p_k(m,z)=\frac1{M_k}\sum_xa_{k,m}(x)\prod_{j=0}^{k}E_j(x_j,z_j), \qquad q_k(m,z)=\frac1{M_k}\sum_\ell p_k(\ell,z), \qquad L(u)=\frac{\log u}{\log2},pk​(m,z)=Mk​1​x∑​ak,m​(x)j=0∏k​Ej​(xj​,zj​),qk​(m,z)=Mk​1​ℓ∑​pk​(ℓ,z),L(u)=log2logu​, Dk=∑m,z{0,pk(m,z)=0,pk(m,z)L(pk(m,z)/qk(m,z)),pk(m,z)≠0,Tk=12∑m,z∣pk(m,z)−qk(m,z)∣,D_k=\sum_{m,z} \begin{cases}0,&p_k(m,z)=0,\\ p_k(m,z)L(p_k(m,z)/q_k(m,z)),&p_k(m,z)\ne0,\end{cases} \quad T_k=\frac12\sum_{m,z}|p_k(m,z)-q_k(m,z)|,Dk​=m,z∑​{0,pk​(m,z)L(pk​(m,z)/qk​(m,z)),​pk​(m,z)=0,pk​(m,z)=0,​Tk​=21​m,z∑​∣pk​(m,z)−qk​(m,z)∣, Hk,η(s)=∑m,z: pk(m,z)>0η<L(pk(m,z)/qk(m,z))/spk(m,z).H_{k,\eta}(s)= \sum_{\substack{m,z:\ p_k(m,z)>0\\ \eta<L(p_k(m,z)/q_k(m,z))/s}}p_k(m,z).Hk,η​(s)=m,z: pk​(m,z)>0η<L(pk​(m,z)/qk​(m,z))/s​∑​pk​(m,z).

The six selected leakages are DkD_kDk​, TkT_kTk​, Hk,η(1)H_{k,\eta}(1)Hk,η​(1), Dk/(k+1)D_k/(k+1)Dk​/(k+1), Tk/(k+1)T_k/(k+1)Tk​/(k+1), and Hk,η(k+1)H_{k,\eta}(k+1)Hk,η​(k+1), respectively. All word sums use length k+1k+1k+1. There is no restriction R≥0R\ge0R≥0, no range restriction on ε\varepsilonε, and no stochastic assumption on VVV or EEE. Real division and logarithms are total, with u/0=0u/0=0u/0=0, log⁡0=0\log0=0log0=0, and log⁡u=log⁡∣u∣\log u=\log|u|logu=log∣u∣ for nonzero uuu. The supremum may be infinite; the supremum of an empty set in the extended reals is −∞-\infty−∞. In particular, if XXX is empty, no such code family exists.

QAlgorithms.Papers.Independent.Bridge50.P42.finiteChannelCapacity

For any finite types X,YX,YX,Y and any real function V:X×Y→RV:X\times Y\to\mathbb RV:X×Y→R, this defines zero unless every row of VVV is nonnegative and sums to one. When those row conditions hold, it defines the real supremum, over all functions p:X→Rp:X\to\mathbb Rp:X→R satisfying p(x)≥0p(x)\ge0p(x)≥0 and ∑xp(x)=1\sum_xp(x)=1∑x​p(x)=1, of ∑x∈X∑y∈YJp(x,y)log⁡2 ⁣(Jp(x,y)(∑y′Jp(x,y′))(∑x′Jp(x′,y)))\sum_{x\in X}\sum_{y\in Y}J_p(x,y)\log_2\!\left(\frac{J_p(x,y)}{(\sum_{y'}J_p(x,y'))(\sum_{x'}J_p(x',y))}\right)∑x∈X​∑y∈Y​Jp​(x,y)log2​((∑y′​Jp​(x,y′))(∑x′​Jp​(x′,y))Jp​(x,y)​), where Jp(x,y)=p(x)V(x,y)J_p(x,y)=p(x)V(x,y)Jp​(x,y)=p(x)V(x,y) and log⁡2t=log⁡t/log⁡2\log_2 t=\log t/\log2log2​t=logt/log2. Division by zero and log⁡0\log0log0 both evaluate to zero. If XXX is empty, the row condition is vacuous but no such ppp exists, and the real supremum of the empty set is zero.

QAlgorithms.Papers.Independent.Bridge50.P42.finiteChannelInformation

For any finite types X,YX,YX,Y and arbitrary real functions V:X×Y→RV:X\times Y\to\mathbb RV:X×Y→R, p:X→Rp:X\to\mathbb Rp:X→R, put J(x,y)=p(x)V(x,y)J(x,y)=p(x)V(x,y)J(x,y)=p(x)V(x,y). This defines the real number ∑x∈X∑y∈YJ(x,y)log⁡2 ⁣(J(x,y)(∑y′∈YJ(x,y′))(∑x′∈XJ(x′,y)))\sum_{x\in X}\sum_{y\in Y}J(x,y)\log_2\!\left(\frac{J(x,y)}{(\sum_{y'\in Y}J(x,y'))(\sum_{x'\in X}J(x',y))}\right)∑x∈X​∑y∈Y​J(x,y)log2​((∑y′∈Y​J(x,y′))(∑x′∈X​J(x′,y))J(x,y)​), where log⁡2t=log⁡t/log⁡2\log_2 t=\log t/\log2log2​t=logt/log2 uses the total real logarithm. There are no nonnegativity, normalization, or nonemptiness hypotheses. In particular, zero denominators are evaluated using real division by zero equal to zero, and log⁡0=0\log0=0log0=0; if either index type is empty, the value is zero.

QAlgorithms.Papers.Independent.Bridge50.P42.gaussianBlockDensity

For every real σ\sigmaσ, natural number kkk, and vectors x,y∈Rk+1x,y\in\mathbb R^{k+1}x,y∈Rk+1, this defines

Gσ,k(x,y)=∏j=0kgσ(yj∣xj),G_{\sigma,k}(x,y)=\prod_{j=0}^{k}g_\sigma(y_j\mid x_j),Gσ,k​(x,y)=j=0∏k​gσ​(yj​∣xj​),

where gσ(yj∣xj)g_\sigma(y_j\mid x_j)gσ​(yj​∣xj​) is the real Gaussian density with mean xjx_jxj​ and variance σ2\sigma^2σ2. The block has k+1k+1k+1 coordinates, so k=0k=0k=0 gives one density factor, rather than an empty product. Negative σ\sigmaσ gives the same function as positive ∣σ∣|\sigma|∣σ∣, and σ=0\sigma=0σ=0 gives the zero function.

QAlgorithms.Papers.Independent.Bridge50.P42.gaussianJointDensity

For arbitrary real σ1,σ2,x,y,z\sigma_1,\sigma_2,x,y,zσ1​,σ2​,x,y,z, this defines

gσ1(y∣x) gσ22−σ12(z∣y),g_{\sigma_1}(y\mid x)\, g_{\sqrt{\sigma_2^2-\sigma_1^2}}(z\mid y),gσ1​​(y∣x)gσ22​−σ12​​​(z∣y),

where each gσ( ⋅∣μ)g_\sigma(\,\cdot\mid\mu)gσ​(⋅∣μ) is the real Gaussian density with mean μ\muμ and variance σ2\sigma^2σ2. No positivity or ordering hypotheses are imposed on σ1,σ2\sigma_1,\sigma_2σ1​,σ2​. The real square root is zero on nonpositive arguments, and the zero-variance density used here is identically zero; consequently, the product is zero whenever σ22≤σ12\sigma_2^2\leq\sigma_1^2σ22​≤σ12​, and also whenever σ1=0\sigma_1=0σ1​=0.

QAlgorithms.Papers.Independent.Bridge50.P42.gaussianOperationalCapacity

For arbitrary real σ1,σ2,S,ε\sigma_1,\sigma_2,S,\varepsilonσ1​,σ2​,S,ε, a choice iii among the six secrecy metrics, and a Boolean optimistic\mathit{optimistic}optimistic, this defines an extended-real supremum of all real numbers RRR satisfying the following requirements. There must exist, for every natural kkk, a code with bk=k+1b_k=k+1bk​=k+1 coordinates, Mk>0M_k>0Mk​>0 messages, probability encoder measures μk,m\mu_{k,m}μk,m​ satisfying μk,m{x:∑jxj2≤bkS}=1\mu_{k,m}\{x:\sum_jx_j^2\leq b_kS\}=1μk,m​{x:∑j​xj2​≤bk​S}=1, and a decoder dkd_kdk​ with measurable message fibers. For every real δ>0\delta>0δ>0, eventually

R−δ≤log⁡2Mkbk,log⁡2u=log⁡ulog⁡2.R-\delta\leq\frac{\log_2M_k}{b_k}, \qquad \log_2u=\frac{\log u}{\log2}.R−δ≤bk​log2​Mk​​,log2​u=log2logu​.

To specify the remaining requirements, write Gσ,k(x,z)=∏j=0kgσ(zj∣xj)G_{\sigma,k}(x,z)=\prod_{j=0}^{k}g_\sigma(z_j\mid x_j)Gσ,k​(x,z)=∏j=0k​gσ​(zj​∣xj​), with gσg_\sigmagσ​ the Gaussian density of variance σ2\sigma^2σ2, and set

pk(m,z)=1Mk∫Gσ2,k(x,z) dμk,m(x),qk(m,z)=1Mk∑ℓpk(ℓ,z).p_k(m,z)=\frac1{M_k}\int G_{\sigma_2,k}(x,z)\,d\mu_{k,m}(x), \qquad q_k(m,z)=\frac1{M_k}\sum_\ell p_k(\ell,z).pk​(m,z)=Mk​1​∫Gσ2​,k​(x,z)dμk,m​(x),qk​(m,z)=Mk​1​ℓ∑​pk​(ℓ,z).

For every real η>0\eta>0η>0, the selected leakage must tend to zero as k→∞k\to\inftyk→∞: its six possible values are

Dk,Vk,Tk(1,η),Dkbk,Vkbk,Tk(bk,η),D_k,\quad V_k,\quad T_k(1,\eta),\quad \frac{D_k}{b_k},\quad\frac{V_k}{b_k},\quad T_k(b_k,\eta),Dk​,Vk​,Tk​(1,η),bk​Dk​​,bk​Vk​​,Tk​(bk​,η),

where

Dk=∑m∫pk(m,z)log⁡2pk(m,z)qk(m,z) dz,Vk=12∑m∫∣pk(m,z)−qk(m,z)∣ dz,D_k=\sum_m\int p_k(m,z)\log_2\frac{p_k(m,z)}{q_k(m,z)}\,dz,\quad V_k=\frac12\sum_m\int|p_k(m,z)-q_k(m,z)|\,dz,Dk​=m∑​∫pk​(m,z)log2​qk​(m,z)pk​(m,z)​dz,Vk​=21​m∑​∫∣pk​(m,z)−qk​(m,z)∣dz, Tk(a,η)=∑m∫1{η<log⁡2(pk(m,z)/qk(m,z))/a}pk(m,z) dz.T_k(a,\eta)=\sum_m\int \mathbf1_{\{\eta<\log_2(p_k(m,z)/q_k(m,z))/a\}}p_k(m,z)\,dz.Tk​(a,η)=m∑​∫1{η<log2​(pk​(m,z)/qk​(m,z))/a}​pk​(m,z)dz.

Finally, with

ek=1Mk∑m∫(∫1{dk(y)≠m}Gσ1,k(x,y) dy)dμk,m(x),e_k=\frac1{M_k}\sum_m\int \left(\int\mathbf1_{\{d_k(y)\ne m\}}G_{\sigma_1,k}(x,y)\,dy\right)d\mu_{k,m}(x),ek​=Mk​1​m∑​∫(∫1{dk​(y)=m}​Gσ1​,k​(x,y)dy)dμk,m​(x),

the true Boolean choice requires some δ>0\delta>0δ>0 for which arbitrarily large kkk satisfy ek<ε−δe_k<\varepsilon-\deltaek​<ε−δ; the false choice requires ek≤ε+δe_k\leq\varepsilon+\deltaek​≤ε+δ eventually for every δ>0\delta>0δ>0. All output integrals are with respect to Lebesgue measure, and total real division and logarithms are used, including division by zero equal to zero and log⁡0=0\log0=0log0=0. There is no explicit requirement R≥0R\geq0R≥0, no range restriction on ε\varepsilonε, and no positivity or ordering restriction on the noise parameters. The extended-real supremum is −∞-\infty−∞ if there are no qualifying rates and +∞+\infty+∞ if they are unbounded above; in particular, S<0S<0S<0 permits no required code sequence.

QAlgorithms.Papers.Independent.Bridge50.P42.gaussianSecrecyCapacity

For arbitrary real σ1,σ2,S\sigma_1,\sigma_2,Sσ1​,σ2​,S, this defines the real number

12log⁡2 ⁣(1+Sσ12)−12log⁡2 ⁣(1+Sσ22),log⁡2u=log⁡ulog⁡2.\frac12\log_2\!\left(1+\frac{S}{\sigma_1^2}\right) -\frac12\log_2\!\left(1+\frac{S}{\sigma_2^2}\right), \qquad \log_2u=\frac{\log u}{\log2}.21​log2​(1+σ12​S​)−21​log2​(1+σ22​S​),log2​u=log2logu​.

No positivity, ordering, or power assumptions are imposed, and the expression is not truncated at zero. Division by zero is defined to be zero, so a zero noise parameter makes its corresponding logarithmic term zero. The real logarithm is the total real logarithm, with log⁡0=0\log0=0log0=0 and log⁡u=log⁡∣u∣\log u=\log|u|logu=log∣u∣ for negative uuu.

QAlgorithms.Papers.Independent.Bridge50.P42.independentBlockKernel

For any types X,YX,YX,Y, any family of real functions Vj:X×Y→RV_j:X\times Y\to\mathbb RVj​:X×Y→R indexed by natural numbers jjj, any natural number kkk, and sequences x=(x0,…,xk)∈Xk+1x=(x_0,\ldots,x_k)\in X^{k+1}x=(x0​,…,xk​)∈Xk+1, y=(y0,…,yk)∈Yk+1y=(y_0,\ldots,y_k)\in Y^{k+1}y=(y0​,…,yk​)∈Yk+1, this defines ∏j=0kVj(xj,yj)\prod_{j=0}^{k}V_j(x_j,y_j)∏j=0k​Vj​(xj​,yj​). No finiteness, nonnegativity, or normalization assumption is imposed on the types or functions. The block length is k+1k+1k+1, so k=0k=0k=0 gives the single factor V0(x0,y0)V_0(x_0,y_0)V0​(x0​,y0​), not an empty product.

QAlgorithms.Papers.Independent.Bridge50.P42.inducedFiniteOutput

For any finite type XXX, any type YYY, arbitrary real functions V:X×Y→RV:X\times Y\to\mathbb RV:X×Y→R and p:X→Rp:X\to\mathbb Rp:X→R, and any y∈Yy\in Yy∈Y, this defines ∑x∈Xp(x)V(x,y)\sum_{x\in X}p(x)V(x,y)∑x∈X​p(x)V(x,y). Neither ppp nor the rows of VVV are required to be nonnegative or normalized, and YYY need not be finite. If XXX is empty, the value is zero.

QAlgorithms.Papers.Independent.Bridge50.P42.maximizingInput

For finite sets X,YX,YX,Y, possibly empty, and an arbitrary real array V:X×Y→RV:X\times Y\to\mathbb RV:X×Y→R, define, for each law ppp on XXX,

IV(p)=∑x,yp(x)V(x,y)log⁡2p(x)V(x,y)(∑y′p(x)V(x,y′))(∑x′p(x′)V(x′,y)),I_V(p)=\sum_{x,y}p(x)V(x,y) \log_2\frac{p(x)V(x,y)} {(\sum_{y'}p(x)V(x,y'))(\sum_{x'}p(x')V(x',y))},IV​(p)=x,y∑​p(x)V(x,y)log2​(∑y′​p(x)V(x,y′))(∑x′​p(x′)V(x′,y))p(x)V(x,y)​,

where a law means nonnegative values summing to 111. If there exists a law ppp such that IV(q)≤IV(p)I_V(q)\le I_V(p)IV​(q)≤IV​(p) for every law qqq, the function called the maximizing input is one classically chosen such ppp. If no such law exists, it is the identically zero function. No stochasticity or nonnegativity assumption is made on VVV, and neither existence nor uniqueness of a maximizing law is asserted by this definition. In particular, when XXX is empty there is no law and the fallback is used. Here log⁡2u=log⁡u/log⁡2\log_2u=\log u/\log2log2​u=logu/log2, division by zero is 000, and the total real logarithm satisfies log⁡0=0\log0=0log0=0 and log⁡u=log⁡∣u∣\log u=\log|u|logu=log∣u∣ for u≠0u\ne0u=0.

QAlgorithms.Papers.Independent.Bridge50.P42.powerBall

For every real SSS and natural number kkk, this defines the subset

{x∈Rk+1:∑j=0kxj2≤(k+1)S}.\left\{x\in\mathbb R^{k+1}: \sum_{j=0}^{k}x_j^2\leq(k+1)S\right\}.{x∈Rk+1:j=0∑k​xj2​≤(k+1)S}.

The boundary is included. The case k=0k=0k=0 is the condition x02≤Sx_0^2\leq Sx02​≤S; there is always at least one coordinate. For S<0S<0S<0 the set is empty, and for S=0S=0S=0 it consists only of the zero vector.

QAlgorithms.Papers.Independent.Bridge50.P42.realGaussianDensity

For arbitrary real numbers σ,μ,y\sigma,\mu,yσ,μ,y, this defines the real Gaussian density at yyy with mean μ\muμ and variance σ2\sigma^2σ2:

gσ(y∣μ)=12πσ2exp⁡ ⁣(−(y−μ)22σ2).g_\sigma(y\mid\mu) =\frac{1}{\sqrt{2\pi\sigma^2}} \exp\!\left(-\frac{(y-\mu)^2}{2\sigma^2}\right).gσ​(y∣μ)=2πσ2​1​exp(−2σ2(y−μ)2​).

There is no assumption that σ>0\sigma>0σ>0; changing its sign leaves the function unchanged. With the total real arithmetic used here, division by zero is zero, so g0(y∣μ)=0g_0(y\mid\mu)=0g0​(y∣μ)=0 for every μ,y\mu,yμ,y.

QAlgorithms.Papers.Independent.Bridge50.P42.rowInformationVariance

For finite sets X,YX,YX,Y, an arbitrary real array V:X×Y→RV:X\times Y\to\mathbb RV:X×Y→R, and a specified x∈Xx\in Xx∈X, define

dx(y)={0,V(x,y)=0,log⁡2 ⁣(V(x,y)/b(y)),V(x,y)≠0,μx=∑yV(x,y)dx(y).d_x(y)= \begin{cases} 0,&V(x,y)=0,\\ \log_2\!\bigl(V(x,y)/b(y)\bigr),&V(x,y)\ne0, \end{cases} \qquad \mu_x=\sum_yV(x,y)d_x(y).dx​(y)={0,log2​(V(x,y)/b(y)),​V(x,y)=0,V(x,y)=0,​μx​=y∑​V(x,y)dx​(y).

The row information variance is the real number

∑yV(x,y)(dx(y)−μx)2.\sum_yV(x,y)\bigl(d_x(y)-\mu_x\bigr)^2.y∑​V(x,y)(dx​(y)−μx​)2.

Here b(y)=∑ap∗(a)V(a,y)b(y)=\sum_ap_*(a)V(a,y)b(y)=∑a​p∗​(a)V(a,y), where p∗p_*p∗​ is a classically chosen law maximizing

IV(p)=∑a,yp(a)V(a,y)log⁡2p(a)V(a,y)(∑y′p(a)V(a,y′))(∑a′p(a′)V(a′,y))I_V(p)=\sum_{a,y}p(a)V(a,y) \log_2\frac{p(a)V(a,y)} {(\sum_{y'}p(a)V(a,y'))(\sum_{a'}p(a')V(a',y))}IV​(p)=a,y∑​p(a)V(a,y)log2​(∑y′​p(a)V(a,y′))(∑a′​p(a′)V(a′,y))p(a)V(a,y)​

over nonnegative ppp summing to 111, if a maximizer exists, and is identically zero otherwise. No stochasticity assumption is imposed on VVV, so the displayed expression is defined even when its weights are negative or do not sum to 111. If YYY is empty, the result is 000. A nonzero V(x,y)V(x,y)V(x,y) with b(y)=0b(y)=0b(y)=0 also gives dx(y)=0d_x(y)=0dx​(y)=0, because division by zero and log⁡0\log0log0 are both 000; negative logarithm arguments use the total real logarithm log⁡u=log⁡∣u∣\log u=\log|u|logu=log∣u∣.

QAlgorithms.Papers.Independent.Bridge50.P42.secrecyCapacity

For any finite types X,Y,ZX,Y,ZX,Y,Z and functions Wmain:X×Y→RW_{\mathrm{main}}:X\times Y\to\mathbb RWmain​:X×Y→R, Wdegrade:Y×Z→RW_{\mathrm{degrade}}:Y\times Z\to\mathbb RWdegrade​:Y×Z→R whose rows are nonnegative and sum to one, this defines the real supremum over all p:X→Rp:X\to\mathbb Rp:X→R with p(x)≥0p(x)\ge0p(x)≥0 and ∑xp(x)=1\sum_xp(x)=1∑x​p(x)=1 of ∑x,yJB(x,y)log⁡2 ⁣(JB(x,y)(∑y′JB(x,y′))(∑x′JB(x′,y)))−∑x,zJE(x,z)log⁡2 ⁣(JE(x,z)(∑z′JE(x,z′))(∑x′JE(x′,z)))\sum_{x,y}J_B(x,y)\log_2\!\left(\frac{J_B(x,y)}{(\sum_{y'}J_B(x,y'))(\sum_{x'}J_B(x',y))}\right)-\sum_{x,z}J_E(x,z)\log_2\!\left(\frac{J_E(x,z)}{(\sum_{z'}J_E(x,z'))(\sum_{x'}J_E(x',z))}\right)∑x,y​JB​(x,y)log2​((∑y′​JB​(x,y′))(∑x′​JB​(x′,y))JB​(x,y)​)−∑x,z​JE​(x,z)log2​((∑z′​JE​(x,z′))(∑x′​JE​(x′,z))JE​(x,z)​), where JB(x,y)=p(x)Wmain(x,y)J_B(x,y)=p(x)W_{\mathrm{main}}(x,y)JB​(x,y)=p(x)Wmain​(x,y), JE(x,z)=p(x)∑yWmain(x,y)Wdegrade(y,z)J_E(x,z)=p(x)\sum_yW_{\mathrm{main}}(x,y)W_{\mathrm{degrade}}(y,z)JE​(x,z)=p(x)∑y​Wmain​(x,y)Wdegrade​(y,z), and log⁡2t=log⁡t/log⁡2\log_2t=\log t/\log2log2​t=logt/log2. Division by zero and log⁡0\log0log0 evaluate to zero. If XXX is empty, there is no admissible ppp, and the real supremum of the empty set is zero.

QAlgorithms.Papers.Independent.Bridge50.P42.secrecyInfo

For any finite types X,Y,ZX,Y,ZX,Y,Z, functions Wmain:X×Y→RW_{\mathrm{main}}:X\times Y\to\mathbb RWmain​:X×Y→R and Wdegrade:Y×Z→RW_{\mathrm{degrade}}:Y\times Z\to\mathbb RWdegrade​:Y×Z→R whose rows are nonnegative and sum to one, and any arbitrary real function p:X→Rp:X\to\mathbb Rp:X→R, define JB(x,y)=p(x)Wmain(x,y)J_B(x,y)=p(x)W_{\mathrm{main}}(x,y)JB​(x,y)=p(x)Wmain​(x,y) and JE(x,z)=p(x)∑y∈YWmain(x,y)Wdegrade(y,z)J_E(x,z)=p(x)\sum_{y\in Y}W_{\mathrm{main}}(x,y)W_{\mathrm{degrade}}(y,z)JE​(x,z)=p(x)∑y∈Y​Wmain​(x,y)Wdegrade​(y,z). The definition is ∑x,yJB(x,y)log⁡2 ⁣(JB(x,y)(∑y′JB(x,y′))(∑x′JB(x′,y)))−∑x,zJE(x,z)log⁡2 ⁣(JE(x,z)(∑z′JE(x,z′))(∑x′JE(x′,z)))\sum_{x,y}J_B(x,y)\log_2\!\left(\frac{J_B(x,y)}{(\sum_{y'}J_B(x,y'))(\sum_{x'}J_B(x',y))}\right)-\sum_{x,z}J_E(x,z)\log_2\!\left(\frac{J_E(x,z)}{(\sum_{z'}J_E(x,z'))(\sum_{x'}J_E(x',z))}\right)∑x,y​JB​(x,y)log2​((∑y′​JB​(x,y′))(∑x′​JB​(x′,y))JB​(x,y)​)−∑x,z​JE​(x,z)log2​((∑z′​JE​(x,z′))(∑x′​JE​(x′,z))JE​(x,z)​). Here log⁡2t=log⁡t/log⁡2\log_2 t=\log t/\log2log2​t=logt/log2, division by zero and log⁡0\log0log0 evaluate to zero, and ppp is not required to be nonnegative or normalized. Empty sums are zero.

QAlgorithms.Papers.Independent.Bridge50.P42.spectralConditionalSup

Let X,Y,ZX,Y,ZX,Y,Z be finite sets, let V(y∣x)V(y\mid x)V(y∣x) and D(z∣y)D(z\mid y)D(z∣y) be nonnegative, row-normalized kernels, put E(z∣x)=∑yV(y∣x)D(z∣y)E(z\mid x)=\sum_yV(y\mid x)D(z\mid y)E(z∣x)=∑y​V(y∣x)D(z∣y), and let PkP_kPk​ be a law on Xk+1X^{k+1}Xk+1 for every k≥0k\ge0k≥0, without any consistency requirement. For n=k+1n=k+1n=k+1, define

pk(x,y,z)=Pk(x)∏j<nV(yj∣xj)D(zj∣yj),p_k(x,y,z)=P_k(x)\prod_{j<n}V(y_j\mid x_j)D(z_j\mid y_j),pk​(x,y,z)=Pk​(x)j<n∏​V(yj​∣xj​)D(zj​∣yj​),

and define hk(x,y,z)=0h_k(x,y,z)=0hk​(x,y,z)=0 when this value is zero, and otherwise

hk(x,y,z)=1nlog⁡2(∏j<nV(yj∣xj)D(zj∣yj)∏j<nE(zj∣xj)∑apk(a,y,z)∑a∑bpk(a,b,z)),h_k(x,y,z)=\frac1n\log_2 \left( \frac{\displaystyle \frac{\prod_{j<n}V(y_j\mid x_j)D(z_j\mid y_j)} {\prod_{j<n}E(z_j\mid x_j)}} {\displaystyle \frac{\sum_a p_k(a,y,z)}{\sum_a\sum_b p_k(a,b,z)}} \right),hk​(x,y,z)=n1​log2​​∑a​∑b​pk​(a,b,z)∑a​pk​(a,y,z)​∏j<n​E(zj​∣xj​)∏j<n​V(yj​∣xj​)D(zj​∣yj​)​​​,

where aaa ranges over XnX^nXn and bbb over YnY^nYn. The spectral conditional supremum is the extended-real number

sup⁡{R∈R:∃δ>0 ∀N∈N ∃k≥N,∑x,y,z1{hk(x,y,z)≤R}pk(x,y,z)<1−δ},\sup\left\{ R\in\mathbb R: \exists\delta>0\ \forall N\in\mathbb N\ \exists k\ge N,\quad \sum_{x,y,z}\mathbf1_{\{h_k(x,y,z)\le R\}}p_k(x,y,z)<1-\delta \right\},sup{R∈R:∃δ>0 ∀N∈N ∃k≥N,x,y,z∑​1{hk​(x,y,z)≤R}​pk​(x,y,z)<1−δ},

with each real RRR embedded into the extended reals. Thus the strict mass inequality must hold at arbitrarily large indices with one fixed positive δ\deltaδ. The definition places no separate upper bound on δ\deltaδ and no sign restriction on RRR. Its value is −∞-\infty−∞ if the displayed set is empty and +∞+\infty+∞ if that set is unbounded above. Logarithms are base 222, using total division and logarithm at zero.

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

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 2026

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

View graph

Get started

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

About Prove2Me

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

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me