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