Alphabeta Math
Pipeline-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.

Stationary Ergodic Sources and Universal Coding — Examples

1 · Prerequisites

2 · Summary

The examples use the same bit convention as the A page and state every input law. The LZ78 trace appends a visible terminal marker and distinguishes dictionary nodes from the noninserted final marker phrase.

Source trail

  • Robert M. Gray, Entropy and Information Theory, corrected edition (source), Ch. 8 §§8.2–8.4, printed pp.153–164: stationary, componentwise, and AMS entropy theorem proofs; Ch. 11 §§11.2, 11.4 for source coding.
  • Robert M. Gray, Probability, Random Processes, and Ergodic Properties (source), §6.3, printed pp.130–132: AMS stationary-mean asymptotic domination, the RN decomposition estimate, and null future-tail transfer.
  • Paul H. Algoet and Thomas M. Cover, “A Sandwich Proof of the Shannon–McMillan–Breiman Theorem,” Annals of Probability 16 (1988), 899–909 (source), Theorem 4, PDF pp.8–9: generalized AEP for AMS sources by likelihood-ratio sandwich.
  • Thomas M. Cover and Joy A. Thomas, Elements of Information Theory, 2nd ed. (source), Ch. 2 source coding and prefix bounds; Ch. 13 §§13.4–13.5, printed pp.440–456: LZ78, Ziv inequality, finite-state bound, and LZ77 recurrence coding.
  • MIT OpenCourseWare 6.441, Chapter 8: Compressing Stationary Ergodic Sources (source), §8.2, PDF pp.93–95: full finite-order Markov approximation proof of stationary ergodic SMB.
  • Stanford EE376C, Lempel-Ziv Compression lecture notes (source), §§1.3–1.5, PDF pp.4–9: LZ78 Ziv inequality and expected universality proof; finite-state and LZ77 theorem statements.
  • Satyadev Nandakumar, IIT Kanpur LZ78 lecture transcription (2014) (source), §§1.3–1.5, PDF pp.4–9: individual-sequence LZ78 bound and finite-state optimality argument.
  • Northeastern University, Lempel–Ziv Lecture 3–4 (source), Definition and theorem statement for greedy LZ77 phrase lengths; proof is not supplied in these notes.
  • A. D. Wyner and J. Ziv, “Some asymptotic properties of the entropy of a stationary ergodic data source with applications to data compression,” IEEE Trans. Information Theory 35 (1989), 1250–1258 (source), This is retained as primary attribution only: its full text was unavailable and is not claimed as inspected or used as proof support. The A-page source trail records the inspected alternative full proof in Kontoyiannis’s dissertation, Chapter 3 §§3.1–3.2, Theorem 3.1 and Corollary 3.1(a), and the complete local recurrence proof. No unresolved proof hold is inferred from the unavailable primary article.

3 · Logical flowchart

4 · Definitions, theorems and proofs

None yet.

5 · Examples, counterexamples and false statements

ExampleConstruction: AI-adaptedVerification: AI-generatedOpen item page →

A nonstationary independent source with no entropy-rate limit

Example

Constructs independent binary coordinates whose block entropy per symbol has subsequences tending to zero and one by alternating super-exponentially long deterministic and fair-coin blocks.

Facts & Assumptions

Given: Independent binary variables (Xj)j≥0 and finite-block entropy as in Finite-block information and entropy in bits.

[F1]

Finite-block information and entropy in bits: entropy is computed from the finite joint law.

[F2]

Information rate of a general finite-alphabet process: a general process need not be stationary, and its block information rate is defined by the limit of Hn/n when it exists.

Verification

Given: The independent coordinates and block convention below.

1.1F1givenalgebra

Partition the coordinates into consecutive blocks of lengths Lj=22j for j≥1. In odd-numbered blocks set Xi=0 deterministically; in even-numbered blocks let the Xi be fair independent bits. Independence gives the block law p0:N−1(x0N−1)=∏i=0N−1pi(xi). Expanding its finite entropy sum over positive-probability words and using log⁡2∏ipi(xi)=∑ilog⁡2pi(xi) yields H(X0N−1)=∑i=0N−1H(Xi), since each other coordinate probability sums to one. Thus the entropy contribution is zero on odd blocks and one bit per coordinate on even blocks.

2.1F2step 1.1algebra∎

Let Nj=∑r=1jLr be the endpoint of block j. For j≥2, ∑r<jLr≤(j−1)22j−1, so Lj∑r<jLr≥22j−1j−1⟶∞. Thus the previous blocks contribute a vanishing fraction of Nj. Therefore H(X0Nj−1)/Nj→0 along odd j and tends to 1 along even j. The block entropy per symbol has no limit, so the process has no entropy rate in the sense of [F2].

ExampleConstruction: AI-adaptedVerification: AI-generatedOpen item page →

LZ78 parsing of a finite binary word

Example

Traces the specified parser and decoder on 0100101001 followed by the explicit terminal symbol, including dictionary indices and exact record sequence.

