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