Recognizer for attrib-name structures.
(attrib-namep x) → *
Function:
(defun attrib-namep (x) (declare (xargs :guard t)) (let ((__function__ 'attrib-namep)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :ident)) (and (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((unwrap (std::da-nth 0 (cdr x)))) (identp unwrap)))) (t (and (eq (car x) :keyword) (and (true-listp (cdr x)) (eql (len (cdr x)) 1)) (b* ((unwrap (std::da-nth 0 (cdr x)))) (stringp unwrap))))))))
Theorem:
(defthm consp-when-attrib-namep (implies (attrib-namep x) (consp x)) :rule-classes :compound-recognizer)