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