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