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