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