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