The ACL2 integer value of
(uchar-format->max format) → max
This directly derives from
This is at least 255, as required by [C17:5.2.4.2.1/1].
Function:
(defun uchar-format->max (format) (declare (xargs :guard (uchar-formatp format))) (let ((__function__ 'uchar-format->max)) (declare (ignorable __function__)) (1- (expt 2 (uchar-format->size format)))))
Theorem:
(defthm posp-of-uchar-format->max (b* ((max (uchar-format->max format))) (posp max)) :rule-classes :rewrite)
Theorem:
(defthm uchar-format->-max-type-prescription (b* ((common-lisp::?max (uchar-format->max format))) (and (posp max) (> max 1))) :rule-classes :type-prescription)
Theorem:
(defthm uchar-format->max-lower-bound (b* ((common-lisp::?max (uchar-format->max format))) (>= max 255)) :rule-classes :linear)
Theorem:
(defthm uchar-format->max-of-uchar-format-fix-format (equal (uchar-format->max (uchar-format-fix format)) (uchar-format->max format)))
Theorem:
(defthm uchar-format->max-uchar-format-equiv-congruence-on-format (implies (uchar-format-equiv format format-equiv) (equal (uchar-format->max format) (uchar-format->max format-equiv))) :rule-classes :congruence)