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