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