Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for General non-asymptotic and asymptotic formulas in channel resolvability and identification capacity and their application to wire-tap channel

Definition
QAlgorithms_Papers_Independent_Intake100_P73

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

prove2quantum

The objects the formalized statements of General non-asymptotic and asymptotic formulas in channel resolvability and identification capacity and their application to wire-tap channel (arXiv:cs/0503088) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • IsDiscreteStochastic: PDF p.2: normalized classical discrete stochastic rows, without finiteness.
  • discreteOutputMixture: PDF p.2: discreteOutputMixture mixture. Theorem inputs are PMFs or actual iid/uniform laws.
  • fullL1: PDF p.4: FULL L1 distance; for probability laws it lies in [0,2].
  • klAtom: PDF pp.4,9: nonnegative KL generator. On normalized laws its sum equals sum p log(p/q), since -p+q cancels globally. At p=0 its generator limit is q; the SOURCE's p log(p/q) term itself is zero there. Positive p and zero q give infinity. This representation avoids any nonsummable signed real tsum.
  • discreteKLDivergence: PDF pp.4,9: extended nonnegative KL in nats, by nonnegative summation.
  • logLikelihood: PDF p.9: extended likelihood. Zero numerator has zero probability; positive numerator and zero denominator give +infinity, never Real.log(p/0).
  • jointEvent: PDF pp.2,4: event probability under the actual joint law p(x)W_x(y).
  • upperLikelihoodMass: PDF p.4: upper truncation >C; the joint-support guard removes null rows.
  • lowTail: PDF p.4: low likelihood probability, with the source's weak <=C boundary.
  • deltaPrime: PDF p.4: upperLikelihoodMass-prime = E_p sum_{W_x/W_p<=C} W_x^2/W_p. Joint/discreteOutputMixture zero mass is removed BEFORE division. On normalized channels it is at most C, so all later toReal conversions are of finite quantities.
  • entropySummand: PDF p.4: entropySummand(0)=0, agreeing with the continuous entropy summand.
  • phiMoment: PDF p.4: exp(hayashiPhi(t|W,p)), with the source's power 1/(1+t).
  • hayashiPhi: PDF pp.4,10: extended hayashiPhi; its normalized zero endpoint is zero.
  • discretePsiMoment: PDF p.10: exp(hayashiPsi), excluding zero mixture mass before negative powers.
  • hayashiPsi: PDF p.10: fixed-input hayashiPsi; hayashiPsi(0)=0 for normalized laws.
  • worstPsi: PDF p.10: printed worst-input hayashiPsi, with the UNUSUAL exponent 1-s retained literally. A numerical supremum asserts no maximizing law.
  • l1Bound: PDF p.4, (9)/(12): no extra factor two inside the square root.
  • klBound: PDF p.4, (10)/(13): one-shot KL bound; -1/2<=t<0 where used. An infinite moment remains infinite, rather than being converted to a real.
  • entropyBound: PDF p.4, (11)/(14): entropy bound; invoked only when Y is finite.
  • Book: PDF p.4: positive tuple codebook; repeated input symbols are allowed.
  • empirical: PDF p.4: actual empirical discreteOutputMixture of a tuple codebook.
  • tupleOutput: PDF p.4: empirical discreteOutputMixture for a specified M-tuple.
  • iidExpectation: PDF p.4, Lemma 2: actual expectation under the iid tuple distribution p^M.
  • bestApproximation: PDF p.6: infimum over ACTUAL positive tuple codes of size AT MOST M. KL and L1 have separate optima. No attainment is asserted.
  • worstApproximation: PDF p.6: supremum of the approximation optimum over ALL input laws.
  • IdentificationCode: PDF pp.2,7: nonempty identification code; regions need not be disjoint.
  • firstError: PDF p.2: maximal first error, bounded by one on stochastic channels.
  • secondError: PDF p.2: maximal second error. The singleton's empty nonnegative supremum is zero; empty MESSAGE codes remain excluded.
  • DiscreteStochasticWiretapCode: PDF p.6: stochastic wiretap code with positive count and disjoint regions.
  • averageBobError: PDF p.6: UNIFORM-message average Bob error, not a maximal error.
  • eveOutputMarginal: PDF p.6: actual Eve discreteOutputMixture marginal of the uniform message.
  • averageEveDivergence: PDF p.6: Eve mutual information, extended KL in nats.
  • eveDistance: PDF p.6: average full L1 over ordered DISTINCT pairs. The empty pair average at M=1 is explicitly zero.
  • length: PDF pp.7–12: all exponent denominators are positive lengths.
  • sampleCount: PDF pp.7,10: positive integer rounding of exp(nR), preserving its log rate.
  • liminfErrorExponent: PDF pp.10,12: liminf normalized negative log, with +infinity at zero error.
  • informationTailProbability: PDF p.7: spectral upper-tail probability at a finite normalized threshold.
  • spectralLow: PDF p.7: complementary low-event probability, with <=a.
  • epsilonInformationSpectrum: PDF p.7: epsilon upper/lower spectra: true uses limsup upper tail, false uses liminf. At epsilon=1 the condition is STRICT <1. Extended infima avoid empty/unbounded-set defaults.
  • complementarySpectrum: PDF p.7: complementary expression uses OPPOSITE limits. SOURCE CORRECTION: at epsilon=1 use low<=0 rather than the displayed low<0.
  • identificationRate: PDF p.7: double-log rate. N=1 gives -infinity, not a Real.log 0 fallback.
  • identificationCapacity: PDF p.7: D and D-dagger with operational zero-rate baseline. Only the first-error limit changes. At mu=0 replace strict <mu with equality to zero; second error always uses limsup.
  • simulationCapacity: PDF p.7: S and S-dagger. SOURCE CORRECTION: printed SUP over achievable simulation rates is INF; the feasible set is upward closed, and pp.8–9 use its infimum. At epsilon=2 the error comparison is strict <2.
  • normalizedMessageLog: PDF p.9: ordinary log transmission rate, not double-log rate.
  • generalSecrecyCapacity: PDF p.9: general capacities. true requires I_E/n->0; false requires pairwise full L1->0. Both require average Bob error->0, with zero-rate baseline.
  • spectralDifference: PDF p.9: proof-based finite-threshold cuts, avoiding infinity-infinity.
  • preprocessedBound: PDF p.9: all auxiliary alphabets, laws, and stochastic preprocessing channels. The SAME Q precedes Bob and Eve. The universe is arbitrary.
  • memorylessKernel: PDF p.10: memoryless product kernel; code inputs need NOT be iid.
  • iidReferenceMass: PDF p.10: only the reference law is tensorized.
  • fixedResolvabilityExponent: PDF p.10: fixed-input optimal exponent, optimizing ACTUAL code sequences with limsup rate<=R. The error exponent is a liminf with extended logarithms.
  • worstExponent: PDF p.10: worst-case exponent; block input laws are arbitrary, not only iid. The underlying extrema are numerical values, without unattained code witnesses.
  • psiExponent: PDF pp.10,12, (36)/(60): hayashiPsi exponent with denominator 1+s.
  • phiExponent: PDF pp.10,12, (37)/(59): hayashiPhi exponent; t=0 has objective zero.
  • worstPsiExponent: PDF p.10, (38): worst hayashiPsi exponent, retaining the printed moment.
  • worstPhiExponent: PDF p.10, (39): input optimization BEFORE optimizing t.
  • reliabilityExponent: PDF p.12, (58): Bob reliability includes message plus sacrifice rate.
  • iidMaximumLikelihoodDecision: Hayashi PDF p.6, Gallager [7] ingredient: select an actual maximum-likelihood message, with an arbitrary fixed tie convention. N is positive.
  • iidMaximumLikelihoodError: Hayashi PDF p.6: actual uniform-message error of the selected ML decoder on a deterministic tuple. It counts repeated entries as different messages.
Definition code
import Mathlib

/-!
Hayashi, arXiv:cs/0503088v2. Classical discrete channels, natural logarithms,
and full L1 distance. Positive blocklength n is indexed by k with n=k+1.
All new definitions are local to this paper. No accepted definition is modified.
Model-specific names distinguish these arbitrary discrete classical objects from
inequivalent frozen declarations; see MODERATION_NOTES.md for exact comparisons.
The printed sup defining simulation capacity is corrected to inf, as required
by the operational proof. Compilation and independent moderation are pending.
-/

noncomputable section

namespace QAlgorithms.Papers.Independent.Intake100.P73

open Filter
open scoped BigOperators ENNReal Topology

attribute [local instance] Classical.propDecidable Classical.decEq

universe u

/-- PDF p.2: normalized classical discrete stochastic rows, without finiteness. -/
def IsDiscreteStochastic {X Y : Type*} (W : X → Y → ℝ≥0∞) : Prop :=
  ∀ x, (∑' y, W x y) = 1

/-- PDF p.2: discreteOutputMixture mixture. Theorem inputs are PMFs or actual iid/uniform laws. -/
def discreteOutputMixture {X Y : Type*} (W : X → Y → ℝ≥0∞) (p : X → ℝ≥0∞) (y : Y) : ℝ≥0∞ :=
  ∑' x, p x * W x y

/-- PDF p.4: FULL L1 distance; for probability laws it lies in [0,2]. -/
def fullL1 {Y : Type*} (p q : Y → ℝ≥0∞) : ℝ≥0∞ :=
  ∑' y, ((p y - q y) + (q y - p y))

/-- PDF pp.4,9: nonnegative KL generator. On normalized laws its sum equals
sum p log(p/q), since -p+q cancels globally. At p=0 its generator limit is q;
the SOURCE's p log(p/q) term itself is zero there. Positive p and zero q give
infinity. This representation avoids any nonsummable signed real tsum. -/
def klAtom (p q : ℝ≥0∞) : ℝ≥0∞ :=
  if p = 0 then q else if q = 0 then ⊤ else
    q * ENNReal.ofReal
      ((p.toReal / q.toReal) * Real.log (p.toReal / q.toReal) - p.toReal / q.toReal + 1)

/-- PDF pp.4,9: extended nonnegative KL in nats, by nonnegative summation. -/
def discreteKLDivergence {Y : Type*} (p q : Y → ℝ≥0∞) : ℝ≥0∞ :=
  ∑' y, klAtom (p y) (q y)

/-- PDF p.9: extended likelihood. Zero numerator has zero probability;
positive numerator and zero denominator give +infinity, never Real.log(p/0). -/
def logLikelihood (p q : ℝ≥0∞) : EReal :=
  if p = 0 then ⊥ else if q = 0 then ⊤ else (Real.log (p.toReal / q.toReal) : EReal)

/-- PDF pp.2,4: event probability under the actual joint law p(x)W_x(y). -/
def jointEvent {X Y : Type*} (W : X → Y → ℝ≥0∞) (p : X → ℝ≥0∞)
    (A : X → Y → Prop) : ℝ≥0∞ :=
  ∑' x, ∑' y, if A x y then p x * W x y else 0

/-- PDF p.4: upper truncation >C; the joint-support guard removes null rows. -/
def upperLikelihoodMass {X Y : Type*} (W : X → Y → ℝ≥0∞) (p : X → ℝ≥0∞) (C : ℝ) : ℝ :=
  (jointEvent W p (fun x y => 0 < p x ∧ 0 < discreteOutputMixture W p y ∧
    ENNReal.ofReal C < W x y / discreteOutputMixture W p y)).toReal

/-- PDF p.4: low likelihood probability, with the source's weak <=C boundary. -/
def lowTail {X Y : Type*} (W : X → Y → ℝ≥0∞) (p : X → ℝ≥0∞) (C : ℝ) : ℝ :=
  (jointEvent W p (fun x y => W x y / discreteOutputMixture W p y ≤ ENNReal.ofReal C)).toReal

/-- PDF p.4: upperLikelihoodMass-prime = E_p sum_{W_x/W_p<=C} W_x^2/W_p.
Joint/discreteOutputMixture zero mass is removed BEFORE division. On normalized channels it
is at most C, so all later toReal conversions are of finite quantities. -/
def deltaPrime {X Y : Type*} (W : X → Y → ℝ≥0∞) (p : X → ℝ≥0∞) (C : ℝ) : ℝ≥0∞ :=
  ∑' x, ∑' y, if 0 < p x ∧ 0 < discreteOutputMixture W p y ∧
      W x y / discreteOutputMixture W p y ≤ ENNReal.ofReal C then
    p x * (W x y) ^ 2 / discreteOutputMixture W p y else 0

/-- PDF p.4: entropySummand(0)=0, agreeing with the continuous entropy summand. -/
def entropySummand (a : ℝ) : ℝ := if a = 0 then 0 else -a * Real.log a

/-- PDF p.4: exp(hayashiPhi(t|W,p)), with the source's power 1/(1+t). -/
def phiMoment {X Y : Type*} (W : X → Y → ℝ≥0∞) (p : X → ℝ≥0∞) (t : ℝ) : ℝ≥0∞ :=
  ∑' y, (∑' x, p x * (W x y) ^ (1 / (1 + t))) ^ (1 + t)

/-- PDF pp.4,10: extended hayashiPhi; its normalized zero endpoint is zero. -/
def hayashiPhi {X Y : Type*} (W : X → Y → ℝ≥0∞) (p : X → ℝ≥0∞) (t : ℝ) : EReal :=
  if t = 0 then 0 else ENNReal.log (phiMoment W p t)

/-- PDF p.10: exp(hayashiPsi), excluding zero mixture mass before negative powers. -/
def discretePsiMoment {X Y : Type*} (W : X → Y → ℝ≥0∞) (p : X → ℝ≥0∞) (s : ℝ) : ℝ≥0∞ :=
  ∑' y, if discreteOutputMixture W p y = 0 then 0 else
    (∑' x, p x * (W x y) ^ (1 + s)) * (discreteOutputMixture W p y) ^ (-s)

/-- PDF p.10: fixed-input hayashiPsi; hayashiPsi(0)=0 for normalized laws. -/
def hayashiPsi {X Y : Type*} (W : X → Y → ℝ≥0∞) (p : X → ℝ≥0∞) (s : ℝ) : EReal :=
  if s = 0 then 0 else ENNReal.log (discretePsiMoment W p s)

/-- PDF p.10: printed worst-input hayashiPsi, with the UNUSUAL exponent 1-s
retained literally. A numerical supremum asserts no maximizing law. -/
def worstPsi {X Y : Type*} (W : X → Y → ℝ≥0∞) (s : ℝ) : EReal :=
  ENNReal.log (⨆ p : PMF X, ∑' y, (∑' x, p x * (W x y) ^ (1 + s)) ^ (1 - s))

/-- PDF p.4, (9)/(12): no extra factor two inside the square root. -/
def l1Bound {X Y : Type*} (W : X → Y → ℝ≥0∞) (p : X → ℝ≥0∞)
    (C : ℝ) (M : ℕ) : ℝ :=
  2 * upperLikelihoodMass W p C + Real.sqrt ((deltaPrime W p C).toReal / M)

/-- PDF p.4, (10)/(13): one-shot KL bound; -1/2<=t<0 where used.
An infinite moment remains infinite, rather than being converted to a real. -/
def klBound {X Y : Type*} (W : X → Y → ℝ≥0∞) (p : X → ℝ≥0∞)
    (M : ℕ) (t : ℝ) : EReal :=
  ENNReal.log (1 + (M : ℝ≥0∞) ^ t * phiMoment W p t) / ((-t : ℝ) : EReal)

/-- PDF p.4, (11)/(14): entropy bound; invoked only when Y is finite. -/
def entropyBound {X Y : Type*} (W : X → Y → ℝ≥0∞) (p : X → ℝ≥0∞)
    (M : ℕ) (C : ℝ) : ℝ :=
  entropySummand (upperLikelihoodMass W p C) + upperLikelihoodMass W p C * Real.log (Nat.card Y) +
    (deltaPrime W p C).toReal / M

/-- PDF p.4: positive tuple codebook; repeated input symbols are allowed. -/
structure Book (X : Type*) where
  size : ℕ
  positive : 0 < size
  entry : Fin size → X

/-- PDF p.4: actual empirical discreteOutputMixture of a tuple codebook. -/
def empirical {X Y : Type*} (W : X → Y → ℝ≥0∞) (b : Book X) (y : Y) : ℝ≥0∞ :=
  (b.size : ℝ≥0∞)⁻¹ * ∑ i, W (b.entry i) y

/-- PDF p.4: empirical discreteOutputMixture for a specified M-tuple. -/
def tupleOutput {X Y : Type*} (W : X → Y → ℝ≥0∞) {M : ℕ}
    (a : Fin M → X) (y : Y) : ℝ≥0∞ :=
  (M : ℝ≥0∞)⁻¹ * ∑ i, W (a i) y

