Recognizer for span structures.
(spanp x) → *
Function:
(defun spanp (x) (declare (xargs :guard t)) (let ((__function__ 'spanp)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(start end))) :exec (fty::alist-with-carsp x '(start end))) (b* ((start (cdr (std::da-nth 0 x))) (end (cdr (std::da-nth 1 x)))) (and (positionp start) (positionp end))))))
Theorem:
(defthm consp-when-spanp (implies (spanp x) (consp x)) :rule-classes :compound-recognizer)