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