This is an ordinary defenum.
Function:
(defun vls-commandtype-p (x) (declare (xargs :guard t)) (or (eq x ':json) (eq x ':html)))
Theorem: type-when-vls-commandtype-p
(defthm type-when-vls-commandtype-p (implies (vls-commandtype-p x) (if (symbolp x) (if (not (equal x 't)) (not (equal x 'nil)) 'nil) 'nil)) :rule-classes :compound-recognizer)