Recognizer for fun-spec structures.
(fun-specp x) → *
Function:
(defun fun-specp (x) (declare (xargs :guard t)) (let ((__function__ 'fun-specp)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :inline)) (and (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((uscores (std::da-nth 0 (cdr x)))) (keyword-uscores-p uscores)))) (t (and (eq (car x) :noreturn) (and (true-listp (cdr x)) (eql (len (cdr x)) 0)) (b* nil t)))))))
Theorem:
(defthm consp-when-fun-specp (implies (fun-specp x) (consp x)) :rule-classes :compound-recognizer)