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