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