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