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