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