Recognizer for closure-output structures.
(closure-outputp x) → *
Function:
(defun closure-outputp (x) (declare (xargs :guard t)) (let ((__function__ 'closure-outputp)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :closure-output) (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 (regaccessp reg) (register-typep type))))))
Theorem:
(defthm consp-when-closure-outputp (implies (closure-outputp x) (consp x)) :rule-classes :compound-recognizer)