Left shift of a value of type
Function:
(defun shl-sllong-sshort (x y) (declare (xargs :guard (and (sllongp x) (sshortp y) (shl-sllong-sshort-okp x y)))) (shl-sllong x (integer-from-sshort y)))
Theorem:
(defthm sllongp-of-shl-sllong-sshort (sllongp (shl-sllong-sshort x y)))
Theorem:
(defthm shl-sllong-sshort-of-sllong-fix-x (equal (shl-sllong-sshort (sllong-fix x) y) (shl-sllong-sshort x y)))
Theorem:
(defthm shl-sllong-sshort-sllong-equiv-congruence-on-x (implies (sllong-equiv x x-equiv) (equal (shl-sllong-sshort x y) (shl-sllong-sshort x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm shl-sllong-sshort-of-sshort-fix-y (equal (shl-sllong-sshort x (sshort-fix y)) (shl-sllong-sshort x y)))
Theorem:
(defthm shl-sllong-sshort-sshort-equiv-congruence-on-y (implies (sshort-equiv y y-equiv) (equal (shl-sllong-sshort x y) (shl-sllong-sshort x y-equiv))) :rule-classes :congruence)