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