Recognizer for priopt structures.
(prioptp x) → *
Function:
(defun prioptp (x) (declare (xargs :guard t)) (let ((__function__ 'prioptp)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(indent-size paren-nested-conds))) :exec (fty::alist-with-carsp x '(indent-size paren-nested-conds))) (b* ((indent-size (cdr (std::da-nth 0 x))) (paren-nested-conds (cdr (std::da-nth 1 x)))) (and (posp indent-size) (booleanp paren-nested-conds))))))
Theorem:
(defthm consp-when-prioptp (implies (prioptp x) (consp x)) :rule-classes :compound-recognizer)