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