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