Recognizer for uchar-array structures.
(uchar-arrayp x) → *
Function:
(defun uchar-arrayp (x) (declare (xargs :guard t)) (let ((__function__ 'uchar-arrayp)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :array) (true-listp (cdr x)) (eql (len (cdr x)) 2) (b* ((elemtype (std::da-nth 0 (cdr x))) (elements (std::da-nth 1 (cdr x)))) (and (typep elemtype) (uchar-listp elements) (type-case elemtype :uchar) (consp elements))))))
Theorem:
(defthm consp-when-uchar-arrayp (implies (uchar-arrayp x) (consp x)) :rule-classes :compound-recognizer)