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