Atelier des rouesLab FR
Register/AT.EX31.02
Proved proposition · AT.EX31.02

Identifying a format with three lengths

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

I give three length probes, 2, 4, and 33, whose sign signatures distinguish the seven reported width residues; if every probe has at most two outcomes, the counting bound makes three necessary. This is a codec-specific instance of state-identification experiments studied by Gill and later finite-state testing work, not a general result about adaptive tests. It could help identify a width class from observed sizes; the absent eighth residue and variable headers are the limiting checks.

Arthur Gill, “State-Identification Experiments in Finite Automata” · David Lee and Mihalis Yannakakis, “Testing Finite-State Machines: State Identification and Verification” · WebAssembly Core Specification, “Values”

How I rate results

Assumptions

I compare the differences at lengths 2, 4 and 33. One length query has at most two outputs because terminal padding varies from zero to seven bits.

Result

I distinguish the seven realised residues by seven signatures. With two binary queries I can distinguish at most four possibilities, even if I adapt the second. Three are necessary and sufficient.

Prior work

Cover · WebAssembly · LEB128 · Elias

Next question

I will test the eighth residue and the effect of a variable-width header.

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.