Get the context field from a stmt-gin.
(stmt-gin->context x) → context
This is an ordinary field accessor created by fty::defprod.
Function:
(defun stmt-gin->context$inline (x) (declare (xargs :guard (stmt-ginp x))) (declare (xargs :guard t)) (let ((__function__ 'stmt-gin->context)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (atc-context-fix (cdr (std::da-nth 0 x)))) :exec (cdr (std::da-nth 0 x)))))
Theorem:
(defthm atc-contextp-of-stmt-gin->context (b* ((context (stmt-gin->context$inline x))) (atc-contextp context)) :rule-classes :rewrite)
Theorem:
(defthm stmt-gin->context$inline-of-stmt-gin-fix-x (equal (stmt-gin->context$inline (stmt-gin-fix x)) (stmt-gin->context$inline x)))
Theorem:
(defthm stmt-gin->context$inline-stmt-gin-equiv-congruence-on-x (implies (stmt-gin-equiv x x-equiv) (equal (stmt-gin->context$inline x) (stmt-gin->context$inline x-equiv))) :rule-classes :congruence)