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