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