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