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