Bitwise exclusive disjunction of a value of type
Function:
(defun bitxor-slong-ulong (x y) (declare (xargs :guard (and (slongp x) (ulongp y)))) (bitxor-ulong-ulong (ulong-from-slong x) y))
Theorem:
(defthm ulongp-of-bitxor-slong-ulong (ulongp (bitxor-slong-ulong x y)))
Theorem:
(defthm bitxor-slong-ulong-of-slong-fix-x (equal (bitxor-slong-ulong (slong-fix x) y) (bitxor-slong-ulong x y)))
Theorem:
(defthm bitxor-slong-ulong-slong-equiv-congruence-on-x (implies (slong-equiv x x-equiv) (equal (bitxor-slong-ulong x y) (bitxor-slong-ulong x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm bitxor-slong-ulong-of-ulong-fix-y (equal (bitxor-slong-ulong x (ulong-fix y)) (bitxor-slong-ulong x y)))
Theorem:
(defthm bitxor-slong-ulong-ulong-equiv-congruence-on-y (implies (ulong-equiv y y-equiv) (equal (bitxor-slong-ulong x y) (bitxor-slong-ulong x y-equiv))) :rule-classes :congruence)