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