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