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