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