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