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