Get the else field from a svstmt-if.
(svstmt-if->else x) → else
This is an ordinary field accessor created by defprod.
Function:
(defun svstmt-if->else$inline (x) (declare (xargs :guard (svstmt-p x))) (declare (xargs :guard (equal (svstmt-kind x) :if))) (let ((__function__ 'svstmt-if->else)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (svstmt-kind x) :if) x))) (svstmtlist-fix (std::prod-cdr (std::prod-cdr (cdr x))))) :exec (std::prod-cdr (std::prod-cdr (cdr x))))))
Theorem:
(defthm svstmtlist-p-of-svstmt-if->else (b* ((else (svstmt-if->else$inline x))) (svstmtlist-p else)) :rule-classes :rewrite)
Theorem:
(defthm svstmt-if->else$inline-of-svstmt-fix-x (equal (svstmt-if->else$inline (svstmt-fix x)) (svstmt-if->else$inline x)))
Theorem:
(defthm svstmt-if->else$inline-svstmt-equiv-congruence-on-x (implies (svstmt-equiv x x-equiv) (equal (svstmt-if->else$inline x) (svstmt-if->else$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm svstmt-if->else-when-wrong-kind (implies (not (equal (svstmt-kind x) :if)) (equal (svstmt-if->else x) (svstmtlist-fix nil))))