Negation and subtraction of bit strings #
Bit strings ι → Bool add coordinatewise by XOR, so every bit string is its own negative and
subtraction is addition. These are the coordinatewise forms of BooleanRing.neg_eq and
BooleanRing.sub_eq_add. The module is small, so clients can import it without the rest of the
bit-string API.
Main results #
Cslib.BitString.neg_eq_self:-x = x.Cslib.BitString.sub_eq_add:x - y = x + y.