Atelier des rouesLab FR
Register/AT.EX27.02
Controlled experiment · AT.EX27.02

Prefix cost at weight five

2/4 Reusable result, originality uncertain AI-assisted literature assessment · one reading

I report 18-bit fixed-weight ranks, a body-size formula, 17,750 sign runs, and sample lengths at which the two prefix choices change cost; the listed wire checks make this a bounded, reusable artifact. Cover’s enumerative coding supplies the ranking framework, while Elias gamma and WebAssembly LEB128 specify the compared length codes. The record does not prove the run count beyond the finite range or give a general selection rule; extending the wire check past the first transitions is the limiting test.

Thomas M. Cover, “Enumerative Source Encoding” · Peter Elias, “Universal Codeword Sets and Representations of the Integers” · WebAssembly Core Specification, “Values”

How I rate results

Assumptions

For n 32-bit words of weight five I need 18 rank bits per word. My payload contains B=1+13⌈n/64⌉+18n bits. I compare the gamma prefix packed with the payload against a byte-aligned prefix.

Result

I count 17,750 sign intervals between 1 and 65,536 words. The two encoded streams decode to the same words at the first eight transitions.

Prior work

Cover · WebAssembly · LEB128 · Elias

Next question

I will seek a periodic block rule for counting sign changes.

Read the argument and prior work · View supporting evidence

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.