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