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