Get the param field from a attrib-name-param.
(attrib-name-param->param x) → param
This is an ordinary field accessor created by fty::defprod.
Function:
(defun attrib-name-param->param$inline (x) (declare (xargs :guard (attribp x))) (declare (xargs :guard (equal (attrib-kind x) :name-param))) (let ((__function__ 'attrib-name-param->param)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (attrib-kind x) :name-param) x))) (expr-list-fix (std::da-nth 1 (cdr x)))) :exec (std::da-nth 1 (cdr x)))))
Theorem:
(defthm expr-listp-of-attrib-name-param->param (b* ((param (attrib-name-param->param$inline x))) (expr-listp param)) :rule-classes :rewrite)
Theorem:
(defthm attrib-name-param->param$inline-of-attrib-fix-x (equal (attrib-name-param->param$inline (attrib-fix x)) (attrib-name-param->param$inline x)))
Theorem:
(defthm attrib-name-param->param$inline-attrib-equiv-congruence-on-x (implies (attrib-equiv x x-equiv) (equal (attrib-name-param->param$inline x) (attrib-name-param->param$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm attrib-name-param->param-when-wrong-kind (implies (not (equal (attrib-kind x) :name-param)) (equal (attrib-name-param->param x) (expr-list-fix nil))))