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