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