Recognizer for uinteger-bit-role structures.
(uinteger-bit-rolep x) → *
Function:
(defun uinteger-bit-rolep (x) (declare (xargs :guard t)) (let ((__function__ 'uinteger-bit-rolep)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :value)) (and (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((exp (std::da-nth 0 (cdr x)))) (natp exp)))) (t (and (eq (car x) :padding) (and (true-listp (cdr x)) (eql (len (cdr x)) 0)) (b* nil t)))))))
Theorem:
(defthm consp-when-uinteger-bit-rolep (implies (uinteger-bit-rolep x) (consp x)) :rule-classes :compound-recognizer)