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