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