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