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