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