Recognizer for amb?-declor/absdeclor structures.
(amb?-declor/absdeclor-p x) → *
Function:
(defun amb?-declor/absdeclor-p (x) (declare (xargs :guard t)) (let ((__function__ 'amb?-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)))) ((eq (car x) :absdeclor) (and (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((unwrap (std::da-nth 0 (cdr x)))) (absdeclorp unwrap)))) (t (and (eq (car x) :ambig) (and (true-listp (cdr x)) (eql (len (cdr x)) 1)) (b* ((unwrap (std::da-nth 0 (cdr x)))) (amb-declor/absdeclor-p unwrap))))))))
Theorem:
(defthm consp-when-amb?-declor/absdeclor-p (implies (amb?-declor/absdeclor-p x) (consp x)) :rule-classes :compound-recognizer)