Recognizer for declor/absdeclor structures.
(declor/absdeclor-p x) → *
Function:
(defun declor/absdeclor-p (x) (declare (xargs :guard t)) (let ((__function__ 'declor/absdeclor-p)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :declor)) (and (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((unwrap (std::da-nth 0 (cdr x)))) (declorp unwrap)))) (t (and (eq (car x) :absdeclor) (and (true-listp (cdr x)) (eql (len (cdr x)) 1)) (b* ((unwrap (std::da-nth 0 (cdr x)))) (absdeclorp unwrap))))))))
Theorem:
(defthm consp-when-declor/absdeclor-p (implies (declor/absdeclor-p x) (consp x)) :rule-classes :compound-recognizer)