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