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