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