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