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