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