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