Recognizer for vl-elabkey structures.
(vl-elabkey-p x) → *
Function:
(defun vl-elabkey-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-elabkey-p)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :package)) (and (b* ((name (cdr x))) (stringp name)))) ((eq (car x) :class) (and (b* ((name (cdr x))) (stringp name)))) ((eq (car x) :item) (and (b* ((name (cdr x))) (stringp name)))) ((eq (car x) :index) (and (b* ((val (cdr x))) (integerp val)))) (t (and (eq (car x) :def) (and) (b* ((name (cdr x))) (stringp name))))))))
Theorem:
(defthm consp-when-vl-elabkey-p (implies (vl-elabkey-p x) (consp x)) :rule-classes :compound-recognizer)