Get the tops field from a trans-state.
(trans-state->tops x) → tops
This is an ordinary field accessor created by fty::defprod.
Function:
(defun trans-state->tops$inline (x) (declare (xargs :guard (trans-statep x))) (declare (xargs :guard t)) (let ((__function__ 'trans-state->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-trans-state->tops (b* ((tops (trans-state->tops$inline x))) (toplevel-listp tops)) :rule-classes :rewrite)
Theorem:
(defthm trans-state->tops$inline-of-trans-state-fix-x (equal (trans-state->tops$inline (trans-state-fix x)) (trans-state->tops$inline x)))
Theorem:
(defthm trans-state->tops$inline-trans-state-equiv-congruence-on-x (implies (trans-state-equiv x x-equiv) (equal (trans-state->tops$inline x) (trans-state->tops$inline x-equiv))) :rule-classes :congruence)