Recognizer for ext-declon structures.
(ext-declonp x) → *
Function:
(defun ext-declonp (x) (declare (xargs :guard t)) (let ((__function__ 'ext-declonp)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :fundef)) (and (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((get (std::da-nth 0 (cdr x)))) (fundefp get)))) ((eq (car x) :fun-declon) (and (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((get (std::da-nth 0 (cdr x)))) (fun-declonp get)))) ((eq (car x) :obj-declon) (and (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((get (std::da-nth 0 (cdr x)))) (obj-declonp get)))) (t (and (eq (car x) :tag-declon) (and (true-listp (cdr x)) (eql (len (cdr x)) 1)) (b* ((get (std::da-nth 0 (cdr x)))) (tag-declonp get))))))))
Theorem:
(defthm consp-when-ext-declonp (implies (ext-declonp x) (consp x)) :rule-classes :compound-recognizer)