InformationTheory.Shannon.SMB.McMillanBreiman
Shannon-McMillan-Breiman theorem (sandwich form) #
Cover–Thomas: for a stationary ergodic process with finite
alphabet α, the per-symbol negative log-likelihood
-(1/n) log P(X_0, …, X_{n-1})
converges almost surely to the entropy rate H. This file packages the
sandwich form of the conclusion: assuming liminf ≥ H and limsup ≤ H
almost surely (the two halves of the Cover–Thomas bound which Birkhoff
supplies), we deduce a.s. convergence via tendsto_of_le_liminf_of_limsup_le.
The hypothesis-free capstone shannon_mcmillan_breiman lives in
InformationTheory.Shannon.SMBAlgoetCover: it discharges the two sandwich
inequalities and a.s. boundedness unconditionally via the Algoet–Cover bounds
(algoet_cover_liminf_bound / algoet_cover_limsup_bound), which rest on the
Birkhoff ergodic theorem (BirkhoffErgodic), the two-sided projective-limit
construction (Probability.TwoSidedExtension), and backward-martingale
convergence.
We also publish the expected-value level statement, which does not need Birkhoff.
Main definitions #
blockLogAvg μ p n ω—-(1/n) * log P_n({block_n ω}), the per-block empirical entropy estimator for the observed sample.
Main statements #
shannon_mcmillan_breiman_of_sandwich— sandwich version: from the two Cover–Thomas inequalities (liminf ≥ H,limsup ≤ H) plus a.s. boundedness, deriveTendsto blockLogAvg n → Ha.s.expected_blockLogAvg_eq—𝔼[blockLogAvg μ p n] = blockEntropy μ p n / n.tendsto_expected_blockLogAvg— the expected-value SMB:𝔼[blockLogAvg μ p n] → entropyRate μ pasn → ∞.
InformationTheory.Shannon.blockLogAvg
sourcePer-block negative log-likelihood average for the observed sample.
blockLogAvg μ p n ω := -(1/n) * log P_n({block_n ω}) where
P_n = μ.map (blockRV n). Cover–Thomas calls this -(1/n) log p(X^n).
For n = 0 the value is 0 (multiplication by 1/0 = 0); only n > 0
behavior is informative.
Equations
Instances For
Used by
InformationTheory.Shannon.measurable_blockLogAvg
sourceMeasurability of blockLogAvg μ p n.
Used by
Sandwich form (Cover–Thomas) #
InformationTheory.Shannon.shannon_mcmillan_breiman_of_sandwich
sourceShannon–McMillan–Breiman theorem (sandwich form): if the per-symbol
log-likelihood average blockLogAvg μ p n satisfies the two sandwich bounds
(liminf ≥ entropy rate, limsup ≤ entropy rate) and is a.s. bounded, then it
converges to the entropy rate a.s.
Used by
Expected-value level (no Birkhoff needed) #
InformationTheory.Shannon.expected_blockLogAvg_eq
sourceThe expected per-symbol negative log-likelihood equals blockEntropy / n.
This is the discrete-alphabet analogue of integral_logLikelihood_zero in
AEP/Basic/Core.lean: push forward via blockRV n, collapse the integral over a
finite alphabet to a sum, and recognize the resulting sum as the entropy
times -(1/n).