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