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