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