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