Get the kind (tag) of a integer-literal structure.
(integer-literal-kind x) → kind
Function:
(defun integer-literal-kind$inline (x) (declare (xargs :guard (integer-literalp x))) (let ((__function__ 'integer-literal-kind)) (declare (ignorable __function__)) (mbe :logic (cond ((or (atom x) (eq (car x) :hex)) :hex) ((eq (car x) :dec) :dec) ((eq (car x) :oct) :oct) (t :bin)) :exec (car x))))
Theorem:
(defthm integer-literal-kind-possibilities (or (equal (integer-literal-kind x) :hex) (equal (integer-literal-kind x) :dec) (equal (integer-literal-kind x) :oct) (equal (integer-literal-kind x) :bin)) :rule-classes ((:forward-chaining :trigger-terms ((integer-literal-kind x)))))