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