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