Get the name field from a constdecl.
(constdecl->name x) → name
This is an ordinary field accessor created by fty::defprod.
Function:
(defun constdecl->name$inline (x) (declare (xargs :guard (constdeclp x))) (declare (xargs :guard t)) (let ((__function__ 'constdecl->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-constdecl->name (b* ((name (constdecl->name$inline x))) (identifierp name)) :rule-classes :rewrite)
Theorem:
(defthm constdecl->name$inline-of-constdecl-fix-x (equal (constdecl->name$inline (constdecl-fix x)) (constdecl->name$inline x)))
Theorem:
(defthm constdecl->name$inline-constdecl-equiv-congruence-on-x (implies (constdecl-equiv x x-equiv) (equal (constdecl->name$inline x) (constdecl->name$inline x-equiv))) :rule-classes :congruence)