Alphabeta Math
AlgorithmAlgorithm: AI-adaptedProof: Not applicablePipeline-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.

Finite-block LZ78 incremental prefix code

Definition

Input: A finite alphabet A of size q≥2, an integer n≥0, a word x0n−1∈An (with x0−1 denoting the empty word when n=0), and a terminator # not in A. Fix an injective sq:=⌈log⁡2(q+1)⌉-bit symbol field for A∪{#}. The alphabet convention is that of Finite-alphabet stationary source. Output, when the procedure terminates: a finite terminated binary record stream; prefix codes use Binary prefix codes on finite supports.

  1. Start with dictionary D[0]=ϵ and unread text x0n−1#. While text remains, let w be the longest dictionary word prefixing the unread text, let i be its dictionary index, and let c be the next symbol. Output the record (i,c) and remove the prefix wc from the unread text. If c≠#, append wc as the next dictionary entry; if c=#, stop without inserting the terminal phrase.

  2. Serialize each parent index i≥0 by the Elias-delta code of m=i+1. Put b=⌊log⁡2m⌋+1 and d=⌊log⁡2b⌋+1. Emit d−1 zeros, then the d-bit binary expansion of b, then the final b−1 bits of the b-bit binary expansion of m. Append the fixed-width symbol field for c. Concatenate these records in parser order, including the final marker record.

  3. To decode an encoded block, start with dictionary D[0]=ϵ. Count the leading zeros before the first 1 of an index header as z and set d=z+1. Read the following d−1 bits; together with that first 1, these are the d-bit binary expansion of b. Read the next b−1 bits and prepend 1 to recover m; put i=m−1. Read the next sq bits as c, and emit D[i]c. Append that phrase to the dictionary when c≠#, then read the next record. At the first c=#, stop without insertion and remove the terminal marker from the decoded text. The decoder is specified on valid encoded streams and is not supplied the source length or record count.

Ordinary inserted phrases are dictionary entries; the final phrase containing # is an output record but is not a dictionary entry. Termination, distinctness of ordinary complete phrases, losslessness, the prefix property and the exact index-length bound are proved in Losslessness and prefix property of the explicit LZ78 code ↗.

Depends on

Used by

Dependency tree · two levels

4 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