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

When the gamma prefix loses a byte

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

I treat 4096 and 32 as exact crossover observations for these two body profiles, not thresholds for Elias gamma versus LEB128 in general. The literature supplies the integer codes; this result concerns profile-specific byte rounding. A boundary test suite could use it, but no closed-form interval argument is given, so the first-crossing claim remains tied to the reported finite scan.

Peter Elias, Universal Codeword Sets and Representations of the Integers · WebAssembly Core Specification, Values

How I rate results

Assumptions

I keep the same body and compare a positive count in gamma packed with the useful bits or in byte-aligned base 128. I count every length from one and decode all four boundary streams.

Result

I find the first loss at word 4,096 for alternating weights 16 and 15, and at word 32 for constant weight 4. Gamma then costs exactly one extra byte.

Prior work

Cover · WebAssembly · LEB128 · Elias

Next question

I will determine over which intervals the extra byte persists.

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.