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