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