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