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