/-- PDF p.4, Lemma 2: actual expectation under the iid tuple distribution p^M. -/
def iidExpectation {X : Type*} (p : PMF X) (M : ℕ)
    (f : (Fin M → X) → ℝ≥0∞) : ℝ≥0∞ :=
  ∑' a, (∏ i, p (a i)) * f a

/-- PDF p.6: infimum over ACTUAL positive tuple codes of size AT MOST M.
KL and L1 have separate optima. No attainment is asserted. -/
def bestApproximation {X Y : Type*} (kl : Bool) (M : ℕ)
    (W : X → Y → ℝ≥0∞) (p : X → ℝ≥0∞) : ℝ≥0∞ :=
  sInf {v | ∃ b : Book X, b.size ≤ M ∧ v =
    if kl then discreteKLDivergence (empirical W b) (discreteOutputMixture W p)
    else fullL1 (empirical W b) (discreteOutputMixture W p)}

/-- PDF p.6: supremum of the approximation optimum over ALL input laws. -/
def worstApproximation {X Y : Type*} (kl : Bool) (M : ℕ)
    (W : X → Y → ℝ≥0∞) : ℝ≥0∞ :=
  ⨆ p : PMF X, bestApproximation kl M W p

/-- PDF pp.2,7: nonempty identification code; regions need not be disjoint. -/
structure IdentificationCode (X Y : Type*) where
  messages : ℕ
  positive : 0 < messages
  encoder : Fin messages → PMF X
  region : Fin messages → Set Y

/-- PDF p.2: maximal first error, bounded by one on stochastic channels. -/
def firstError {X Y : Type*} (W : X → Y → ℝ≥0∞) (c : IdentificationCode X Y) : ℝ :=
  (⨆ i, ∑' y, if y ∈ c.region i then 0 else discreteOutputMixture W (c.encoder i) y).toReal

/-- PDF p.2: maximal second error. The singleton's empty nonnegative supremum
is zero; empty MESSAGE codes remain excluded. -/
def secondError {X Y : Type*} (W : X → Y → ℝ≥0∞) (c : IdentificationCode X Y) : ℝ :=
  (⨆ i, ⨆ j, ⨆ (_ : i ≠ j), ∑' y,
    if y ∈ c.region i then discreteOutputMixture W (c.encoder j) y else 0).toReal

/-- PDF p.6: stochastic wiretap code with positive count and disjoint regions. -/
structure DiscreteStochasticWiretapCode (X Y : Type*) where
  messages : ℕ
  positive : 0 < messages
  encoder : Fin messages → PMF X
  region : Fin messages → Set Y
  disjoint : Pairwise (fun i j => Disjoint (region i) (region j))

/-- PDF p.6: UNIFORM-message average Bob error, not a maximal error. -/
def averageBobError {X Y : Type*} (W : X → Y → ℝ≥0∞) (c : DiscreteStochasticWiretapCode X Y) : ℝ≥0∞ :=
  (c.messages : ℝ≥0∞)⁻¹ * ∑ i, ∑' y,
    if y ∈ c.region i then 0 else discreteOutputMixture W (c.encoder i) y

/-- PDF p.6: actual Eve discreteOutputMixture marginal of the uniform message. -/
def eveOutputMarginal {X Y Z : Type*} (W : X → Z → ℝ≥0∞) (c : DiscreteStochasticWiretapCode X Y)
    (z : Z) : ℝ≥0∞ :=
  (c.messages : ℝ≥0∞)⁻¹ * ∑ i, discreteOutputMixture W (c.encoder i) z

/-- PDF p.6: Eve mutual information, extended KL in nats. -/
def averageEveDivergence {X Y Z : Type*} (W : X → Z → ℝ≥0∞) (c : DiscreteStochasticWiretapCode X Y) : ℝ≥0∞ :=
  (c.messages : ℝ≥0∞)⁻¹ * ∑ i, discreteKLDivergence (discreteOutputMixture W (c.encoder i)) (eveOutputMarginal W c)

/-- PDF p.6: average full L1 over ordered DISTINCT pairs.
The empty pair average at M=1 is explicitly zero. -/
def eveDistance {X Y Z : Type*} (W : X → Z → ℝ≥0∞) (c : DiscreteStochasticWiretapCode X Y) : ℝ≥0∞ :=
  if c.messages = 1 then 0 else
    ((c.messages : ℝ≥0∞) * (c.messages - 1 : ℕ))⁻¹ *
      ∑ i, ∑ j, if i = j then 0 else
        fullL1 (discreteOutputMixture W (c.encoder i)) (discreteOutputMixture W (c.encoder j))

/-- PDF pp.7–12: all exponent denominators are positive lengths. -/
def length (k : ℕ) : ℕ := k + 1

/-- PDF pp.7,10: positive integer rounding of exp(nR), preserving its log rate. -/
def sampleCount (k : ℕ) (R : ℝ) : ℕ := max 1 ⌈Real.exp ((length k : ℝ) * R)⌉₊

/-- PDF pp.10,12: liminf normalized negative log, with +infinity at zero error. -/
def liminfErrorExponent (e : ℕ → ℝ≥0∞) : EReal :=
  Filter.liminf (fun k => -ENNReal.log (e k) / (length k : EReal)) atTop

/-- PDF p.7: spectral upper-tail probability at a finite normalized threshold. -/
def informationTailProbability {X Y : ℕ → Type*} (W : (k : ℕ) → X k → Y k → ℝ≥0∞)
    (p : (k : ℕ) → PMF (X k)) (a : ℝ) (k : ℕ) : ℝ :=
  (jointEvent (W k) (p k) (fun x y => (a : EReal) <
    logLikelihood (W k x y) (discreteOutputMixture (W k) (p k) y) / (length k : EReal))).toReal

/-- PDF p.7: complementary low-event probability, with <=a. -/
def spectralLow {X Y : ℕ → Type*} (W : (k : ℕ) → X k → Y k → ℝ≥0∞)
    (p : (k : ℕ) → PMF (X k)) (a : ℝ) (k : ℕ) : ℝ :=
  (jointEvent (W k) (p k) (fun x y =>
    logLikelihood (W k x y) (discreteOutputMixture (W k) (p k) y) / (length k : EReal) ≤ (a : EReal))).toReal

/-- PDF p.7: epsilon upper/lower spectra: true uses limsup upper tail, false
uses liminf. At epsilon=1 the condition is STRICT <1. Extended infima avoid
empty/unbounded-set defaults. -/
def epsilonInformationSpectrum {X Y : ℕ → Type*} (upper : Bool)
    (W : (k : ℕ) → X k → Y k → ℝ≥0∞) (p : (k : ℕ) → PMF (X k)) (eps : ℝ) : EReal :=
  sInf {v : EReal | ∃ a : ℝ, v = (a : EReal) ∧
    let tail := if upper then Filter.limsup (informationTailProbability W p a) atTop
      else Filter.liminf (informationTailProbability W p a) atTop
    if eps = 1 then tail < 1 else tail ≤ eps}

/-- PDF p.7: complementary expression uses OPPOSITE limits.
SOURCE CORRECTION: at epsilon=1 use low<=0 rather than the displayed low<0. -/
def complementarySpectrum {X Y : ℕ → Type*} (upper : Bool)
    (W : (k : ℕ) → X k → Y k → ℝ≥0∞) (p : (k : ℕ) → PMF (X k)) (eps : ℝ) : EReal :=
  sSup {v : EReal | ∃ a : ℝ, v = (a : EReal) ∧
    let low := if upper then Filter.liminf (spectralLow W p a) atTop
      else Filter.limsup (spectralLow W p a) atTop
    if eps = 1 then low ≤ 0 else low < 1 - eps}

/-- PDF p.7: double-log rate. N=1 gives -infinity, not a Real.log 0 fallback. -/
def identificationRate {X Y : Type*} (c : IdentificationCode X Y) (k : ℕ) : EReal :=
  ENNReal.log (ENNReal.ofReal (Real.log c.messages)) / (length k : EReal)

/-- PDF p.7: D and D-dagger with operational zero-rate baseline. Only the
first-error limit changes. At mu=0 replace strict <mu with equality to zero;
second error always uses limsup. -/
def identificationCapacity {X Y : ℕ → Type*} (optimistic : Bool)
    (W : (k : ℕ) → X k → Y k → ℝ≥0∞) (mu lam : ℝ) : EReal :=
  max 0 (sSup {r : EReal | ∃ c : (k : ℕ) → IdentificationCode (X k) (Y k),
    r = Filter.liminf (fun k => identificationRate (c k) k) atTop ∧
    (let e := if optimistic then Filter.liminf (fun k => firstError (W k) (c k)) atTop
      else Filter.limsup (fun k => firstError (W k) (c k)) atTop
     if mu = 0 then e = 0 else e < mu) ∧
    Filter.limsup (fun k => secondError (W k) (c k)) atTop ≤ lam})

/-- PDF p.7: S and S-dagger. SOURCE CORRECTION: printed SUP over achievable
simulation rates is INF; the feasible set is upward closed, and pp.8–9 use
its infimum. At epsilon=2 the error comparison is strict <2. -/
def simulationCapacity {X Y : ℕ → Type*} (optimistic : Bool)
    (W : (k : ℕ) → X k → Y k → ℝ≥0∞) (eps : ℝ) : EReal :=
  sInf {r : EReal | ∃ R : ℝ, 0 ≤ R ∧ r = (R : EReal) ∧
    let e := if optimistic then Filter.liminf
        (fun k => (worstApproximation false (sampleCount k R) (W k)).toReal) atTop
      else Filter.limsup
        (fun k => (worstApproximation false (sampleCount k R) (W k)).toReal) atTop
    if eps = 2 then e < 2 else e ≤ eps}

/-- PDF p.9: ordinary log transmission rate, not double-log rate. -/
def normalizedMessageLog {X Y : Type*} (c : DiscreteStochasticWiretapCode X Y) (k : ℕ) : EReal :=
  (Real.log c.messages : EReal) / (length k : EReal)

/-- PDF p.9: general capacities. true requires I_E/n->0; false requires
pairwise full L1->0. Both require average Bob error->0, with zero-rate baseline. -/
def generalSecrecyCapacity {X Y Z : ℕ → Type*} (kl : Bool)
    (B : (k : ℕ) → X k → Y k → ℝ≥0∞) (E : (k : ℕ) → X k → Z k → ℝ≥0∞) : EReal :=
  max 0 (sSup {r : EReal | ∃ c : (k : ℕ) → DiscreteStochasticWiretapCode (X k) (Y k),
    r = Filter.liminf (fun k => normalizedMessageLog (c k) k) atTop ∧
    Tendsto (fun k => averageBobError (B k) (c k)) atTop (nhds 0) ∧
    if kl then Tendsto (fun k => averageEveDivergence (E k) (c k) / (length k : ℝ≥0∞)) atTop (nhds 0)
      else Tendsto (fun k => eveDistance (E k) (c k)) atTop (nhds 0)})

/-- PDF p.9: proof-based finite-threshold cuts, avoiding infinity-infinity. -/
def spectralDifference (lo hi : EReal) : EReal :=
  sSup {v : EReal | ∃ a b : ℝ, (a : EReal) < lo ∧ hi < (b : EReal) ∧ v = (a - b : ℝ)}

/-- PDF p.9: all auxiliary alphabets, laws, and stochastic preprocessing
channels. The SAME Q precedes Bob and Eve. The universe is arbitrary. -/
def preprocessedBound {X Y Z : ℕ → Type u}
    (B : (k : ℕ) → X k → Y k → ℝ≥0∞) (E : (k : ℕ) → X k → Z k → ℝ≥0∞) : EReal :=
  max 0 (sSup {r : EReal | ∃ A : ℕ → Type u,
    ∃ Q : (k : ℕ) → A k → PMF (X k), ∃ p : (k : ℕ) → PMF (A k),
      r = spectralDifference
        (epsilonInformationSpectrum false (fun k a => discreteOutputMixture (B k) (Q k a)) p 1)
        (epsilonInformationSpectrum true (fun k a => discreteOutputMixture (E k) (Q k a)) p 0)})

/-- PDF p.10: memoryless product kernel; code inputs need NOT be iid. -/
def memorylessKernel {X Y : Type*} (W : X → Y → ℝ≥0∞) (n : ℕ)
    (x : Fin n → X) (y : Fin n → Y) : ℝ≥0∞ := ∏ i, W (x i) (y i)

/-- PDF p.10: only the reference law is tensorized. -/
def iidReferenceMass {X : Type*} (p : PMF X) (n : ℕ) (x : Fin n → X) : ℝ≥0∞ :=
  ∏ i, p (x i)

/-- PDF p.10: fixed-input optimal exponent, optimizing ACTUAL code sequences
with limsup rate<=R. The error exponent is a liminf with extended logarithms. -/
def fixedResolvabilityExponent {X Y : Type*} (kl : Bool) (W : X → Y → ℝ≥0∞)
    (p : PMF X) (R : ℝ) : EReal :=
  sSup {e : EReal | ∃ b : (k : ℕ) → Book (Fin (length k) → X),
    Filter.limsup (fun k => (Real.log (b k).size : EReal) / (length k : EReal)) atTop ≤ (R : EReal) ∧
    e = liminfErrorExponent (fun k => if kl then
      discreteKLDivergence (empirical (memorylessKernel W (length k)) (b k))
        (discreteOutputMixture (memorylessKernel W (length k)) (iidReferenceMass p (length k)))
      else fullL1 (empirical (memorylessKernel W (length k)) (b k))
        (discreteOutputMixture (memorylessKernel W (length k)) (iidReferenceMass p (length k))))}

/-- PDF p.10: worst-case exponent; block input laws are arbitrary, not only iid.
The underlying extrema are numerical values, without unattained code witnesses. -/
def worstExponent {X Y : Type*} (kl : Bool) (W : X → Y → ℝ≥0∞) (R : ℝ) : EReal :=
  liminfErrorExponent (fun k => worstApproximation kl (sampleCount k R) (memorylessKernel W (length k)))

/-- PDF pp.10,12, (36)/(60): hayashiPsi exponent with denominator 1+s. -/
def psiExponent {X Y : Type*} (W : X → Y → ℝ≥0∞) (p : PMF X) (R : ℝ) : EReal :=
  sSup ((fun s : ℝ => (-hayashiPsi W p s + ((s * R : ℝ) : EReal)) /
    ((1 + s : ℝ) : EReal)) '' Set.Icc 0 1)

/-- PDF pp.10,12, (37)/(59): hayashiPhi exponent; t=0 has objective zero. -/
def phiExponent {X Y : Type*} (W : X → Y → ℝ≥0∞) (p : PMF X) (R : ℝ) : EReal :=
  sSup ((fun t : ℝ => -hayashiPhi W p t - ((t * R : ℝ) : EReal)) '' Set.Icc (-(1 / 2)) 0)

/-- PDF p.10, (38): worst hayashiPsi exponent, retaining the printed moment. -/
def worstPsiExponent {X Y : Type*} (W : X → Y → ℝ≥0∞) (R : ℝ) : EReal :=
  sSup ((fun s : ℝ => (-worstPsi W s + ((s * R : ℝ) : EReal)) /
    ((1 + s : ℝ) : EReal)) '' Set.Icc 0 1)

/-- PDF p.10, (39): input optimization BEFORE optimizing t. -/
def worstPhiExponent {X Y : Type*} (W : X → Y → ℝ≥0∞) (R : ℝ) : EReal :=
  sSup ((fun t : ℝ => -(⨆ p : PMF X, hayashiPhi W p t) - ((t * R : ℝ) : EReal)) ''
    Set.Icc (-(1 / 2)) 0)

/-- PDF p.12, (58): Bob reliability includes message plus sacrifice rate. -/
def reliabilityExponent {X Y : Type*} (W : X → Y → ℝ≥0∞) (p : PMF X) (R : ℝ) : EReal :=
  sSup ((fun s : ℝ => -hayashiPhi W p s - ((s * R : ℝ) : EReal)) '' Set.Icc 0 1)

/-- Sanity: a support mismatch gives infinite KL. -/
example : klAtom 1 0 = ⊤ := by simp [klAtom]

/-- Sanity: one empirical sample gives the actual selected channel row. -/
example {X Y : Type*} (W : X → Y → ℝ≥0∞) (a : Fin 1 → X) (y : Y) :
    tupleOutput W a y = W (a 0) y := by simp [tupleOutput]

/-- Sanity: a one-use product channel preserves its row. -/
example {X Y : Type*} (W : X → Y → ℝ≥0∞) (x : Fin 1 → X) (y : Fin 1 → Y) :
    memorylessKernel W 1 x y = W (x 0) (y 0) := by simp [memorylessKernel]

/-- Sanity: exact zero error gives an infinite negative logarithm. -/
example : -ENNReal.log 0 = (⊤ : EReal) := by simp

/-- Hayashi PDF p.6, Gallager [7] ingredient: select an actual maximum-likelihood
message, with an arbitrary fixed tie convention. N is positive. -/
def iidMaximumLikelihoodDecision {X Y : Type*} {N : ℕ}
    (W : X → Y → ℝ≥0∞) (a : Fin N → X) (hN : 0 < N) (y : Y) : Fin N :=
  letI : Nonempty (Fin N) := ⟨⟨0, hN⟩⟩
  Classical.epsilon (fun i => ∀ j, W (a j) y ≤ W (a i) y)

/-- Hayashi PDF p.6: actual uniform-message error of the selected ML decoder
on a deterministic tuple. It counts repeated entries as different messages. -/
def iidMaximumLikelihoodError {X Y : Type*} {N : ℕ}
    (W : X → Y → ℝ≥0∞) (a : Fin N → X) (hN : 0 < N) : ℝ≥0∞ :=
  (N : ℝ≥0∞)⁻¹ * ∑ i, ∑' y,
    if iidMaximumLikelihoodDecision W a hN y = i then 0 else W (a i) y

/-- Sanity: a one-message ML decoder selects its only message. -/
example {X Y : Type*} (W : X → Y → ℝ≥0∞) (a : Fin 1 → X) (y : Y) :
    iidMaximumLikelihoodDecision W a (by decide) y = 0 := by
  exact Subsingleton.elim _ _

end QAlgorithms.Papers.Independent.Intake100.P73
Source
General non-asymptotic and asymptotic formulas in channel resolvability and identification capacity and their application to wire-tap channel, arXiv:cs/0503088v2, https://arxiv.org/abs/cs/0503088v2
Read-back

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

QAlgorithms.Papers.Independent.Intake100.P73.Book

For any type XXX, a book on XXX consists of a natural number mmm, a proof that 0<m0<m0<m, and a function assigning an element of XXX to each index i∈{0,…,m−1}i\in\{0,\ldots,m-1\}i∈{0,…,m−1}. Entries may repeat, and no further conditions are imposed. A book cannot have size zero, and no book exists when XXX is empty.

QAlgorithms.Papers.Independent.Intake100.P73.DiscreteStochasticWiretapCode

For any types X,YX,YX,Y, a discrete stochastic wiretap code consists of a natural number m>0m>0m>0, a probability mass function pi:X→[0,∞]p_i:X\to[0,\infty]pi​:X→[0,∞] with total sum 111 for each i∈{0,…,m−1}i\in\{0,\ldots,m-1\}i∈{0,…,m−1}, and a subset Di⊆YD_i\subseteq YDi​⊆Y for each such iii, subject to

Di∩Dj=∅whenever i≠j.D_i\cap D_j=\varnothing\qquad\text{whenever }i\ne j.Di​∩Dj​=∅whenever i=j.

The regions may be empty and need not cover YYY, and the probability mass functions may coincide. There is no channel function among the structure’s fields. A zero message count is excluded; if XXX is empty, no such code exists, while YYY may be empty.

QAlgorithms.Papers.Independent.Intake100.P73.IdentificationCode

For any types X,YX,YX,Y, an identification code consists of a natural number mmm, a requirement m>0m>0m>0, a probability mass function pi:X→[0,∞]p_i:X\to[0,\infty]pi​:X→[0,∞] for every i∈{0,…,m−1}i\in\{0,\ldots,m-1\}i∈{0,…,m−1}, and a subset Di⊆YD_i\subseteq YDi​⊆Y for every such iii. Each pip_ipi​ has total sum 111. There is no condition relating the subsets DiD_iDi​: they may overlap or be empty, and they need not cover YYY; the probability mass functions may also coincide. The message count cannot be zero. If XXX is empty, no such code exists; YYY is allowed to be empty.

QAlgorithms.Papers.Independent.Intake100.P73.IsDiscreteStochastic

For arbitrary types XXX and YYY and any function W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞], this predicate means that, for every x∈Xx\in Xx∈X,

