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