Canonical codec for Nisan--Wigderson designs #
The complete ordered coordinate table is encoded injectively using exactly
outputLength * inputLength * clog_2(seedLength) bits. The executable decoder
rejects malformed lengths, out-of-range coordinates, and noninjective blocks,
round-trips every valid design, and accepts only that design's canonical
encoding. A nested self-delimiting wrapper also records all numeric parameters
needed by one uniform list-decoder invocation.
Canonical NW-design encoding has the exact rectangular coordinate-table length.
Canonical NW-design encoding is injective.
Decoding one coordinate from an encoded design recovers it exactly.
The decoder rejects every string whose total length is malformed, including when the design has no output or input coordinates.
Decoding yields a given design exactly on its canonical encoding.
A self-describing decoder instance has the exact cost of five framed minimal binary parameters followed by the raw coordinate table.
The self-describing instance decoder round-trips every valid instance.
Self-describing decoder-instance encoding is injective.