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