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