Native modular inner-product generation #
Unary array count and word width generate all block selectors, complete product circuits and the balanced sum. Binary wire numbers and every generated code list are charged.
Main results #
Cslib.Circuits.Boolean.Modular.innerProductCode_eq_code: exact raw and typed code agreement.Cslib.Circuits.Boolean.Modular.computableInPolyTime_innerProduct: native generation.
Gate-for-gate agreement includes empty arrays and zero-width words.
The full constructor is uniform in unary count and width.