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