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