Get the kind (tag) of a outcome structure.
(outcome-kind x) → kind
Function:
(defun outcome-kind$inline (x) (declare (xargs :guard (outcomep x))) (let ((__function__ 'outcome-kind)) (declare (ignorable __function__)) (mbe :logic (cond ((or (atom x) (eq (car x) :terminated)) :terminated) (t :nonterminating)) :exec (car x))))
Theorem:
(defthm outcome-kind-possibilities (or (equal (outcome-kind x) :terminated) (equal (outcome-kind x) :nonterminating)) :rule-classes ((:forward-chaining :trigger-terms ((outcome-kind x)))))