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