Function:
(defun denormalp (rat rounded-expo bias) (declare (xargs :guard (and (rationalp rat) (integerp rounded-expo) (natp bias)))) (let ((__function__ 'denormalp)) (declare (ignorable __function__)) (let ((expo (rtl::expo rat)) (minus-bias (- bias))) (or (<= rounded-expo minus-bias) (and (= rounded-expo 0) (<= expo minus-bias))))))
Theorem:
(defthm booleanp-denormalp (booleanp (denormalp rat rounded-expo bias)))