Get the max field from a repeat-range.
(repeat-range->max x) → max
This is an ordinary field accessor created by fty::defprod.
Function:
(defun repeat-range->max$inline (x) (declare (xargs :guard (repeat-rangep x))) (declare (xargs :guard t)) (let ((__function__ 'repeat-range->max)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (acl2::nati-fix (std::da-nth 1 (cdr x)))) :exec (std::da-nth 1 (cdr x)))))
Theorem:
(defthm natip-of-repeat-range->max (b* ((max (repeat-range->max$inline x))) (natip max)) :rule-classes :rewrite)
Theorem:
(defthm repeat-range->max$inline-of-repeat-range-fix-x (equal (repeat-range->max$inline (repeat-range-fix x)) (repeat-range->max$inline x)))
Theorem:
(defthm repeat-range->max$inline-repeat-range-equiv-congruence-on-x (implies (repeat-range-equiv x x-equiv) (equal (repeat-range->max$inline x) (repeat-range->max$inline x-equiv))) :rule-classes :congruence)