∑y∈YW(x,y)=1.\sum_{y\in Y}W(x,y)=1.y∈Y∑​W(x,y)=1.

The sum is the extended nonnegative sum, defined for arbitrary index types and allowed to be infinite. If XXX is empty, the condition holds vacuously. If YYY is empty and XXX is nonempty, the condition cannot hold, since each row sum is 000.

QAlgorithms.Papers.Independent.Intake100.P73.averageBobError

For arbitrary types X,YX,YX,Y, any function W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞], and a discrete stochastic wiretap code with m>0m>0m>0 messages, probability mass functions pip_ipi​ on XXX, and pairwise disjoint regions Di⊆YD_i\subseteq YDi​⊆Y, this defines

1m∑i=0m−1∑y∈Y∖Di∑x∈Xpi(x)W(x,y)∈[0,∞].\frac1m\sum_{i=0}^{m-1} \sum_{y\in Y\setminus D_i}\sum_{x\in X}p_i(x)W(x,y) \quad\in[0,\infty].m1​i=0∑m−1​y∈Y∖Di​∑​x∈X∑​pi​(x)W(x,y)∈[0,∞].

All sums and arithmetic are in the extended nonnegative reals. The positive message count makes the denominator nonzero. No normalization condition is imposed on WWW, so the result may exceed 111 or be infinite. If YYY is empty, the result is 000.

QAlgorithms.Papers.Independent.Intake100.P73.averageEveDivergence

For arbitrary types X,Y,ZX,Y,ZX,Y,Z, any function W:X×Z→[0,∞]W:X\times Z\to[0,\infty]W:X×Z→[0,∞], and a discrete stochastic wiretap code with m>0m>0m>0 messages, probability mass functions pip_ipi​ on XXX, and pairwise disjoint regions Di⊆YD_i\subseteq YDi​⊆Y, put

qi(z)=∑x∈Xpi(x)W(x,z),q‾(z)=1m∑j=0m−1qj(z).q_i(z)=\sum_{x\in X}p_i(x)W(x,z), \qquad \overline q(z)=\frac1m\sum_{j=0}^{m-1}q_j(z).qi​(z)=x∈X∑​pi​(x)W(x,z),q​(z)=m1​j=0∑m−1​qj​(z).

This defines

1m∑i=0m−1∑z∈ZK(qi(z),q‾(z))∈[0,∞],K(u,v)={v,u=0,∞,u≠0, v=0,v max⁡ ⁣{u∘v∘log⁡ ⁣(u∘v∘)−u∘v∘+1, 0},u≠0, v≠0.\frac1m\sum_{i=0}^{m-1}\sum_{z\in Z}K(q_i(z),\overline q(z)) \quad\in[0,\infty], \qquad K(u,v)= \begin{cases} v,&u=0,\\ \infty,&u\ne0,\ v=0,\\ v\,\max\!\left\{ \frac{u^\circ}{v^\circ}\log\!\left(\frac{u^\circ}{v^\circ}\right) -\frac{u^\circ}{v^\circ}+1,\ 0 \right\},&u\ne0,\ v\ne0. \end{cases}m1​i=0∑m−1​z∈Z∑​K(qi​(z),q​(z))∈[0,∞],K(u,v)=⎩⎨⎧​v,∞,vmax{v∘u∘​log(v∘u∘​)−v∘u∘​+1, 0},​u=0,u=0, v=0,u=0, v=0.​

Here u∘u^\circu∘ is the real value of finite uuu, with ∞∘=0\infty^\circ=0∞∘=0; real division by zero and log⁡0\log 0log0 both equal 000. The sums and remaining arithmetic are in [0,∞][0,\infty][0,∞], with 0⋅∞=00\cdot\infty=00⋅∞=0. The regions do not enter the formula, and no normalization condition is imposed on WWW. If ZZZ is empty, the result is 000.

QAlgorithms.Papers.Independent.Intake100.P73.bestApproximation

For arbitrary types X,YX,YX,Y, a Boolean flag kl\mathit{kl}kl, a natural number MMM, a function W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞], and weights p:X→[0,∞]p:X\to[0,\infty]p:X→[0,∞], put q(y)=∑x∈Xp(x)W(x,y)q(y)=\sum_{x\in X}p(x)W(x,y)q(y)=∑x∈X​p(x)W(x,y). For every positive integer m≤Mm\le Mm≤M and every tuple b:{0,…,m−1}→Xb:\{0,\ldots,m-1\}\to Xb:{0,…,m−1}→X, with repetitions allowed, put rb(y)=m−1∑i=0m−1W(bi,y)r_b(y)=m^{-1}\sum_{i=0}^{m-1}W(b_i,y)rb​(y)=m−1∑i=0m−1​W(bi​,y). This defines the infimum in [0,∞][0,\infty][0,∞] of the values

