Recognizer for fundef structures.
(fundefp x) → *
Function:
(defun fundefp (x) (declare (xargs :guard t)) (let ((__function__ 'fundefp)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :fundef) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(tyspec declor body))) :exec (fty::alist-with-carsp (cdr x) '(tyspec declor body))) (b* ((tyspec (cdr (std::da-nth 0 (cdr x)))) (declor (cdr (std::da-nth 1 (cdr x)))) (body (cdr (std::da-nth 2 (cdr x))))) (and (tyspecseqp tyspec) (fun-declorp declor) (block-item-listp body))))))
Theorem:
(defthm consp-when-fundefp (implies (fundefp x) (consp x)) :rule-classes :compound-recognizer)