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