Check if the subtraction of a value of type
Function:
(defun sub-uchar-uchar-okp (x y) (declare (xargs :guard (and (ucharp x) (ucharp y)))) (sub-sint-sint-okp (sint-from-uchar x) (sint-from-uchar y)))
Theorem:
(defthm booleanp-of-sub-uchar-uchar-okp (booleanp (sub-uchar-uchar-okp x y)))
Theorem:
(defthm sub-uchar-uchar-okp-of-uchar-fix-x (equal (sub-uchar-uchar-okp (uchar-fix x) y) (sub-uchar-uchar-okp x y)))
Theorem:
(defthm sub-uchar-uchar-okp-uchar-equiv-congruence-on-x (implies (uchar-equiv x x-equiv) (equal (sub-uchar-uchar-okp x y) (sub-uchar-uchar-okp x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm sub-uchar-uchar-okp-of-uchar-fix-y (equal (sub-uchar-uchar-okp x (uchar-fix y)) (sub-uchar-uchar-okp x y)))
Theorem:
(defthm sub-uchar-uchar-okp-uchar-equiv-congruence-on-y (implies (uchar-equiv y y-equiv) (equal (sub-uchar-uchar-okp x y) (sub-uchar-uchar-okp x y-equiv))) :rule-classes :congruence)