Facts & Assumptions

Given: The LZ78 parser of Finite-block LZ78 incremental prefix code, input 0100101001, and terminal symbol #.

[F1]

Finite-block LZ78 incremental prefix code: output (i,c) appends dictionary word D[i]c; the terminator stops parsing and is not added.

[F2]

Losslessness and prefix property of the explicit LZ78 code: the explicit records decode uniquely, with the terminator ending the codeword.

Verification

Given: The input string, empty root dictionary D[0]=ϵ, and conventions [F1]–[F2].

1.1F1givenalgebra

Applying the longest-dictionary-prefix rule successively gives phrases 0,1,00,10,100,1#. The records are respectively (0,0),(0,1),(1,0),(2,0),(4,0),(2,#); after the first five records the dictionary indices 1 through 5 name 0,1,00,10,100. The sixth record terminates without insertion.

2.1F1step 1.1construct

The dictionary trie has root index 0, edges 0 and 1 to nodes 1 and 2, then edge 0 from node 1 to node 3, edge 0 from node 2 to node 4, and edge 0 from node 4 to node 5. The dashed edge marked # from node 2 is the final output phrase only; it is not a dictionary node. Each node label gives its dictionary index and phrase; each edge label is the symbol appended to the parent's phrase, and the root phrase is empty. The diagram's ordinary nodes are exactly the phrases inserted after the first five records; the terminal edge is drawn dashed because [F1] does not insert it.

3.1F1F2step 1.1step 2.1algebra∎

Starting with the root, the decoder expands the listed records to the same six phrases; concatenating them yields 0100101001#. It stops at #, so deleting the marker recovers the input exactly, as guaranteed by [F2].

Remarks

Diagram

The trie uses the dictionary indices and appended-symbol edges described in the verification; the dashed terminal edge is output only.

diagram failed to render:
\begin{tikzpicture}[every node/.style={draw,circle,inner sep=2pt},>=stealth]
\node (r) at (0,0) {$0:\epsilon$};
\node (a) at (-2,-1) {$1:0$};
\node (b) at (2,-1) {$2:1$};
\node (aa) at (-2,-2) {$3:00$};
\node (ba) at (2,-2) {$4:10$};
\node (baa) at (2,-3) {$5:100$};
\node[draw=none,rectangle] (end) at (4,-2) {$1\#: \text{output only}$};
\draw (r)--node[above left,draw=none] {$0$}(a);
\draw (r)--node[above right,draw=none] {$1$}(b);
\draw (a)--node[left,draw=none] {$0$}(aa);
\draw (b)--node[right,draw=none] {$0$}(ba);
\draw (ba)--node[right,draw=none] {$0$}(baa);
\draw[dashed,->] (b)--node[above,draw=none] {$\#$}(end);
\end{tikzpicture}
ExampleConstruction: AI-adaptedVerification: AI-generatedOpen item page →

IID and two-state Markov entropy rates

Example

Computes h=1 bit/symbol for fair IID bits and h=H2(1/4) for the stationary symmetric two-state Markov source with switch probability 1/4; compares the stationary LZ78 expected rates.

Facts & Assumptions

Given: A fair IID binary source and a stationary symmetric binary Markov source with switch probability 1/4.

[F1]

Finite-alphabet stationary source: stationarity means invariance under the shift on the path law.

[F2]

Finite-block information and entropy in bits: Hn is the finite-block Shannon entropy.

[F3]

Entropy-rate limit for a stationary finite-alphabet source: for a stationary finite-alphabet source, Hn/n→h.

[F4]

LZ78 expected-rate universality for stationary sources: the expected explicit LZ78 rate converges to the stationary entropy rate without ergodicity.

Verification

Given: Both source laws and [F1]–[F4].

1.1F1F2F4givenalgebra

For fair IID bits, every length-n word has probability 2−n; hence Hn=n and h=1 bit per symbol. The shift is stationary by product-law invariance, and [F4] gives expected LZ78 rate tending to one.

1.2F1F2F3F4algebra

For the Markov source, take stationary law π=(1/2,1/2) and transition matrix K with diagonal entries 3/4 and off-diagonal entries 1/4; direct multiplication gives πK=π. Its length-n block probabilities are P(X0n−1=x0n−1)=12∏i=1n−1Kxi−1,xi. Expanding the finite entropy sum with this factorization gives Hn=H(X0)+∑i=1n−1H(Xi∣Xi−1)=1+(n−1)H2(1/4), where H2(p)=−plog⁡2p−(1−p)log⁡2(1−p). Thus h=H2(1/4)≈0.811278. The stationary LZ78 expected-rate theorem [F4] gives the same limiting rate without an ergodicity assumption.

2.1F2step 1.1step 1.2algebra∎

The distinct rates arise because IID entropy counts each bit without context, while the Markov transition entropy conditions on the previous state. Both examples have positive entropy, and the computed limits are consistent with 0≤h≤1.

Sources