The ACL2 integer value of the maximum value representable in an unsigned integer format.
(uinteger-format->max format) → max
This is determined by the number
Function:
(defun uinteger-format->max (format) (declare (xargs :guard (uinteger-formatp format))) (let ((__function__ 'uinteger-format->max)) (declare (ignorable __function__)) (1- (expt 2 (uinteger-bit-roles-value-count (uinteger-format->bits format))))))
Theorem:
(defthm posp-of-uinteger-format->max (b* ((max (uinteger-format->max format))) (posp max)) :rule-classes (:rewrite :type-prescription))
Theorem:
(defthm uinteger-format->max-of-uinteger-format-fix-format (equal (uinteger-format->max (uinteger-format-fix format)) (uinteger-format->max format)))
Theorem:
(defthm uinteger-format->max-uinteger-format-equiv-congruence-on-format (implies (uinteger-format-equiv format format-equiv) (equal (uinteger-format->max format) (uinteger-format->max format-equiv))) :rule-classes :congruence)