Left shift of a value of type
Function:
(defun shl-ushort-ullong (x y) (declare (xargs :guard (and (ushortp x) (ullongp y) (shl-ushort-ullong-okp x y)))) (shl-ushort x (integer-from-ullong y)))
Theorem:
(defthm sintp-of-shl-ushort-ullong (sintp (shl-ushort-ullong x y)))
Theorem:
(defthm shl-ushort-ullong-of-ushort-fix-x (equal (shl-ushort-ullong (ushort-fix x) y) (shl-ushort-ullong x y)))
Theorem:
(defthm shl-ushort-ullong-ushort-equiv-congruence-on-x (implies (ushort-equiv x x-equiv) (equal (shl-ushort-ullong x y) (shl-ushort-ullong x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm shl-ushort-ullong-of-ullong-fix-y (equal (shl-ushort-ullong x (ullong-fix y)) (shl-ushort-ullong x y)))
Theorem:
(defthm shl-ushort-ullong-ullong-equiv-congruence-on-y (implies (ullong-equiv y y-equiv) (equal (shl-ushort-ullong x y) (shl-ushort-ullong x y-equiv))) :rule-classes :congruence)