Explicit finite binary encodings #
Routing keys need a logarithmic-width representation of finite group indices and the existing basis-bit representation of affine-space points. These are plain encoding functions with ordinary injectivity hypotheses; no serializer or finite-enumeration instances are introduced.
Little-endian width-bit representation of a bounded natural index.
Equations
- Algebraic.MassProduction.finiteIndexBits width value bit = (↑value).testBit ↑bit
Instances For
The fixed-width representation is injective whenever its numeric range contains every source index.
Row-major fixed-basis bits determine a binary-extension-field vector.
Explicit matching key for a (group, affine point) resource slot.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Group bits followed by field-coordinate bits form an injective slot key.
Canonical lexicographic enumeration of all fixed-width keys #
The increasing enumeration of all Boolean bit vectors in lexicographic order. This is noncomputable metadata used to assign fixed resource-slot wires; it is not evaluated by the circuit.
Equations
- Algebraic.MassProduction.lexBitVectorOrderIso width = monoEquivOfFin (Lex (Fin width → Bool)) ⋯
Instances For
Bit vector at one canonical lexicographic position.
Equations
- Algebraic.MassProduction.lexBitVectorAt position = ofLex ((Algebraic.MassProduction.lexBitVectorOrderIso width) position)
Instances For
Canonical lexicographic position of a bit vector.