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))) :exec (fty::alist-with-carsp x '(transactions))) (b* ((transactions (cdr (std::da-nth 0 x)))) (transaction-listp transactions)))))
Theorem:
(defthm consp-when-blockp (implies (blockp x) (consp x)) :rule-classes :compound-recognizer)