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