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