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