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