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