Get the kind (tag) of a numeric-type structure.
(numeric-type-kind x) → kind
Function:
(defun numeric-type-kind$inline (x) (declare (xargs :guard (numeric-typep x))) (let ((__function__ 'numeric-type-kind)) (declare (ignorable __function__)) (mbe :logic (cond ((or (atom x) (eq (car x) :char)) :char) ((eq (car x) :byte) :byte) ((eq (car x) :short) :short) ((eq (car x) :int) :int) ((eq (car x) :long) :long) ((eq (car x) :float) :float) (t :double)) :exec (car x))))
Theorem:
(defthm numeric-type-kind-possibilities (or (equal (numeric-type-kind x) :char) (equal (numeric-type-kind x) :byte) (equal (numeric-type-kind x) :short) (equal (numeric-type-kind x) :int) (equal (numeric-type-kind x) :long) (equal (numeric-type-kind x) :float) (equal (numeric-type-kind x) :double)) :rule-classes ((:forward-chaining :trigger-terms ((numeric-type-kind x)))))