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