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