Get the kind (tag) of a programdef structure.
(programdef-kind x) → kind
Function:
(defun programdef-kind$inline (x) (declare (xargs :guard (programdefp x))) (let ((__function__ 'programdef-kind)) (declare (ignorable __function__)) (mbe :logic (cond ((or (atom x) (eq (car x) :mapping)) :mapping) ((eq (car x) :interface) :interface) ((eq (car x) :record) :record) ((eq (car x) :closure) :closure) (t :function)) :exec (car x))))
Theorem:
(defthm programdef-kind-possibilities (or (equal (programdef-kind x) :mapping) (equal (programdef-kind x) :interface) (equal (programdef-kind x) :record) (equal (programdef-kind x) :closure) (equal (programdef-kind x) :function)) :rule-classes ((:forward-chaining :trigger-terms ((programdef-kind x)))))