Check if the definition of a named function is disabled.
Function:
(defun fundef-disabledp (fn state) (declare (xargs :stobjs (state))) (declare (xargs :guard (symbolp fn))) (let ((__function__ 'fundef-disabledp)) (declare (ignorable __function__)) (if (member-equal (cons ':definition (cons fn 'nil)) (disabledp fn)) t nil)))
Theorem:
(defthm booleanp-of-fundef-disabledp (b* ((yes/no (fundef-disabledp fn state))) (booleanp yes/no)) :rule-classes :rewrite)