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