Get the statements field from a block.
(block->statements x) → statements
This is an ordinary field accessor created by fty::defprod.
Function:
(defun block->statements$inline (x) (declare (xargs :guard (blockp x))) (declare (xargs :guard t)) (let ((__function__ 'block->statements)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (statement-list-fix (cdr (std::da-nth 0 (cdr x))))) :exec (cdr (std::da-nth 0 (cdr x))))))
Theorem:
(defthm statement-listp-of-block->statements (b* ((statements (block->statements$inline x))) (statement-listp statements)) :rule-classes :rewrite)
Theorem:
(defthm block->statements$inline-of-block-fix-x (equal (block->statements$inline (block-fix x)) (block->statements$inline x)))
Theorem:
(defthm block->statements$inline-block-equiv-congruence-on-x (implies (block-equiv x x-equiv) (equal (block->statements$inline x) (block->statements$inline x-equiv))) :rule-classes :congruence)