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