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