Recognizer for amb?-declon/stmt structures.
(amb?-declon/stmt-p x) → *
Function:
(defun amb?-declon/stmt-p (x) (declare (xargs :guard t)) (and (consp x) (cond ((or (atom x) (eq (car x) :declon)) (and (b* ((declon (cdr x))) (declonp declon)))) ((eq (car x) :stmt) (and (b* ((expr (cdr x))) (exprp expr)))) (t (and (eq (car x) :ambig) (and) (b* ((declon/stmt (cdr x))) (amb-declon/stmt-p declon/stmt)))))))
Theorem:
(defthm consp-when-amb?-declon/stmt-p (implies (amb?-declon/stmt-p x) (consp x)) :rule-classes :compound-recognizer)