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