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