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