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