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