Splitting a bit string into two halves #
An n-bit string splits into its first n / 2 bits and its remaining n - n / 2 bits. For odd
n the second part is one bit longer than the first, so the split applies to every block length.
Main definitions #
Cslib.BitString.halfSplitEquiv: the equivalenceBitString n ≃ BitString (n / 2) × BitString (n - n / 2).