Recognizer for funspec structures.
(funspecp x) → *
Function:
(defun funspecp (x) (declare (xargs :guard t)) (let ((__function__ 'funspecp)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :inline)) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :noreturn) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :__inline) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) (t (and (eq (car x) :__inline__) (and (true-listp (cdr x)) (eql (len (cdr x)) 0)) (b* nil t)))))))
Theorem:
(defthm consp-when-funspecp (implies (funspecp x) (consp x)) :rule-classes :compound-recognizer)