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