Left shift of a value of type
Function:
(defun shl-sllong-slong (x y) (declare (xargs :guard (and (sllongp x) (slongp y) (shl-sllong-slong-okp x y)))) (shl-sllong x (integer-from-slong y)))
Theorem:
(defthm sllongp-of-shl-sllong-slong (sllongp (shl-sllong-slong x y)))
Theorem:
(defthm shl-sllong-slong-of-sllong-fix-x (equal (shl-sllong-slong (sllong-fix x) y) (shl-sllong-slong x y)))
Theorem:
(defthm shl-sllong-slong-sllong-equiv-congruence-on-x (implies (sllong-equiv x x-equiv) (equal (shl-sllong-slong x y) (shl-sllong-slong x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm shl-sllong-slong-of-slong-fix-y (equal (shl-sllong-slong x (slong-fix y)) (shl-sllong-slong x y)))
Theorem:
(defthm shl-sllong-slong-slong-equiv-congruence-on-y (implies (slong-equiv y y-equiv) (equal (shl-sllong-slong x y) (shl-sllong-slong x y-equiv))) :rule-classes :congruence)