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