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