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