Assumptions
For weight-four blocks of 64 I set b=⌈n/64⌉ and ℓ=bit_length(n). The last byte has p=(−1−5b) mod 8 unused bits. I compare ⌈(2ℓ−1−p)/8⌉ with ⌈ℓ/7⌉.
Result
I reproduce the exact excess on 65,536 lengths and all 353 sign intervals in the benchmark.
Prior work
Cover · WebAssembly · LEB128 · Elias
Next question
I will test the calculation at another weight against an actual encoded stream.
Read the argument and prior work · View supporting evidence