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