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