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