Recognizer for fun-info structures.
(fun-infop x) → *
Function:
(defun fun-infop (x) (declare (xargs :guard t)) (let ((__function__ 'fun-infop)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(params result body))) :exec (fty::alist-with-carsp x '(params result body))) (b* ((params (cdr (std::da-nth 0 x))) (result (cdr (std::da-nth 1 x))) (body (cdr (std::da-nth 2 x)))) (and (param-declon-listp params) (tynamep result) (block-item-listp body))))))
Theorem:
(defthm consp-when-fun-infop (implies (fun-infop x) (consp x)) :rule-classes :compound-recognizer)