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