Recognize names of second-order functions.
(sofunp sofun wrld) → yes/no
Function:
(defun sofunp (sofun wrld) (declare (xargs :guard (plist-worldp wrld))) (let ((__function__ 'sofunp)) (declare (ignorable __function__)) (let ((table (table-alist 'second-order-functions wrld) )) (and (symbolp sofun) (not (null (assoc-eq sofun table)))))))
Theorem:
(defthm booleanp-of-sofunp (b* ((yes/no (sofunp sofun wrld))) (booleanp yes/no)) :rule-classes :rewrite)