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