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