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