Recognizer for cstate structures.
(cstatep x) → *
Function:
(defun cstatep (x) (declare (xargs :guard t)) (let ((__function__ 'cstatep)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :cstate) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(local))) :exec (fty::alist-with-carsp (cdr x) '(local))) (b* ((local (cdr (std::da-nth 0 (cdr x))))) (lstatep local)))))
Theorem:
(defthm consp-when-cstatep (implies (cstatep x) (consp x)) :rule-classes :compound-recognizer)