Basic equivalence relation for svex-alist structures.
Function:
(defun svex-alist-equiv$inline (x y) (declare (xargs :guard (and (svex-alist-p x) (svex-alist-p y)))) (equal (svex-alist-fix x) (svex-alist-fix y)))
Theorem:
(defthm svex-alist-equiv-is-an-equivalence (and (booleanp (svex-alist-equiv x y)) (svex-alist-equiv x x) (implies (svex-alist-equiv x y) (svex-alist-equiv y x)) (implies (and (svex-alist-equiv x y) (svex-alist-equiv y z)) (svex-alist-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm svex-alist-equiv-implies-equal-svex-alist-fix-1 (implies (svex-alist-equiv x x-equiv) (equal (svex-alist-fix x) (svex-alist-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm svex-alist-fix-under-svex-alist-equiv (svex-alist-equiv (svex-alist-fix x) x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-svex-alist-fix-1-forward-to-svex-alist-equiv (implies (equal (svex-alist-fix x) y) (svex-alist-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-svex-alist-fix-2-forward-to-svex-alist-equiv (implies (equal x (svex-alist-fix y)) (svex-alist-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm svex-alist-equiv-of-svex-alist-fix-1-forward (implies (svex-alist-equiv (svex-alist-fix x) y) (svex-alist-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm svex-alist-equiv-of-svex-alist-fix-2-forward (implies (svex-alist-equiv x (svex-alist-fix y)) (svex-alist-equiv x y)) :rule-classes :forward-chaining)