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