Indexing the archive…
Your Universe of Digital Possibilities
Write a compressor that makes every file smaller. Give each of the 2ⁿ files of n bits a shorter name, and decode it back. There are 2ⁿ files and only 2ⁿ − 1 shorter strings (Dirichlet’s pigeonhole); and a code you can read from a stream obeys a budget — Σ 2−ℓ ≤ 1 (Kraft 1949, McMillan 1956) — that every file one bit shorter overspends twice over. Shrink one file and another grows. The one door is a source that is not uniform: then the average can fall, but never every file. This instrument ends at that wall, on purpose.
Count the strings shorter than n bits, the empty one included: 1 + 2 + … + 2n−1 = 2ⁿ − 1. There are 2ⁿ files. A lossless compressor needs a different output for each, so at least one file gets no shorter name — even if its length is stored for free.
A codeword of ℓ bits spends 2−ℓ of a budget of one, and a code you can decode from a stream never overspends it. Shrinking every n-bit file needs a budget of two. Inside the budget, one name shorter than n forces another longer — and Σ ℓ never drops below n · 2ⁿ.
The door: for a source whose bits lean (P(1) = p ≠ ½), the best prefix code — Huffman’s — brings the average length down to within a bit of n·H(p). It does it by giving rare files longer names, so the files that grow are still counted; a fair coin has H(½) = 1 and leaves nothing to take.
The Noa Edition’s second ten are walls you can hold, and this one is in every pocket that holds a file. Room one lets you draw any compressor you like or load real ones; the machine writes every code there is for three bits and runs every codec over sixteen; the budget strip shows the one number that decides it. The door — a source that leans — is Shannon’s 1948 bound, and it opens the average, never the wall: some file always comes out longer. What a noisy channel can carry is The Code’s subject; what entropy is, The Arrow’s; what a forger’s digits give away, The Books’; and the next wall, The Sort, spends the same bits on a balance — each weighing buys at most one.