This is an ordinary defenum.
Function:
(defun scratchobj-kind-p (x) (declare (xargs :guard t)) (or (eq x ':fgl-obj) (eq x ':fgl-objlist) (eq x ':bfr) (eq x ':bfrlist) (eq x ':cinst) (eq x ':cinstlist)))
Theorem: type-when-scratchobj-kind-p
(defthm type-when-scratchobj-kind-p (implies (scratchobj-kind-p x) (if (symbolp x) (if (not (equal x 't)) (not (equal x 'nil)) 'nil) 'nil)) :rule-classes :compound-recognizer)