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