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