The ACL2 integer value of
(schar-format->max schar-format uchar-format) → max
Based on the discussion in schar-format,
this is always
This depends on
Function:
(defun schar-format->max (schar-format uchar-format) (declare (xargs :guard (and (schar-formatp schar-format) (uchar-formatp uchar-format)))) (declare (ignore schar-format)) (let ((__function__ 'schar-format->max)) (declare (ignorable __function__)) (1- (expt 2 (1- (uchar-format->size uchar-format))))))
Theorem:
(defthm posp-of-schar-format->max (b* ((max (schar-format->max schar-format uchar-format))) (posp max)) :rule-classes :rewrite)
Theorem:
(defthm schar-format->max-type-prescription (b* ((common-lisp::?max (schar-format->max schar-format uchar-format))) (and (posp max) (> max 1))) :rule-classes :type-prescription)
Theorem:
(defthm schar-format->max-lower-bound (b* ((common-lisp::?max (schar-format->max schar-format uchar-format))) (>= max 127)) :rule-classes :linear)
Theorem:
(defthm schar-format->max-of-schar-format-fix-schar-format (equal (schar-format->max (schar-format-fix schar-format) uchar-format) (schar-format->max schar-format uchar-format)))
Theorem:
(defthm schar-format->max-schar-format-equiv-congruence-on-schar-format (implies (schar-format-equiv schar-format schar-format-equiv) (equal (schar-format->max schar-format uchar-format) (schar-format->max schar-format-equiv uchar-format))) :rule-classes :congruence)
Theorem:
(defthm schar-format->max-of-uchar-format-fix-uchar-format (equal (schar-format->max schar-format (uchar-format-fix uchar-format)) (schar-format->max schar-format uchar-format)))
Theorem:
(defthm schar-format->max-uchar-format-equiv-congruence-on-uchar-format (implies (uchar-format-equiv uchar-format uchar-format-equiv) (equal (schar-format->max schar-format uchar-format) (schar-format->max schar-format uchar-format-equiv))) :rule-classes :congruence)