InformationTheory.Shannon.AEP.Basic.Achievability
Source-coding theorem, achievability #
The source-coding achievability theorem (Cover-Thomas) is stated
in Tendsto form. With codebook size M_n := ⌈exp(n · R)⌉, the encoder and
decoder are built from a bijection between the typical set and Fin M_n; the
error rate vanishes via typicalSet_prob_tendsto_one, and log M_n / n → R
follows from a Nat.le_ceil / Nat.ceil_lt_add_one squeeze.
References #
- T. M. Cover and J. A. Thomas, Elements of Information Theory (2nd ed.), Wiley, 2006.
- T. M. Cover and J. A. Thomas, Elements of Information Theory (2nd ed.), Wiley, 2006.
InformationTheory.Shannon.codebookSize
sourceThe codebook size used in the achievability proof: M_n := ⌈exp(n · R)⌉.
Instances For
Used by
InformationTheory.Shannon.codebookSize_pos
sourceUsed by
InformationTheory.Shannon.codebookSize_neZero
sourceUsed by
InformationTheory.Shannon.typicalSet_card_le_codebookSize
sourceUsed by
InformationTheory.Shannon.aepEncoder
sourceThe encoder: typical blocks → Fin M_n index, non-typical → 0.
Equations
Instances For
Used by
InformationTheory.Shannon.aepDecoder
sourceThe decoder: Fin M_n index → typical block (out of range → default).
Equations
Instances For
Used by
InformationTheory.Shannon.aepDecoder_aepEncoder_of_mem_typicalSet
sourceUsed by
Error-rate convergence #
InformationTheory.Shannon.error_subset_compl_typicalSet
sourceThe error event is contained in {jointRV Xs n ∉ typicalSet}, with the
orientation Xs ω ≠ decoder (encoder (Xs ω)) matching errorProb.
Used by
InformationTheory.Shannon.aep_errorProb_tendsto_zero
sourceUsed by
Rate convergence and achievability theorem #
InformationTheory.Shannon.codebookSize_log_div_tendsto
sourcelog M_n / n → R.
Used by
InformationTheory.Shannon.source_coding_achievability
sourceSource coding theorem (achievability):
For any rate R > entropy μ (Xs 0), there exists a block code with rate R and
vanishing error.
Used by
Unified source-coding theorem (two-sided equality) #
Combining the weak converse and the achievability direction yields
sInf (achievableRates μ Xs) = entropy μ (Xs 0). An "achievable code" is a family
(M_n, c_n, d_n) whose error probability vanishes and whose rate log M_n / n
is universally bounded (the hM_bdd hypothesis of the converse). The
achievability witnesses satisfy this universally-bounded condition because
Tendsto rate atTop (𝓝 R) implies BddAbove (Set.range rate)
(Filter.Tendsto.bddAbove_range).
InformationTheory.Shannon.IsAchievableCode
sourceAn achievable block source code: each M_n > 0, error probability vanishes,
and the rate is universally bounded.
- hPe_to_zero : Filter.Tendsto (fun (n : ℕ) => MeasureFano.errorProb μ (jointRV Xs n) (fun (ω : Ω) => c n (jointRV Xs n ω)) (d n)) Filter.atTop (nhds 0)
Instances For
Used by
InformationTheory.Shannon.achievableRates
sourceThe set of asymptotic rates (liminf log M_n / n) of achievable codes.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Used by
InformationTheory.Shannon.entropy_le_of_mem_achievableRates
sourceEvery achievable rate is at least the entropy.
Used by
InformationTheory.Shannon.mem_achievableRates_of_gt_entropy
sourceAny rate strictly above the entropy is achievable.
Used by
InformationTheory.Shannon.source_coding_theorem
sourceSource coding theorem: The infimum of asymptotic rates of achievable block source codes equals the entropy of the source.
Used by
Point-wise probability upper bound on the typical set #
For any x ∈ T_ε^n, P^n(x) = ∏ P(x_i) ≤ exp(-n(H - ε)). This is the
point-wise companion of the size bound |T_ε^n| ≤ exp(n(H+ε)).
The factorization μ.map (jointRV Xs n) = Measure.pi (μ.map (Xs ·)) requires
mutual independence (iIndepFun), not just pairwise independence.
InformationTheory.Shannon.typicalSet_prob_le
sourcePoint-wise upper bound on typical-set mass: (μ.map (jointRV Xs n)).real {x} ≤ exp(- n · (H - ε)) for any x ∈ T_ε^n.
Used by
Point-wise lower bound and size lower bound #
The remaining two of the four consequences, beyond typicalSet_prob_le
(point-wise upper bound), typicalSet_prob_tendsto_one (set probability → 1),
and typicalSet_card_le (size upper bound):
typicalSet_prob_ge: point-wise lower boundexp(-n(H+ε)) ≤ P^n(x)forx ∈ T_ε^ntypicalSet_card_ge: size lower bound(1-η) · exp(n(H-ε)) ≤ |T_ε^n|wheneverμ(T) ≥ 1-η
InformationTheory.Shannon.typicalSet_prob_ge
sourcePoint-wise lower bound on typical-set mass: for x ∈ T_ε^n,
exp(-n · (H + ε)) ≤ (μ.map (jointRV Xs n)).real {x}. Dual of
typicalSet_prob_le.
Used by
InformationTheory.Shannon.typicalSet_card_ge
sourceSize lower bound on typical set: if μ(T_ε^n) ≥ 1 - η, then
(1-η) · exp(n · (H - ε)) ≤ |T_ε^n|.
See also typicalSet_prob_tendsto_one.