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