Enumeration of defun-modes.
This is an ordinary std::defenum.
Function:
(defun logic/program-p (x) (declare (xargs :guard t)) (or (eq x ':logic) (eq x ':program)))
Theorem: type-when-logic/program-p
(defthm type-when-logic/program-p (implies (logic/program-p x) (if (symbolp x) (if (not (equal x 't)) (not (equal x 'nil)) 'nil) 'nil)) :rule-classes :compound-recognizer)