Library Stdlib.ZArith.Zbitwise
Bitwise operations alone
Bitwise complement and +1/-1
Bitwise complement as an input to + or -
Explicit formulas for carry bits during addition. Conceptually, the theory
here matches the bitblasting rules for integers. However, the vector of
carry bits is represented as a Z so it can be used in bitwise operations.
The last three lemmas about addcarries are the main interface, but the
generalization adccarries is provided as the same theory applies.
Bitwise operations, addition, and subtraction
Bitwise operations, addition, subtraction, and doubling