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