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