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