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