Get the kind (tag) of a tag-declon structure.
(tag-declon-kind x) → kind
Function:
(defun tag-declon-kind$inline (x) (declare (xargs :guard (tag-declonp x))) (let ((__function__ 'tag-declon-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-declon-kind-possibilities (or (equal (tag-declon-kind x) :struct) (equal (tag-declon-kind x) :union) (equal (tag-declon-kind x) :enum)) :rule-classes ((:forward-chaining :trigger-terms ((tag-declon-kind x)))))