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