Alphabeta Math
LemmaStatement: AI-adaptedProof: AI-generatedPipeline-generated
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.

Entropy lower and Shannon upper bounds for finite prefix codes

Statement

For a finite distribution, proves every binary prefix code has expected length at least H and constructs a prefix code with expected length less than H+1 bit.

Facts & Assumptions

Given: A finite probability vector p and a binary prefix code with lengths ℓ(x) on its positive support, describing one known source block.

[F1]

Finite-block information and entropy in bits: H(p)=−∑p(x)>0p(x)log⁡2p(x).

[F2]

Binary prefix codes on finite supports: the codewords are prefix-free.

[F3]

Kraft inequality and effective prefix-code allocation: binary prefix-free code lengths satisfy K:=∑x2−ℓ(x)≤1; conversely any finite computable list of positive lengths with Kraft sum at most one has a prefix-free allocation.

[F4]

Finite KL nonnegativity for subprobability references: for probability weights p and reference weights r positive on their support with ∑xr(x)≤1, the bit-log sum ∑xp(x)log⁡2(p(x)/r(x)) is nonnegative, without choice.

Proof

Given: The source and code in the statement.

1.1F1F2F3F4givenalgebra

Put r(x)=2−ℓ(x)>0 on the positive support. By [F3], ∑xr(x)≤1, so [F4] gives 0≤∑xp(x)log⁡2(p(x)/r(x))=−H(p)+∑xp(x)ℓ(x). Thus every such code has expected length at least H(p). If the support has one point, one known block can be described by length zero and both entropy and optimal expected length are zero; no unknown message-count decoding is claimed.

2.1F1F3step 1.1algebra

Assume now that the support has at least two points. Then every positive p(x)<1, so ℓ(x)=⌈−log⁡2p(x)⌉ is a positive integer. It satisfies ∑x2−ℓ(x)≤∑xp(x)=1, so the finite binary Kraft criterion gives a prefix code. Also ℓ(x)<−log⁡2p(x)+1, hence its expected length is less than H(p)+1.

3.1F1F2step 1.1step 2.1algebra∎

For singleton support step 1.1 gives L∗(p)=H(p)=0<H(p)+1. For support of size at least two, taking the infimum over all prefix codes in step 1.1 and using the code constructed in step 2.1 proves H(p)≤L∗(p)<H(p)+1. Empty support cannot occur for a probability vector.

Depends on

Used by

Dependency tree · two levels

12 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