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