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