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