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