Recognizer for member-type-list-option structures.
(member-type-list-optionp x) → *
Function:
(defun member-type-list-optionp (x) (declare (xargs :guard t)) (let ((__function__ 'member-type-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* ((val (std::da-nth 0 (cdr x)))) (member-type-listp val)))) (t (and (eq (car x) :none) (and (true-listp (cdr x)) (eql (len (cdr x)) 0)) (b* nil t)))))))
Theorem:
(defthm consp-when-member-type-list-optionp (implies (member-type-list-optionp x) (consp x)) :rule-classes :compound-recognizer)