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