(svex-aig-memotable-fix x) is an fty alist fixing function that follows the fix-keys strategy.
(svex-aig-memotable-fix x) → fty::newx
Note that in the execution this is just an inline identity function.
Function:
(defun svex-aig-memotable-fix$inline (x) (declare (xargs :guard (svex-aig-memotable-p x))) (let ((__function__ 'svex-aig-memotable-fix)) (declare (ignorable __function__)) (mbe :logic (if (atom x) x (if (consp (car x)) (cons (cons (svex-fix (caar x)) (a4vec-fix (cdar x))) (svex-aig-memotable-fix (cdr x))) (svex-aig-memotable-fix (cdr x)))) :exec x)))
Theorem:
(defthm svex-aig-memotable-p-of-svex-aig-memotable-fix (b* ((fty::newx (svex-aig-memotable-fix$inline x))) (svex-aig-memotable-p fty::newx)) :rule-classes :rewrite)
Theorem:
(defthm svex-aig-memotable-fix-when-svex-aig-memotable-p (implies (svex-aig-memotable-p x) (equal (svex-aig-memotable-fix x) x)))
Function:
(defun svex-aig-memotable-equiv$inline (x y) (declare (xargs :guard (and (svex-aig-memotable-p x) (svex-aig-memotable-p y)))) (equal (svex-aig-memotable-fix x) (svex-aig-memotable-fix y)))
Theorem:
(defthm svex-aig-memotable-equiv-is-an-equivalence (and (booleanp (svex-aig-memotable-equiv x y)) (svex-aig-memotable-equiv x x) (implies (svex-aig-memotable-equiv x y) (svex-aig-memotable-equiv y x)) (implies (and (svex-aig-memotable-equiv x y) (svex-aig-memotable-equiv y z)) (svex-aig-memotable-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm svex-aig-memotable-equiv-implies-equal-svex-aig-memotable-fix-1 (implies (svex-aig-memotable-equiv x x-equiv) (equal (svex-aig-memotable-fix x) (svex-aig-memotable-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm svex-aig-memotable-fix-under-svex-aig-memotable-equiv (svex-aig-memotable-equiv (svex-aig-memotable-fix x) x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-svex-aig-memotable-fix-1-forward-to-svex-aig-memotable-equiv (implies (equal (svex-aig-memotable-fix x) y) (svex-aig-memotable-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-svex-aig-memotable-fix-2-forward-to-svex-aig-memotable-equiv (implies (equal x (svex-aig-memotable-fix y)) (svex-aig-memotable-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm svex-aig-memotable-equiv-of-svex-aig-memotable-fix-1-forward (implies (svex-aig-memotable-equiv (svex-aig-memotable-fix x) y) (svex-aig-memotable-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm svex-aig-memotable-equiv-of-svex-aig-memotable-fix-2-forward (implies (svex-aig-memotable-equiv x (svex-aig-memotable-fix y)) (svex-aig-memotable-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm cons-of-svex-fix-k-under-svex-aig-memotable-equiv (svex-aig-memotable-equiv (cons (cons (svex-fix acl2::k) acl2::v) x) (cons (cons acl2::k acl2::v) x)))
Theorem:
(defthm cons-svex-equiv-congruence-on-k-under-svex-aig-memotable-equiv (implies (svex-equiv acl2::k k-equiv) (svex-aig-memotable-equiv (cons (cons acl2::k acl2::v) x) (cons (cons k-equiv acl2::v) x))) :rule-classes :congruence)
Theorem:
(defthm cons-of-a4vec-fix-v-under-svex-aig-memotable-equiv (svex-aig-memotable-equiv (cons (cons acl2::k (a4vec-fix acl2::v)) x) (cons (cons acl2::k acl2::v) x)))
Theorem:
(defthm cons-a4vec-equiv-congruence-on-v-under-svex-aig-memotable-equiv (implies (a4vec-equiv acl2::v v-equiv) (svex-aig-memotable-equiv (cons (cons acl2::k acl2::v) x) (cons (cons acl2::k v-equiv) x))) :rule-classes :congruence)
Theorem:
(defthm cons-of-svex-aig-memotable-fix-y-under-svex-aig-memotable-equiv (svex-aig-memotable-equiv (cons x (svex-aig-memotable-fix y)) (cons x y)))
Theorem:
(defthm cons-svex-aig-memotable-equiv-congruence-on-y-under-svex-aig-memotable-equiv (implies (svex-aig-memotable-equiv y y-equiv) (svex-aig-memotable-equiv (cons x y) (cons x y-equiv))) :rule-classes :congruence)
Theorem:
(defthm svex-aig-memotable-fix-of-acons (equal (svex-aig-memotable-fix (cons (cons acl2::a acl2::b) x)) (cons (cons (svex-fix acl2::a) (a4vec-fix acl2::b)) (svex-aig-memotable-fix x))))
Theorem:
(defthm svex-aig-memotable-fix-of-append (equal (svex-aig-memotable-fix (append std::a std::b)) (append (svex-aig-memotable-fix std::a) (svex-aig-memotable-fix std::b))))
Theorem:
(defthm consp-car-of-svex-aig-memotable-fix (equal (consp (car (svex-aig-memotable-fix x))) (consp (svex-aig-memotable-fix x))))