Get the members field from a tag-declon-struct.
(tag-declon-struct->members x) → members
This is an ordinary field accessor created by fty::defprod.
Function:
(defun tag-declon-struct->members$inline (x) (declare (xargs :guard (tag-declonp x))) (declare (xargs :guard (equal (tag-declon-kind x) :struct))) (let ((__function__ 'tag-declon-struct->members)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (tag-declon-kind x) :struct) x))) (struct-declon-list-fix (std::da-nth 1 (cdr x)))) :exec (std::da-nth 1 (cdr x)))))
Theorem:
(defthm struct-declon-listp-of-tag-declon-struct->members (b* ((members (tag-declon-struct->members$inline x))) (struct-declon-listp members)) :rule-classes :rewrite)
Theorem:
(defthm tag-declon-struct->members$inline-of-tag-declon-fix-x (equal (tag-declon-struct->members$inline (tag-declon-fix x)) (tag-declon-struct->members$inline x)))
Theorem:
(defthm tag-declon-struct->members$inline-tag-declon-equiv-congruence-on-x (implies (tag-declon-equiv x x-equiv) (equal (tag-declon-struct->members$inline x) (tag-declon-struct->members$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm tag-declon-struct->members-when-wrong-kind (implies (not (equal (tag-declon-kind x) :struct)) (equal (tag-declon-struct->members x) (struct-declon-list-fix nil))))