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.
Binary prefix codes on finite supports
Definition
Let be a finite nonempty message set. A binary prefix code on is an injective assignment such that no assigned string is a proper initial segment of another assigned string. Write for its codeword lengths. For a probability vector on , its expected length is
The empty string is permitted only when is a singleton. In that case it describes one known source block, or a known number of copies of the sole message; the message count is part of the framing convention. For arbitrary concatenations whose message count is not supplied, require every codeword to be nonempty. Thus a singleton source can retain a zero-bit code for one known block without claiming unknown-count decoding.
Facts & Assumptions
Given: The finite message set and code assignment in the Definition.
Proof
One codeword determines its message by injectivity. In the singleton empty-word case, a known count determines the unique message list, whereas distinct unknown counts all give the same empty string. In particular, the empty string describes one known block with length zero.
If all codewords are nonempty, at most one codeword can prefix an unread concatenation, because any two such prefixes would be comparable by the prefix relation and injectivity excludes equal codewords for different messages. Remove that nonempty codeword and repeat; the finite unread length decreases, so this recovers the complete message list without a supplied count.
Used by
Dependency tree · 0 levels
Nothing. This result depends on no other item in the library.
Sources
- Robert M. Gray, Entropy and Information Theory, corrected edition (standard reference, not scraped)