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