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