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