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