Unary minus of a value of type
Function:
(defun minus-uchar (x) (declare (xargs :guard (and (ucharp x) (minus-uchar-okp x)))) (minus-sint (sint-from-uchar x)))
Theorem:
(defthm sintp-of-minus-uchar (sintp (minus-uchar x)))
Theorem:
(defthm minus-uchar-of-uchar-fix-x (equal (minus-uchar (uchar-fix x)) (minus-uchar x)))
Theorem:
(defthm minus-uchar-uchar-equiv-congruence-on-x (implies (uchar-equiv x x-equiv) (equal (minus-uchar x) (minus-uchar x-equiv))) :rule-classes :congruence)