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