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