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