Counter implementation of packed gate extensions #
The existing finite-grid gate extension is computed by the counter-based interpolation loop. A table query decodes one assignment index, calls the Boolean gate and encodes one output chunk. This connects the packed algebra to the gate update of the iterative controller, without constructing a truth table or a polynomial representation at runtime.
Main definitions #
Cslib.TreeEval.Ary.Packed.counterGateExtension: the counter-based gate extension.
Main results #
Cslib.TreeEval.Ary.Packed.counterGateExtension_eq: equality withgateExtensionfor an alphabet embedded by unsigned casts in a prime field.
This is functional correctness of the inner loop. Native gate queries and their composition with the caller's original input still require a separate resource certificate.
Compute one chunk of a gate extension using the finite-grid counter loops. The point and one requested table value are passed to the arithmetic loop; no table is materialized.
The counter loop computes the same packed extension as the existing low-degree algebra. The full alphabet, not only the encoded values, must embed in the selected field.