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