The ACL2 integer value of
See char-format->max.
Function:
(defun ienv->char-max (ienv) (declare (xargs :guard (ienvp ienv))) (let ((__function__ 'ienv->char-max)) (declare (ignorable __function__)) (char-format->max (char+short+int+long+llong-format->char (ienv->char+short+int+long+llong-format ienv)) (char+short+int+long+llong-format->uchar (ienv->char+short+int+long+llong-format ienv)) (char+short+int+long+llong-format->schar (ienv->char+short+int+long+llong-format ienv)))))
Theorem:
(defthm integerp-of-ienv->char-max (b* ((max (ienv->char-max ienv))) (integerp max)) :rule-classes :rewrite)
Theorem:
(defthm ienv->char-max-type-prescription (b* ((common-lisp::?max (ienv->char-max ienv))) (and (posp max) (> max 1))) :rule-classes :type-prescription)
Theorem:
(defthm ienv->char-max-lower-bound (b* ((common-lisp::?max (ienv->char-max ienv))) (>= max 127)) :rule-classes :linear)
Theorem:
(defthm ienv->char-max-of-ienv-fix-ienv (equal (ienv->char-max (ienv-fix ienv)) (ienv->char-max ienv)))
Theorem:
(defthm ienv->char-max-ienv-equiv-congruence-on-ienv (implies (ienv-equiv ienv ienv-equiv) (equal (ienv->char-max ienv) (ienv->char-max ienv-equiv))) :rule-classes :congruence)