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