Bitwise complement of a value of type
Function:
(defun bitnot-slong (x) (declare (xargs :guard (and (slongp x)))) (slong-from-integer (lognot (integer-from-slong x))))
Theorem:
(defthm slongp-of-bitnot-slong (slongp (bitnot-slong x)))
Theorem:
(defthm bitnot-slong-of-slong-fix-x (equal (bitnot-slong (slong-fix x)) (bitnot-slong x)))
Theorem:
(defthm bitnot-slong-slong-equiv-congruence-on-x (implies (slong-equiv x x-equiv) (equal (bitnot-slong x) (bitnot-slong x-equiv))) :rule-classes :congruence)