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