Recognizer for expr-gin structures.
(expr-ginp x) → *
Function:
(defun expr-ginp (x) (declare (xargs :guard t)) (let ((__function__ 'expr-ginp)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(context inscope prec-tags fn fn-guard compst-var thm-index names-to-avoid proofs))) :exec (fty::alist-with-carsp x '(context inscope prec-tags fn fn-guard compst-var thm-index names-to-avoid proofs))) (b* ((context (cdr (std::da-nth 0 x))) (inscope (cdr (std::da-nth 1 x))) (prec-tags (cdr (std::da-nth 2 x))) (fn (cdr (std::da-nth 3 x))) (fn-guard (cdr (std::da-nth 4 x))) (compst-var (cdr (std::da-nth 5 x))) (thm-index (cdr (std::da-nth 6 x))) (names-to-avoid (cdr (std::da-nth 7 x))) (proofs (cdr (std::da-nth 8 x)))) (and (atc-contextp context) (atc-symbol-varinfo-alist-listp inscope) (atc-string-taginfo-alistp prec-tags) (symbolp fn) (symbolp fn-guard) (symbolp compst-var) (posp thm-index) (symbol-listp names-to-avoid) (booleanp proofs))))))
Theorem:
(defthm consp-when-expr-ginp (implies (expr-ginp x) (consp x)) :rule-classes :compound-recognizer)