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