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