Canonical encodings of Nisan--Wigderson designs -- definitions #
Every coordinate of every ordered design block is encoded in the canonical
clog_2(seedLength)-bit Fin representation. A fixed lexicographic order on
output coordinate, input coordinate, and bit position turns the entire design
into one flat bit string.
Index of one bit in the complete coordinate table of an NW design.
Equations
- Complexity.NWDesign.CoordinateBitIndex outputLength inputLength seedLength = ((Fin outputLength × Fin inputLength) × Fin (Fin.bitWidth seedLength))
Instances For
Row-major equivalence between coordinate-bit table indices and flat bit positions.
Equations
- Complexity.NWDesign.coordinateBitIndexEquiv outputLength inputLength seedLength = (finProdFinEquiv.prodCongr (Equiv.refl (Fin (Fin.bitWidth seedLength)))).trans finProdFinEquiv
Instances For
Boolean table underlying the canonical NW-design encoding.
Equations
Instances For
Canonical flat encoding of every coordinate in every ordered design block.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Decode the fixed-width coordinate at one output/input position of an encoded design. A malformed total length or an out-of-range coordinate is rejected.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Total coordinate table extracted from bits whose every coordinate decodes. The proof is erased from executable code.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Decode a canonical NW-design bit string. Besides length and coordinate-range checks, this rejects any block whose decoded coordinate map is not injective.
Equations
- One or more equations did not get rendered due to their size.
Instances For
All numeric parameters and the design needed by one uniform NW decoder
invocation. Recording inputLength explicitly lets a parser recover the raw
coordinate-table dimensions without evaluating a code-family function.
- messageLength : ℕ
Source-message length used by the list-code family.
- inverseAccuracy : ℕ
Inverse list-decoding accuracy.
- outputLength : ℕ
Number of NW output coordinates.
- inputLength : ℕ
Number of seed coordinates read by each design block.
- seedLength : ℕ
Total NW seed length.
- design : NWDesign self.outputLength self.inputLength self.seedLength
The parameterized NW design.
Instances For
Canonical self-describing encoding of a uniform-decoder instance. Five framed minimal binary naturals precede the fixed-width design table.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Parse a self-describing uniform-decoder instance, rejecting noncanonical natural codes, malformed pair boundaries, and invalid design tables.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Package a design with the two list-code parameters needed by a uniform decoder.
Equations
- One or more equations did not get rendered due to their size.