How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Shannon bounds for finite binary codes
Statement
Let be a finite full-support source and let be its entropy in bits. Every finite binary uniquely decodable code satisfies . If , the binary prefix code with lengths (called a Shannon code) has expected length strictly less than . If , the one-bit codeword has length .
Facts & Assumptions
Given: A finite full-support source and a finite binary code .
Finite discrete sources and product blocks: , , and .
Finite binary source codes, extension, and expected length: , and is uniquely decodable exactly when its finite-word concatenation extension is injective.
McMillan inequality for finite binary uniquely decodable codes: Every finite binary uniquely decodable code has .
Nonnegativity of finite relative entropy with a positive reference: For finite probability vectors with , .
Binary Kraft criterion for finite positive codeword lengths: Positive integer lengths are realized by a binary prefix code whenever their Kraft sum is at most one.
Order, continuity, range, and the product, quotient, and reciprocal laws for the natural logarithm: is strictly increasing and .
Order, continuity, range, and the product, quotient, and reciprocal laws for the natural logarithm: For positive , , , and .
Change of base and inversion of the positive-base real exponential: for every real .
Ceilings give the least positive integer meeting a real threshold: is an integer and .
Integer part: for every real there is exactly one integer with : For every real , .
Proof
Let be uniquely decodable and set . By [F3] and [F4], . Define ; then is a positive probability vector.
Suppose . Full support gives , so [F8] and [F9] give . By [F12], is a positive integer and . Thus by [F11]; since is strictly increasing by [F8] and [F9], this gives and hence . By [F6] there is a binary prefix code with these lengths.
By [F2], [F3], [F5], [F7], [F8], and [F10], using the logarithm product and quotient laws for the integer powers in , . Since , [F9] gives , so . Divide by from [F8] and use [F2] to obtain .
By [F12] and [F13], if then , so . Therefore the Shannon code in step 1.2 satisfies . If , then by [F1], so by [F2] and [F8]–[F9]; the codeword is a prefix code of length one.
Depends on
- Finite discrete sources and product blocks
- Base-two entropy of a finite source
- Finite distributions, entropy, divergence, and stochastic matrices
- Finite binary source codes, extension, and expected length
- Binary Kraft criterion for finite positive codeword lengths
- McMillan inequality for finite binary uniquely decodable codes
- Nonnegativity of finite relative entropy with a positive reference
- Information units and logarithm-base convention
- Order, continuity, range, and the product, quotient, and reciprocal laws for the natural logarithm
- Change of base and inversion of the positive-base real exponential
- Ceilings give the least positive integer meeting a real threshold
- Integer part: for every real $x$ there is exactly one integer $m$ with $m \le x < m + 1$
Used by
Dependency tree · two levels
42 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.
Sources
- Stanford EE376A, Information Theory Course Notes, Chapter 4: Lossless Compression (standard reference, not scraped)
- MIT OpenCourseWare 6.450, Memory-less sources, prefix free codes, and entropy (standard reference, not scraped)