Logical complement of a value of type
Function:
(defun lognot-ullong (x) (declare (xargs :guard (and (ullongp x)))) (sint-from-boolean (= (integer-from-ullong x) 0)))
Theorem:
(defthm sintp-of-lognot-ullong (sintp (lognot-ullong x)))
Theorem:
(defthm lognot-ullong-of-ullong-fix-x (equal (lognot-ullong (ullong-fix x)) (lognot-ullong x)))
Theorem:
(defthm lognot-ullong-ullong-equiv-congruence-on-x (implies (ullong-equiv x x-equiv) (equal (lognot-ullong x) (lognot-ullong x-equiv))) :rule-classes :congruence)