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