Recognizer for block structures.
(blockp x) → *
Function:
(defun blockp (x) (declare (xargs :guard t)) (let ((__function__ 'blockp)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(transactions round))) :exec (fty::alist-with-carsp x '(transactions round))) (b* ((transactions (cdr (std::da-nth 0 x))) (round (cdr (std::da-nth 1 x)))) (and (transaction-listp transactions) (posp round))))))
Theorem:
(defthm consp-when-blockp (implies (blockp x) (consp x)) :rule-classes :compound-recognizer)