Fixing function for svex-substconfig structures.
(svex-substconfig-fix x) → new-x
Function:
(defun svex-substconfig-fix$inline (x) (declare (xargs :guard (svex-substconfig-p x))) (let ((__function__ 'svex-substconfig-fix)) (declare (ignorable __function__)) (mbe :logic (b* ((alist (svex-alist-fix (std::prod-car x))) (simp (svex-simpconfig-fix (std::prod-cdr x)))) (std::prod-cons alist simp)) :exec x)))
Theorem:
(defthm svex-substconfig-p-of-svex-substconfig-fix (b* ((new-x (svex-substconfig-fix$inline x))) (svex-substconfig-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm svex-substconfig-fix-when-svex-substconfig-p (implies (svex-substconfig-p x) (equal (svex-substconfig-fix x) x)))
Function:
(defun svex-substconfig-equiv$inline (x y) (declare (xargs :guard (and (svex-substconfig-p x) (svex-substconfig-p y)))) (equal (svex-substconfig-fix x) (svex-substconfig-fix y)))
Theorem:
(defthm svex-substconfig-equiv-is-an-equivalence (and (booleanp (svex-substconfig-equiv x y)) (svex-substconfig-equiv x x) (implies (svex-substconfig-equiv x y) (svex-substconfig-equiv y x)) (implies (and (svex-substconfig-equiv x y) (svex-substconfig-equiv y z)) (svex-substconfig-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm svex-substconfig-equiv-implies-equal-svex-substconfig-fix-1 (implies (svex-substconfig-equiv x x-equiv) (equal (svex-substconfig-fix x) (svex-substconfig-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm svex-substconfig-fix-under-svex-substconfig-equiv (svex-substconfig-equiv (svex-substconfig-fix x) x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-svex-substconfig-fix-1-forward-to-svex-substconfig-equiv (implies (equal (svex-substconfig-fix x) y) (svex-substconfig-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-svex-substconfig-fix-2-forward-to-svex-substconfig-equiv (implies (equal x (svex-substconfig-fix y)) (svex-substconfig-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm svex-substconfig-equiv-of-svex-substconfig-fix-1-forward (implies (svex-substconfig-equiv (svex-substconfig-fix x) y) (svex-substconfig-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm svex-substconfig-equiv-of-svex-substconfig-fix-2-forward (implies (svex-substconfig-equiv x (svex-substconfig-fix y)) (svex-substconfig-equiv x y)) :rule-classes :forward-chaining)