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