Check if the left shift of a value of type
Function:
(defun shl-uchar-okp (x y) (declare (xargs :guard (and (ucharp x) (integerp y)))) (shl-sint-okp (sint-from-uchar x) (ifix y)))
Theorem:
(defthm booleanp-of-shl-uchar-okp (booleanp (shl-uchar-okp x y)))
Theorem:
(defthm shl-uchar-okp-of-uchar-fix-x (equal (shl-uchar-okp (uchar-fix x) y) (shl-uchar-okp x y)))
Theorem:
(defthm shl-uchar-okp-uchar-equiv-congruence-on-x (implies (uchar-equiv x x-equiv) (equal (shl-uchar-okp x y) (shl-uchar-okp x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm shl-uchar-okp-of-ifix-y (equal (shl-uchar-okp x (ifix y)) (shl-uchar-okp x y)))
Theorem:
(defthm shl-uchar-okp-int-equiv-congruence-on-y (implies (acl2::int-equiv y y-equiv) (equal (shl-uchar-okp x y) (shl-uchar-okp x y-equiv))) :rule-classes :congruence)