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