Recognizer for header-name structures.
(header-namep x) → *
Function:
(defun header-namep (x) (declare (xargs :guard t)) (and (consp x) (cond ((or (atom x) (eq (car x) :angles)) (and (b* ((chars (cdr x))) (h-char-listp chars)))) (t (and (eq (car x) :quotes) (and) (b* ((chars (cdr x))) (q-char-listp chars)))))))
Theorem:
(defthm consp-when-header-namep (implies (header-namep x) (consp x)) :rule-classes :compound-recognizer)