Get the index field from a matchstate.
(matchstate->index x) → index
This is an ordinary field accessor created by defprod.
Function:
(defun matchstate->index$inline (x) (declare (xargs :guard (matchstate-p x))) (declare (xargs :guard t)) (let ((__function__ 'matchstate->index)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (nfix (std::prod-car x))) :exec (std::prod-car x))))
Theorem:
(defthm natp-of-matchstate->index (b* ((index (matchstate->index$inline x))) (natp index)) :rule-classes :type-prescription)
Theorem:
(defthm matchstate->index$inline-of-matchstate-fix-x (equal (matchstate->index$inline (matchstate-fix x)) (matchstate->index$inline x)))
Theorem:
(defthm matchstate->index$inline-matchstate-equiv-congruence-on-x (implies (matchstate-equiv x x-equiv) (equal (matchstate->index$inline x) (matchstate->index$inline x-equiv))) :rule-classes :congruence)