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