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