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