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