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