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