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