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