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 of size , an integer , a word (with denoting the empty word when ), and a terminator not in . Fix an injective -bit symbol field for . 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.
-
Start with dictionary and unread text . While text remains, let be the longest dictionary word prefixing the unread text, let be its dictionary index, and let be the next symbol. Output the record and remove the prefix from the unread text. If , append as the next dictionary entry; if , stop without inserting the terminal phrase.
-
Serialize each parent index by the Elias-delta code of . Put and . Emit zeros, then the -bit binary expansion of , then the final bits of the -bit binary expansion of . Append the fixed-width symbol field for . Concatenate these records in parser order, including the final marker record.
-
To decode an encoded block, start with dictionary . Count the leading zeros before the first of an index header as and set . Read the following bits; together with that first , these are the -bit binary expansion of . Read the next bits and prepend to recover ; put . Read the next bits as , and emit . Append that phrase to the dictionary when , then read the next record. At the first , 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
- Stanford EE376C, Lempel-Ziv Compression lecture notes (standard reference, not scraped)