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