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