Skip to main content
KetQat

Appearance

Proof · intermediate

Proof of the source coding theorem

Index the typical set, which has at most 2^(n(H+delta)) elements and almost all the probability; conversely, any set of 2^(nR) sequences with R < H meets the typical set in a set of vanishing probability.

Established resultDraftUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted draft, not yet reviewed. Nobody other than the author has checked this page. Verify statements against the cited sources before relying on them.

Write T=Tδ(n)T = T_\delta^{(n)} for the typical set of the asymptotic equipartition property.

Achievability. Let R>HR > H and δ=(R−H)/2>0\delta = (R - H)/2 > 0. Then ∣T∣≤2n(H+δ)≤2nR≤2⌈nR⌉\abs{T} \le 2^{n(H + \delta)} \le 2^{nR} \le 2^{\lceil nR \rceil}, so there is an injective map fn:T→{0,1}⌈nR⌉f_n : T \to \{0, 1\}^{\lceil nR \rceil}; extend fnf_n arbitrarily to all of Xn\mathcal{X}^n and let gng_n invert it on fn(T)f_n(T). Every xn∈Tx^n \in T is recovered, so the error probability is at most Pr⁡[Xn∉T]\Pr[X^n \notin T], which tends to 00.

Strong converse. Let R<HR < H and δ=(H−R)/2>0\delta = (H - R)/2 > 0. Any decoder gn:{0,1}m→Xng_n : \{0, 1\}^{m} \to \mathcal{X}^n with m≤nRm \le nR has an image SS of at most 2nR2^{nR} sequences, and decoding is correct only if Xn∈SX^n \in S. Using the upper bound p(xn)≤2−n(H−δ)p(x^n) \le 2^{-n(H - \delta)} on TT,

Pr⁡[Xn∈S]≤Pr⁡[Xn∈S∩T]+Pr⁡[Xn∉T]≤2nR 2−n(H−δ)+Pr⁡[Xn∉T]=2−n(H−R)/2+Pr⁡[Xn∉T],\Pr[X^n \in S] \le \Pr[X^n \in S \cap T] + \Pr[X^n \notin T] \le 2^{nR}\, 2^{-n(H - \delta)} + \Pr[X^n \notin T] = 2^{-n(H - R)/2} + \Pr[X^n \notin T] ,

and both terms tend to 00. This follows chapter 3 of Cover and Thomas.

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. Thomas M. Cover, Joy A. Thomas (2005). Elements of Information Theory. Wiley (2nd edition). doi:10.1002/047174882X

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass with notes · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Self-contained proof checked line by line against the statements of theorem/source-coding-theorem and theorem/asymptotic-equipartition-property (choice of delta, size bound |T| <= 2^{n(H+delta)}, injective encoding into ceil(nR) bits, converse bound 2^{nR} 2^{-n(H-delta)} = 2^{-n(H-R)/2}). The textbook itself is not openly readable; Crossref chapter metadata confirms chapter 3 of Cover and Thomas (DOI 10.1002/047174882X.ch3) is the asymptotic equipartition chapter, and book metadata matched.

    The steps were re-derived, but neither the cited textbook nor a second open source was read, so the record stays a draft until one is.

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e

Current revision 365123d6ae3be559. Source file knowledge/records/proof/source-coding-theorem.md in the content repository (readable there once it is public).