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