The ACL2 integer value of
Function:
(defun ienv->uint-max (ienv) (declare (xargs :guard (ienvp ienv))) (let ((__function__ 'ienv->uint-max)) (declare (ignorable __function__)) (uinteger-format->max (uinteger+sinteger-format->unsigned (integer-format->pair (char+short+int+long+llong-format->int (ienv->char+short+int+long+llong-format ienv)))))))
Theorem:
(defthm posp-of-ienv->uint-max (b* ((max (ienv->uint-max ienv))) (posp max)) :rule-classes :rewrite)
Theorem:
(defthm ienv->uint-max-of-ienv-fix-ienv (equal (ienv->uint-max (ienv-fix ienv)) (ienv->uint-max ienv)))
Theorem:
(defthm ienv->uint-max-ienv-equiv-congruence-on-ienv (implies (ienv-equiv ienv ienv-equiv) (equal (ienv->uint-max ienv) (ienv->uint-max ienv-equiv))) :rule-classes :congruence)