Atelier des rouesLab FR
← Experiments

Which weights have the same padding cost?

1/4 Educational or exploratory value AI-assisted literature assessment · one reading

I note the direct invariance: increasing rank width by eight adds one byte per word to the body, so the padding comparison is unchanged when the header costs depend on the word count. This is a useful simplification of the stated formulas, while Cover, Elias, and WebAssembly provide the established ranking and prefix-code context. The all-weight profiles are a finite check, not a new general coding theorem; checking that every header term is indeed width-independent 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

I compare two headers for fixed-weight 32-bit words. When do two weights have the same overhead profile?

Width (bits)
22
Residue modulo eight
6
Constant-sign runs in the band
259

Weights with the same residue · [7, 15, 16, 17, 25]