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