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