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