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