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