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