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