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