Get the expr field from a declon/stmt-stmt.
(declon/stmt-stmt->expr x) → expr
This is an ordinary field accessor created by fty::defprod.
Function:
(defun declon/stmt-stmt->expr$inline (x) (declare (xargs :guard (declon/stmt-p x))) (declare (xargs :guard (equal (declon/stmt-kind x) :stmt))) (mbe :logic (b* ((x (and (equal (declon/stmt-kind x) :stmt) x))) (expr-fix (cdr x))) :exec (cdr x)))
Theorem:
(defthm exprp-of-declon/stmt-stmt->expr (b* ((expr (declon/stmt-stmt->expr$inline x))) (exprp expr)) :rule-classes :rewrite)
Theorem:
(defthm declon/stmt-stmt->expr$inline-of-declon/stmt-fix-x (equal (declon/stmt-stmt->expr$inline (declon/stmt-fix x)) (declon/stmt-stmt->expr$inline x)))
Theorem:
(defthm declon/stmt-stmt->expr$inline-declon/stmt-equiv-congruence-on-x (implies (declon/stmt-equiv x x-equiv) (equal (declon/stmt-stmt->expr$inline x) (declon/stmt-stmt->expr$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm declon/stmt-stmt->expr-when-wrong-kind (implies (not (equal (declon/stmt-kind x) :stmt)) (equal (declon/stmt-stmt->expr x) (expr-fix nil))))