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