Alphabeta Math
AlgorithmAlgorithm: Literature-sourcedProof: Not applicablePipeline-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.

Exact finite-register arithmetic coding for rational block sources

Definition

Configuration and frame model. The shared model consists of positive integers q1,…,qm, their total Q=∑iqi, the rational source pi=qi/Q, and a maximum frame length N≥1. Fix a frame length n with 1≤n≤N. At configuration time compute P=QN by N successive multiplications, then initialize B=0 and T=1 and repeat B←B+1, T←2T while T<P. The resulting B is the least integer b≥0 with QN≤2b; it is fixed for every frame using this configuration. Every frame is exactly one n-symbol block; the decoder knows q1,…,qm,Q,N,n. A complete stream contains a specified finite number R of such frames, supplied by an outer frame count. The arithmetic coder adds no end marker.

Register size. With B fixed by the configuration above, Endpoint, width, frequency, and cumulative-frequency registers have B+1 bits; the output index has at most B+2 bits. One 2B+4-bit temporary register stores intermediate products, numerators, denominators, and sums. The symbol-position counter uses ⌈log⁡2(N+1)⌉ bits and the range/output-length counter uses ⌈log⁡2(B+3)⌉ bits. All arithmetic is exact integer addition, multiplication, comparison, and floor division; no floating-point rounding or register growth during a frame is allowed.

Encoder. Put ci=∑j<iqj and D=Qn. For an input block xn=(x1,…,xn), initialize L=0 and W=1. For t=1,…,n, set r=n−t and update L←L+WcxtQr,W←Wqxt. After the n updates, search the finite list j=0,…,B and retain the largest u satisfying 2uW≤D. Set s=u+2 and k=⌊2s(2L+W)2D⌋. Emit the s-bit binary representation of k, padded on the left with zeros; its dyadic cell is Js,k from Ideal-real arithmetic interval coding for a fixed block.

Decoder. For fixed n, generate the finite codebook by applying the encoder to every block in [m]n and build its binary trie. For one frame, read payload bits along this trie until a leaf is reached and return its block; reject an invalid path or a path not reaching a leaf within B+2 bits. For a stream, repeat this operation exactly R times and then stop. The next theorem proves that the generated codebook is prefix-free and that every encoded frame reaches exactly one leaf.

The configured register widths are finite for each fixed rational model and cap N. They grow when a new configuration with a larger N or Q is installed; no constant-word-width streaming guarantee is claimed.

Depends on

Used by

Dependency tree · two levels

9 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