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