The direction for streaming operators:
This is an ordinary defenum.
Function:
(defun vl-leftright-p (x) (declare (xargs :guard t)) (or (eq x ':left) (eq x ':right)))
Theorem: type-when-vl-leftright-p
(defthm type-when-vl-leftright-p (implies (vl-leftright-p x) (if (symbolp x) (if (not (equal x 't)) (not (equal x 'nil)) 'nil) 'nil)) :rule-classes :compound-recognizer)