Get the context field from a expr-gin.
(expr-gin->context x) → context
This is an ordinary field accessor created by fty::defprod.
Function:
(defun expr-gin->context$inline (x) (declare (xargs :guard (expr-ginp x))) (declare (xargs :guard t)) (let ((__function__ 'expr-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-expr-gin->context (b* ((context (expr-gin->context$inline x))) (atc-contextp context)) :rule-classes :rewrite)
Theorem:
(defthm expr-gin->context$inline-of-expr-gin-fix-x (equal (expr-gin->context$inline (expr-gin-fix x)) (expr-gin->context$inline x)))
Theorem:
(defthm expr-gin->context$inline-expr-gin-equiv-congruence-on-x (implies (expr-gin-equiv x x-equiv) (equal (expr-gin->context$inline x) (expr-gin->context$inline x-equiv))) :rule-classes :congruence)