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