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