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