Check if a type is an unsigned integer type [C:6.2.5/6].
Function:
(defun type-unsigned-integerp (type) (declare (xargs :guard (typep type))) (let ((__function__ 'type-unsigned-integerp)) (declare (ignorable __function__)) (and (member-eq (type-kind type) '(:uchar :ushort :uint :ulong :ullong)) t)))
Theorem:
(defthm booleanp-of-type-unsigned-integerp (b* ((yes/no (type-unsigned-integerp type))) (booleanp yes/no)) :rule-classes :rewrite)
Theorem:
(defthm type-unsigned-integerp-of-type-fix-type (equal (type-unsigned-integerp (type-fix type)) (type-unsigned-integerp type)))
Theorem:
(defthm type-unsigned-integerp-type-equiv-congruence-on-type (implies (type-equiv type type-equiv) (equal (type-unsigned-integerp type) (type-unsigned-integerp type-equiv))) :rule-classes :congruence)