Get the end field from a span.
This is an ordinary field accessor created by fty::defprod.
Function:
(defun span->end$inline (x) (declare (xargs :guard (spanp x))) (declare (xargs :guard t)) (let ((__function__ 'span->end)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (position-fix (cdr (std::da-nth 1 x)))) :exec (cdr (std::da-nth 1 x)))))
Theorem:
(defthm positionp-of-span->end (b* ((end (span->end$inline x))) (positionp end)) :rule-classes :rewrite)
Theorem:
(defthm span->end$inline-of-span-fix-x (equal (span->end$inline (span-fix x)) (span->end$inline x)))
Theorem:
(defthm span->end$inline-span-equiv-congruence-on-x (implies (span-equiv x x-equiv) (equal (span->end$inline x) (span->end$inline x-equiv))) :rule-classes :congruence)