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