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