Recognizer for eoutcome structures.
(eoutcomep x) → *
Function:
(defun eoutcomep (x) (declare (xargs :guard t)) (let ((__function__ 'eoutcomep)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :eoutcome) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(cstate values))) :exec (fty::alist-with-carsp (cdr x) '(cstate values))) (b* ((cstate (cdr (std::da-nth 0 (cdr x)))) (values (cdr (std::da-nth 1 (cdr x))))) (and (cstatep cstate) (value-listp values))))))
Theorem:
(defthm consp-when-eoutcomep (implies (eoutcomep x) (consp x)) :rule-classes :compound-recognizer)