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