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