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