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