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