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