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