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