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