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