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