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