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