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