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