Recognizer for pristate structures.
(pristatep x) → *
Function:
(defun pristatep (x) (declare (xargs :guard t)) (let ((__function__ 'pristatep)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(bytes-rev indent-level options))) :exec (fty::alist-with-carsp x '(bytes-rev indent-level options))) (b* ((bytes-rev (cdr (std::da-nth 0 x))) (indent-level (cdr (std::da-nth 1 x))) (options (cdr (std::da-nth 2 x)))) (and (byte-listp bytes-rev) (natp indent-level) (prioptp options))))))
Theorem:
(defthm consp-when-pristatep (implies (pristatep x) (consp x)) :rule-classes :compound-recognizer)