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