Recognizer for ext-declon structures.
(ext-declonp x) → *
Function:
(defun ext-declonp (x) (declare (xargs :guard t)) (and (consp x) (cond ((or (atom x) (eq (car x) :fundef)) (and (b* ((fundef (cdr x))) (fundefp fundef)))) ((eq (car x) :declon) (and (b* ((declon (cdr x))) (declonp declon)))) ((eq (car x) :empty) (and (eq (cdr x) nil) (b* nil t))) (t (and (eq (car x) :asm) (and) (b* ((stmt (cdr x))) (asm-stmtp stmt)))))))
Theorem:
(defthm consp-when-ext-declonp (implies (ext-declonp x) (consp x)) :rule-classes :compound-recognizer)