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