Recognizer for char-value structures.
(char-valuep x) → *
Function:
(defun char-valuep (x) (declare (xargs :guard t)) (let ((__function__ 'char-valuep)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :char) (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((nat (std::da-nth 0 (cdr x)))) (ubyte16p nat)))))
Theorem:
(defthm consp-when-char-valuep (implies (char-valuep x) (consp x)) :rule-classes :compound-recognizer)