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