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