Recognizer for outcome structures.
(outcomep x) → *
Function:
(defun outcomep (x) (declare (xargs :guard t)) (let ((__function__ 'outcomep)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :terminated)) (and (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((env (std::da-nth 0 (cdr x)))) (envp env)))) (t (and (eq (car x) :nonterminating) (and (true-listp (cdr x)) (eql (len (cdr x)) 0)) (b* nil t)))))))
Theorem:
(defthm consp-when-outcomep (implies (outcomep x) (consp x)) :rule-classes :compound-recognizer)