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