Check if the left shift of a value of type
Function:
(defun shl-uint-okp (x y) (declare (xargs :guard (and (uintp x) (integerp y)))) (integer-range-p 0 (int-bits) (ifix y)))
Theorem:
(defthm booleanp-of-shl-uint-okp (booleanp (shl-uint-okp x y)))
Theorem:
(defthm shl-uint-okp-of-uint-fix-x (equal (shl-uint-okp (uint-fix x) y) (shl-uint-okp x y)))
Theorem:
(defthm shl-uint-okp-uint-equiv-congruence-on-x (implies (uint-equiv x x-equiv) (equal (shl-uint-okp x y) (shl-uint-okp x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm shl-uint-okp-of-ifix-y (equal (shl-uint-okp x (ifix y)) (shl-uint-okp x y)))
Theorem:
(defthm shl-uint-okp-int-equiv-congruence-on-y (implies (acl2::int-equiv y y-equiv) (equal (shl-uint-okp x y) (shl-uint-okp x y-equiv))) :rule-classes :congruence)