Documentation

CslibFrontier.Computability.Languages.InnerProduct

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 #

Main results #

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.

On two equal-width bit strings, the language parser agrees with their inner product.

Splitting both halves at the same position decomposes membership into the XOR of the two corresponding block inner products. This includes zero-width blocks.