Recognizer for stat structures.
(statp x) → *
Function:
(defun statp (x) (declare (xargs :guard t)) (let ((__function__ 'statp)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(xregs pc memory error))) :exec (fty::alist-with-carsp x '(xregs pc memory error))) (b* ((?xregs (cdr (std::da-nth 0 x))) (acl2::?pc (cdr (std::da-nth 1 x))) (memory (cdr (std::da-nth 2 x))) (error (cdr (std::da-nth 3 x)))) (and (ubyte8-listp memory) (booleanp error))))))
Theorem:
(defthm consp-when-statp (implies (statp x) (consp x)) :rule-classes :compound-recognizer)