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