Bitwise exclusive disjunction of a value of type
Function:
(defun bitxor-sllong-ushort (x y) (declare (xargs :guard (and (sllongp x) (ushortp y)))) (bitxor-sllong-sllong x (sllong-from-ushort y)))
Theorem:
(defthm sllongp-of-bitxor-sllong-ushort (sllongp (bitxor-sllong-ushort x y)))
Theorem:
(defthm bitxor-sllong-ushort-of-sllong-fix-x (equal (bitxor-sllong-ushort (sllong-fix x) y) (bitxor-sllong-ushort x y)))
Theorem:
(defthm bitxor-sllong-ushort-sllong-equiv-congruence-on-x (implies (sllong-equiv x x-equiv) (equal (bitxor-sllong-ushort x y) (bitxor-sllong-ushort x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm bitxor-sllong-ushort-of-ushort-fix-y (equal (bitxor-sllong-ushort x (ushort-fix y)) (bitxor-sllong-ushort x y)))
Theorem:
(defthm bitxor-sllong-ushort-ushort-equiv-congruence-on-y (implies (ushort-equiv y y-equiv) (equal (bitxor-sllong-ushort x y) (bitxor-sllong-ushort x y-equiv))) :rule-classes :congruence)