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