{∑y∈YK(rb(y),q(y)),kl is true,∑y∈Y((rb(y)−q(y))+(q(y)−rb(y))),kl is false,\begin{cases} \displaystyle\sum_{y\in Y}K(r_b(y),q(y)),&\mathit{kl}\text{ is true},\\[3pt] \displaystyle\sum_{y\in Y}\bigl((r_b(y)-q(y))+(q(y)-r_b(y))\bigr),&\mathit{kl}\text{ is false}, \end{cases}⎩⎨⎧​y∈Y∑​K(rb​(y),q(y)),y∈Y∑​((rb​(y)−q(y))+(q(y)−rb​(y))),​kl is true,kl is false,​

over all such m,bm,bm,b, where subtraction is truncated subtraction in the extended nonnegative reals and

K(a,d)={d,a=0,∞,a≠0, d=0,dmax⁡ ⁣{aRdRlog⁡ ⁣(aRdR)−aRdR+1, 0},a≠0, d≠0.K(a,d)= \begin{cases} d,&a=0,\\ \infty,&a\ne0,\ d=0,\\ \displaystyle d\max\!\left\{ \frac{a_{\mathbb R}}{d_{\mathbb R}}\log\!\left(\frac{a_{\mathbb R}}{d_{\mathbb R}}\right) -\frac{a_{\mathbb R}}{d_{\mathbb R}}+1,\ 0 \right\},&a\ne0,\ d\ne0. \end{cases}K(a,d)=⎩⎨⎧​d,∞,dmax{dR​aR​​log(dR​aR​​)−dR​aR​​+1, 0},​a=0,a=0, d=0,a=0, d=0.​

Here aRa_{\mathbb R}aR​ and dRd_{\mathbb R}dR​ preserve finite values and send infinity to zero, the maximum is embedded in [0,∞][0,\infty][0,∞], and its quotient and logarithm use total real arithmetic, including division by zero equal to zero and log⁡0=0\log0=0log0=0. No normalization of ppp, stochasticity of WWW, or finiteness of either type is assumed. If M=0M=0M=0 or XXX is empty, there are no eligible books, so the infimum is ∞\infty∞; the definition does not assert that an eligible book attains the infimum.

QAlgorithms.Papers.Independent.Intake100.P73.complementarySpectrum

For arbitrary families of types Xk,YkX_k,Y_kXk​,Yk​, functions Wk:Xk×Yk→[0,∞]W_k:X_k\times Y_k\to[0,\infty]Wk​:Xk​×Yk​→[0,∞], probability mass functions pkp_kpk​ on XkX_kXk​, a Boolean parameter upper\mathrm{upper}upper, and any real number ε\varepsilonε, put qk(y)=∑x′pk(x)Wk(x,y)q_k(y)=\sum'_x p_k(x)W_k(x,y)qk​(y)=∑x′​pk​(x)Wk​(x,y). Let ℓ(u,v)=−∞\ell(u,v)=-\inftyℓ(u,v)=−∞ when u=0u=0u=0, let ℓ(u,v)=+∞\ell(u,v)=+\inftyℓ(u,v)=+∞ when u≠0u\ne0u=0 and v=0v=0v=0, and otherwise let it be the extended-real embedding of log⁡(uR/vR)\log(u_{\mathbb R}/v_{\mathbb R})log(uR​/vR​), where +∞+\infty+∞ converts to the real number 000, real division by zero is 000, and the real logarithm of 000 is 000. Define, for each real aaa,

Lk(a)=(∑x′∑y′{pk(x)Wk(x,y),ℓ(Wk(x,y),qk(y))/(k+1)≤a,0,otherwise)R,L(a)={lim inf⁡k→∞Lk(a),upper=true,lim sup⁡k→∞Lk(a),upper=false.L_k(a)=\left(\sum'_x\sum'_y \begin{cases} p_k(x)W_k(x,y),&\ell(W_k(x,y),q_k(y))/(k+1)\le a,\\ 0,&\text{otherwise} \end{cases}\right)_{\mathbb R}, \qquad L(a)= \begin{cases} \liminf_{k\to\infty}L_k(a),&\mathrm{upper}=\mathrm{true},\\ \limsup_{k\to\infty}L_k(a),&\mathrm{upper}=\mathrm{false}. \end{cases}Lk​(a)=(x∑′​y∑′​{pk​(x)Wk​(x,y),0,​ℓ(Wk​(x,y),qk​(y))/(k+1)≤a,otherwise​)R​,L(a)={liminfk→∞​Lk​(a),limsupk→∞​Lk​(a),​upper=true,upper=false.​

The definition is the supremum in the extended reals of the real thresholds aaa satisfying L(a)≤0L(a)\le0L(a)≤0 when ε=1\varepsilon=1ε=1, and satisfying L(a)<1−εL(a)<1-\varepsilonL(a)<1−ε otherwise. The supremum of an empty set is −∞-\infty−∞, and the result may also be +∞+\infty+∞. The limits superior and inferior are taken in R\mathbb RR using their total order-theoretic definitions; no boundedness or convergence is assumed. An infinite event sum converts to 000, and neither a restriction on ε\varepsilonε nor stochastic normalization or cardinality assumptions on the kernels and types are required.

QAlgorithms.Papers.Independent.Intake100.P73.deltaPrime

For arbitrary types XXX and YYY, functions W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞] and p:X→[0,∞]p:X\to[0,\infty]p:X→[0,∞], and any real CCC, put m(y)=∑x∈Xp(x)W(x,y)m(y)=\sum_{x\in X}p(x)W(x,y)m(y)=∑x∈X​p(x)W(x,y) and C+=max⁡{C,0}C_+=\max\{C,0\}C+​=max{C,0}, viewed in [0,∞][0,\infty][0,∞]. This defines

∑x∈X∑y∈Y{p(x)W(x,y)2m(y),p(x)>0, m(y)>0, and W(x,y)/m(y)≤C+,0,otherwise,\sum_{x\in X}\sum_{y\in Y} \begin{cases} \dfrac{p(x)W(x,y)^2}{m(y)},& p(x)>0,\ m(y)>0,\ \text{and }W(x,y)/m(y)\le C_+,\\ 0,&\text{otherwise}, \end{cases}x∈X∑​y∈Y∑​⎩⎨⎧​m(y)p(x)W(x,y)2​,0,​p(x)>0, m(y)>0, and W(x,y)/m(y)≤C+​,otherwise,​

as an extended nonnegative value. No normalization or finiteness is assumed. All products, quotients, and sums use extended nonnegative arithmetic, with 0⋅∞=00\cdot\infty=00⋅∞=0 and every value divided by ∞\infty∞ equal to 000. Thus an infinite m(y)m(y)m(y) satisfies the positivity condition and makes both the tested quotient and the displayed contribution 000. The sum is 000 if either index type is empty and may otherwise be infinite.

QAlgorithms.Papers.Independent.Intake100.P73.discreteKLDivergence

For any type YYY and functions p,q:Y→[0,∞]p,q:Y\to[0,\infty]p,q:Y→[0,∞], this defines the extended nonnegative sum

∑y∈Y{q(y),p(y)=0,∞,p(y)≠0 and q(y)=0,q(y)max⁡{ρylog⁡ρy−ρy+1,0},p(y)≠0 and q(y)≠0,ρy=T(p(y))T(q(y)).\sum_{y\in Y} \begin{cases} q(y),&p(y)=0,\\ \infty,&p(y)\ne0\text{ and }q(y)=0,\\ q(y)\max\{\rho_y\log\rho_y-\rho_y+1,0\},&p(y)\ne0\text{ and }q(y)\ne0, \end{cases} \qquad \rho_y=\frac{T(p(y))}{T(q(y))}.y∈Y∑​⎩⎨⎧​q(y),∞,q(y)max{ρy​logρy​−ρy​+1,0},​p(y)=0,p(y)=0 and q(y)=0,p(y)=0 and q(y)=0,​ρy​=T(q(y))T(p(y))​.

Here TTT preserves finite values and sends ∞\infty∞ to 000; the maximum is interpreted as an extended nonnegative value. Real division by 000 and the real logarithm at 000 both give 000. Thus a coordinate with both values 000 contributes 000, a coordinate with q(y)=∞q(y)=\inftyq(y)=∞ contributes ∞\infty∞, and one with p(y)=∞p(y)=\inftyp(y)=∞ and finite q(y)>0q(y)>0q(y)>0 contributes q(y)q(y)q(y). No normalization or finiteness is assumed; the sum is 000 for empty YYY and may be infinite.

QAlgorithms.Papers.Independent.Intake100.P73.discreteOutputMixture

For arbitrary types XXX and YYY, functions W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞] and p:X→[0,∞]p:X\to[0,\infty]p:X→[0,∞], and an element y∈Yy\in Yy∈Y, this defines

∑x∈Xp(x)W(x,y)∈[0,∞].\sum_{x\in X}p(x)W(x,y)\in[0,\infty].x∈X∑​p(x)W(x,y)∈[0,∞].

No normalization or finiteness condition is imposed on ppp or WWW. The sum is the extended nonnegative sum; it is 000 when XXX is empty and may otherwise be infinite. Multiplication uses 0⋅∞=∞⋅0=00\cdot\infty=\infty\cdot0=00⋅∞=∞⋅0=0.

QAlgorithms.Papers.Independent.Intake100.P73.discretePsiMoment

For arbitrary types X,YX,YX,Y, a function W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞], weights p:X→[0,∞]p:X\to[0,\infty]p:X→[0,∞], and any real number sss, let q(y)=∑x∈Xp(x)W(x,y)q(y)=\sum_{x\in X}p(x)W(x,y)q(y)=∑x∈X​p(x)W(x,y). This defines the extended nonnegative value

∑y∈Y{0,q(y)=0,(∑x∈Xp(x)W(x,y)1+s)q(y)−s,q(y)≠0.\sum_{y\in Y} \begin{cases} 0,&q(y)=0,\\[2pt] \displaystyle\left(\sum_{x\in X}p(x)W(x,y)^{1+s}\right)q(y)^{-s},&q(y)\ne0. \end{cases}y∈Y∑​⎩⎨⎧​0,(x∈X∑​p(x)W(x,y)1+s)q(y)−s,​q(y)=0,q(y)=0.​

There are no normalization, stochasticity, finiteness, or nonemptiness assumptions. The sums, products, and real powers use total extended nonnegative arithmetic, including 0⋅∞=00\cdot\infty=00⋅∞=0; in particular, the branch q(y)=0q(y)=0q(y)=0 contributes exactly zero regardless of sss. Negative and zero exponents are allowed, and an empty outer sum is zero.

QAlgorithms.Papers.Independent.Intake100.P73.empirical

For arbitrary types X,YX,YX,Y, a function W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞], a book bbb consisting of a positive natural size mmm and entries bi∈Xb_i\in Xbi​∈X for 0≤i<m0\le i<m0≤i<m, and an element y∈Yy\in Yy∈Y, this defines

1m∑i=0m−1W(bi,y)\frac1m\sum_{i=0}^{m-1}W(b_i,y)m1​i=0∑m−1​W(bi​,y)

in the extended nonnegative reals. Repeated entries are counted separately. No stochasticity of WWW or finiteness of X,YX,YX,Y is required, and the value may be infinite; the book’s positivity condition excludes division by a zero size.

QAlgorithms.Papers.Independent.Intake100.P73.entropyBound

For arbitrary types X,YX,YX,Y, a function W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞], weights p:X→[0,∞]p:X\to[0,\infty]p:X→[0,∞], a natural number MMM, and a real number CCC, put q(y)=∑x∈Xp(x)W(x,y)q(y)=\sum_{x\in X}p(x)W(x,y)q(y)=∑x∈X​p(x)W(x,y) and c=max⁡(C,0)c=\max(C,0)c=max(C,0), viewed in [0,∞][0,\infty][0,∞]. Define

U=(∑x∈X∑y∈Y{p(x)W(x,y),p(x)>0, q(y)>0, c<W(x,y)/q(y),0,otherwise)R,D=∑x∈X∑y∈Y{p(x)W(x,y)2/q(y),p(x)>0, q(y)>0, W(x,y)/q(y)≤c,0,otherwise.U=\left(\sum_{x\in X}\sum_{y\in Y} \begin{cases} p(x)W(x,y),&p(x)>0,\ q(y)>0,\ c<W(x,y)/q(y),\\ 0,&\text{otherwise} \end{cases}\right)_{\mathbb R}, \qquad D=\sum_{x\in X}\sum_{y\in Y} \begin{cases} p(x)W(x,y)^2/q(y),&p(x)>0,\ q(y)>0,\ W(x,y)/q(y)\le c,\\ 0,&\text{otherwise}. \end{cases}U=​x∈X∑​y∈Y∑​{p(x)W(x,y),0,​p(x)>0, q(y)>0, c<W(x,y)/q(y),otherwise​​R​,D=x∈X∑​y∈Y∑​{p(x)W(x,y)2/q(y),0,​p(x)>0, q(y)>0, W(x,y)/q(y)≤c,otherwise.​

Conversion aRa_{\mathbb R}aR​ preserves finite extended nonnegative values and sends infinity to zero. The definition returns

h(U)+Ulog⁡N+DRM,h(a)={0,a=0,−alog⁡a,a≠0,h(U)+U\log N+\frac{D_{\mathbb R}}{M}, \qquad h(a)= \begin{cases} 0,&a=0,\\ -a\log a,&a\ne0, \end{cases}h(U)+UlogN+MDR​​,h(a)={0,−aloga,​a=0,a=0,​

where NNN is the number of elements of YYY when YYY is finite, and N=0N=0N=0 when YYY is infinite. No normalization, stochasticity, finiteness, or nonemptiness is assumed. The logarithms and final quotient are real operations: log⁡0=0\log 0=0log0=0, so an empty or infinite YYY makes Ulog⁡N=0U\log N=0UlogN=0, and M=0M=0M=0 makes the final quotient zero.

QAlgorithms.Papers.Independent.Intake100.P73.entropySummand

For every real number aaa, this defines the real value

{0,a=0,−alog⁡a,a≠0.\begin{cases} 0,&a=0,\\ -a\log a,&a\ne0. \end{cases}{0,−aloga,​a=0,a=0.​

There is no restriction that aaa be nonnegative or at most 111. The real logarithm used here is total: for negative aaa, log⁡a=log⁡∣a∣\log a=\log|a|loga=log∣a∣, so the value there is −alog⁡∣a∣-a\log|a|−alog∣a∣.

QAlgorithms.Papers.Independent.Intake100.P73.epsilonInformationSpectrum

For arbitrary families of types Xk,YkX_k,Y_kXk​,Yk​, functions Wk:Xk×Yk→[0,∞]W_k:X_k\times Y_k\to[0,\infty]Wk​:Xk​×Yk​→[0,∞], probability mass functions pkp_kpk​ on XkX_kXk​, a Boolean parameter upper\mathrm{upper}upper, and any real number ε\varepsilonε, put qk(y)=∑x′pk(x)Wk(x,y)q_k(y)=\sum'_x p_k(x)W_k(x,y)qk​(y)=∑x′​pk​(x)Wk​(x,y). Let ℓ(u,v)\ell(u,v)ℓ(u,v) equal −∞-\infty−∞ if u=0u=0u=0, +∞+\infty+∞ if u≠0u\ne0u=0 and v=0v=0v=0, and otherwise log⁡(uR/vR)\log(u_{\mathbb R}/v_{\mathbb R})log(uR​/vR​) embedded in the extended reals; conversion to a real number sends +∞+\infty+∞ to 000, real division by zero is 000, and the real logarithm of 000 is 000. For each real threshold aaa, let

Tk(a)=(∑x′∑y′{pk(x)Wk(x,y),a<ℓ(Wk(x,y),qk(y))/(k+1),0,otherwise)R,T(a)={lim sup⁡k→∞Tk(a),upper=true,lim inf⁡k→∞Tk(a),upper=false.T_k(a)=\left(\sum'_x\sum'_y \begin{cases} p_k(x)W_k(x,y),&a<\ell(W_k(x,y),q_k(y))/(k+1),\\ 0,&\text{otherwise} \end{cases}\right)_{\mathbb R}, \qquad T(a)= \begin{cases} \limsup_{k\to\infty}T_k(a),&\mathrm{upper}=\mathrm{true},\\ \liminf_{k\to\infty}T_k(a),&\mathrm{upper}=\mathrm{false}. \end{cases}Tk​(a)=(x∑′​y∑′​{pk​(x)Wk​(x,y),0,​a<ℓ(Wk​(x,y),qk​(y))/(k+1),otherwise​)R​,T(a)={limsupk→∞​Tk​(a),liminfk→∞​Tk​(a),​upper=true,upper=false.​

The defined value is the infimum in the extended reals of the real thresholds aaa satisfying T(a)<1T(a)<1T(a)<1 when ε=1\varepsilon=1ε=1, and satisfying T(a)≤εT(a)\le\varepsilonT(a)≤ε otherwise. Only real thresholds enter this set, although its infimum can be infinite; an empty set has infimum +∞+\infty+∞. The limits superior and inferior displayed here are taken in R\mathbb RR using their total order-theoretic definitions, without a boundedness or convergence hypothesis. Infinite event sums convert to 000; ε\varepsilonε is unrestricted, and no stochastic normalization, finiteness, or countability assumption on the kernels or types is imposed.

QAlgorithms.Papers.Independent.Intake100.P73.eveDistance

For arbitrary types X,Y,ZX,Y,ZX,Y,Z, any function W:X×Z→[0,∞]W:X\times Z\to[0,\infty]W:X×Z→[0,∞], and a discrete stochastic wiretap code with m>0m>0m>0 messages, probability mass functions pip_ipi​ on XXX, and pairwise disjoint regions Di⊆YD_i\subseteq YDi​⊆Y, put qi(z)=∑x∈Xpi(x)W(x,z)q_i(z)=\sum_{x\in X}p_i(x)W(x,z)qi​(z)=∑x∈X​pi​(x)W(x,z). This defines 000 when m=1m=1m=1, and when m≥2m\ge2m≥2 defines

1m(m−1)∑0≤i,j<mi≠j∑z∈Z((qi(z)−qj(z))+(qj(z)−qi(z)))∈[0,∞].\frac1{m(m-1)} \sum_{\substack{0\le i,j<m\\i\ne j}} \sum_{z\in Z} \bigl((q_i(z)-q_j(z))+(q_j(z)-q_i(z))\bigr) \quad\in[0,\infty].m(m−1)1​0≤i,j<mi=j​∑​z∈Z∑​((qi​(z)−qj​(z))+(qj​(z)−qi​(z)))∈[0,∞].

The pairs (i,j)(i,j)(i,j) are ordered. All sums and arithmetic are in the extended nonnegative reals, and subtraction is truncated, including ∞−∞=0\infty-\infty=0∞−∞=0; the natural-number subtraction m−1m-1m−1 is used only in the branch where m≥2m\ge2m≥2. The regions do not enter the formula, and no normalization condition is imposed on WWW. If ZZZ is empty, the result is 000.

QAlgorithms.Papers.Independent.Intake100.P73.eveOutputMarginal

For arbitrary types X,Y,ZX,Y,ZX,Y,Z, any function W:X×Z→[0,∞]W:X\times Z\to[0,\infty]W:X×Z→[0,∞], a discrete stochastic wiretap code with m>0m>0m>0 messages, probability mass functions pip_ipi​ on XXX, and pairwise disjoint regions Di⊆YD_i\subseteq YDi​⊆Y, and any z∈Zz\in Zz∈Z, this defines

q‾(z)=1m∑i=0m−1∑x∈Xpi(x)W(x,z)∈[0,∞].\overline q(z)=\frac1m\sum_{i=0}^{m-1}\sum_{x\in X}p_i(x)W(x,z) \quad\in[0,\infty].q​(z)=m1​i=0∑m−1​x∈X∑​pi​(x)W(x,z)∈[0,∞].

The sums and arithmetic are in the extended nonnegative reals. The regions and the type YYY do not enter this formula. No normalization condition is imposed on WWW, so q‾\overline qq​ is not required to have total sum 111, and its values may be infinite.

QAlgorithms.Papers.Independent.Intake100.P73.firstError

For arbitrary types X,YX,YX,Y, any function W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞], and an identification code with m>0m>0m>0 messages, probability mass functions pip_ipi​ on XXX, and subsets Di⊆YD_i\subseteq YDi​⊆Y, this defines the real number

(sup⁡0≤i<m∑y∈Y∖Di∑x∈Xpi(x)W(x,y))∘.\left(\sup_{0\le i<m} \sum_{y\in Y\setminus D_i}\sum_{x\in X}p_i(x)W(x,y)\right)^\circ.​0≤i<msup​y∈Y∖Di​∑​x∈X∑​pi​(x)W(x,y)​∘.

The sums and supremum are taken in [0,∞][0,\infty][0,∞], and s∘s^\circs∘ means the real value of sss when finite, with ∞∘=0\infty^\circ=0∞∘=0. Thus an infinite supremum gives the real value 000. No normalization condition is imposed on WWW, so the finite value need not be at most 111. The sets DiD_iDi​ need not be disjoint; if YYY is empty, the result is 000.

QAlgorithms.Papers.Independent.Intake100.P73.fixedResolvabilityExponent

For arbitrary types X,YX,YX,Y, a Boolean kl\mathit{kl}kl, a function W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞], a probability mass function ppp on XXX, and a real number RRR, this defines an extended real number as follows; no stochasticity, finiteness, or countability assumption is imposed on W,X,YW,X,YW,X,Y. Put nk=k+1n_k=k+1nk​=k+1. Consider every sequence of positive integers NkN_kNk​ and lists xk,1,…,xk,Nk∈Xnkx_{k,1},\ldots,x_{k,N_k}\in X^{n_k}xk,1​,…,xk,Nk​​∈Xnk​, with repetitions allowed, satisfying

lim sup⁡k→∞log⁡Nknk≤R.\limsup_{k\to\infty}\frac{\log N_k}{n_k}\le R.k→∞limsup​nk​logNk​​≤R.

For y∈Ynky\in Y^{n_k}y∈Ynk​, define

Pk(y)=Nk−1∑i=1Nk∏j=0nk−1W(xk,i,j,yj),Qk(y)=∑x∈Xnk′(∏j=0nk−1p(xj))(∏j=0nk−1W(xj,yj)).P_k(y)=N_k^{-1}\sum_{i=1}^{N_k}\prod_{j=0}^{n_k-1}W(x_{k,i,j},y_j), \qquad Q_k(y)=\sum'_{x\in X^{n_k}} \left(\prod_{j=0}^{n_k-1}p(x_j)\right) \left(\prod_{j=0}^{n_k-1}W(x_j,y_j)\right).Pk​(y)=Nk−1​i=1∑Nk​​j=0∏nk​−1​W(xk,i,j​,yj​),Qk​(y)=x∈Xnk​∑′​(j=0∏nk​−1​p(xj​))(j=0∏nk​−1​W(xj​,yj​)).

For u,v∈[0,∞]u,v\in[0,\infty]u,v∈[0,∞], let u\dotminusvu\mathbin{\dotminus}vu\dotminusv denote subtraction truncated at zero, let ρ(u)\rho(u)ρ(u) be its real conversion, which sends +∞+\infty+∞ to 000, and set

A(u,v)={v,u=0,+∞,u≠0, v=0,v[ρ(u)ρ(v)log⁡ ⁣(ρ(u)ρ(v))−ρ(u)ρ(v)+1]+,u≠0, v≠0,A(u,v)= \begin{cases} v,&u=0,\\ +\infty,&u\ne0,\ v=0,\\ v\left[\dfrac{\rho(u)}{\rho(v)} \log\!\left(\dfrac{\rho(u)}{\rho(v)}\right) -\dfrac{\rho(u)}{\rho(v)}+1\right]_+,&u\ne0,\ v\ne0, \end{cases}A(u,v)=⎩⎨⎧​v,+∞,v[ρ(v)ρ(u)​log(ρ(v)ρ(u)​)−ρ(v)ρ(u)​+1]+​,​u=0,u=0, v=0,u=0, v=0,​

where [r]+=max⁡(r,0)[r]_+=\max(r,0)[r]+​=max(r,0), embedded in [0,∞][0,\infty][0,∞], and real division and logarithms use their total conventions, including a/0=0a/0=0a/0=0 and log⁡0=0\log 0=0log0=0. Set dk=∑y′A(Pk(y),Qk(y))d_k=\sum'_y A(P_k(y),Q_k(y))dk​=∑y′​A(Pk​(y),Qk​(y)) when kl\mathit{kl}kl is true, and dk=∑y′((Pk(y)\dotminusQk(y))+(Qk(y)\dotminusPk(y)))d_k=\sum'_y((P_k(y)\mathbin{\dotminus}Q_k(y))+(Q_k(y)\mathbin{\dotminus}P_k(y)))dk​=∑y′​((Pk​(y)\dotminusQk​(y))+(Qk​(y)\dotminusPk​(y))) when it is false. The defined value is the supremum, in the extended reals, of all values

lim inf⁡k→∞−log⁡dknk\liminf_{k\to\infty}\frac{-\log d_k}{n_k}k→∞liminf​nk​−logdk​​

arising from such sequences. Here the logarithm of an extended nonnegative number sends 000 to −∞-\infty−∞ and +∞+\infty+∞ to +∞+\infty+∞. The index k=0k=0k=0 corresponds to length 111, so no zero-length block occurs; empty output types are allowed and their sums are zero. An empty set of admissible values has supremum −∞-\infty−∞; in particular, this occurs when R<0R<0R<0.

QAlgorithms.Papers.Independent.Intake100.P73.fullL1

For any type YYY and functions p,q:Y→[0,∞]p,q:Y\to[0,\infty]p,q:Y→[0,∞], this defines

∑y∈Y((p(y)−q(y))+(q(y)−p(y)))∈[0,∞],\sum_{y\in Y}\bigl((p(y)-q(y))+(q(y)-p(y))\bigr)\in[0,\infty],y∈Y∑​((p(y)−q(y))+(q(y)−p(y)))∈[0,∞],

where subtraction is truncated extended nonnegative subtraction. For finite values, the summand is ∣p(y)−q(y)∣|p(y)-q(y)|∣p(y)−q(y)∣; if exactly one value is infinite, it is infinite; if both values are infinite, it is 000, since ∞−∞=0\infty-\infty=0∞−∞=0 in this subtraction. There are no normalization or finiteness assumptions. The sum is 000 for empty YYY and may be infinite.

QAlgorithms.Papers.Independent.Intake100.P73.generalSecrecyCapacity

For arbitrary families of types Xk,Yk,ZkX_k,Y_k,Z_kXk​,Yk​,Zk​, arbitrary functions Bk:Xk×Yk→[0,∞]B_k:X_k\times Y_k\to[0,\infty]Bk​:Xk​×Yk​→[0,∞] and Ek:Xk×Zk→[0,∞]E_k:X_k\times Z_k\to[0,\infty]Ek​:Xk​×Zk​→[0,∞], and a Boolean parameter kl\mathrm{kl}kl, consider code sequences with a positive natural message count mkm_kmk​, probability mass functions pk,ip_{k,i}pk,i​ on XkX_kXk​, and pairwise disjoint regions Dk,i⊆YkD_{k,i}\subseteq Y_kDk,i​⊆Yk​, indexed by 0≤i<mk0\le i<m_k0≤i<mk​. Write bk,i(y)=∑x′pk,i(x)Bk(x,y)b_{k,i}(y)=\sum'_x p_{k,i}(x)B_k(x,y)bk,i​(y)=∑x′​pk,i​(x)Bk​(x,y), ek,i(z)=∑x′pk,i(x)Ek(x,z)e_{k,i}(z)=\sum'_x p_{k,i}(x)E_k(x,z)ek,i​(z)=∑x′​pk,i​(x)Ek​(x,z), and eˉk(z)=mk−1∑i<mkek,i(z)\bar e_k(z)=m_k^{-1}\sum_{i<m_k}e_{k,i}(z)eˉk​(z)=mk−1​∑i<mk​​ek,i​(z). For functions f,gf,gf,g with values in [0,∞][0,\infty][0,∞], define

L(f,g)=∑z′((f(z)−g(z))+(g(z)−f(z))),K(f,g)=∑z′κ(f(z),g(z)),L(f,g)=\sum'_z\bigl((f(z)-g(z))+(g(z)-f(z))\bigr), \qquad K(f,g)=\sum'_z\kappa(f(z),g(z)),L(f,g)=z∑′​((f(z)−g(z))+(g(z)−f(z))),K(f,g)=z∑′​κ(f(z),g(z)),

where subtraction is truncated subtraction in [0,∞][0,\infty][0,∞], including +∞−(+∞)=0+\infty-(+\infty)=0+∞−(+∞)=0, and

κ(u,v)={v,u=0,+∞,u≠0, v=0,v max⁡ ⁣{(uR/vR)log⁡(uR/vR)−uR/vR+1, 0},u≠0, v≠0.\kappa(u,v)= \begin{cases} v,&u=0,\\ +\infty,&u\ne0,\ v=0,\\ v\,\max\!\left\{(u_{\mathbb R}/v_{\mathbb R})\log(u_{\mathbb R}/v_{\mathbb R})-u_{\mathbb R}/v_{\mathbb R}+1,\ 0\right\},&u\ne0,\ v\ne0. \end{cases}κ(u,v)=⎩⎨⎧​v,+∞,vmax{(uR​/vR​)log(uR​/vR​)−uR​/vR​+1, 0},​u=0,u=0, v=0,u=0, v=0.​

Here the maximum is embedded in [0,∞][0,\infty][0,∞], conversion to a real number sends +∞+\infty+∞ to 000, and real division by zero and the real logarithm of 000 both equal 000. Define

Ak=mk−1∑i<mk∑y∉Dk,i′bk,i(y),Jk=mk−1∑i<mkK(ek,i,eˉk),A_k=m_k^{-1}\sum_{i<m_k}\sum'_{y\notin D_{k,i}}b_{k,i}(y),\qquad J_k=m_k^{-1}\sum_{i<m_k}K(e_{k,i},\bar e_k),Ak​=mk−1​i<mk​∑​y∈/Dk,i​∑′​bk,i​(y),Jk​=mk−1​i<mk​∑​K(ek,i​,eˉk​),

and let Vk=0V_k=0Vk​=0 when mk=1m_k=1mk​=1, while for mk>1m_k>1mk​>1 let

Vk=(mk(mk−1))−1∑i,j<mki≠jL(ek,i,ek,j).V_k=\bigl(m_k(m_k-1)\bigr)^{-1} \sum_{\substack{i,j<m_k\\i\ne j}}L(e_{k,i},e_{k,j}).Vk​=(mk​(mk​−1))−1i,j<mk​i=j​∑​L(ek,i​,ek,j​).

All these masses and errors use arithmetic in [0,∞][0,\infty][0,∞]; the subtraction mk−1m_k-1mk​−1 is natural-number subtraction. The defined capacity is

max⁡{0, sup⁡{lim inf⁡k→∞log⁡mkk+1:a code sequence as above exists,Ak⟶0,Jk/(k+1)⟶0 if kl=true,Vk⟶0 if kl=false}}.\max\left\{0,\ \sup\left\{\liminf_{k\to\infty}\frac{\log m_k}{k+1}: \begin{array}{l} \text{a code sequence as above exists},\\ A_k\longrightarrow0,\\ J_k/(k+1)\longrightarrow0\ \text{if }\mathrm{kl}=\mathrm{true},\\ V_k\longrightarrow0\ \text{if }\mathrm{kl}=\mathrm{false} \end{array}\right\}\right\}.max⎩⎨⎧​0, sup⎩⎨⎧​k→∞liminf​k+1logmk​​:a code sequence as above exists,Ak​⟶0,Jk​/(k+1)⟶0 if kl=true,Vk​⟶0 if kl=false​⎭⎬⎫​⎭⎬⎫​.

The error convergences take place in [0,∞][0,\infty][0,∞], whereas the supremum and rate limit inferior take place in the extended reals. An empty admissible set gives capacity 000. The kernels are not assumed to be stochastic, and the types are not assumed finite or countable.

QAlgorithms.Papers.Independent.Intake100.P73.hayashiPhi

For arbitrary types X,YX,YX,Y, a function W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞], weights p:X→[0,∞]p:X\to[0,\infty]p:X→[0,∞], and a real number ttt, this defines the extended-real value

{0,t=0,log⁡ ⁣(∑y∈Y(∑x∈Xp(x)W(x,y)1/(1+t))1+t),t≠0.\begin{cases} 0,&t=0,\\[2pt] \displaystyle \log\!\left(\sum_{y\in Y} \left(\sum_{x\in X}p(x)W(x,y)^{1/(1+t)}\right)^{1+t}\right),&t\ne0. \end{cases}⎩⎨⎧​0,log​y∈Y∑​(x∈X∑​p(x)W(x,y)1/(1+t))1+t​,​t=0,t=0.​

Neither normalization of ppp nor stochasticity of WWW is assumed, and the types need not be finite or nonempty. Sums and powers are taken in the extended nonnegative reals, with log⁡0=−∞\log 0=-\inftylog0=−∞ and log⁡∞=+∞\log\infty=+\inftylog∞=+∞. Every real ttt is allowed: at t=−1t=-1t=−1, the real quotient 1/(1+t)1/(1+t)1/(1+t) equals 000 by total division, and both displayed exponents are zero; zero powers, including 000^000 and ∞0\infty^0∞0, equal 111. At t=0t=0t=0, the value is assigned to be 000 independently of the displayed sum.

QAlgorithms.Papers.Independent.Intake100.P73.hayashiPsi

For arbitrary types X,YX,YX,Y, a function W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞], weights p:X→[0,∞]p:X\to[0,\infty]p:X→[0,∞], and any real number sss, put q(y)=∑x∈Xp(x)W(x,y)q(y)=\sum_{x\in X}p(x)W(x,y)q(y)=∑x∈X​p(x)W(x,y). This defines the extended-real value

{0,s=0,log⁡ ⁣(∑y∈Y{0,q(y)=0,(∑x∈Xp(x)W(x,y)1+s)q(y)−s,q(y)≠0),s≠0.\begin{cases} 0,&s=0,\\[2pt] \displaystyle\log\!\left( \sum_{y\in Y} \begin{cases} 0,&q(y)=0,\\ \displaystyle\left(\sum_{x\in X}p(x)W(x,y)^{1+s}\right)q(y)^{-s},&q(y)\ne0 \end{cases}\right),&s\ne0. \end{cases}⎩⎨⎧​0,log​y∈Y∑​⎩⎨⎧​0,(x∈X∑​p(x)W(x,y)1+s)q(y)−s,​q(y)=0,q(y)=0​​,​s=0,s=0.​

No normalization of ppp, stochasticity of WWW, or finiteness or nonemptiness of either type is assumed. The sums and powers use total extended nonnegative arithmetic, and the logarithm takes values −∞-\infty−∞ at zero and +∞+\infty+∞ at infinity. The value at s=0s=0s=0 is assigned to be zero independently of the sum.

QAlgorithms.Papers.Independent.Intake100.P73.identificationCapacity

For arbitrary families of types Xk,YkX_k,Y_kXk​,Yk​, functions Wk:Xk×Yk→[0,∞]W_k:X_k\times Y_k\to[0,\infty]Wk​:Xk​×Yk​→[0,∞], a Boolean parameter optimistic\mathrm{optimistic}optimistic, and arbitrary real numbers μ,λ\mu,\lambdaμ,λ, consider all sequences of codes consisting, at each kkk, of a positive natural message count mkm_kmk​, probability mass functions pk,ip_{k,i}pk,i​ on XkX_kXk​, and arbitrary regions Dk,i⊆YkD_{k,i}\subseteq Y_kDk,i​⊆Yk​, indexed by 0≤i<mk0\le i<m_k0≤i<mk​. Put qk,i(y)=∑x′pk,i(x)Wk(x,y)q_{k,i}(y)=\sum'_x p_{k,i}(x)W_k(x,y)qk,i​(y)=∑x′​pk,i​(x)Wk​(x,y) and define

αk=(sup⁡i<mk∑y∉Dk,i′qk,i(y))R,βk=(sup⁡i,j<mki≠j∑y∈Dk,i′qk,j(y))R,ρk=log⁡[0,∞] ⁣(max⁡{log⁡mk,0})k+1.\alpha_k=\left(\sup_{i<m_k}\sum'_{y\notin D_{k,i}}q_{k,i}(y)\right)_{\mathbb R}, \qquad \beta_k=\left(\sup_{\substack{i,j<m_k\\i\ne j}}\sum'_{y\in D_{k,i}}q_{k,j}(y)\right)_{\mathbb R}, \qquad \rho_k=\frac{\log_{[0,\infty]}\!\bigl(\max\{\log m_k,0\}\bigr)}{k+1}.αk​=​i<mk​sup​y∈/Dk,i​∑′​qk,i​(y)​R​,βk​=​i,j<mk​i=j​sup​y∈Dk,i​∑′​qk,j​(y)​R​,ρk​=k+1log[0,∞]​(max{logmk​,0})​.

The sums and suprema defining the errors are in [0,∞][0,\infty][0,∞], with an infinite value converted to the real number 000; when mk=1m_k=1mk​=1, the supremum defining βk\beta_kβk​ is empty and equals 000, and ρk=−∞\rho_k=-\inftyρk​=−∞. Set e=lim inf⁡kαke=\liminf_k\alpha_ke=liminfk​αk​ if optimistic\mathrm{optimistic}optimistic is true, and e=lim sup⁡kαke=\limsup_k\alpha_ke=limsupk​αk​ otherwise. The defined capacity is

max⁡{0, sup⁡{lim inf⁡k→∞ρk:a code sequence as above exists,e=0 if μ=0, and e<μ otherwise,lim sup⁡k→∞βk≤λ}}.\max\left\{0,\ \sup\left\{\liminf_{k\to\infty}\rho_k: \begin{array}{l} \text{a code sequence as above exists},\\ e=0\ \text{if }\mu=0,\ \text{and }e<\mu\ \text{otherwise},\\ \limsup_{k\to\infty}\beta_k\le\lambda \end{array}\right\}\right\}.max⎩⎨⎧​0, sup⎩⎨⎧​k→∞liminf​ρk​:a code sequence as above exists,e=0 if μ=0, and e<μ otherwise,limsupk→∞​βk​≤λ​⎭⎬⎫​⎭⎬⎫​.

The supremum and the rate limit inferior are in the extended reals; an empty admissible set therefore yields capacity 000. Error limits superior and inferior are the total order-theoretic ones in R\mathbb RR. No stochastic normalization of WkW_kWk​, finiteness or countability of the types, disjointness of the regions, or restriction on μ,λ\mu,\lambdaμ,λ is assumed.

QAlgorithms.Papers.Independent.Intake100.P73.identificationRate

For arbitrary types X,YX,YX,Y, an identification code consists of a positive natural number mmm of messages, a probability mass function on XXX for each index i∈{0,…,m−1}i\in\{0,\ldots,m-1\}i∈{0,…,m−1}, and a subset of YYY for each such index. For any such code ccc and any natural number kkk, the defined extended-real rate is

log⁡[0,∞] ⁣(max⁡{log⁡m,0})k+1,\frac{\log_{[0,\infty]}\!\bigl(\max\{\log m,0\}\bigr)}{k+1},k+1log[0,∞]​(max{logm,0})​,

where the inner logarithm is the real logarithm and the outer logarithm is the extended-real logarithm on [0,∞][0,\infty][0,∞], which takes 000 to −∞-\infty−∞. Thus a one-message code has rate −∞-\infty−∞; for m≥2m\ge2m≥2, the rate is the real number log⁡(log⁡m)/(k+1)\log(\log m)/(k+1)log(logm)/(k+1), embedded in the extended reals. The code’s encoders and regions do not otherwise enter this expression, and k=0k=0k=0 gives denominator 111.

QAlgorithms.Papers.Independent.Intake100.P73.iidExpectation

For any type XXX, a probability mass function p:X→[0,∞]p:X\to[0,\infty]p:X→[0,∞] satisfying ∑x∈Xp(x)=1\sum_{x\in X}p(x)=1∑x∈X​p(x)=1, any natural number MMM, and any function fff from MMM-tuples of elements of XXX to [0,∞][0,\infty][0,∞], this defines

∑a:{0,…,M−1}→X(∏i=0M−1p(ai))f(a)\sum_{a:\{0,\ldots,M-1\}\to X} \left(\prod_{i=0}^{M-1}p(a_i)\right)f(a)a:{0,…,M−1}→X∑​(i=0∏M−1​p(ai​))f(a)

in the extended nonnegative reals. The type XXX need not be finite or countable, and fff may take the value infinity, with 0⋅∞=00\cdot\infty=00⋅∞=0. When M=0M=0M=0, there is a unique empty tuple and its empty product is 111, so the value is fff evaluated at that tuple. An empty XXX admits no probability mass function and hence no input ppp of the required kind.

QAlgorithms.Papers.Independent.Intake100.P73.iidMaximumLikelihoodDecision

For arbitrary types X,YX,YX,Y, a natural number N>0N>0N>0, a function W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞], an indexed family a0,…,aN−1∈Xa_0,\ldots,a_{N-1}\in Xa0​,…,aN−1​∈X, and y∈Yy\in Yy∈Y, this defines a chosen index dW,a(y)∈{0,…,N−1}d_{W,a}(y)\in\{0,\ldots,N-1\}dW,a​(y)∈{0,…,N−1} satisfying

W(aj,y)≤W(adW,a(y),y)for every j∈{0,…,N−1}.W(a_j,y)\le W(a_{d_{W,a}(y)},y)\qquad\text{for every }j\in\{0,\ldots,N-1\}.W(aj​,y)≤W(adW,a​(y)​,y)for every j∈{0,…,N−1}.

The choice is made by classical choice; a maximizing index exists because the index set is finite and nonempty, and no particular tie-breaking rule is specified. The entries aia_iai​ may repeat, and WWW is not assumed to be stochastic or finite-valued. The hypothesis N>0N>0N>0 excludes an empty index set.

QAlgorithms.Papers.Independent.Intake100.P73.iidMaximumLikelihoodError

For arbitrary types X,YX,YX,Y, a natural number N>0N>0N>0, a function W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞], and an indexed family a0,…,aN−1∈Xa_0,\ldots,a_{N-1}\in Xa0​,…,aN−1​∈X, this defines the extended nonnegative quantity

1N∑i=0N−1∑y∈Y{0,dW,a(y)=i,W(ai,y),dW,a(y)≠i,\frac1N\sum_{i=0}^{N-1}\sum_{y\in Y} \begin{cases} 0,&d_{W,a}(y)=i,\\ W(a_i,y),&d_{W,a}(y)\ne i, \end{cases}N1​i=0∑N−1​y∈Y∑​{0,W(ai​,y),​dW,a​(y)=i,dW,a​(y)=i,​

where dW,a(y)d_{W,a}(y)dW,a​(y) is the classically chosen index satisfying W(aj,y)≤W(adW,a(y),y)W(a_j,y)\le W(a_{d_{W,a}(y)},y)W(aj​,y)≤W(adW,a​(y)​,y) for every jjj, with no specified rule for ties. The entries aia_iai​ may repeat. No stochasticity assumption is imposed on WWW, so this quantity need not be at most 111 and may be infinite; if YYY is empty, it is 000. The case N=0N=0N=0 is excluded.

QAlgorithms.Papers.Independent.Intake100.P73.iidReferenceMass

For any type XXX, any probability mass function p:X→[0,∞]p:X\to[0,\infty]p:X→[0,∞] satisfying ∑a′p(a)=1\sum'_a p(a)=1∑a′​p(a)=1, any natural number nnn, and any tuple x:{0,…,n−1}→Xx:\{0,\ldots,n-1\}\to Xx:{0,…,n−1}→X, this defines the extended nonnegative mass

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

Repeated entries are allowed. The case n=0n=0n=0 is included: the unique empty tuple has mass 111, by the empty-product convention.

QAlgorithms.Papers.Independent.Intake100.P73.informationTailProbability

For arbitrary families of types Xk,YkX_k,Y_kXk​,Yk​, functions Wk:Xk×Yk→[0,∞]W_k:X_k\times Y_k\to[0,\infty]Wk​:Xk​×Yk​→[0,∞], probability mass functions pkp_kpk​ on XkX_kXk​, a real number aaa, and a natural number kkk, define qk(y)=∑x′pk(x)Wk(x,y)q_k(y)=\sum'_x p_k(x)W_k(x,y)qk​(y)=∑x′​pk​(x)Wk​(x,y). For u,v∈[0,∞]u,v\in[0,\infty]u,v∈[0,∞], let ℓ(u,v)=−∞\ell(u,v)=-\inftyℓ(u,v)=−∞ if u=0u=0u=0, let ℓ(u,v)=+∞\ell(u,v)=+\inftyℓ(u,v)=+∞ if u≠0u\ne0u=0 and v=0v=0v=0, and otherwise let ℓ(u,v)=log⁡(uR/vR)\ell(u,v)=\log(u_{\mathbb R}/v_{\mathbb R})ℓ(u,v)=log(uR​/vR​), regarded as an extended real number, where uRu_{\mathbb R}uR​ is the finite real value of uuu, with +∞+\infty+∞ converted to 000. The real division and logarithm in this last branch are total, with division by zero and log⁡0\log 0log0 both equal to 000. The definition returns

(∑x′∑y′{pk(x)Wk(x,y),a<ℓ(Wk(x,y),qk(y))/(k+1),0,otherwise)R.\left(\sum'_x\sum'_y \begin{cases} p_k(x)W_k(x,y),&a<\ell(W_k(x,y),q_k(y))/(k+1),\\ 0,&\text{otherwise} \end{cases}\right)_{\mathbb R}.(x∑′​y∑′​{pk​(x)Wk​(x,y),0,​a<ℓ(Wk​(x,y),qk​(y))/(k+1),otherwise​)R​.

The sums and their summands are evaluated in [0,∞][0,\infty][0,∞]; conversion of an infinite sum to a real number gives 000. The index k=0k=0k=0 is included and has denominator 111. No finiteness, countability, or normalization assumption is imposed on WkW_kWk​, so the returned real number is not assumed to be at most 111.

QAlgorithms.Papers.Independent.Intake100.P73.jointEvent

For arbitrary types XXX and YYY, functions W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞] and p:X→[0,∞]p:X\to[0,\infty]p:X→[0,∞], and any predicate AAA on X×YX\times YX×Y, this defines

∑x∈X∑y∈Y{p(x)W(x,y),A(x,y) holds,0,A(x,y) does not hold.\sum_{x\in X}\sum_{y\in Y} \begin{cases} p(x)W(x,y),&A(x,y)\text{ holds},\\ 0,&A(x,y)\text{ does not hold}. \end{cases}x∈X∑​y∈Y∑​{p(x)W(x,y),0,​A(x,y) holds,A(x,y) does not hold.​

The result lies in [0,∞][0,\infty][0,∞]. No normalization, finiteness, or additional condition on the predicate is assumed. The sums are extended nonnegative sums, multiplication uses 0⋅∞=00\cdot\infty=00⋅∞=0, and the result is 000 if either index type is empty.

QAlgorithms.Papers.Independent.Intake100.P73.klAtom

For any p,q∈[0,∞]p,q\in[0,\infty]p,q∈[0,∞], this defines the extended nonnegative value

{q,p=0,∞,p≠0 and q=0,q max⁡{ρlog⁡ρ−ρ+1,0},p≠0 and q≠0,ρ=T(p)T(q),\begin{cases} q,&p=0,\\ \infty,&p\ne0\text{ and }q=0,\\ q\,\max\{\rho\log\rho-\rho+1,0\},&p\ne0\text{ and }q\ne0, \end{cases} \qquad \rho=\frac{T(p)}{T(q)},⎩⎨⎧​q,∞,qmax{ρlogρ−ρ+1,0},​p=0,p=0 and q=0,p=0 and q=0,​ρ=T(q)T(p)​,

where TTT sends finite extended nonnegative values to the corresponding real numbers and sends ∞\infty∞ to 000. The maximum is converted back to an extended nonnegative value before multiplication. Real division and logarithm are total: division by 000 gives 000, and log⁡0=0\log0=0log0=0. In particular, p=q=0p=q=0p=q=0 gives 000, every q=∞q=\inftyq=∞ gives ∞\infty∞, and p=∞p=\inftyp=∞ with finite q>0q>0q>0 gives qqq.

QAlgorithms.Papers.Independent.Intake100.P73.klBound

For arbitrary types X,YX,YX,Y, a function W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞], weights p:X→[0,∞]p:X\to[0,\infty]p:X→[0,∞], a natural number MMM, and a real number ttt, this defines the extended-real value

log⁡ ⁣(1+Mt∑y∈Y(∑x∈Xp(x)W(x,y)1/(1+t))1+t)−t.\frac{\displaystyle \log\!\left( 1+M^t\sum_{y\in Y} \left(\sum_{x\in X}p(x)W(x,y)^{1/(1+t)}\right)^{1+t} \right)} {-t}.−tlog​1+Mty∈Y∑​(x∈X∑​p(x)W(x,y)1/(1+t))1+t​​.

Inside the logarithm, MMM, sums, products, and powers are interpreted in the extended nonnegative reals; the logarithm takes zero to −∞-\infty−∞ and infinity to +∞+\infty+∞, and the final division is total extended-real division. There are no normalization, stochasticity, finiteness, or nonemptiness assumptions, and neither M>0M>0M>0 nor a restriction on ttt is required. In particular, M=0M=0M=0, t=0t=0t=0, and t=−1t=-1t=−1 are included: the final denominator is zero at t=0t=0t=0, while 1/(1+t)=01/(1+t)=01/(1+t)=0 by total real division at t=−1t=-1t=−1. There is no special branch replacing either case.

QAlgorithms.Papers.Independent.Intake100.P73.l1Bound

For arbitrary types X,YX,YX,Y, a function W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞], weights p:X→[0,∞]p:X\to[0,\infty]p:X→[0,∞], a real number CCC, and a natural number MMM, let q(y)=∑x∈Xp(x)W(x,y)q(y)=\sum_{x\in X}p(x)W(x,y)q(y)=∑x∈X​p(x)W(x,y) and let c=max⁡(C,0)c=\max(C,0)c=max(C,0), regarded as an extended nonnegative number. Define

U=(∑x∈X∑y∈Y{p(x)W(x,y),p(x)>0, q(y)>0, c<W(x,y)/q(y),0,otherwise)R,D=∑x∈X∑y∈Y{p(x)W(x,y)2/q(y),p(x)>0, q(y)>0, W(x,y)/q(y)≤c,0,otherwise.U=\left(\sum_{x\in X}\sum_{y\in Y} \begin{cases} p(x)W(x,y),&p(x)>0,\ q(y)>0,\ c<W(x,y)/q(y),\\ 0,&\text{otherwise} \end{cases}\right)_{\mathbb R}, \qquad D=\sum_{x\in X}\sum_{y\in Y} \begin{cases} p(x)W(x,y)^2/q(y),&p(x)>0,\ q(y)>0,\ W(x,y)/q(y)\le c,\\ 0,&\text{otherwise}. \end{cases}U=​x∈X∑​y∈Y∑​{p(x)W(x,y),0,​p(x)>0, q(y)>0, c<W(x,y)/q(y),otherwise​​R​,D=x∈X∑​y∈Y∑​{p(x)W(x,y)2/q(y),0,​p(x)>0, q(y)>0, W(x,y)/q(y)≤c,otherwise.​

Here aRa_{\mathbb R}aR​ denotes conversion from [0,∞][0,\infty][0,∞] to R\mathbb RR, preserving finite values and sending infinity to zero. The definition returns the real number 2U+DR/M2U+\sqrt{D_{\mathbb R}/M}2U+DR​/M​. No normalization, stochasticity, finiteness, or nonemptiness is assumed; the sums and quotients defining U,DU,DU,D use total extended nonnegative arithmetic. The case M=0M=0M=0 is included: real division by zero makes the square-root term zero, so the value is 2U2U2U.

QAlgorithms.Papers.Independent.Intake100.P73.length

For every natural number kkk, this defines the natural number

ℓ(k)=k+1.\ell(k)=k+1.ℓ(k)=k+1.

In particular, ℓ(0)=1\ell(0)=1ℓ(0)=1, and the defined length is always positive.

QAlgorithms.Papers.Independent.Intake100.P73.liminfErrorExponent

For any sequence e:N→[0,∞]e:\mathbb N\to[0,\infty]e:N→[0,∞], with no further assumptions, this defines the extended real number

lim inf⁡k→∞−log⁡(e(k))k+1.\liminf_{k\to\infty}\frac{-\log(e(k))}{k+1}.k→∞liminf​k+1−log(e(k))​.

The logarithm here is the extended logarithm, with log⁡0=−∞\log 0=-\inftylog0=−∞ and log⁡∞=+∞\log\infty=+\inftylog∞=+∞, and division is in the extended reals by the finite positive number k+1k+1k+1. Consequently, an index with e(k)=0e(k)=0e(k)=0 contributes +∞+\infty+∞, while an index with e(k)=∞e(k)=\inftye(k)=∞ contributes −∞-\infty−∞. The sequence may take values above 111, and the resulting limit inferior may be finite or either infinity.

QAlgorithms.Papers.Independent.Intake100.P73.logLikelihood

For any p,q∈[0,∞]p,q\in[0,\infty]p,q∈[0,∞], this defines a value in the extended real numbers by

{−∞,p=0,+∞,p≠0 and q=0,log⁡ ⁣(T(p)T(q)),p≠0 and q≠0,\begin{cases} -\infty,&p=0,\\ +\infty,&p\ne0\text{ and }q=0,\\ \log\!\left(\dfrac{T(p)}{T(q)}\right),&p\ne0\text{ and }q\ne0, \end{cases}⎩⎨⎧​−∞,+∞,log(T(q)T(p)​),​p=0,p=0 and q=0,p=0 and q=0,​

where TTT preserves finite values and sends ∞\infty∞ to 000, and the last branch is embedded from the reals into the extended reals. Real division by 000 gives 000, and log⁡0=0\log0=0log0=0. Consequently, p=q=0p=q=0p=q=0 gives −∞-\infty−∞; when both arguments are nonzero and at least one is infinite, the value is 000.

QAlgorithms.Papers.Independent.Intake100.P73.lowTail

For arbitrary types XXX and YYY, functions W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞] and p:X→[0,∞]p:X\to[0,\infty]p:X→[0,∞], and any real CCC, put m(y)=∑x∈Xp(x)W(x,y)m(y)=\sum_{x\in X}p(x)W(x,y)m(y)=∑x∈X​p(x)W(x,y) and C+=max⁡{C,0}C_+=\max\{C,0\}C+​=max{C,0}, viewed in [0,∞][0,\infty][0,∞]. This defines the real number

T ⁣(∑x∈X∑y∈Y{p(x)W(x,y),W(x,y)/m(y)≤C+,0,otherwise,),T\!\left( \sum_{x\in X}\sum_{y\in Y} \begin{cases} p(x)W(x,y),&W(x,y)/m(y)\le C_+,\\ 0,&\text{otherwise}, \end{cases} \right),T​x∈X∑​y∈Y∑​{p(x)W(x,y),0,​W(x,y)/m(y)≤C+​,otherwise,​​,

where TTT preserves finite values and sends ∞\infty∞ to 000. There are no positivity requirements on p(x)p(x)p(x) or m(y)m(y)m(y), and no normalization or finiteness assumptions. The quotient uses extended nonnegative arithmetic: 0/0=00/0=00/0=0, a positive value divided by 000 is ∞\infty∞, and every value divided by ∞\infty∞, including ∞/∞\infty/\infty∞/∞, is 000. Multiplication uses 0⋅∞=00\cdot\infty=00⋅∞=0. The result is 000 if either index type is empty, and it is also 000 if the summed mass is infinite.

QAlgorithms.Papers.Independent.Intake100.P73.memorylessKernel

For arbitrary types X,YX,YX,Y, any function W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞], any natural number nnn, and tuples x:{0,…,n−1}→Xx:\{0,\ldots,n-1\}\to Xx:{0,…,n−1}→X and y:{0,…,n−1}→Yy:\{0,\ldots,n-1\}\to Yy:{0,…,n−1}→Y, the defined value is

∏i=0n−1W(xi,yi)\prod_{i=0}^{n-1}W(x_i,y_i)i=0∏n−1​W(xi​,yi​)

in the nonnegative extended reals. No normalization of WWW or cardinality assumption on X,YX,YX,Y is required. The value n=0n=0n=0 is included: both tuples are empty and the empty product is 111, even if XXX or YYY is empty. Products use the total extended-real multiplication, in particular 0⋅(+∞)=00\cdot(+\infty)=00⋅(+∞)=0.

QAlgorithms.Papers.Independent.Intake100.P73.normalizedMessageLog

For arbitrary types X,YX,YX,Y, a stochastic wiretap code consists of a positive natural message count mmm, a probability mass function on XXX for each index 0≤i<m0\le i<m0≤i<m, and regions Di⊆YD_i\subseteq YDi​⊆Y that are pairwise disjoint for distinct indices. For every such code ccc and every natural number kkk, the defined extended-real value is the real number

log⁡mk+1\frac{\log m}{k+1}k+1logm​

embedded in the extended reals. The encoders and regions do not otherwise enter the expression. A one-message code has value 000, and k=0k=0k=0 gives denominator 111.

QAlgorithms.Papers.Independent.Intake100.P73.phiExponent

For arbitrary types X,YX,YX,Y, any function W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞], a probability mass function ppp on XXX, and any real RRR, put

F(t)=∑y′(∑x′p(x)W(x,y)1/(1+t))1+t,H(t)={0,t=0,log⁡F(t),t≠0.F(t)=\sum'_y\left(\sum'_x p(x)W(x,y)^{1/(1+t)}\right)^{1+t}, \qquad H(t)= \begin{cases} 0,&t=0,\\ \log F(t),&t\ne0. \end{cases}F(t)=y∑′​(x∑′​p(x)W(x,y)1/(1+t))1+t,H(t)={0,logF(t),​t=0,t=0.​

This defines the extended real number

sup⁡−1/2≤t≤0(−H(t)−tR).\sup_{-1/2\le t\le0}\bigl(-H(t)-tR\bigr).−1/2≤t≤0sup​(−H(t)−tR).

All sums and powers in FFF are in [0,∞][0,\infty][0,∞], and the extended logarithm sends 000 to −∞-\infty−∞ and +∞+\infty+∞ to +∞+\infty+∞. Both endpoints are included; 1+t1+t1+t is positive throughout this interval, and the value at t=0t=0t=0 is explicitly 000, regardless of F(0)F(0)F(0). Neither stochasticity of WWW nor finiteness or countability of the types is assumed, so empty output sums and infinite values are permitted.

QAlgorithms.Papers.Independent.Intake100.P73.phiMoment

For arbitrary types XXX and YYY, functions W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞] and p:X→[0,∞]p:X\to[0,\infty]p:X→[0,∞], and every real ttt, this defines

∑y∈Y(∑x∈Xp(x) W(x,y) 1/(1+t))1+t∈[0,∞].\sum_{y\in Y} \left(\sum_{x\in X}p(x)\,W(x,y)^{\,1/(1+t)}\right)^{1+t} \in[0,\infty].y∈Y∑​(x∈X∑​p(x)W(x,y)1/(1+t))1+t∈[0,∞].

No normalization, finiteness, or restriction on ttt is assumed. The sums are extended nonnegative sums, products use 0⋅∞=00\cdot\infty=00⋅∞=0, and powers are extended nonnegative real powers: every base has zeroth power 111, while 000 to a negative power is ∞\infty∞ and ∞\infty∞ to a negative power is 000. The reciprocal in the exponent uses real division, so at t=−1t=-1t=−1 it is 000; both exponents are then 000, and the expression is ∑y∈Y1\sum_{y\in Y}1∑y∈Y​1, even when XXX is empty. For empty YYY, the value is 000 for every ttt.

QAlgorithms.Papers.Independent.Intake100.P73.preprocessedBound

For arbitrary families Xk,Yk,ZkX_k,Y_k,Z_kXk​,Yk​,Zk​ of types in a fixed universe uuu, and arbitrary functions Bk:Xk×Yk→[0,∞]B_k:X_k\times Y_k\to[0,\infty]Bk​:Xk​×Yk​→[0,∞] and Ek:Xk×Zk→[0,∞]E_k:X_k\times Z_k\to[0,\infty]Ek​:Xk​×Zk​→[0,∞], consider every family of types AkA_kAk​ in that same universe, every assignment of a probability mass function Qk,αQ_{k,\alpha}Qk,α​ on XkX_kXk​ to each α∈Ak\alpha\in A_kα∈Ak​, and every probability mass function pkp_kpk​ on AkA_kAk​. Define the resulting kernels and output masses by

B~k(α,y)=∑x′Qk,α(x)Bk(x,y),E~k(α,z)=∑x′Qk,α(x)Ek(x,z),qkD(v)=∑α′pk(α)D~k(α,v)\widetilde B_k(\alpha,y)=\sum'_xQ_{k,\alpha}(x)B_k(x,y),\qquad \widetilde E_k(\alpha,z)=\sum'_xQ_{k,\alpha}(x)E_k(x,z),\qquad q_k^D(v)=\sum'_\alpha p_k(\alpha)\widetilde D_k(\alpha,v)Bk​(α,y)=x∑′​Qk,α​(x)Bk​(x,y),Ek​(α,z)=x∑′​Qk,α​(x)Ek​(x,z),qkD​(v)=α∑′​pk​(α)Dk​(α,v)

for D=B,ED=B,ED=B,E, with v∈Ykv\in Y_kv∈Yk​ or v∈Zkv\in Z_kv∈Zk​, respectively. For u,v∈[0,∞]u,v\in[0,\infty]u,v∈[0,∞], let ℓ(u,v)=−∞\ell(u,v)=-\inftyℓ(u,v)=−∞ if u=0u=0u=0, let it be +∞+\infty+∞ if u≠0u\ne0u=0 and v=0v=0v=0, and otherwise let it be the extended-real embedding of log⁡(uR/vR)\log(u_{\mathbb R}/v_{\mathbb R})log(uR​/vR​). Conversion to a real number sends +∞+\infty+∞ to 000; real division by zero and the real logarithm of 000 both equal 000. For each real threshold θ\thetaθ, put

TkD(θ)=(∑α′∑v′{pk(α)D~k(α,v),θ<ℓ(D~k(α,v),qkD(v))/(k+1),0,otherwise)R,T_k^D(\theta)= \left(\sum'_\alpha\sum'_v \begin{cases} p_k(\alpha)\widetilde D_k(\alpha,v), &\theta<\ell(\widetilde D_k(\alpha,v),q_k^D(v))/(k+1),\\ 0,&\text{otherwise} \end{cases}\right)_{\mathbb R},TkD​(θ)=(α∑′​v∑′​{pk​(α)Dk​(α,v),0,​θ<ℓ(Dk​(α,v),qkD​(v))/(k+1),otherwise​)R​,

and define the extended-real infima

LB=inf⁡{ θ∈R:lim inf⁡k→∞TkB(θ)<1 },HE=inf⁡{ θ∈R:lim sup⁡k→∞TkE(θ)≤0 }.L_B=\inf\{\,\theta\in\mathbb R:\liminf_{k\to\infty}T_k^B(\theta)<1\,\}, \qquad H_E=\inf\{\,\theta\in\mathbb R:\limsup_{k\to\infty}T_k^E(\theta)\le0\,\}.LB​=inf{θ∈R:k→∞liminf​TkB​(θ)<1},HE​=inf{θ∈R:k→∞limsup​TkE​(θ)≤0}.

For each choice of A,Q,pA,Q,pA,Q,p, form

dA,Q,p=sup⁡{ a−b: a,b∈R, a<LB, HE<b }.d_{A,Q,p}=\sup\{\,a-b:\ a,b\in\mathbb R,\ a<L_B,\ H_E<b\,\}.dA,Q,p​=sup{a−b: a,b∈R, a<LB​, HE​<b}.

The defined bound is max⁡{0,sup⁡A,Q,pdA,Q,p}\max\{0,\sup_{A,Q,p}d_{A,Q,p}\}max{0,supA,Q,p​dA,Q,p​}. All infima and suprema in these last expressions are in the extended reals, so an empty infimum is +∞+\infty+∞ and an empty supremum is −∞-\infty−∞. The tail limits are the total order-theoretic limits in R\mathbb RR, and an infinite event sum converts to 000. No stochastic normalization of Bk,EkB_k,E_kBk​,Ek​, cardinality restriction, or additional condition on the chosen preprocessing distributions is imposed.

QAlgorithms.Papers.Independent.Intake100.P73.psiExponent

For arbitrary types X,YX,YX,Y, any function W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞], any probability mass function ppp on XXX, and any real RRR, define q(y)=∑x′p(x)W(x,y)q(y)=\sum'_x p(x)W(x,y)q(y)=∑x′​p(x)W(x,y) and, for real sss,

T(s)=∑y′{0,q(y)=0,(∑x′p(x)W(x,y)1+s)q(y)−s,q(y)≠0,H(s)={0,s=0,log⁡T(s),s≠0.T(s)=\sum'_y \begin{cases} 0,&q(y)=0,\\ \left(\sum'_x p(x)W(x,y)^{1+s}\right)q(y)^{-s},&q(y)\ne0, \end{cases} \qquad H(s)= \begin{cases} 0,&s=0,\\ \log T(s),&s\ne0. \end{cases}T(s)=y∑′​{0,(∑x′​p(x)W(x,y)1+s)q(y)−s,​q(y)=0,q(y)=0,​H(s)={0,logT(s),​s=0,s=0.​

This declaration defines the extended real value

sup⁡0≤s≤1−H(s)+sR1+s.\sup_{0\le s\le1}\frac{-H(s)+sR}{1+s}.0≤s≤1sup​1+s−H(s)+sR​.

The sums and powers in TTT are in the extended nonnegative reals, and its logarithm sends 000 to −∞-\infty−∞ and +∞+\infty+∞ to +∞+\infty+∞. No stochasticity, finiteness, or countability assumption is imposed on W,X,YW,X,YW,X,Y; empty sums and total extended arithmetic retain their usual values. Both endpoints are included, the denominator is always positive, and the value at s=0s=0s=0 is explicitly 000, irrespective of T(0)T(0)T(0).

QAlgorithms.Papers.Independent.Intake100.P73.reliabilityExponent

For arbitrary types X,YX,YX,Y, any function W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞], a probability mass function ppp on XXX, and any real RRR, put

F(s)=∑y′(∑x′p(x)W(x,y)1/(1+s))1+s,H(s)={0,s=0,log⁡F(s),s≠0.F(s)=\sum'_y\left(\sum'_x p(x)W(x,y)^{1/(1+s)}\right)^{1+s}, \qquad H(s)= \begin{cases} 0,&s=0,\\ \log F(s),&s\ne0. \end{cases}F(s)=y∑′​(x∑′​p(x)W(x,y)1/(1+s))1+s,H(s)={0,logF(s),​s=0,s=0.​

This defines the extended real number

sup⁡0≤s≤1(−H(s)−sR).\sup_{0\le s\le1}\bigl(-H(s)-sR\bigr).0≤s≤1sup​(−H(s)−sR).

The sums and powers in FFF are in the extended nonnegative reals, and the logarithm sends 000 to −∞-\infty−∞ and +∞+\infty+∞ to +∞+\infty+∞. Both endpoints are included, the denominator 1+s1+s1+s in the inner exponent is positive, and the value at s=0s=0s=0 is explicitly 000, regardless of F(0)F(0)F(0). There is no stochasticity, finiteness, or countability assumption on W,X,YW,X,YW,X,Y, and empty output sums are allowed.

QAlgorithms.Papers.Independent.Intake100.P73.sampleCount

For every natural number kkk and every real number RRR, this defines the natural number

N(k,R)=max⁡ ⁣{1,⌈exp⁡((k+1)R)⌉N},N(k,R)=\max\!\left\{1,\left\lceil\exp((k+1)R)\right\rceil_{\mathbb N}\right\},N(k,R)=max{1,⌈exp((k+1)R)⌉N​},

where ⌈x⌉N\lceil x\rceil_{\mathbb N}⌈x⌉N​ is the least natural number at least xxx, taking value 000 for nonpositive xxx. Thus the sample count is always at least 111, includes the case k=0k=0k=0, and is defined for every real RRR, with no nonnegativity assumption on RRR. For R≤0R\le0R≤0, it equals 111.

QAlgorithms.Papers.Independent.Intake100.P73.secondError

For arbitrary types X,YX,YX,Y, any function W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞], and an identification code with m>0m>0m>0 messages, probability mass functions pip_ipi​ on XXX, and subsets Di⊆YD_i\subseteq YDi​⊆Y, this defines the real number

(sup⁡0≤i,j<mi≠j∑y∈Di∑x∈Xpj(x)W(x,y))∘.\left(\sup_{\substack{0\le i,j<m\\i\ne j}} \sum_{y\in D_i}\sum_{x\in X}p_j(x)W(x,y)\right)^\circ.​0≤i,j<mi=j​sup​y∈Di​∑​x∈X∑​pj​(x)W(x,y)​∘.

The supremum is over ordered pairs of distinct message indices, the sums and supremum lie in [0,∞][0,\infty][0,∞], and s∘s^\circs∘ is the real value of finite sss, with ∞∘=0\infty^\circ=0∞∘=0. When m=1m=1m=1, there are no distinct pairs and the result is 000; it is also 000 when YYY is empty. No normalization condition is imposed on WWW, and no disjointness condition is imposed on the DiD_iDi​; a finite result can exceed 111, while an infinite supremum is converted to 000.

QAlgorithms.Papers.Independent.Intake100.P73.simulationCapacity

For arbitrary families of types Xk,YkX_k,Y_kXk​,Yk​, functions Wk:Xk×Yk→[0,∞]W_k:X_k\times Y_k\to[0,\infty]Wk​:Xk​×Yk​→[0,∞], a Boolean parameter optimistic\mathrm{optimistic}optimistic, and any real ε\varepsilonε, define, for every real R≥0R\ge0R≥0, the positive integer Nk(R)=max⁡{1,⌈exp⁡((k+1)R)⌉N}N_k(R)=\max\{1,\lceil\exp((k+1)R)\rceil_{\mathbb N}\}Nk​(R)=max{1,⌈exp((k+1)R)⌉N​}, where the ceiling is taken in the natural numbers. For a probability mass function ppp on XkX_kXk​, put qp(y)=∑x′p(x)Wk(x,y)q_p(y)=\sum'_x p(x)W_k(x,y)qp​(y)=∑x′​p(x)Wk​(x,y). A book is a positive integer mmm together with a tuple x0,…,xm−1∈Xkx_0,\ldots,x_{m-1}\in X_kx0​,…,xm−1​∈Xk​, allowing repetitions, and its output is qb(y)=m−1∑i<mWk(xi,y)q_b(y)=m^{-1}\sum_{i<m}W_k(x_i,y)qb​(y)=m−1∑i<m​Wk​(xi​,y), with arithmetic in [0,∞][0,\infty][0,∞]. Define

dk(R)=(sup⁡p a probability mass function on Xkinf⁡b a book1≤m≤Nk(R)∑y′((qb(y)−qp(y))+(qp(y)−qb(y))))R.d_k(R)=\left( \sup_{p\ \text{a probability mass function on }X_k} \inf_{\substack{b\ \text{a book}\\1\le m\le N_k(R)}} \sum'_y\bigl((q_b(y)-q_p(y))+(q_p(y)-q_b(y))\bigr) \right)_{\mathbb R}.dk​(R)=​p a probability mass function on Xk​sup​b a book1≤m≤Nk​(R)​inf​y∑′​((qb​(y)−qp​(y))+(qp​(y)−qb​(y)))​R​.

Both subtractions are the truncated subtractions in [0,∞][0,\infty][0,∞], including the convention +∞−(+∞)=0+\infty-(+\infty)=0+∞−(+∞)=0. The infimum and supremum are in [0,∞][0,\infty][0,∞], so an empty book collection has infimum +∞+\infty+∞, an empty collection of probability mass functions has supremum 000, and an infinite final value converts to the real number 000. Set e(R)=lim inf⁡kdk(R)e(R)=\liminf_k d_k(R)e(R)=liminfk​dk​(R) if optimistic\mathrm{optimistic}optimistic is true, and e(R)=lim sup⁡kdk(R)e(R)=\limsup_k d_k(R)e(R)=limsupk​dk​(R) otherwise. The defined capacity is the extended-real infimum of all real R≥0R\ge0R≥0 satisfying e(R)<2e(R)<2e(R)<2 when ε=2\varepsilon=2ε=2, and satisfying e(R)≤εe(R)\le\varepsilone(R)≤ε otherwise; it is +∞+\infty+∞ if this set is empty. The error limits are the total order-theoretic limits in R\mathbb RR. No stochastic normalization, finiteness, or countability assumption is made, and ε\varepsilonε is unrestricted.

QAlgorithms.Papers.Independent.Intake100.P73.spectralDifference

For any extended real numbers lo\mathrm{lo}lo and hi\mathrm{hi}hi, the definition is

sup⁡{ a−b: a,b∈R, a<lo, hi<b },\sup\{\,a-b:\ a,b\in\mathbb R,\ a<\mathrm{lo},\ \mathrm{hi}<b\,\},sup{a−b: a,b∈R, a<lo, hi<b},

where real numbers and their real differences are embedded in the extended reals. Both inequalities are strict, and the witnesses a,ba,ba,b must be finite real numbers. The supremum is taken in the extended reals: if there is no such pair, it is −∞-\infty−∞, as occurs when lo=−∞\mathrm{lo}=-\inftylo=−∞ or hi=+∞\mathrm{hi}=+\inftyhi=+∞; the supremum may also be +∞+\infty+∞.

QAlgorithms.Papers.Independent.Intake100.P73.spectralLow

For arbitrary families of types Xk,YkX_k,Y_kXk​,Yk​, functions Wk:Xk×Yk→[0,∞]W_k:X_k\times Y_k\to[0,\infty]Wk​:Xk​×Yk​→[0,∞], probability mass functions pkp_kpk​ on XkX_kXk​, a real number aaa, and a natural number kkk, put qk(y)=∑x′pk(x)Wk(x,y)q_k(y)=\sum'_x p_k(x)W_k(x,y)qk​(y)=∑x′​pk​(x)Wk​(x,y). Define ℓ(u,v)\ell(u,v)ℓ(u,v) to be −∞-\infty−∞ when u=0u=0u=0, +∞+\infty+∞ when u≠0u\ne0u=0 and v=0v=0v=0, and otherwise the extended-real embedding of log⁡(uR/vR)\log(u_{\mathbb R}/v_{\mathbb R})log(uR​/vR​), where conversion to a real number sends +∞+\infty+∞ to 000, real division by zero equals 000, and the real logarithm of 000 equals 000. The definition returns

(∑x′∑y′{pk(x)Wk(x,y),ℓ(Wk(x,y),qk(y))/(k+1)≤a,0,otherwise)R.\left(\sum'_x\sum'_y \begin{cases} p_k(x)W_k(x,y),&\ell(W_k(x,y),q_k(y))/(k+1)\le a,\\ 0,&\text{otherwise} \end{cases}\right)_{\mathbb R}.(x∑′​y∑′​{pk​(x)Wk​(x,y),0,​ℓ(Wk​(x,y),qk​(y))/(k+1)≤a,otherwise​)R​.

All summation and multiplication inside the outer conversion take place in [0,∞][0,\infty][0,∞], and an infinite resulting sum converts to the real number 000. The threshold inequality is non-strict. The value k=0k=0k=0 is allowed and gives denominator 111; the types need not be finite or countable, and no stochastic normalization of WkW_kWk​ is assumed.

QAlgorithms.Papers.Independent.Intake100.P73.tupleOutput

For arbitrary types X,YX,YX,Y, a function W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞], any natural number MMM, a tuple a:{0,…,M−1}→Xa:\{0,\ldots,M-1\}\to Xa:{0,…,M−1}→X, and an element y∈Yy\in Yy∈Y, this defines

M−1∑i=0M−1W(ai,y)M^{-1}\sum_{i=0}^{M-1}W(a_i,y)M−1i=0∑M−1​W(ai​,y)

using extended nonnegative arithmetic. There is no positivity condition on MMM, no stochasticity condition on WWW, and no finiteness or nonemptiness condition on the types. When M=0M=0M=0, the tuple is empty, the sum is zero, and the extended inverse 0−1=∞0^{-1}=\infty0−1=∞ gives value zero because ∞⋅0=0\infty\cdot0=0∞⋅0=0.

QAlgorithms.Papers.Independent.Intake100.P73.upperLikelihoodMass

For arbitrary types XXX and YYY, functions W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞] and p:X→[0,∞]p:X\to[0,\infty]p:X→[0,∞], and any real CCC, put m(y)=∑x∈Xp(x)W(x,y)m(y)=\sum_{x\in X}p(x)W(x,y)m(y)=∑x∈X​p(x)W(x,y) and C+=max⁡{C,0}C_+=\max\{C,0\}C+​=max{C,0}, viewed in [0,∞][0,\infty][0,∞]. This defines the real number

T ⁣(∑x∈X∑y∈Y{p(x)W(x,y),p(x)>0, m(y)>0, and C+<W(x,y)/m(y),0,otherwise,),T\!\left( \sum_{x\in X}\sum_{y\in Y} \begin{cases} p(x)W(x,y),&p(x)>0,\ m(y)>0,\ \text{and }C_+<W(x,y)/m(y),\\ 0,&\text{otherwise}, \end{cases} \right),T​x∈X∑​y∈Y∑​{p(x)W(x,y),0,​p(x)>0, m(y)>0, and C+​<W(x,y)/m(y),otherwise,​​,

where TTT preserves finite values and sends ∞\infty∞ to 000. All sums and quotients inside TTT use extended nonnegative arithmetic, with 0⋅∞=00\cdot\infty=00⋅∞=0; in particular, division by ∞\infty∞ gives 000, so a pair with m(y)=∞m(y)=\inftym(y)=∞ cannot satisfy the strict inequality. There are no normalization or finiteness assumptions. An empty index type gives value 000, and an infinite summed mass also gives real value 000.

QAlgorithms.Papers.Independent.Intake100.P73.worstApproximation

For arbitrary types X,YX,YX,Y, a Boolean klklkl, a natural number MMM, and any function W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞], this defines

sup⁡p∈PMF⁡(X)inf⁡n∈N, 1≤n≤Ma:{0,…,n−1}→XDkl(ra,qp),ra(y)=1n∑i=0n−1W(a(i),y),qp(y)=∑x∈Xp(x)W(x,y).\sup_{p\in\operatorname{PMF}(X)} \inf_{\substack{n\in\mathbb N,\ 1\le n\le M\\ a:\{0,\ldots,n-1\}\to X}} D_{kl}(r_a,q_p), \qquad r_a(y)=\frac1n\sum_{i=0}^{n-1}W(a(i),y), \quad q_p(y)=\sum_{x\in X}p(x)W(x,y).p∈PMF(X)sup​n∈N, 1≤n≤Ma:{0,…,n−1}→X​inf​Dkl​(ra​,qp​),ra​(y)=n1​i=0∑n−1​W(a(i),y),qp​(y)=x∈X∑​p(x)W(x,y).

Here PMF⁡(X)\operatorname{PMF}(X)PMF(X) consists of functions p:X→[0,∞]p:X\to[0,\infty]p:X→[0,∞] with sum 111, entries of aaa may repeat, and

Dfalse(r,q)=∑y∈Y((r(y)−q(y))+(q(y)−r(y))),Dtrue(r,q)=∑y∈YK(r(y),q(y)),D_{\mathrm{false}}(r,q)=\sum_{y\in Y}\bigl((r(y)-q(y))+(q(y)-r(y))\bigr), \qquad D_{\mathrm{true}}(r,q)=\sum_{y\in Y}K(r(y),q(y)),Dfalse​(r,q)=y∈Y∑​((r(y)−q(y))+(q(y)−r(y))),Dtrue​(r,q)=y∈Y∑​K(r(y),q(y)),

where

K(u,v)={v,u=0,∞,u≠0, v=0,v max⁡ ⁣{u∘v∘log⁡ ⁣(u∘v∘)−u∘v∘+1, 0},u≠0, v≠0.K(u,v)= \begin{cases} v,&u=0,\\ \infty,&u\ne0,\ v=0,\\ v\,\max\!\left\{ \frac{u^\circ}{v^\circ}\log\!\left(\frac{u^\circ}{v^\circ}\right) -\frac{u^\circ}{v^\circ}+1,\ 0 \right\},&u\ne0,\ v\ne0. \end{cases}K(u,v)=⎩⎨⎧​v,∞,vmax{v∘u∘​log(v∘u∘​)−v∘u∘​+1, 0},​u=0,u=0, v=0,u=0, v=0.​

The symbol u∘u^\circu∘ denotes the real value of a finite extended nonnegative number, with ∞∘=0\infty^\circ=0∞∘=0; real division by zero and log⁡0\log 0log0 both have value 000. All sums, infima, suprema, and other arithmetic in the displayed distances are in [0,∞][0,\infty][0,∞]; subtraction there is truncated, including ∞−∞=0\infty-\infty=0∞−∞=0, and 0⋅∞=00\cdot\infty=00⋅∞=0. An empty inner infimum is ∞\infty∞, in particular when M=0M=0M=0. If XXX is empty, the outer supremum is empty and equals 000. No normalization condition is imposed on WWW.

QAlgorithms.Papers.Independent.Intake100.P73.worstExponent

For arbitrary types X,YX,YX,Y, a Boolean kl\mathit{kl}kl, any function W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞], and any real RRR, put nk=k+1n_k=k+1nk​=k+1 and mk=max⁡{1,⌈enkR⌉N}m_k=\max\{1,\lceil e^{n_kR}\rceil_{\mathbb N}\}mk​=max{1,⌈enk​R⌉N​}, where the natural-number ceiling is the least nonnegative integer at least its argument. Define Kk(x,y)=∏j=0nk−1W(xj,yj)K_k(x,y)=\prod_{j=0}^{n_k-1}W(x_j,y_j)Kk​(x,y)=∏j=0nk​−1​W(xj​,yj​) for x∈Xnkx\in X^{n_k}x∈Xnk​, y∈Ynky\in Y^{n_k}y∈Ynk​. For each probability mass function qqq on the entire tuple space XnkX^{n_k}Xnk​, put Qq(y)=∑x′q(x)Kk(x,y)Q_q(y)=\sum'_x q(x)K_k(x,y)Qq​(y)=∑x′​q(x)Kk​(x,y). For each positive integer N≤mkN\le m_kN≤mk​ and list x1,…,xN∈Xnkx_1,\ldots,x_N\in X^{n_k}x1​,…,xN​∈Xnk​, allowing repetitions, put P(y)=N−1∑i=1NKk(xi,y)P(y)=N^{-1}\sum_{i=1}^N K_k(x_i,y)P(y)=N−1∑i=1N​Kk​(xi​,y). Define Dfalse(P,Q)=∑y′((P(y)\dotminusQ(y))+(Q(y)\dotminusP(y)))D_{\mathrm{false}}(P,Q)=\sum'_y((P(y)\mathbin{\dotminus}Q(y))+(Q(y)\mathbin{\dotminus}P(y)))Dfalse​(P,Q)=∑y′​((P(y)\dotminusQ(y))+(Q(y)\dotminusP(y))), using truncated subtraction, and Dtrue(P,Q)=∑y′A(P(y),Q(y))D_{\mathrm{true}}(P,Q)=\sum'_y A(P(y),Q(y))Dtrue​(P,Q)=∑y′​A(P(y),Q(y)), where

A(u,v)={v,u=0,+∞,u≠0, v=0,v[ρ(u)ρ(v)log⁡ ⁣(ρ(u)ρ(v))−ρ(u)ρ(v)+1]+,u≠0, v≠0.A(u,v)= \begin{cases} v,&u=0,\\ +\infty,&u\ne0,\ v=0,\\ v\left[\dfrac{\rho(u)}{\rho(v)}\log\!\left(\dfrac{\rho(u)}{\rho(v)}\right) -\dfrac{\rho(u)}{\rho(v)}+1\right]_+,&u\ne0,\ v\ne0. \end{cases}A(u,v)=⎩⎨⎧​v,+∞,v[ρ(v)ρ(u)​log(ρ(v)ρ(u)​)−ρ(v)ρ(u)​+1]+​,​u=0,u=0, v=0,u=0, v=0.​

Here ρ\rhoρ converts extended nonnegative numbers to reals, sending +∞+\infty+∞ to 000; [r]+=max⁡(r,0)[r]_+=\max(r,0)[r]+​=max(r,0) is embedded in [0,∞][0,\infty][0,∞], and the real operations are total, including a/0=0a/0=0a/0=0 and log⁡0=0\log 0=0log0=0. With the infimum taken over all the indicated lists, set dk=sup⁡qinf⁡Dkl(P,Qq)d_k=\sup_q\inf D_{\mathit{kl}}(P,Q_q)dk​=supq​infDkl​(P,Qq​). The defined value is

lim inf⁡k→∞−log⁡dknk,\liminf_{k\to\infty}\frac{-\log d_k}{n_k},k→∞liminf​nk​−logdk​​,

in the extended reals, with log⁡0=−∞\log0=-\inftylog0=−∞ and log⁡(+∞)=+∞\log(+\infty)=+\inftylog(+∞)=+∞ for this extended logarithm. There is no stochasticity or finite-alphabet assumption, and RRR may be negative, while mk≥1m_k\ge1mk​≥1 always. Infima and suprema defining dkd_kdk​ are in [0,∞][0,\infty][0,∞], so an empty infimum is +∞+\infty+∞ and an empty supremum is 000. In particular, if XXX is empty, there are no probability mass functions on XnkX^{n_k}Xnk​, each dk=0d_k=0dk​=0, and the defined exponent is +∞+\infty+∞.

QAlgorithms.Papers.Independent.Intake100.P73.worstPhiExponent

For arbitrary types X,YX,YX,Y, any function W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞], and any real RRR, define, for every probability mass function ppp on XXX,

Hp(t)={0,t=0,log⁡ ⁣[∑y′(∑x′p(x)W(x,y)1/(1+t))1+t],t≠0.H_p(t)= \begin{cases} 0,&t=0,\\ \displaystyle\log\!\left[ \sum'_y\left(\sum'_x p(x)W(x,y)^{1/(1+t)}\right)^{1+t} \right],&t\ne0. \end{cases}Hp​(t)=⎩⎨⎧​0,log​y∑′​(x∑′​p(x)W(x,y)1/(1+t))1+t​,​t=0,t=0.​

This defines the extended real number

sup⁡−1/2≤t≤0(−sup⁡p a probability mass function on XHp(t)−tR).\sup_{-1/2\le t\le0} \left(-\sup_{p\text{ a probability mass function on }X}H_p(t)-tR\right).−1/2≤t≤0sup​(−p a probability mass function on Xsup​Hp​(t)−tR).

The inner sums and powers are in [0,∞][0,\infty][0,∞], while both displayed suprema are in the extended reals; the logarithm sends 000 to −∞-\infty−∞ and +∞+\infty+∞ to +∞+\infty+∞. Both endpoints are included and 1+t>01+t>01+t>0 throughout. There is no stochasticity, finiteness, countability, or nonemptiness assumption. If XXX is nonempty, the expression at t=0t=0t=0 is 000; if XXX is empty, the supremum over probability mass functions is the empty extended-real supremum −∞-\infty−∞, and the defined value is +∞+\infty+∞.

QAlgorithms.Papers.Independent.Intake100.P73.worstPsi

For arbitrary types X,YX,YX,Y, any function W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞], and any real number sss, this defines

log⁡ ⁣(sup⁡p:X→[0,∞]∑x∈Xp(x)=1∑y∈Y(∑x∈Xp(x)W(x,y)1+s)1−s)\log\!\left( \sup_{\substack{p:X\to[0,\infty]\\ \sum_{x\in X}p(x)=1}} \sum_{y\in Y} \left(\sum_{x\in X}p(x)W(x,y)^{1+s}\right)^{1-s} \right)log​p:X→[0,∞]∑x∈X​p(x)=1​sup​y∈Y∑​(x∈X∑​p(x)W(x,y)1+s)1−s​

as an extended-real value. The supremum ranges over all probability mass functions on XXX; no stochasticity of WWW, finiteness, or nonemptiness assumption is imposed. All sums and powers inside the logarithm use extended nonnegative arithmetic, including zero powers equal to 111, and the logarithm sends zero to −∞-\infty−∞ and infinity to +∞+\infty+∞. There is no special branch at s=0s=0s=0 or s=1s=1s=1. If XXX is empty, there are no probability mass functions, so the supremum is zero and the result is −∞-\infty−∞; an empty YYY likewise gives value −∞-\infty−∞.

QAlgorithms.Papers.Independent.Intake100.P73.worstPsiExponent

For arbitrary types X,YX,YX,Y, any function W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞], and any real RRR, put

G(s)=sup⁡p a probability mass function on X∑y′(∑x′p(x)W(x,y)1+s)1−s,G(s)=\sup_{p\text{ a probability mass function on }X} \sum'_y\left(\sum'_x p(x)W(x,y)^{1+s}\right)^{1-s},G(s)=p a probability mass function on Xsup​y∑′​(x∑′​p(x)W(x,y)1+s)1−s,

where this inner supremum, sums, and powers are in [0,∞][0,\infty][0,∞]. This defines the extended real value

sup⁡0≤s≤1−log⁡G(s)+sR1+s,\sup_{0\le s\le1}\frac{-\log G(s)+sR}{1+s},0≤s≤1sup​1+s−logG(s)+sR​,

where the logarithm sends 000 to −∞-\infty−∞ and +∞+\infty+∞ to +∞+\infty+∞. Both endpoints are included; at s=0s=0s=0 the expression is −log⁡G(0)-\log G(0)−logG(0), with no special assignment to zero, and at s=1s=1s=1 every outer zeroth power is 111, including a zeroth power of zero. No stochasticity, finiteness, countability, or nonemptiness assumption is imposed. If XXX is empty, the supremum defining G(s)G(s)G(s) is the empty supremum 000, and the defined exponent is +∞+\infty+∞.

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

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 2026

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

View graph

Get started

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

About Prove2Me

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

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me