Left shift of a value of type
Function:
(defun shl-slong (x y) (declare (xargs :guard (and (slongp x) (integerp y) (shl-slong-okp x y)))) (slong-from-integer (* (integer-from-slong x) (expt 2 (ifix y)))))
Theorem:
(defthm slongp-of-shl-slong (slongp (shl-slong x y)))
Theorem:
(defthm shl-slong-of-slong-fix-x (equal (shl-slong (slong-fix x) y) (shl-slong x y)))
Theorem:
(defthm shl-slong-slong-equiv-congruence-on-x (implies (slong-equiv x x-equiv) (equal (shl-slong x y) (shl-slong x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm shl-slong-of-ifix-y (equal (shl-slong x (ifix y)) (shl-slong x y)))
Theorem:
(defthm shl-slong-int-equiv-congruence-on-y (implies (acl2::int-equiv y y-equiv) (equal (shl-slong x y) (shl-slong x y-equiv))) :rule-classes :congruence)