Recognizer for ushort-array structures.
(ushort-arrayp x) → *
Function:
(defun ushort-arrayp (x) (declare (xargs :guard t)) (let ((__function__ 'ushort-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) (ushort-listp elements) (type-case elemtype :ushort) (consp elements))))))
Theorem:
(defthm consp-when-ushort-arrayp (implies (ushort-arrayp x) (consp x)) :rule-classes :compound-recognizer)