Addition of a value of type
Function:
(defun add-slong-sshort (x y) (declare (xargs :guard (and (slongp x) (sshortp y) (add-slong-sshort-okp x y)))) (add-slong-slong x (slong-from-sshort y)))
Theorem:
(defthm slongp-of-add-slong-sshort (slongp (add-slong-sshort x y)))
Theorem:
(defthm add-slong-sshort-of-slong-fix-x (equal (add-slong-sshort (slong-fix x) y) (add-slong-sshort x y)))
Theorem:
(defthm add-slong-sshort-slong-equiv-congruence-on-x (implies (slong-equiv x x-equiv) (equal (add-slong-sshort x y) (add-slong-sshort x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm add-slong-sshort-of-sshort-fix-y (equal (add-slong-sshort x (sshort-fix y)) (add-slong-sshort x y)))
Theorem:
(defthm add-slong-sshort-sshort-equiv-congruence-on-y (implies (sshort-equiv y y-equiv) (equal (add-slong-sshort x y) (add-slong-sshort x y-equiv))) :rule-classes :congruence)