Definitions for General non-asymptotic and asymptotic formulas in channel resolvability and identification capacity and their application to wire-tap channel
DefinitionQAlgorithms_Papers_Independent_Intake100_P73The 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.
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
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Intake100.P73.Book
For any type , a book on consists of a natural number , a proof that , and a function assigning an element of to each index . Entries may repeat, and no further conditions are imposed. A book cannot have size zero, and no book exists when is empty.
QAlgorithms.Papers.Independent.Intake100.P73.DiscreteStochasticWiretapCode
For any types , a discrete stochastic wiretap code consists of a natural number , a probability mass function with total sum for each , and a subset for each such , subject to
The regions may be empty and need not cover , and the probability mass functions may coincide. There is no channel function among the structure’s fields. A zero message count is excluded; if is empty, no such code exists, while may be empty.
QAlgorithms.Papers.Independent.Intake100.P73.IdentificationCode
For any types , an identification code consists of a natural number , a requirement , a probability mass function for every , and a subset for every such . Each has total sum . There is no condition relating the subsets : they may overlap or be empty, and they need not cover ; the probability mass functions may also coincide. The message count cannot be zero. If is empty, no such code exists; is allowed to be empty.
QAlgorithms.Papers.Independent.Intake100.P73.IsDiscreteStochastic
For arbitrary types and and any function , this predicate means that, for every ,
The sum is the extended nonnegative sum, defined for arbitrary index types and allowed to be infinite. If is empty, the condition holds vacuously. If is empty and is nonempty, the condition cannot hold, since each row sum is .
QAlgorithms.Papers.Independent.Intake100.P73.averageBobError
For arbitrary types , any function , and a discrete stochastic wiretap code with messages, probability mass functions on , and pairwise disjoint regions , this defines
All sums and arithmetic are in the extended nonnegative reals. The positive message count makes the denominator nonzero. No normalization condition is imposed on , so the result may exceed or be infinite. If is empty, the result is .
QAlgorithms.Papers.Independent.Intake100.P73.averageEveDivergence
For arbitrary types , any function , and a discrete stochastic wiretap code with messages, probability mass functions on , and pairwise disjoint regions , put
This defines
Here is the real value of finite , with ; real division by zero and both equal . The sums and remaining arithmetic are in , with . The regions do not enter the formula, and no normalization condition is imposed on . If is empty, the result is .
QAlgorithms.Papers.Independent.Intake100.P73.bestApproximation
For arbitrary types , a Boolean flag , a natural number , a function , and weights , put . For every positive integer and every tuple , with repetitions allowed, put . This defines the infimum in of the values
over all such , where subtraction is truncated subtraction in the extended nonnegative reals and
Here and preserve finite values and send infinity to zero, the maximum is embedded in , and its quotient and logarithm use total real arithmetic, including division by zero equal to zero and . No normalization of , stochasticity of , or finiteness of either type is assumed. If or is empty, there are no eligible books, so the infimum is ; the definition does not assert that an eligible book attains the infimum.
QAlgorithms.Papers.Independent.Intake100.P73.complementarySpectrum
For arbitrary families of types , functions , probability mass functions on , a Boolean parameter , and any real number , put . Let when , let when and , and otherwise let it be the extended-real embedding of , where converts to the real number , real division by zero is , and the real logarithm of is . Define, for each real ,
The definition is the supremum in the extended reals of the real thresholds satisfying when , and satisfying otherwise. The supremum of an empty set is , and the result may also be . The limits superior and inferior are taken in using their total order-theoretic definitions; no boundedness or convergence is assumed. An infinite event sum converts to , and neither a restriction on nor stochastic normalization or cardinality assumptions on the kernels and types are required.
QAlgorithms.Papers.Independent.Intake100.P73.deltaPrime
For arbitrary types and , functions and , and any real , put and , viewed in . This defines
as an extended nonnegative value. No normalization or finiteness is assumed. All products, quotients, and sums use extended nonnegative arithmetic, with and every value divided by equal to . Thus an infinite satisfies the positivity condition and makes both the tested quotient and the displayed contribution . The sum is if either index type is empty and may otherwise be infinite.
QAlgorithms.Papers.Independent.Intake100.P73.discreteKLDivergence
For any type and functions , this defines the extended nonnegative sum
Here preserves finite values and sends to ; the maximum is interpreted as an extended nonnegative value. Real division by and the real logarithm at both give . Thus a coordinate with both values contributes , a coordinate with contributes , and one with and finite contributes . No normalization or finiteness is assumed; the sum is for empty and may be infinite.
QAlgorithms.Papers.Independent.Intake100.P73.discreteOutputMixture
For arbitrary types and , functions and , and an element , this defines
No normalization or finiteness condition is imposed on or . The sum is the extended nonnegative sum; it is when is empty and may otherwise be infinite. Multiplication uses .
QAlgorithms.Papers.Independent.Intake100.P73.discretePsiMoment
For arbitrary types , a function , weights , and any real number , let . This defines the extended nonnegative value
There are no normalization, stochasticity, finiteness, or nonemptiness assumptions. The sums, products, and real powers use total extended nonnegative arithmetic, including ; in particular, the branch contributes exactly zero regardless of . Negative and zero exponents are allowed, and an empty outer sum is zero.
QAlgorithms.Papers.Independent.Intake100.P73.empirical
For arbitrary types , a function , a book consisting of a positive natural size and entries for , and an element , this defines
in the extended nonnegative reals. Repeated entries are counted separately. No stochasticity of or finiteness of 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 , a function , weights , a natural number , and a real number , put and , viewed in . Define
Conversion preserves finite extended nonnegative values and sends infinity to zero. The definition returns
where is the number of elements of when is finite, and when is infinite. No normalization, stochasticity, finiteness, or nonemptiness is assumed. The logarithms and final quotient are real operations: , so an empty or infinite makes , and makes the final quotient zero.
QAlgorithms.Papers.Independent.Intake100.P73.entropySummand
For every real number , this defines the real value
There is no restriction that be nonnegative or at most . The real logarithm used here is total: for negative , , so the value there is .
QAlgorithms.Papers.Independent.Intake100.P73.epsilonInformationSpectrum
For arbitrary families of types , functions , probability mass functions on , a Boolean parameter , and any real number , put . Let equal if , if and , and otherwise embedded in the extended reals; conversion to a real number sends to , real division by zero is , and the real logarithm of is . For each real threshold , let
The defined value is the infimum in the extended reals of the real thresholds satisfying when , and satisfying otherwise. Only real thresholds enter this set, although its infimum can be infinite; an empty set has infimum . The limits superior and inferior displayed here are taken in using their total order-theoretic definitions, without a boundedness or convergence hypothesis. Infinite event sums convert to ; 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 , any function , and a discrete stochastic wiretap code with messages, probability mass functions on , and pairwise disjoint regions , put . This defines when , and when defines
The pairs are ordered. All sums and arithmetic are in the extended nonnegative reals, and subtraction is truncated, including ; the natural-number subtraction is used only in the branch where . The regions do not enter the formula, and no normalization condition is imposed on . If is empty, the result is .
QAlgorithms.Papers.Independent.Intake100.P73.eveOutputMarginal
For arbitrary types , any function , a discrete stochastic wiretap code with messages, probability mass functions on , and pairwise disjoint regions , and any , this defines
The sums and arithmetic are in the extended nonnegative reals. The regions and the type do not enter this formula. No normalization condition is imposed on , so is not required to have total sum , and its values may be infinite.
QAlgorithms.Papers.Independent.Intake100.P73.firstError
For arbitrary types , any function , and an identification code with messages, probability mass functions on , and subsets , this defines the real number
The sums and supremum are taken in , and means the real value of when finite, with . Thus an infinite supremum gives the real value . No normalization condition is imposed on , so the finite value need not be at most . The sets need not be disjoint; if is empty, the result is .
QAlgorithms.Papers.Independent.Intake100.P73.fixedResolvabilityExponent
For arbitrary types , a Boolean , a function , a probability mass function on , and a real number , this defines an extended real number as follows; no stochasticity, finiteness, or countability assumption is imposed on . Put . Consider every sequence of positive integers and lists , with repetitions allowed, satisfying
For , define
For , let denote subtraction truncated at zero, let be its real conversion, which sends to , and set
where , embedded in , and real division and logarithms use their total conventions, including and . Set when is true, and when it is false. The defined value is the supremum, in the extended reals, of all values
arising from such sequences. Here the logarithm of an extended nonnegative number sends to and to . The index corresponds to length , so no zero-length block occurs; empty output types are allowed and their sums are zero. An empty set of admissible values has supremum ; in particular, this occurs when .
QAlgorithms.Papers.Independent.Intake100.P73.fullL1
For any type and functions , this defines
where subtraction is truncated extended nonnegative subtraction. For finite values, the summand is ; if exactly one value is infinite, it is infinite; if both values are infinite, it is , since in this subtraction. There are no normalization or finiteness assumptions. The sum is for empty and may be infinite.
QAlgorithms.Papers.Independent.Intake100.P73.generalSecrecyCapacity
For arbitrary families of types , arbitrary functions and , and a Boolean parameter , consider code sequences with a positive natural message count , probability mass functions on , and pairwise disjoint regions , indexed by . Write , , and . For functions with values in , define
where subtraction is truncated subtraction in , including , and
Here the maximum is embedded in , conversion to a real number sends to , and real division by zero and the real logarithm of both equal . Define
and let when , while for let
All these masses and errors use arithmetic in ; the subtraction is natural-number subtraction. The defined capacity is
The error convergences take place in , whereas the supremum and rate limit inferior take place in the extended reals. An empty admissible set gives capacity . 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 , a function , weights , and a real number , this defines the extended-real value
Neither normalization of nor stochasticity of is assumed, and the types need not be finite or nonempty. Sums and powers are taken in the extended nonnegative reals, with and . Every real is allowed: at , the real quotient equals by total division, and both displayed exponents are zero; zero powers, including and , equal . At , the value is assigned to be independently of the displayed sum.
QAlgorithms.Papers.Independent.Intake100.P73.hayashiPsi
For arbitrary types , a function , weights , and any real number , put . This defines the extended-real value
No normalization of , stochasticity of , or finiteness or nonemptiness of either type is assumed. The sums and powers use total extended nonnegative arithmetic, and the logarithm takes values at zero and at infinity. The value at is assigned to be zero independently of the sum.
QAlgorithms.Papers.Independent.Intake100.P73.identificationCapacity
For arbitrary families of types , functions , a Boolean parameter , and arbitrary real numbers , consider all sequences of codes consisting, at each , of a positive natural message count , probability mass functions on , and arbitrary regions , indexed by . Put and define
The sums and suprema defining the errors are in , with an infinite value converted to the real number ; when , the supremum defining is empty and equals , and . Set if is true, and otherwise. The defined capacity is
The supremum and the rate limit inferior are in the extended reals; an empty admissible set therefore yields capacity . Error limits superior and inferior are the total order-theoretic ones in . No stochastic normalization of , finiteness or countability of the types, disjointness of the regions, or restriction on is assumed.
QAlgorithms.Papers.Independent.Intake100.P73.identificationRate
For arbitrary types , an identification code consists of a positive natural number of messages, a probability mass function on for each index , and a subset of for each such index. For any such code and any natural number , the defined extended-real rate is
where the inner logarithm is the real logarithm and the outer logarithm is the extended-real logarithm on , which takes to . Thus a one-message code has rate ; for , the rate is the real number , embedded in the extended reals. The code’s encoders and regions do not otherwise enter this expression, and gives denominator .
QAlgorithms.Papers.Independent.Intake100.P73.iidExpectation
For any type , a probability mass function satisfying , any natural number , and any function from -tuples of elements of to , this defines
in the extended nonnegative reals. The type need not be finite or countable, and may take the value infinity, with . When , there is a unique empty tuple and its empty product is , so the value is evaluated at that tuple. An empty admits no probability mass function and hence no input of the required kind.
QAlgorithms.Papers.Independent.Intake100.P73.iidMaximumLikelihoodDecision
For arbitrary types , a natural number , a function , an indexed family , and , this defines a chosen index satisfying
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 may repeat, and is not assumed to be stochastic or finite-valued. The hypothesis excludes an empty index set.
QAlgorithms.Papers.Independent.Intake100.P73.iidMaximumLikelihoodError
For arbitrary types , a natural number , a function , and an indexed family , this defines the extended nonnegative quantity
where is the classically chosen index satisfying for every , with no specified rule for ties. The entries may repeat. No stochasticity assumption is imposed on , so this quantity need not be at most and may be infinite; if is empty, it is . The case is excluded.
QAlgorithms.Papers.Independent.Intake100.P73.iidReferenceMass
For any type , any probability mass function satisfying , any natural number , and any tuple , this defines the extended nonnegative mass
Repeated entries are allowed. The case is included: the unique empty tuple has mass , by the empty-product convention.
QAlgorithms.Papers.Independent.Intake100.P73.informationTailProbability
For arbitrary families of types , functions , probability mass functions on , a real number , and a natural number , define . For , let if , let if and , and otherwise let , regarded as an extended real number, where is the finite real value of , with converted to . The real division and logarithm in this last branch are total, with division by zero and both equal to . The definition returns
The sums and their summands are evaluated in ; conversion of an infinite sum to a real number gives . The index is included and has denominator . No finiteness, countability, or normalization assumption is imposed on , so the returned real number is not assumed to be at most .
QAlgorithms.Papers.Independent.Intake100.P73.jointEvent
For arbitrary types and , functions and , and any predicate on , this defines
The result lies in . No normalization, finiteness, or additional condition on the predicate is assumed. The sums are extended nonnegative sums, multiplication uses , and the result is if either index type is empty.
QAlgorithms.Papers.Independent.Intake100.P73.klAtom
For any , this defines the extended nonnegative value
where sends finite extended nonnegative values to the corresponding real numbers and sends to . The maximum is converted back to an extended nonnegative value before multiplication. Real division and logarithm are total: division by gives , and . In particular, gives , every gives , and with finite gives .
QAlgorithms.Papers.Independent.Intake100.P73.klBound
For arbitrary types , a function , weights , a natural number , and a real number , this defines the extended-real value
Inside the logarithm, , sums, products, and powers are interpreted in the extended nonnegative reals; the logarithm takes zero to and infinity to , and the final division is total extended-real division. There are no normalization, stochasticity, finiteness, or nonemptiness assumptions, and neither nor a restriction on is required. In particular, , , and are included: the final denominator is zero at , while by total real division at . There is no special branch replacing either case.
QAlgorithms.Papers.Independent.Intake100.P73.l1Bound
For arbitrary types , a function , weights , a real number , and a natural number , let and let , regarded as an extended nonnegative number. Define
Here denotes conversion from to , preserving finite values and sending infinity to zero. The definition returns the real number . No normalization, stochasticity, finiteness, or nonemptiness is assumed; the sums and quotients defining use total extended nonnegative arithmetic. The case is included: real division by zero makes the square-root term zero, so the value is .
QAlgorithms.Papers.Independent.Intake100.P73.length
For every natural number , this defines the natural number
In particular, , and the defined length is always positive.
QAlgorithms.Papers.Independent.Intake100.P73.liminfErrorExponent
For any sequence , with no further assumptions, this defines the extended real number
The logarithm here is the extended logarithm, with and , and division is in the extended reals by the finite positive number . Consequently, an index with contributes , while an index with contributes . The sequence may take values above , and the resulting limit inferior may be finite or either infinity.
QAlgorithms.Papers.Independent.Intake100.P73.logLikelihood
For any , this defines a value in the extended real numbers by
where preserves finite values and sends to , and the last branch is embedded from the reals into the extended reals. Real division by gives , and . Consequently, gives ; when both arguments are nonzero and at least one is infinite, the value is .
QAlgorithms.Papers.Independent.Intake100.P73.lowTail
For arbitrary types and , functions and , and any real , put and , viewed in . This defines the real number
where preserves finite values and sends to . There are no positivity requirements on or , and no normalization or finiteness assumptions. The quotient uses extended nonnegative arithmetic: , a positive value divided by is , and every value divided by , including , is . Multiplication uses . The result is if either index type is empty, and it is also if the summed mass is infinite.
QAlgorithms.Papers.Independent.Intake100.P73.memorylessKernel
For arbitrary types , any function , any natural number , and tuples and , the defined value is
in the nonnegative extended reals. No normalization of or cardinality assumption on is required. The value is included: both tuples are empty and the empty product is , even if or is empty. Products use the total extended-real multiplication, in particular .
QAlgorithms.Papers.Independent.Intake100.P73.normalizedMessageLog
For arbitrary types , a stochastic wiretap code consists of a positive natural message count , a probability mass function on for each index , and regions that are pairwise disjoint for distinct indices. For every such code and every natural number , the defined extended-real value is the real number
embedded in the extended reals. The encoders and regions do not otherwise enter the expression. A one-message code has value , and gives denominator .
QAlgorithms.Papers.Independent.Intake100.P73.phiExponent
For arbitrary types , any function , a probability mass function on , and any real , put
This defines the extended real number
All sums and powers in are in , and the extended logarithm sends to and to . Both endpoints are included; is positive throughout this interval, and the value at is explicitly , regardless of . Neither stochasticity of 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 and , functions and , and every real , this defines
No normalization, finiteness, or restriction on is assumed. The sums are extended nonnegative sums, products use , and powers are extended nonnegative real powers: every base has zeroth power , while to a negative power is and to a negative power is . The reciprocal in the exponent uses real division, so at it is ; both exponents are then , and the expression is , even when is empty. For empty , the value is for every .
QAlgorithms.Papers.Independent.Intake100.P73.preprocessedBound
For arbitrary families of types in a fixed universe , and arbitrary functions and , consider every family of types in that same universe, every assignment of a probability mass function on to each , and every probability mass function on . Define the resulting kernels and output masses by
for , with or , respectively. For , let if , let it be if and , and otherwise let it be the extended-real embedding of . Conversion to a real number sends to ; real division by zero and the real logarithm of both equal . For each real threshold , put
and define the extended-real infima
For each choice of , form
The defined bound is . All infima and suprema in these last expressions are in the extended reals, so an empty infimum is and an empty supremum is . The tail limits are the total order-theoretic limits in , and an infinite event sum converts to . No stochastic normalization of , cardinality restriction, or additional condition on the chosen preprocessing distributions is imposed.
QAlgorithms.Papers.Independent.Intake100.P73.psiExponent
For arbitrary types , any function , any probability mass function on , and any real , define and, for real ,
This declaration defines the extended real value
The sums and powers in are in the extended nonnegative reals, and its logarithm sends to and to . No stochasticity, finiteness, or countability assumption is imposed on ; empty sums and total extended arithmetic retain their usual values. Both endpoints are included, the denominator is always positive, and the value at is explicitly , irrespective of .
QAlgorithms.Papers.Independent.Intake100.P73.reliabilityExponent
For arbitrary types , any function , a probability mass function on , and any real , put
This defines the extended real number
The sums and powers in are in the extended nonnegative reals, and the logarithm sends to and to . Both endpoints are included, the denominator in the inner exponent is positive, and the value at is explicitly , regardless of . There is no stochasticity, finiteness, or countability assumption on , and empty output sums are allowed.
QAlgorithms.Papers.Independent.Intake100.P73.sampleCount
For every natural number and every real number , this defines the natural number
where is the least natural number at least , taking value for nonpositive . Thus the sample count is always at least , includes the case , and is defined for every real , with no nonnegativity assumption on . For , it equals .
QAlgorithms.Papers.Independent.Intake100.P73.secondError
For arbitrary types , any function , and an identification code with messages, probability mass functions on , and subsets , this defines the real number
The supremum is over ordered pairs of distinct message indices, the sums and supremum lie in , and is the real value of finite , with . When , there are no distinct pairs and the result is ; it is also when is empty. No normalization condition is imposed on , and no disjointness condition is imposed on the ; a finite result can exceed , while an infinite supremum is converted to .
QAlgorithms.Papers.Independent.Intake100.P73.simulationCapacity
For arbitrary families of types , functions , a Boolean parameter , and any real , define, for every real , the positive integer , where the ceiling is taken in the natural numbers. For a probability mass function on , put . A book is a positive integer together with a tuple , allowing repetitions, and its output is , with arithmetic in . Define
Both subtractions are the truncated subtractions in , including the convention . The infimum and supremum are in , so an empty book collection has infimum , an empty collection of probability mass functions has supremum , and an infinite final value converts to the real number . Set if is true, and otherwise. The defined capacity is the extended-real infimum of all real satisfying when , and satisfying otherwise; it is if this set is empty. The error limits are the total order-theoretic limits in . No stochastic normalization, finiteness, or countability assumption is made, and is unrestricted.
QAlgorithms.Papers.Independent.Intake100.P73.spectralDifference
For any extended real numbers and , the definition is
where real numbers and their real differences are embedded in the extended reals. Both inequalities are strict, and the witnesses must be finite real numbers. The supremum is taken in the extended reals: if there is no such pair, it is , as occurs when or ; the supremum may also be .
QAlgorithms.Papers.Independent.Intake100.P73.spectralLow
For arbitrary families of types , functions , probability mass functions on , a real number , and a natural number , put . Define to be when , when and , and otherwise the extended-real embedding of , where conversion to a real number sends to , real division by zero equals , and the real logarithm of equals . The definition returns
All summation and multiplication inside the outer conversion take place in , and an infinite resulting sum converts to the real number . The threshold inequality is non-strict. The value is allowed and gives denominator ; the types need not be finite or countable, and no stochastic normalization of is assumed.
QAlgorithms.Papers.Independent.Intake100.P73.tupleOutput
For arbitrary types , a function , any natural number , a tuple , and an element , this defines
using extended nonnegative arithmetic. There is no positivity condition on , no stochasticity condition on , and no finiteness or nonemptiness condition on the types. When , the tuple is empty, the sum is zero, and the extended inverse gives value zero because .
QAlgorithms.Papers.Independent.Intake100.P73.upperLikelihoodMass
For arbitrary types and , functions and , and any real , put and , viewed in . This defines the real number
where preserves finite values and sends to . All sums and quotients inside use extended nonnegative arithmetic, with ; in particular, division by gives , so a pair with cannot satisfy the strict inequality. There are no normalization or finiteness assumptions. An empty index type gives value , and an infinite summed mass also gives real value .
QAlgorithms.Papers.Independent.Intake100.P73.worstApproximation
For arbitrary types , a Boolean , a natural number , and any function , this defines
Here consists of functions with sum , entries of may repeat, and
where
The symbol denotes the real value of a finite extended nonnegative number, with ; real division by zero and both have value . All sums, infima, suprema, and other arithmetic in the displayed distances are in ; subtraction there is truncated, including , and . An empty inner infimum is , in particular when . If is empty, the outer supremum is empty and equals . No normalization condition is imposed on .
QAlgorithms.Papers.Independent.Intake100.P73.worstExponent
For arbitrary types , a Boolean , any function , and any real , put and , where the natural-number ceiling is the least nonnegative integer at least its argument. Define for , . For each probability mass function on the entire tuple space , put . For each positive integer and list , allowing repetitions, put . Define , using truncated subtraction, and , where
Here converts extended nonnegative numbers to reals, sending to ; is embedded in , and the real operations are total, including and . With the infimum taken over all the indicated lists, set . The defined value is
in the extended reals, with and for this extended logarithm. There is no stochasticity or finite-alphabet assumption, and may be negative, while always. Infima and suprema defining are in , so an empty infimum is and an empty supremum is . In particular, if is empty, there are no probability mass functions on , each , and the defined exponent is .
QAlgorithms.Papers.Independent.Intake100.P73.worstPhiExponent
For arbitrary types , any function , and any real , define, for every probability mass function on ,
This defines the extended real number
The inner sums and powers are in , while both displayed suprema are in the extended reals; the logarithm sends to and to . Both endpoints are included and throughout. There is no stochasticity, finiteness, countability, or nonemptiness assumption. If is nonempty, the expression at is ; if is empty, the supremum over probability mass functions is the empty extended-real supremum , and the defined value is .
QAlgorithms.Papers.Independent.Intake100.P73.worstPsi
For arbitrary types , any function , and any real number , this defines
as an extended-real value. The supremum ranges over all probability mass functions on ; no stochasticity of , finiteness, or nonemptiness assumption is imposed. All sums and powers inside the logarithm use extended nonnegative arithmetic, including zero powers equal to , and the logarithm sends zero to and infinity to . There is no special branch at or . If is empty, there are no probability mass functions, so the supremum is zero and the result is ; an empty likewise gives value .
QAlgorithms.Papers.Independent.Intake100.P73.worstPsiExponent
For arbitrary types , any function , and any real , put
where this inner supremum, sums, and powers are in . This defines the extended real value
where the logarithm sends to and to . Both endpoints are included; at the expression is , with no special assignment to zero, and at every outer zeroth power is , including a zeroth power of zero. No stochasticity, finiteness, countability, or nonemptiness assumption is imposed. If is empty, the supremum defining is the empty supremum , and the defined exponent is .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.