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