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