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