Packed gate extensions for Cook–Mertz #
Bit strings are grouped into chunks and embedded in a finite field, so one register coordinate can hold several bits. A final partial chunk is zero-padded. The gate extension interpolates on the chunk alphabet rather than separately on each bit.
This is the algebraic packing step of [Wil25], Appendix A, equation (6). The field may
have arbitrary characteristic: signed recursive calls and unit sums replace the source's
characteristic-two cancellations. With r chunks and alphabet H, the strict degree condition
is d * r * (|H| - 1) < |K| - 1.
Main definitions #
Cslib.TreeEval.Ary.Packed.packBits,Cslib.TreeEval.Ary.Packed.unpackBits: packing and decoding a bit string, allowing a final partial chunk.Cslib.TreeEval.Ary.Packed.gateExtension: interpolation on the packed alphabet.
Main results #
Cslib.TreeEval.Ary.Packed.unpackBits_packBits: decoding recovers the original bits.Cslib.TreeEval.Ary.Packed.sum_units_gateExtension: packed gates satisfy unmasking.Cslib.TreeEval.Ary.Packed.procWith_gateExtension_eq: packed procedure correctness.
Scope #
The results here establish algebraic correctness only. They do not certify native packing, implicit gate queries, the refined space bound, or Williams's time-to-space simulation.
Extend a Boolean gate after encoding each value in r alphabet symbols. On symbols outside
the encoding's image, the caller's decoder determines a total table.
On encoded child values the gate extension agrees with the encoded gate output.
Packed interpolation satisfies the signed unmasking law needed by Cook–Mertz, with only
d*r field coordinates and degree at most d*r*(|H|-1).
The Cook–Mertz procedure on packed registers adds the encoded root value and restores every other register. The representation need only have a left inverse, so a partial last chunk is allowed. This is an algebraic specification, without a native-machine space claim.