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