InformationTheory.Shannon.StrongTypicality
Strong typicality (Cover-Thomas) #
Three main theorems for the strongly typical set
A^*_ε^n := { x : Fin n → α | ∀ a, |(typeCount x a : ℝ)/n - P(a)| ≤ ε }:
stronglyTypicalSet_prob_tendsto_one—μ {ω | jointRV ∈ A^*} → 1(WLLN on indicators).- (size upper bound) —
|A^*| ≤ exp(n(H + ε·L))via the strong-to-weak inclusion. stronglyTypicalSet_card_ge_eventually—∃ N, ∀ n ≥ N, (1-η)·exp(n(H - ε·L - δ)) ≤ |A^*|.
Here L := logSumAbs μ Xs = ∑ a, |log P(a)|, N(a|x^n) := typeCount x a,
P(a) := (μ.map (Xs 0)).real {a}, H := entropy μ (Xs 0).
Main definitions #
stronglyTypicalSet— the strongly typical setA^*_ε^n.logSumAbs— the Lipschitz constant∑ a, |log P(a)|of the strong-to-weak bridge.
Main statements #
stronglyTypicalSet_prob_tendsto_one— probability of the typical set tends to 1.stronglyTypicalSet_card_ge_eventually— lower size bound (eventually inn).
Implementation notes #
The WLLN is applied per letter via strong_law_ae_real on the indicators
Y_a i ω := 𝟙(Xs i ω = a), then a union bound over the finite alphabet α
gives simultaneous concentration. Full support hpos : ∀ a, 0 < P(a) is
required for the size bounds (via typicalSet_prob_le) but not for the
probability convergence.
References #
- T. M. Cover and J. A. Thomas, Elements of Information Theory (2nd ed.), Wiley, 2006.
Definitions #
InformationTheory.Shannon.stronglyTypicalSet
sourceThe strongly typical set
A^*_ε^n := { x : Fin n → α | ∀ a, |(typeCount x a : ℝ)/n - P(a)| ≤ ε }.
Equations
Instances For
Used by
InformationTheory.Shannon.mem_stronglyTypicalSet_iff
sourceUsed by
InformationTheory.Shannon.measurableSet_stronglyTypicalSet
sourceUsed by
Probability convergence #
InformationTheory.Shannon.letterIndicator
sourceInstances For
Used by
InformationTheory.Shannon.measurable_letterIndicator
sourceUsed by
InformationTheory.Shannon.indepFun_letterIndicator
sourceUsed by
InformationTheory.Shannon.identDistrib_letterIndicator
sourceUsed by
InformationTheory.Shannon.integral_letterIndicator
sourceUsed by
InformationTheory.Shannon.integrable_letterIndicator
sourceUsed by
InformationTheory.Shannon.typeCount_eq_sum_indicator
sourceUsed by
InformationTheory.Shannon.letterIndicator_inProbability
sourceUsed by
InformationTheory.Shannon.stronglyTypicalSet_prob_tendsto_one
sourceFor Xs i.i.d. with a finite alphabet, the probability of the strongly typical set tends
to one, μ {ω | jointRV Xs n ω ∈ A^*_ε^n} → 1.
Used by
Strong-to-weak typicality bridge #
InformationTheory.Shannon.logSumAbs
sourceLipschitz constant ∑ a, |log P(a)| of the strong-to-weak typicality bridge.
Equations
- InformationTheory.Shannon.logSumAbs μ Xs = ∑ a : α, |Real.log ((MeasureTheory.Measure.map (Xs 0) μ).real {a})|
Instances For
Used by
InformationTheory.Shannon.logSumAbs_nonneg
sourceUsed by
InformationTheory.Shannon.weak_displacement_eq_strong_sum
sourceUsed by
InformationTheory.Shannon.stronglyTypical_implies_weakly_typical_bound
sourceUsed by
InformationTheory.Shannon.stronglyTypicalSet_subset_typicalSet
sourceUsed by
Size bounds #
InformationTheory.Shannon.stronglyTypicalSet_card_ge_eventually
sourceA lower bound on the typical-set size (eventually-N form): for any η > 0,
eventually |A^*_ε^n| ≥ (1-η) · exp(n · (H - ε·L - δ)).