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