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