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