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