Recognizer for boolean-array structures.
(boolean-arrayp x) → *
Function:
(defun boolean-arrayp (x) (declare (xargs :guard t)) (let ((__function__ 'boolean-arrayp)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :boolean-array) (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((components (std::da-nth 0 (cdr x)))) (and (boolean-value-listp components) (< (len components) (expt 2 31)))))))
Theorem:
(defthm consp-when-boolean-arrayp (implies (boolean-arrayp x) (consp x)) :rule-classes :compound-recognizer)