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