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.
Kraft inequality and effective prefix-code allocation
Statement
If is prefix-free, then . Conversely, a computably enumerable request list with has an effective prefix-free allocation of codewords of lengths .
Proof
Given: a prefix-free set or a Kraft-bounded request list.
At depth , a word excludes exactly leaves; prefix-freeness makes these excluded sets disjoint. Divide their total by and let grow to obtain the inequality.
For requests, maintain a finite prefix-free set of free tree nodes, initially for the empty word . Require that its nodes have pairwise distinct lengths and that their cylinders are exactly the unallocated part of the binary tree. After finitely many requests, the total free capacity is . For the next request of length , this capacity is at least by the bound on the entire request list. If every node of had length greater than , distinctness of the lengths would make its capacity at most , with strict inequality because is finite. Therefore contains a node of length at most . Choose the one of greatest such length ; it is unique because the free-node lengths are distinct.
Remove from . Allocate the descendant as the requested codeword, and insert the siblings for into . Their depths are ; no existing free node has one of these depths, by maximality of among depths at most . The new free nodes are prefix-free and partition exactly the part of outside the allocated cylinder, so both invariants and the capacity identity persist. Each step is a finite computable operation on the current finite set . Processing the computable enumeration in order therefore gives distinct codewords of the requested lengths and a prefix-free effective allocation, including the empty-word case .
Depends on
Used by
Dependency tree · two levels
2 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
- Simpson, §6.3 (standard reference, not scraped)