Check if a type is an integer type [C:6.2.5/17].
Function:
(defun type-integerp (type) (declare (xargs :guard (typep type))) (let ((__function__ 'type-integerp)) (declare (ignorable __function__)) (or (type-case type :char) (type-signed-integerp type) (type-unsigned-integerp type))))
Theorem:
(defthm booleanp-of-type-integerp (b* ((yes/no (type-integerp type))) (booleanp yes/no)) :rule-classes :rewrite)
Theorem:
(defthm type-integerp-of-type-fix-type (equal (type-integerp (type-fix type)) (type-integerp type)))
Theorem:
(defthm type-integerp-type-equiv-congruence-on-type (implies (type-equiv type type-equiv) (equal (type-integerp type) (type-integerp type-equiv))) :rule-classes :congruence)