Boolean flag indicating whether the regular expression matched the string
(matchresult->matchedp x) → matchedp
Function:
(defun matchresult->matchedp (x) (declare (xargs :guard (matchresult-p x))) (let ((__function__ 'matchresult->matchedp)) (declare (ignorable __function__)) (and (matchresult->loc x) t)))
Theorem:
(defthm booleanp-of-matchresult->matchedp (b* ((matchedp (matchresult->matchedp x))) (booleanp matchedp)) :rule-classes :type-prescription)
Theorem:
(defthm matchresult->matchedp-of-matchresult-fix-x (equal (matchresult->matchedp (matchresult-fix x)) (matchresult->matchedp x)))
Theorem:
(defthm matchresult->matchedp-matchresult-equiv-congruence-on-x (implies (matchresult-equiv x x-equiv) (equal (matchresult->matchedp x) (matchresult->matchedp x-equiv))) :rule-classes :congruence)
Theorem:
(defthm matchresult->matchedp-of-matchresult (iff (matchresult->matchedp (make-matchresult :loc loc :len len :str str :backrefs backrefs)) loc))
Theorem:
(defthm natp-of-matchresult->loc (iff (natp (matchresult->loc x)) (matchresult->matchedp x)) :rule-classes (:rewrite (:type-prescription :corollary (implies (matchresult->matchedp x) (natp (matchresult->loc x))))))
Theorem:
(defthm matchresult->loc-under-iff (iff (matchresult->loc x) (matchresult->matchedp x)))