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