Get the ident field from a attrib-name-ident.
(attrib-name-ident->ident x) → ident
This is an ordinary field accessor created by fty::defprod.
Function:
(defun attrib-name-ident->ident$inline (x) (declare (xargs :guard (attrib-namep x))) (declare (xargs :guard (equal (attrib-name-kind x) :ident))) (mbe :logic (b* ((x (and (equal (attrib-name-kind x) :ident) x))) (ident-fix (cdr x))) :exec (cdr x)))
Theorem:
(defthm identp-of-attrib-name-ident->ident (b* ((ident (attrib-name-ident->ident$inline x))) (identp ident)) :rule-classes :rewrite)
Theorem:
(defthm attrib-name-ident->ident$inline-of-attrib-name-fix-x (equal (attrib-name-ident->ident$inline (attrib-name-fix x)) (attrib-name-ident->ident$inline x)))
Theorem:
(defthm attrib-name-ident->ident$inline-attrib-name-equiv-congruence-on-x (implies (attrib-name-equiv x x-equiv) (equal (attrib-name-ident->ident$inline x) (attrib-name-ident->ident$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm attrib-name-ident->ident-when-wrong-kind (implies (not (equal (attrib-name-kind x) :ident)) (equal (attrib-name-ident->ident x) (ident-fix nil))))