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