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