Get the components field from a structdecl.
(structdecl->components x) → components
This is an ordinary field accessor created by fty::defprod.
Function:
(defun structdecl->components$inline (x) (declare (xargs :guard (structdeclp x))) (declare (xargs :guard t)) (let ((__function__ 'structdecl->components)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (compdecl-list-fix (cdr (std::da-nth 1 (cdr x))))) :exec (cdr (std::da-nth 1 (cdr x))))))
Theorem:
(defthm compdecl-listp-of-structdecl->components (b* ((components (structdecl->components$inline x))) (compdecl-listp components)) :rule-classes :rewrite)
Theorem:
(defthm structdecl->components$inline-of-structdecl-fix-x (equal (structdecl->components$inline (structdecl-fix x)) (structdecl->components$inline x)))
Theorem:
(defthm structdecl->components$inline-structdecl-equiv-congruence-on-x (implies (structdecl-equiv x x-equiv) (equal (structdecl->components$inline x) (structdecl->components$inline x-equiv))) :rule-classes :congruence)