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