The binary inner-product language #
An even-length word belongs to Cslib.Language.innerProduct exactly when the inner product
modulo two of its first and second halves is one. The alphabet is binary and there is no
delimiter. The empty word and every odd-length word are rejected.
The fixed-width interface ofFn_append_mem_innerProduct_iff recovers the existing bit-string
inner product from the language parser. Splitting each half into two blocks decomposes its value
as the XOR of the corresponding block inner products. This interface includes zero-width
blocks and zero padding as special cases.
Main definitions #
Cslib.Language.innerProduct: the unmarked binary inner-product language.
Main results #
Cslib.Language.ofFn_blocks_mem_innerProduct_iff: the two block pairs contribute by XOR.
Even-length binary words whose two halves have inner product one modulo two. No separator is present; the empty word and all odd-length words are outside the language.
@[instance_reducible]