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