Fixed-width binary-reference lookup formulas -- definitions #
A lookup formula interprets a little-endian formula word as an index into a finite family of one-bit source formulas. It disjoins one equality-guarded source per index. Out-of-range words select no source and therefore evaluate to false.
This construction is deliberately formula-level: clients may name primary input wires and already-emitted gate wires uniformly before compiling the result as the next appendable raw-circuit fragment.
Evaluate a vector of bit formulas as one fixed-width word.
Equations
- Complexity.CircuitCode.FixedWidth.LookupFormula.evaluatedWord word assignment coordinate = Complexity.BoolFormula.eval assignment (word coordinate)
Instances For
Equality test between a formula word and one constant bit string.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equality-guarded source formula for one candidate index.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Select the source named by a fixed-width binary formula word. Words whose
unsigned value is outside count select no source and return false.
Equations
- One or more equations did not get rendered due to their size.