Symbolic version of 3vec-bitxor.
Function:
(defun a3vec-bitxor (x y) (declare (xargs :guard (and (a4vec-p x) (a4vec-p y)))) (let ((__function__ 'a3vec-bitxor)) (declare (ignorable __function__)) (b* (((a4vec x)) ((a4vec y)) (xmask (aig-logior-ss (aig-logandc2-ss x.upper x.lower) (aig-logandc2-ss y.upper y.lower)))) (a4vec (aig-logior-ss xmask (aig-logxor-ss x.upper y.upper)) (aig-logandc1-ss xmask (aig-logxor-ss x.lower y.lower))))))
Theorem:
(defthm a4vec-p-of-a3vec-bitxor (b* ((res (a3vec-bitxor x y))) (a4vec-p res)) :rule-classes :rewrite)
Theorem:
(defthm a3vec-bitxor-correct (equal (a4vec-eval (a3vec-bitxor x y) env) (3vec-bitxor (a4vec-eval x env) (a4vec-eval y env))))
Theorem:
(defthm a3vec-bitxor-of-a4vec-fix-x (equal (a3vec-bitxor (a4vec-fix x) y) (a3vec-bitxor x y)))
Theorem:
(defthm a3vec-bitxor-a4vec-equiv-congruence-on-x (implies (a4vec-equiv x x-equiv) (equal (a3vec-bitxor x y) (a3vec-bitxor x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm a3vec-bitxor-of-a4vec-fix-y (equal (a3vec-bitxor x (a4vec-fix y)) (a3vec-bitxor x y)))
Theorem:
(defthm a3vec-bitxor-a4vec-equiv-congruence-on-y (implies (a4vec-equiv y y-equiv) (equal (a3vec-bitxor x y) (a3vec-bitxor x y-equiv))) :rule-classes :congruence)