Alphabeta Math
DefinitionDefinition: AI-adaptedProof: AI-generatedPipeline-generatedprecheck pending
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 M be a finite nonempty message set. A binary prefix code on M is an injective assignment c:M→{0,1}∗ such that no assigned string is a proper initial segment of another assigned string. Write ℓ(m):=∣c(m)∣ for its codeword lengths. For a probability vector p on M, its expected length is Lp(c):=∑m∈Mp(m)ℓ(m).

The empty string is permitted only when M 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

1.1givenalgebra

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.

2.1givenstep 1.1algebra∎

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