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