Recognizer for pexprs-gout structures.
(pexprs-goutp x) → *
Function:
(defun pexprs-goutp (x) (declare (xargs :guard t)) (let ((__function__ 'pexprs-goutp)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(exprs types terms events thm-names thm-index names-to-avoid))) :exec (fty::alist-with-carsp x '(exprs types terms events thm-names thm-index names-to-avoid))) (b* ((exprs (cdr (std::da-nth 0 x))) (types (cdr (std::da-nth 1 x))) (terms (cdr (std::da-nth 2 x))) (events (cdr (std::da-nth 3 x))) (thm-names (cdr (std::da-nth 4 x))) (thm-index (cdr (std::da-nth 5 x))) (names-to-avoid (cdr (std::da-nth 6 x)))) (and (expr-listp exprs) (type-listp types) (pseudo-term-listp terms) (pseudo-event-form-listp events) (symbol-listp thm-names) (posp thm-index) (symbol-listp names-to-avoid))))))
Theorem:
(defthm consp-when-pexprs-goutp (implies (pexprs-goutp x) (consp x)) :rule-classes :compound-recognizer)