Recognizer for funinfo structures.
(funinfop x) → *
Function:
(defun funinfop (x) (declare (xargs :guard t)) (let ((__function__ 'funinfop)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :funinfo) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(inputs outputs body))) :exec (fty::alist-with-carsp (cdr x) '(inputs outputs body))) (b* ((inputs (cdr (std::da-nth 0 (cdr x)))) (outputs (cdr (std::da-nth 1 (cdr x)))) (body (cdr (std::da-nth 2 (cdr x))))) (and (identifier-listp inputs) (identifier-listp outputs) (blockp body))))))
Theorem:
(defthm consp-when-funinfop (implies (funinfop x) (consp x)) :rule-classes :compound-recognizer)