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