Function:
(defun fp-encode-integer (sign exp frac exp-width frac-width) (declare (xargs :guard (and (integerp sign) (integerp exp) (integerp frac) (posp exp-width) (posp frac-width)))) (let ((__function__ 'fp-encode-integer)) (declare (ignorable __function__)) (logior frac (logior (ash exp frac-width) (ash sign (+ exp-width frac-width))))))
Theorem:
(defthm integerp-fp-encode-integer (integerp (fp-encode-integer sign exp frac exp-width frac-width)) :rule-classes :type-prescription)