The ACL2 integer value of
Function:
(defun ienv->slong-max (ienv) (declare (xargs :guard (ienvp ienv))) (1- (expt 2 (1- (* 8 (ienv->long-bytes ienv))))))
Theorem:
(defthm posp-of-ienv->slong-max (b* ((max (ienv->slong-max ienv))) (posp max)) :rule-classes :rewrite)
Theorem:
(defthm ienv->slong-max-type-prescription (b* ((common-lisp::?max (ienv->slong-max ienv))) (and (posp max) (> max 1))) :rule-classes :type-prescription)
Theorem:
(defthm ienv->slong-max-correct (equal (ienv->slong-max ienv) (c::ienv->slong-max (ldm-ienv ienv))))
Theorem:
(defthm ienv->slong-max-of-ienv-fix-ienv (equal (ienv->slong-max (ienv-fix ienv)) (ienv->slong-max ienv)))
Theorem:
(defthm ienv->slong-max-ienv-equiv-congruence-on-ienv (implies (ienv-equiv ienv ienv-equiv) (equal (ienv->slong-max ienv) (ienv->slong-max ienv-equiv))) :rule-classes :congruence)