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