Recognizer of values of type
(ucharp x) → yes/no
Function:
(defun ucharp (x) (declare (xargs :guard t)) (let ((__function__ 'ucharp)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :uchar) (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((get (std::da-nth 0 (cdr x)))) (uchar-integerp get)))))
Theorem:
(defthm booleanp-of-ucharp (b* ((yes/no (ucharp x))) (booleanp yes/no)) :rule-classes :rewrite)
Theorem:
(defthm consp-when-ucharp (implies (ucharp x) (consp x)) :rule-classes :compound-recognizer)