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