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