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