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