Alphabeta Math
TheoremStatement: 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.

LZ78 expected-rate universality for stationary sources

Statement

For every stationary finite-alphabet source, the expected explicit terminated LZ78 code length per source symbol converges to the entropy rate in bits, without an ergodicity assumption.

Facts & Assumptions

Given: A stationary source X on a finite nonempty alphabet, its bit entropy rate h, and the explicit terminated LZ78 code of Finite-block LZ78 incremental prefix code and Losslessness and prefix property of the explicit LZ78 code. For a singleton source alphabet, adjoin one fixed unused symbol of probability zero before applying the code, with the terminator still distinct; write A for this coding alphabet and q=∣A∣≥2.

[F1]

Losslessness and prefix property of the explicit LZ78 code: the terminated output is a nonempty prefix-free lossless code with no supplied record count; for N output records its length is at most N[log⁡2(N+1)+2log⁡2log⁡2(N+2)+3+⌈log⁡2(q+1)⌉].

[F2]

Distinct-phrase count and Ziv inequality: for a distinct parsing and any order-k kernel Q, −log⁡2Q(x0n−1#∣s)≥∑ℓ,ucℓ,ulog⁡2cℓ,u.

[F3]

Convergence and integrable envelope for finite-past information: the finite-past conditional entropy H2(X0∣X−k−1) tends to h.

[F4]

Expected lossless prefix-code rate for stationary sources: the optimal expected prefix-code rate tends to h.

[F5]

Finite KL nonnegativity for subprobability references: finite KL against any subprobability reference is nonnegative in bits, and ln⁡t≤t−1 for t>0.

[F6]

Finite entropy chain rule and monotonicity under conditioning: finite joint entropy satisfies the chain rule and conditioning cannot increase entropy.

Proof

Given: The stationary source, parser and code length convention.

1.1F2givenalgebra

Adjoining an unused symbol, if necessary, does not change any block probability, block entropy or entropy rate: every word containing the extra symbol has probability zero. Stationarity is retained under the coordinatewise inclusion. The resulting coding alphabet has q≥2, so the stated terminated algorithm is defined, including for an originally singleton source with h=0. Let N be the number of phrases in parsing X0n−1# over the augmented alphabet A∪{#}, and let cℓ,u count phrases of length ℓ and preceding k-symbol context u. The phrases are distinct. For r=⌊12log⁡q+1(n+1)⌋, at most ∑j=1r(q+1)j=O(n) phrases have length at most r, while longer phrases use at least r+1 symbols. Thus N=O(n/log⁡n) uniformly over input words.

2.1F2F5F6step 1.1algebra

Let P^(L=ℓ,U=u)=cℓ,u/N be the empirical law of a uniformly selected phrase. Since phrase lengths sum to n+1, EL=(n+1)/N, and U has at most qk values. If μ=EL>0, compare the finite-support law of L with the geometric weights rj=(μ+1)−1(μ/(μ+1))j, j≥0, restricted to that finite support. The restricted weights have sum at most one, so nonnegative relative entropy [F5] gives H2(L)≤−Elog⁡2rL=(μ+1)log⁡2(μ+1)−μlog⁡2μ≤log⁡2(e(μ+1)), because ln⁡(1+x)≤x for x≥0 (the derivative of x−ln⁡(1+x) is x/(1+x)≥0). The case μ=0 has H2(L)=0. Comparing U with the uniform law on its support and using [F5] gives H2(U)≤klog⁡2q; [F6] gives H2(L,U)≤H2(L)+H2(U). Since N=O(n/log⁡n), x↦xlog⁡((n+1)/x) is increasing on this range for all large n, so NH2(L,U)=O ⁣(nlog⁡log⁡nlog⁡n)+O ⁣(knlog⁡n)=o(n) for each fixed k.

3.1F1F2step 1.1step 2.1algebra

The explicit code length satisfies Ln≤N(log⁡2N+2log⁡2log⁡2(N+2)+C)+N⌈log⁡2(q+1)⌉. Since Nlog⁡2N=∑ℓ,ucℓ,ulog⁡2cℓ,u+NH2(L,U), combine [F2] with step 2.1. The Ziv inequality holds for every fixed initial context, so apply it pointwise with s=X−k−1. The index redundancy and symbol fields are o(n) uniformly for fixed k, giving Ln≤−log⁡2Qk(X0n−1#∣X−k−1)+o(n).

4.1F3step 3.1algebra

For the kernel in step 3.1 use the augmented alphabet A∪{#} and δ=1/(n+1). Define a probability row pk(⋅∣u) by the finite conditional law of X0 given X−k−1=u on positive-probability contexts and by any fixed point mass on A for zero-probability contexts. Set Qk,n(a∣u)=(1−δ)pk(a∣u) and Qk,n(#∣u)=δ; after # choose any stochastic row. Stationarity and the conditional-entropy definition give E[−log⁡2Qk,n(X0n−1#∣X−k−1)]=nH2(X0∣X−k−1)+nlog⁡211−δ+log⁡2(n+1)=nHk+O(log⁡n), since nln⁡(1+1/n)≤1. Thus [F3] and step 3.1 give lim sup⁡nELn/n≤h after k→∞.

5.1F1F4step 4.1algebra∎

By [F1], the LZ78 code is a prefix code, so its expected length is at least the optimal expected prefix-code length for that block. [F4] gives lim inf⁡nELn/n≥h. Together with step 4.1 this proves convergence to h. The proof uses stationarity but not ergodicity.

Depends on

Used by

Dependency tree · two levels

23 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