InformationTheory.Shannon.SlepianWolf.Binning
Slepian–Wolf random binning machinery #
This file introduces the random-binning measure binningMeasure α n M on the
hash-function space (Fin n → α) → Fin M, plus the collision-probability
collapse 𝔼_f[1_{f x = f x'}] = 1/M for x ≠ x' (and = 1 for x = x').
Main definitions #
binningMeasure α n M—Measure.pi (fun _ : (Fin n → α) => uniformOn univ)on(Fin n → α) → Fin M.
Main statements #
binningMeasure_singleton_real—(binningMeasure α n M).real {f} = (1/M)^{|α|^n}.binning_collision_prob— forx ≠ x',(binningMeasure α n M).real {f | f x = f x'} = 1/M.
Implementation notes #
- This is the encoder-side mirror of
ChannelCodingAchievability.codebookMeasure(Measure.pi (fun _ : Fin M => Measure.pi (fun _ : Fin n => p))): the index of the outerMeasure.piis swapped fromFin M(codeword count) to(Fin n → α)(input-sequence space).
References #
- T. M. Cover and J. A. Thomas, Elements of Information Theory (2nd ed.), Wiley, 2006.
The random binning measure and basic instances #
InformationTheory.Shannon.binningMeasure
sourceRandom binning measure. Each input sequence x ∈ (Fin n → α) is hashed
independently to a uniformly random bin index in Fin M. The total law on the
hash-function space (Fin n → α) → Fin M is the product of |α|^n copies of
uniformOn (Set.univ : Set (Fin M)).
Encoder-side mirror of ChannelCodingAchievability.codebookMeasure:
codebookMeasure p M n=Measure.pi (fun _ : Fin M => Measure.pi (fun _ : Fin n => p))("Fin Mcodewords drawn i.i.d. fromp^n").binningMeasure α n M=Measure.pi (fun _ : (Fin n → α) => uniformOn univ)("|α|^nhash bins drawn uniformly").
The outer-Measure.pi index is the input-sequence space (Fin n → α),
which is a Fintype because α is finite.
Equations
- InformationTheory.Shannon.binningMeasure α n M = MeasureTheory.Measure.pi fun (x : Fin n → α) => ProbabilityTheory.uniformOn Set.univ
Instances For
Used by
InformationTheory.Shannon.binningMeasure.instIsProbabilityMeasure
sourceThe random binning measure is a probability measure.
Used by
InformationTheory.Shannon.binningMeasure_singleton_real
sourceSingleton mass. For any hash function f : (Fin n → α) → Fin M,
its binningMeasure-mass is (1/M)^{|α|^n} (each of the |α|^n input
sequences independently picks one of M bins).
Used by
Collision probability collapse 𝔼[1_{f x = f x'}] = 1/M #
InformationTheory.Shannon.binning_collision_prob
sourceFor random binning at rate 1/M per input sequence, two distinct sequences
x ≠ x' collide with probability exactly 1/M.