Alphabeta Math
TheoremStatement: Literature-sourcedProof: AI-adaptedverified 2026-09-26 (gpt-6-sol)
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 D⊆{0,1}∗ is prefix-free, then ∑p∈D2−∣p∣≤1. Conversely, a computably enumerable request list (xi,ni) with ∑i2−ni≤1 has an effective prefix-free allocation of codewords of lengths ni.

Proof

Given: a prefix-free set or a Kraft-bounded request list.

1.1given

At depth N, a word p excludes exactly 2N−∣p∣ leaves; prefix-freeness makes these excluded sets disjoint. Divide their total by 2N and let N grow to obtain the inequality.

1.2givenconstructalgebra

For requests, maintain a finite prefix-free set F of free tree nodes, initially F={ε} 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 ∑σ∈F2−∣σ∣=1−∑i already allocated2−ni. For the next request of length n, this capacity is at least 2−n by the bound on the entire request list. If every node of F had length greater than n, distinctness of the lengths would make its capacity at most ∑j>n2−j=2−n, with strict inequality because F is finite. Therefore F contains a node of length at most n. Choose the one σ of greatest such length m; it is unique because the free-node lengths are distinct.

2.1step 1.2constructinduction∎

Remove σ from F. Allocate the descendant σ0n−m as the requested codeword, and insert the siblings σ0j1 for 0≤j<n−m into F. Their depths are m+1,…,n; no existing free node has one of these depths, by maximality of m among depths at most n. 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 F. 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 n=0.

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