Minimum mathematical integer value of type
This depends on the implementation environment.
Function:
(defun sint-min (ienv) (declare (xargs :guard (ienvp ienv))) (let ((__function__ 'sint-min)) (declare (ignorable __function__)) (- (expt 2 (1- (* 8 (ienv->int-bytes ienv)))))))
Theorem:
(defthm integerp-of-sint-min (b* ((val (sint-min ienv))) (integerp val)) :rule-classes (:rewrite :type-prescription))
Theorem:
(defthm sint-min-of-ienv-fix-ienv (equal (sint-min (ienv-fix ienv)) (sint-min ienv)))
Theorem:
(defthm sint-min-ienv-equiv-congruence-on-ienv (implies (ienv-equiv ienv ienv-equiv) (equal (sint-min ienv) (sint-min ienv-equiv))) :rule-classes :congruence)