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