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