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