The Question
A source emits a long message one letter at a time. Each letter is drawn from a finite alphabet with the same distribution , independently of the others. The message is cut into blocks of letters, and each block is to be written as a string of bits from which it can be read back. Spending bits on a block of letters is a rate of bits per letter. How small can the rate be made while the probability of reading a block back correctly still tends to one as the blocks grow long?
The Source and Its Entropy
The source is a probability distribution on the finite alphabet : a nonnegative number for each letter , with .
The Shannon entropy of a letter of the source, distributed according to , is the real number (1)β¦ with the natural logarithm, so that is measured in nats.
Compression Schemes
A block of letters is an element of , and a bit string of length an element of . A compression scheme for blocks of letters with bits is a pair of maps, a compression map and a decompression map , (2)β¦ The scheme has rate when , the largest integer not above .
The success probability of a scheme for the source is the probability that a block of the source comes back unchanged after compression and decompression, (3)β¦
The Claim
Theorem 1 (Shannonβs noiseless channel coding theorem). Let be a probability distribution on a finite alphabet , with entropy , and let be a real number. If , there are compression schemes of rate , one for each block length , with (4)β¦ If and , then for any compression schemes of rate , one for each block length , (5)β¦
In bits the entropy is .
What Is Checked
The theorem is stated over the Shannon entropy (1) of the letter distribution, over compression schemes (2) with bits for blocks of letters, and over their success probability (3). What the library proves about these constructions is the theorem itself, both halves, (4) and (5).