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