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