Recognizer for vcscope-dinfo-list-option structures.
(vcscope-dinfo-list-optionp x) → *
Function:
(defun vcscope-dinfo-list-optionp (x) (declare (xargs :guard t)) (let ((__function__ 'vcscope-dinfo-list-optionp)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :some)) (and (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((get (std::da-nth 0 (cdr x)))) (vcscope-dinfo-listp get)))) (t (and (eq (car x) :none) (and (true-listp (cdr x)) (eql (len (cdr x)) 0)) (b* nil t)))))))
Theorem:
(defthm consp-when-vcscope-dinfo-list-optionp (implies (vcscope-dinfo-list-optionp x) (consp x)) :rule-classes :compound-recognizer)