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