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